Details for revision 1916 of testcase: PXE BIOS Netboot (Server live)



BugReport a bug against the content of this testcase
ID1759
TitlePXE BIOS Netboot (Server live)
LinkNo link provided
Part of testsuitesUbuntu Subiquity amd64

RevisionWritten on the 2023-10-18 04:25 by andersson123
RevisionWritten on the 2023-04-18 06:42 by brian-murray
RevisionWritten on the 2022-10-12 19:53 by brian-murray
Text

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
English.

HOST is the IP address of the machine acting as the PXE/DHCP/HTTP
server.
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:

interface=INTERFACE,lo
bind-interfaces
dhcp-range=INTERFACE,STARTADDR,ENDADDR
dhcp-boot=pxelinux.0
enable-tftp
tftp-root=/srv/tftp

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

#cloud-config
autoinstall:
 version: 1
 identity:
  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

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.