From 95c9814a0f2f8abbe8de372cc0f0294a6a0de00c Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Wed, 9 Dec 2015 15:20:48 -0800 Subject: [PATCH] ipxe: Add iPXE script to get MAC/UUID in Vagrant --- vagrant/ipxe/scripts/ipxe.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vagrant/ipxe/scripts/ipxe.sh b/vagrant/ipxe/scripts/ipxe.sh index 3a9c8b7b..2151ed03 100644 --- a/vagrant/ipxe/scripts/ipxe.sh +++ b/vagrant/ipxe/scripts/ipxe.sh @@ -47,6 +47,11 @@ dnf install -yq httpd cat << EOF > "/var/www/html/boot.ipxe" #!ipxe +chain http://$IPXE_SERVER_IP/ipxe?mac=\${net0/mac}&uuid=\${uuid} +EOF + +cat << EOF > "/var/www/html/ipxe" +#!ipxe set base-url http://stable.release.core-os.net/amd64-usr/current kernel http://$IPXE_SERVER_IP/coreos_production_pxe.vmlinuz cloud-config-url=http://$IPXE_SERVER_IP/cloud-config.yml initrd http://$IPXE_SERVER_IP/coreos_production_pxe_image.cpio.gz