PDA

View Full Version : PXE installing 14.04 LTS



david.simpson
April 27th, 2015, 04:46 PM
Hi

I'm having some trouble PXE installing 14.04 LTS. I would like to do everything on the local network (DHCP/TFTP/HTTP install).

I've got a working pxe server it'll do an Ubuntu net-install (i.e. fetch packages from the internet) but I would like to be able to provision internally using Kickstart (HTTP) though...

This is my pxelinux.cfg/default file

kernel pxelinux.cfg/ubuntu/vmlinuz.efi
append vga=normal ks=http://IP-OF-SERVER/ks/ubuntu/ks.cfg url=http://IP-OF-SERVER/ks/ubuntu/preseed.cfg initrd=pxelinux.cfg/ubuntu/initrd.lz ramdisk_size=16432 root=/dev/rd/0 rw --

I keep getting dropped to initrmafs / busybox though.

Is there an official guide for doing this with 14.04? I haven't seen one yet.

thanks

david.simpson
April 30th, 2015, 12:48 PM
LUBUNTU provides an alternative ISO (14.04LTS) which I'm now getting a bit further with. It goes further and stops because it looks for CD/DVD - the problem is there's no attempt to download the preseed file. Nothing seen on the httpd logs on the webserver. I don't understand why it is not honouring the url option in the pxe boot file / kernel parameters.

In contrast I can pxe boot Centos7 from the same setup, and it tries to fetch the kickstart from the webserver (seen in httpd log).

david.simpson
April 30th, 2015, 02:04 PM
OK well if I use this it seems to pull the preseed.cfg down

kernel ubuntu_setup/ubuntu-installer/amd64/linux
append auto=true priority=critical interface=auto vga=normal initrd=ubuntu_setup/ubuntu-installer/amd64/initrd.gz url=http://IP-ADDRESS/FOLDER/preseed.cfg

david.simpson
April 30th, 2015, 02:33 PM
So now the problem is... how I can get it to read a loopback mounted ISO (of 14.04LTS) being served by a webserver (same server as the webserver serving the preseed file).

david.simpson
May 1st, 2015, 10:01 AM
OK well ... this is a bit annoying, I've ended up with a mixed Ubuntu/Lubuntu pxe setup.

It is now working using this pxe default file config and the alternate LUBUNTU ISO which is loopback mounted on the web server for the HTTP install:

kernel ubuntu_setup/ubuntu-installer/amd64/linux
append auto=true priority=critical interface=auto vga=normal initrd=ubuntu_setup/ubuntu-installer/amd64/initrd.gz ks=http://IP-NUMBER/ks/ubuntu/ks.cfg url=http://IP-NUMBER/ks/ubuntu/preseed.cfg --


Using the Ubuntu desktop ISO (loopback mounted) doesn't work because it fails to retrieve packages during the HTTP installation, they aren't available in that directory structure (probably part of a big blob).

david.simpson
May 1st, 2015, 11:56 AM
LUBUNTU provides an alternative ISO (14.04LTS) which I'm now getting a bit further with. It goes further and stops because it looks for CD/DVD - the problem is there's no attempt to download the preseed file. Nothing seen on the httpd logs on the webserver. I don't understand why it is not honouring the url option in the pxe boot file / kernel parameters.

In contrast I can pxe boot Centos7 from the same setup, and it tries to fetch the kickstart from the webserver (seen in httpd log).

So the problem with this is described here:

http://ubuntuforums.org/showthread.php?t=2275031

-----------------------------------

Now trying a 1504 LUBUNTU PXE + HTTP install ....

david.simpson
July 24th, 2015, 09:54 AM
For the benefit of someone out there... I eventually got ubuntu 1404 LTS working as an internet install, not a proper network install but in my case though the mirror is geographically/physically close

------------------------------

#Generated by Kickstart Configurator
#platform=AMD64 or Intel EM64T


#System language
lang en_GB
#Language modules to install
langsupport en_GB
#System keyboard
keyboard gb
#System mouse
mouse
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use Web installation
url --url http://an-ubuntu-mirror

Ran-D
August 3rd, 2015, 02:23 PM
Hi Guys,

I have been able to successfully setup an ubuntu 14.04 deployment server. I'm able to install ubuntu server 64 via pxe and a kickstart file. for more details please see the link below. (my only problem is I can't get the desktop version installed)

http://www.ossramblings.com/deploy-ubuntu-14.04-trusty-desktop-pxe