Skip to content

A vagrant PXE client/server environment with libvirt provider.

License

Notifications You must be signed in to change notification settings

eoli3n/vagrant-pxe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant PXE test environment

                    

A vagrant PXE client/server environment which supports legacy and UEFI boot with iPXE.
It is designed to learn and test cloning solutions, nfsroot, ipxe, auto install etc...
Default pxe configuration loads ipxe in UEFI mode and start ubuntu installer over nfsroot.

Prepare

Install qemu, libvirt, OVMF, nfsd, vagrant-libvirt

# For archlinux
pacman -S vagrant libvirt qemu ovmf virt-manager
sudo gpasswd -a $USER libvirt
systemctl start libvirtd
vagrant plugin install vagrant-libvirt
# choose libvirt in menu

VMs

Server Client
OS Debian 10 No box
CPU 1 1
RAM 1024 2048
eth0 Management network Gateway to internet
eth1 Private network "pxe" Private network "pxe"

Run

Run server with

$ vagrant up
$ vagrant ssh server

To run client, which has autostart off
Note: If you want to test a legacy client boot, comment libvirt.firmware line in Vagrantfile.

$ vagrant up client

Then open virt-manager to see your pxe client booting. Before the install ends, uncheck NIC in VM boot order configuration to avoid install loop on reboot.

Clean

vagrant destroy -f

Refs

Note: check pxelinux branch to see a simple pxelinux exemple.

About

A vagrant PXE client/server environment with libvirt provider.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published