#Vagrant PXE Boot Machine
##Steps
- Create "build" images
- Package "build" images
- Add image to vagrant
- Have a pxe VM ready to go
##Setup
-
Create the master image. (It sets up dhcp, apache, tftp)
vagrant up build_boot
-
Package up the current image
vagrant package build_boot --output <storage_path>/pxe_boot.box
-
Add to vagrant's box list
vagrant box add pxe_boot <storage_path>/pxe_boot.box
-
Destroys the build boxes
vagrant destroy -f
-
Will deploy from the pre-made images, much faster than before for any future tests
vagrant up
##Test PXE
-
Create a blank VM
-
Enable Network Boot
a. System Settings -> Motherboard -> Boot Order (Check Network)
-
Update Network Interfaces
a. Network Settings -> Adapter 1:
- Internal Network - Name : prov
b. Network Settings -> Adapter 2:
- NAT Network - Name: NAT Network
-
Start Machine : Will PXE boot and install Ubuntu onto the disk
-
Credentials: ubuntu/ubuntu
- You can find the PXE boot stuff at /tftpboot and the kickstart at /var/www/my_ks.cfg on the build node