-
-
Save tlhakhan/03dbb4867f70d17d205c179a58fd5923 to your computer and use it in GitHub Desktop.
#!ipxe | |
# ubuntu focal 20.04 | |
# $seedfrom used to find the user-data and meta-data files by nocloud-net provider for cloud-init. | |
# the trailing slash is important, the cloud-init sticks 'meta-data' or 'user-data' right after it, without prepending a forward slash. | |
set seedfrom http://repo/files/ubuntu2004/ | |
# $base url is where the vmlinuz and initrd live. | |
# they were fished out from the live-server iso file. the iso file is also in this directory. | |
set base http://repo/files/ubuntu2004 | |
kernel ${base}/vmlinuz initrd=initrd autoinstall url=${base}/ubuntu-20.04-live-server-amd64.iso net.ifnames=0 biosdevname=0 ip=dhcp ds=nocloud-net;s=${seedfrom} | |
initrd ${base}/initrd | |
boot |
@jamaya77, I haven't done any automated installs of Ubuntu desktops, only server versions. However, with the new auto-install method, I think it must be possible.
Quick googling, I found this repo, which looks like a starting point🤞: https://github.com/canonical/autoinstall-desktop
I'm currently doing ipxe file for Ubuntu. I have done it works. Here's the block from the file.
ipxe
...
:install
kernel ${base-url}/vmlinuz initrd=initrd autoinstall url=${iso-url} net.ifnames=0 biosdevname=0 ip=dhcp ds=nocloud-net;seedfrom=${seed-url}/ubuntu.seed
initrd ${base-url}/initrd
boot
I see in ubuntu iso in grub.config there's a block
grub_platform
if [ "$grub_platform" = "efi" ]; then
menuentry 'Boot from next volume' {
exit 1
}
menuentry 'UEFI Firmware Settings' {
fwsetup
}
else
menuentry 'Test memory' {
linux16 /boot/memtest86+.bin
}
fi
I'd like in my ipxe file to make a menu option to start memtest. How I can make this?
ChatGPT
Hi Tenzin,
Thank you for the follow-up. I was deploying 18.04 via netboot, but I still think the live cd is better. Do you have a similar solution for 18.04 Desktop? Your suggestion is much appreciated. Thank you.