Skip to content

Instantly share code, notes, and snippets.

@jess-sol
Last active August 12, 2019 21:29
Show Gist options
  • Select an option

  • Save jess-sol/509c215ef703595c7ce32496b5fb860e to your computer and use it in GitHub Desktop.

Select an option

Save jess-sol/509c215ef703595c7ce32496b5fb860e to your computer and use it in GitHub Desktop.
Set up Vagrant on Arch Linux
sudo pacman -S \
  qemu libvirt virt-manager \
  ebtables nfs-utils dnsmasq vagrant

vagrant plugin install vagrant-libvirt vagrant-mutate
vagrant plugin install vagrant-hostmanager vagrant-cachier # Optional

sudo usermod -a -G libvirt `whoami`
sudo systemctl restart libvirtd # Make sure ebtables installation takes effect

# If running firewalld
sudo firewall-cmd --zone libvirt --add-service=nfs --add-service=mountd --add-service=rpc-bind --add-service=dhcpv6-client --permanent

# TODO - Provider virtualbox includes vbox guest tools, would like to have purpose built box. 
vagrant box add --provider virtualbox bento/centos-7.6
vagrant mutate bento/centos-7.6 libvirt

vagrant init --provider libvirt bento/centos-7.6
vagrant up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment