-
Start libvirtd
sudo systemctl start libvirtd
-
Install vagrant-libvirt plugin
vagrant plugin install vagrant-libvirt
-
Boot up two machines,
server
anduser
:vagrant up
It will take some time the first time you run this command, cause we need to download the vagrant box.
-
Use
vagrant ssh server
andvagrant ssh user
to connect to your machines. -
Provision
ansible-playbook playbook.yml
It may take some time, be patient!
-
Final step
ansible 192.168.33.11 -b -a "systemctl set-default graphical.target"
vagrant reload user
-
user
machine has gui enabled (through spice), use a spice client to connect to itremote-viewer spice://127.0.0.1:5900
-
How to shutdown your machines
vagrant halt