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
apt:
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.
|