Last active
July 14, 2018 20:11
-
-
Save eckelon/904c7fae78b69211dd8bad20cdf787e5 to your computer and use it in GitHub Desktop.
This is how I managed to provision my vagrant development environment using libvirt instead of Virtualbox, so it now loads faster.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get -y install libvirt-dev qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils | |
vagrant plugin install vagrant-libvirt | |
vagrant plugin install vagrant-share | |
sudo addgroup libvirtd | |
sudo usermod -a -G libvirtd $user | |
sudo apt install nfs-kernel-server | |
sudo reboot | |
vagrant up --provider=libvirt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is just an example, use the libvirt provider with your own Vagrantfile | |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# linux version | |
config.vm.box = "debian/jessie64" | |
config.vm.provider :libvirt do |libvirt| | |
libvirt.memory = 4096 | |
libvirt.cpus = 2 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment