PXE Netboot Live Server Autoinstall in Ubuntu Server Subiquity amd64 in Eoan Daily (archived)

DownloadLink to the download information
PXE Netboot Live Server AutoinstallDetailed information on the testcase
Bug instructionsLink to bug reporting instructions
Testcase (Report an issue with this testcase)

This testcase is to run netboot installation on amd64 machines with live
images. You need an installed Ubuntu machine in the same network, configured
with a static IP, which will be functioning as a PXE server with DHCP.

Proceed in your native language if you wish. Instructions will remain in

HOST is the IP address of the machine acting as the PXE/DHCP/HTTP
URL is the ISO being tested, as listed in the download links for
the test case.
INTERFACE is the relevant network interface on the HOST.
STARTADDR and ENDADDR are the start and end points for dhcp addresses to
be handed out on this test network. Choose appropriate values to match
the static network configuration of the HOST, and see the manpage for
dnsmasq for more details.

Setup the various services:

sudo apt install -y curl dnsmasq apache2 syslinux-common
sudo curl URL -o /var/www/html/test-live-server-amd64.iso
sudo mkdir -p /srv/tftp/pxelinux.cfg
sudo mount -o loop,ro /var/www/html/test-live-server-amd64.iso /mnt
sudo cp /mnt/casper/initrd /srv/tftp
sudo cp /mnt/casper/vmlinuz /srv/tftp
sudo cp /usr/lib/syslinux/modules/bios/ldlinux.c32 /srv/tftp
sudo curl http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/curren... -o /srv/tftp/pxelinux.0
sudo systemctl restart dnsmasq.service

Configure /etc/dnsmasq.d/pxe.conf:


Configure /var/www/html/autoinstall.yaml:

 version: 1
  hostname: live-server
  # This password is ubuntu
  # To use a different password, set the appropriate hash here.
  # `mkpasswd`, from the 'whois' package, can help with hash creation.
  password: $1$glNWVUKh$VxFYudlLU5FR9WDGXOK761
  username: ubuntu
  fallback: offline-install

Configure /srv/tftp/pxelinux.cfg/default:

DEFAULT install
LABEL install
  KERNEL vmlinuz
  INITRD initrd
  APPEND root=/dev/ram0 ramdisk_size=1500000 ip=dhcp cloud-config-url=http://HOST/autoinstall.yaml url=http://HOST/test-live-server-amd64.iso autoinstall

Power on the test machine and ensure that it boots PXE. The install should
complete without further interaction.

If you finish the installation, please submit a 'passed' result.
If any action fails, or produces an unexpected result, please submit a 'failed' result and file a bug. Please be sure to include the bug number when you submit your result.

ReporterLast updateBugsComment
Add a test result

You need to be logged in to submit your test results.