Ubuntu-installer fails preseed configuration file
Posted
by
user76171
on Ask Ubuntu
See other posts from Ask Ubuntu
or by user76171
Published on 2012-07-10T14:35:22Z
Indexed on
2012/07/10
15:23 UTC
Read the original article
Hit count: 320
preseed
I try to install Ubuntu 12.04 over network unattended. I installed a DHCP server (Dnsmasq), a TFTP server (tftpd-hpa), I got the netboot.tar.gz archive with the pxelinux.0 file, the pxelinux.cfg directory, the linux kernel and the initrd.gz image and I put a preseed file into my web server. Dnsmasq, tftpd-hpa, pxelinux and Apache are all on the same machine. The PCs MB doesn’t support PXE, so I use iPXE and boot it from a CD. The PC gets an IP from the DHCP, then iPXE loads #pxelinux.cfg/default, which I edited like this:
timeout 5
prompt 0
default install
label install
kernel ubuntu-installer/i386/linux
append vga=normal locale=en_GB setup/layoutcode=sl_SI console-setup/layoutcode=sl_SI netcfg/choose_interface=auto initrd=ubuntu-installer/i386/initrd.gz netcfg/get_hostname=ubuntux preseed/url=#http://192.168.10.10/ins/preseed.cfg
Then it loads the linux kernel and the initrd.gz
image. Then I got a question: Detect keyboard layout?
I desided to bother with this later. So I answer No
, and then twice on English
just to get trough and then I get to the error: The installer failed to process the preconfiguration file from #http://192.168.10.10/ins/preseeed.cfg. The file may be corrupt.
I created the file myself and copied the d-I commands into it. I also tried to get the preseed.cfg
over a web browser and it works fine. So why is the installer failing?
© Ask Ubuntu or respective owner