Ubuntu – Bad archive mirror using PXE boot method

automationkickstartpxesystem-installation

I'm trying to automatically install Ubuntu on a client PC by using the PXE BOOT method….my Objectives are below:

I am following the steps given in this link installation using PXE BOOT

  1. the server will have a KICKSTART
    config file which contains the
    parameters for the OS installation
    and the files which are required for
    the OS installations.
  2. the client will have to detect this
    configuration along with the setup
    files and complete the installation
    without any input from the user.

In my server I have installed DHCP3-server,Apache2 and TFTP to help me with the installation.

I have nearly achieved my first objective, I am able to boot my client using the files stored in the server but during the installation stage it is asking me to

CHOOSE A MIRROR OF UBUNTU ARCHIVE

I gave the server's IP address and the path in the server where the files are located but then its giving me this error

BAD ARCHIVE MIRROR

  • So is it possible that instead of
    downloading all the files from the
    internet and storing them on my disk
    can I use the files which comes with
    the UBUNTU-CD, and how to store these
    files in what format (should I zip
    them) on the disk?
  • secondly I am also generating the
    ks.cfg which I wanted to give to the
    client for automatic installation of
    the OS. So how should the
    configuration file be given to the
    installation process?

Best Answer

You can save your mirror information in your kickstart file:

curl --url http://192.168.1.1/ubuntu

You can specify the kickstarter file in the PXE boot line:

append vga=normal initrd=installers/jaunty/i386/initrd.gz ks=http://192.168.1.1/ks.cfg ksdevice=eth0 -- 

You should use apt-mirror to create a local copy of the ubuntu mirror. It is about 40GB and will take all night to generate. Please see questions directly about each of these things for further details.

Related Question