I already make a bootable auto install ISO of ubuntu 22.04 server , and now I want to provide it in my original PXE environment
my PXE IP: 192.168.11.7
hereis my dhcpd.conf about pxelinux
filename "bios/pxelinux.0";
next-server 192.168.11.7;
and then add this section in my pxe boot menu
label Ubuntu 22.04 Server auto install
menu label Ubuntu 22.04 Server auto install
kernel tftp://192.168.11.7/images/ubuntu/22.04/amd64/vmlinuz
initrd tftp://192.168.11.7/images/ubuntu/22.04/amd64/initrd.gz
append ip=dhcp cloud-config-url=/dev/null url=http://192.168.11.7/jammy-server/ubuntu-22.04-live-server-amd64.iso autoinstall ds=nocloud-net;s=http://192.168.11.7/jammy-server/ # Don't forget the slash at the end.
then upload ISO file , vmlinuz/initrd.gz (extracted from the ISO ) , user-data/meta-data ( which I make ) to http://192.168.11.7/jammy-sever/
all these files can be downloaded.
then I restart dhcp service , tftpd service , nginx service , create a VM in proxmox to see if PXE works , here is the screen recording.
the installer just hangs here like forever , althrouuogh I can start new tty with alt+f2/f3/f4... but it's all black screen , so I can't see the installer log ( if there is any ) to see what's going on.
I'm stuck here for couple days , I really need some advice to move on. Any advice will be appreciated.
cloud-init-local.service
. This is before theuser-data
file would be downloaded, but if the Proxmox VM has a local config (e.g.cicustom
value) it could be breaking something. – Andrew Lowther Jun 19 '22 at 18:47autoinstall ds=...
arguments to see if the interactive installer starts properly. – Andrew Lowther Jun 19 '22 at 19:10https://i.imgur.com/VoUYlMC.png
– Eric Chang Jun 21 '22 at 02:07initrd
line is missing or wrong. Without the initramfs the kernel does not have the modules needed for the file system. It is hard to say for certain without more information. I saw your other post saying you got a Proxmox VM working with PXE and autoinstall, so I hope that means you figured out your problem. – Andrew Lowther Jun 22 '22 at 01:37