Find the answer to your Linux question:
Results 1 to 10 of 10
When I started the kickstart installation, giving the http address of the kickstart file, it says "file not found". I am giving: file=myip/ubuntu/preseed/ubuntu.seed boot=casper initrd=myip/casper/initrd.lz file=myip/ks.cfg -- The IP I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2013
    Location
    Hyderabad
    Posts
    29

    kickstart installation ubuntu through boot problem


    When I started the kickstart installation, giving the http address of the kickstart file, it says "file not found".

    I am giving:

    file=myip/ubuntu/preseed/ubuntu.seed boot=casper initrd=myip/casper/initrd.lz
    file=myip/ks.cfg --

    The IP I am giving is through http, but it says "file not found".

    Is there a method to give the boot menu or any other method to get the kickstart done?

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    Hi,

    when I set up my PXE Ubuntu environment, I used url, not file. here's the relevant portion of my PXE config file:

    Code:
    label ubuntu904
      MENU LABEL Ubuntu 9.04
      kernel ubuntu-installer/i386/linux
      append vga=normal initrd=ubuntu-installer/i386/initrd.gz auto=true priority=critical netcfg/no_default_route=1 netcfg/get_nameservers='' url=http://192.168.1.1/tftpboot/kickstart/Ubuntu-9.04.cfg ramdisk_size=11057 root=/dev/rd/0 devfs=mount,dall rw --

  3. #3
    Just Joined!
    Join Date
    Sep 2013
    Location
    Hyderabad
    Posts
    29
    Does the above work for you in kickstart ??
    Please let me know and
    get me the procedure for tftp and PXE boot process, so that it would help me in getting my work done easliy

  4. #4
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    Quote Originally Posted by rajesh00749 View Post
    Does the above work for you in kickstart ??
    yes, that is what i was insinuating.

    Please let me know and
    get me the procedure for tftp and PXE boot process, so that it would help me in getting my work done easliy
    tuts abound on the net for setting up PXE in various environs...have a google. try your hand at one and if/when you get into particular trouble with a step or command, post your problem back here. be sure to include what commands you are trying, the contents of any related files, and references to guide(s) you are following.

    i can tell you for starters that you'll need to install:
    • dhcp server
    • tftp server
    • http/ftp/nfs server
    • pxelinux


    then configure the tftp server to serve up the bootstrap pxelinux file. customize the pxelinux config file to include a stanza like mine above. mirror the Linux distro source packages locally and serve them up via http/ftp/nfs, and make sure other clients on the local network can access them.

    as you go along, you'll run into config troubles. always be sure to check the log files on the server for errors, that is the easiest way to troubleshoot.
    Last edited by atreyu; 10-02-2013 at 05:25 AM. Reason: typo

  5. #5
    Just Joined!
    Join Date
    Sep 2013
    Location
    Hyderabad
    Posts
    29
    Can't i do the kickstart similar to Cento OS kickstart ?

  6. #6
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    Quote Originally Posted by rajesh00749 View Post
    Can't i do the kickstart similar to Cento OS kickstart ?
    yes, you can kick off the network install in roughly the same way. i don't know about doing the whole unattended install via a config file, though, i haven't done that part. the PXE config excerpt i showed you also has Fedora, RHEL, and CentOS entries in it.

    you just need to be sure to get the Ubuntu PXE Linux kernel and initial ramdisk images into the TFTP configuration area in the right place.

  7. #7
    Just Joined!
    Join Date
    Sep 2013
    Location
    Hyderabad
    Posts
    29
    i used url instead of file but it couldn't fetch the file
    nad normal installation starts

  8. #8
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    Quote Originally Posted by rajesh00749 View Post
    i used url instead of file but it couldn't fetch the file
    nad normal installation starts
    what exactly did you type at the boot prompt? i assume you are booting with a Ubuntu CD/DVD?

    are you checking the logs on your server to see if you are connecting to the web server?

    how are you getting an ip address for your client? if you are using DHCP, have you configured the DHCP server to allow the client, and if so, have you checked the syslog for connection attempts?

  9. #9
    Just Joined!
    Join Date
    Sep 2013
    Location
    Hyderabad
    Posts
    29
    file=myip/ubuntu/preseed/ubuntu.seed boot=casper initrd=myip/casper/initrd.lz url=myip/ks.cfg --

    I am booting with a ubuntu dvd

    i configured the DHCP server and it works fine
    I have done CentOS kickstart installation in similar way and i got it worked
    In ubuntu it says file cannot be fetched and it starts normal instalation

  10. #10
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,307
    Quote Originally Posted by rajesh00749 View Post
    file=myip/ubuntu/preseed/ubuntu.seed boot=casper initrd=myip/casper/initrd.lz url=myip/ks.cfg --
    So you are booting the client from CD/DVD, and *not* via PXE, is this correct?

    Why do you have a "ks.cfg" file? The "ubuntu.seed" file IS the automated installation file for Ubuntu (I thought). also, you might need to use the initrd.gz on the CD. so try this instead:

    Code:
    url=http://<SERVER_IPADDR>/ubuntu/preseed/ubuntu.seed boot=casper initrd=/install/initrd.gz --
    on the web server, please look at the apache log file. it will tell you exactly what is happening when the client attaches to it. the web server log file depends upon the Linux distribution. try these locations:
    Code:
    /var/log/httpd/
    /var/log/apache2/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •