Ubuntu 18.04 - Vagrant Install using libvert Plugin

Ubuntu 18.04 - Vagrant Install using libvert Plugin

Dependencies
sudo apt install build-essential vagrant ruby-libvirt
sudo apt install qemu libvirt-bin ebtables dnsmasq-base
sudo apt install libxslt-dev libxml2-dev libvirt-dev zlib1g-dev ruby-dev

Install plugin
vagrant plugin install vagrant-libvirt

Download vagrant box
vagrant box add generic/ubuntu1804 --provider=libvirt

Download vagrant file
vagrant init generic/ubuntu1804

Start Vagrant
vagrant up
# if you have multiple providers
vagrant up --provider=libvirt

Destroy VM
vagrant destroy

Note:
You might consider changing directories. You can only have one Vagrant file in a directory and you might want to organize a bit.

Refrences
https://github.com/vagrant-libvirt/vagrant-libvirt
https://computingforgeeks.com/using-vagrant-with-libvirt-on-linux/

Comments

Popular posts from this blog

Azure DevOps - Auto Approve PR with PAT

Ubuntu 18.04 - Install Android Emulator

Ansible Module - VMWare Update Guest PCI Device