← Back to team overview

kubuntu-council team mailing list archive

[Merge] ~dbungert/ubuntu-manual-tests:live-server-pxe-autoinstall into ubuntu-manual-tests:main

 

Dan Bungert has proposed merging ~dbungert/ubuntu-manual-tests:live-server-pxe-autoinstall into ubuntu-manual-tests:main.

Commit message:
image: add live-server netboot autoinstall test



Requested reviews:
  Ubuntu Testcase Admins (ubuntu-testcase)

For more details, see:
https://code.launchpad.net/~dbungert/ubuntu-manual-tests/+git/ubuntu-manual-tests/+merge/431170
-- 
Your team Ubuntu Testcase Admins is requested to review the proposed merge of ~dbungert/ubuntu-manual-tests:live-server-pxe-autoinstall into ubuntu-manual-tests:main.
diff --git a/testcases/image/1758_PXE Netboot Live Server Autoinstall b/testcases/image/1758_PXE Netboot Live Server Autoinstall
new file mode 100644
index 0000000..9f79629
--- /dev/null
+++ b/testcases/image/1758_PXE Netboot Live Server Autoinstall
@@ -0,0 +1,72 @@
+<p>
+This testcase is to run netboot installation on amd64 machines with live
+images. You need an installed Ubuntu machine in the same network, which will be
+functioning as a PXE server with DHCP.
+</p>
+
+<em>
+Proceed in your native language if you wish. Instructions will remain in
+English.
+</em>
+
+<dl>
+ <dt>HOST is the IP address of installed Ubuntu machine.</dt>
+ <dt>URL is the ISO being tested, as listed in the download links for
+    the test case.</dt>
+ <dt>INTERFACE is the relevant network interface.</dt>
+</dl>
+
+<p>Setup the various services:</p>
+<dl>
+ <dt>sudo apt install -y curl dnsmasq apache2 syslinux-common</dt>
+ <dt>sudo curl URL -o /var/www/html/test-live-server-amd64.iso</dt>
+ <dt>sudo mkdir -p /srv/tftp/pxelinux.cfg</dt>
+ <dt>sudo mount -o loop,ro /var/www/html/test-live-server-amd64.iso /mnt</dt>
+ <dt>sudo cp /mnt/casper/initrd /srv/tftp</dt>
+ <dt>sudo cp /mnt/casper/vmlinuz /srv/tftp</dt>
+ <dt>sudo cp /usr/lib/syslinux/modules/bios/ldlinux.c32 /srv/tftp</dt>
+ <dt>sudo curl http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/current/legacy-images/netboot/pxelinux.0 -o /srv/tftp/pxelinux.0</dt>
+ <dt>sudo systemctl restart dnsmasq.service</dt>
+</dl>
+
+<p>
+Configure /etc/dnsmasq.d/pxe.conf - adjust as appropriate for the installation
+network:
+</p>
+<pre>
+interface=INTERFACE,lo
+bind-interfaces
+dhcp-range=INTERFACE,192.168.0.100,192.168.0.200
+dhcp-boot=pxelinux.0
+enable-tftp
+tftp-root=/srv/tftp
+</pre>
+
+<p>Configure /var/www/html/autoinstall.yaml:</p>
+<pre>
+#cloud-config
+autoinstall:
+ version: 1
+ identity:
+  hostname: live-server
+  # password is ubuntu
+  password: $1$glNWVUKh$VxFYudlLU5FR9WDGXOK761
+  username: ubuntu
+</pre>
+
+<p>Configure /srv/tftp/pxelinux.cfg/default:</p>
+<pre>
+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
+</pre>
+
+<p>
+Power on the test machine and ensure that it boots PXE. The install should
+complete without further interaction.
+</p>
+
+<strong>If you finish the installation, please <a href="results#add_result">submit</a> a 'passed' result.
+    If any action fails, or produces an unexpected result, please <a href="results#add_result">submit</a> a 'failed' result and <a href="../../buginstructions">file a bug</a>. Please be sure to include the bug number when you <a href="results#add_result">submit</a> your result.</strong>