Create a simple PXE server that allows you to boot Ubuntu Server over tftp.
Used this as a starting point.
Used this to add UEFI booting.
To try this out:
-
Review the ip address in Vagrantfile. Look for this line:
ubuntu.vm.network "public_network", ip: "192.168.0.240"
-
Spin up a test VM
vagrant up
-
Modify the network to be "Bridged Networking/Autodetect" after VM has been booted.
-
From this directory, run:
pyinfra --user vagrant --password vagrant 192.168.0.240 pxe_infra.py
Test that it actually works from VMware by:
- Create a new custom virtual machine
- Linux/Other Linux 3.x kernel 64-bit
- Legacy BIOS or UEFI should work
- Accept defaults for VM
- Go into Network Adapter, and change to "Bridged Networking/Autodetect"
- This deploy requires one file from templates/ directory: dnsmasq.conf.j2
- For troubleshooting, connect to pxe_server and see /var/log/syslog or run "systemctl status dnsmasq" or run "systemctl status nfs-kernel-server".
- The vagrant box does not have ufw (firewall) enabled. You should/may.