Skip to content

Instantly share code, notes, and snippets.

@robinsmidsrod
Created October 9, 2012 13:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save robinsmidsrod/3858837 to your computer and use it in GitHub Desktop.
Save robinsmidsrod/3858837 to your computer and use it in GitHub Desktop.
Testing out the upcoming NFS support in iPXE

Build Mareo's nfs branch of iPXE from: http://ipxe.org/gsoc/nfs

Using full bootstrap example from https://gist.github.com/2234639

In dhcpd.conf chainload clause:

filename "nfs:nas.smidsrod.lan:/raid/boot:bootstrap.ipxe";

Modify bootstrap.ipxe with this boot-url:

set boot-url nfs:nas.smidsrod.lan:/raid/boot:
Log from trying to boot Ubuntu 12.04 amd64 liveCD (casper) (works without problems on http)
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: net0: 10.1.1.29/255.255.255.0 gw 10.1.1.1
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: Next server: 10.1.1.2
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: Filename: nfs:nas.smidsrod.lan:/raid/boot:bootstrap.ipxe
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: nfs:nas.smidsrod.lan:/raid/boot:bootstrap.ipxe...Downloaded "<NULL>"
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: ok
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: Executing "img0"
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: nfs:nas.smidsrod.lan:/raid/boot:/bootstrap/hostname-testvm.ipxe...Downloaded "<NULL>"
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: ok
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: Execution of "img0" completed
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: Executing "img1"
Oct 9 15:19:16 testvm.smidsrod.lan ipxe:
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: Booting TestVM
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: nfs:nas.smidsrod.lan:/raid/boot:/menu.ipxe...Downloaded "<NULL>"
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: ok
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: Execution of "img1" completed
Oct 9 15:19:16 testvm.smidsrod.lan ipxe: Executing "img2"
Oct 9 15:19:26 testvm.smidsrod.lan ipxe: Booting Ubuntu Live 12.04 amd64 for iqn.2011-02.lan.smidsrod:testvm
Oct 9 15:19:27 testvm.smidsrod.lan ipxe: nfs:nas.smidsrod.lan:/raid/boot:/ubuntu-12.04-dvd-amd64/casper/vmlinuz... 65%Downloaded "<NULL>"
Oct 9 15:19:27 testvm.smidsrod.lan ipxe: #010#010#010#010 #010#010#010#010 ok
Oct 9 15:19:31 testvm.smidsrod.lan ipxe: nfs:nas.smidsrod.lan:/raid/boot:/ubuntu-12.04-dvd-amd64/casper/initrd.lz... 22%#010#010#010#010 #010#010#010#010 45%#010#010#010#
Oct 9 15:19:32 testvm.smidsrod.lan ipxe: Downloaded "<NULL>"
Oct 9 15:19:32 testvm.smidsrod.lan ipxe: #010#010#010#010 #010#010#010#010 ok
Oct 9 15:19:32 testvm.smidsrod.lan ipxe: Download of "vmlinuz" failed: Invalid argument (http://ipxe.org/1c346002)
Oct 9 15:19:32 testvm.smidsrod.lan ipxe: Could not start download: Invalid argument (http://ipxe.org/1c346002)
Oct 9 15:19:32 testvm.smidsrod.lan ipxe: Execution of "img2" failed: Invalid argument (http://ipxe.org/1c346002)
Oct 9 15:19:32 testvm.smidsrod.lan ipxe: Could not boot image: Invalid argument (http://ipxe.org/1c346002)
Oct 9 15:19:32 testvm.smidsrod.lan ipxe: No more network devices
Oct 9 15:19:32 testvm.smidsrod.lan ipxe:
Oct 9 15:19:34 testvm.smidsrod.lan ipxe: Press Ctrl-B for the iPXE command line...#010 #010#010 #010#010 #010#010 #010#010 #010#010 #010#010 #010#010 #010#010 #010#010 #010#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment