Skip to content

Commit

Permalink
add support for the libvirt vagrant provider
Browse files Browse the repository at this point in the history
  • Loading branch information
rgl committed Aug 3, 2018
1 parent 006945b commit d6f9c02
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
Vagrant.configure(2) do |config|
config.vm.box = "windows-2016-amd64" # see https://github.com/rgl/windows-2016-vagrant

config.vm.provider "libvirt" do |lv, config|
lv.memory = 4096
lv.cpus = 2
lv.cpu_mode = "host-passthrough"
# lv.nested = true
lv.keymap = "pt"
config.vm.synced_folder ".", "/vagrant", type: "smb", smb_username: ENV["USER"], smb_password: ENV["VAGRANT_SMB_PASSWORD"]
end

config.vm.provider "virtualbox" do |vb|
vb.linked_clone = true
vb.memory = 4096
vb.cpus = 2
vb.customize ["modifyvm", :id, "--vram", 64]
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
end

config.vm.provision "shell", inline: "$env:chocolateyVersion='0.10.11'; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex", name: "Install Chocolatey"
config.vm.provision "shell", path: "Vagrantfile-locale.ps1"
config.vm.provision "shell", path: "Vagrantfile-provision.ps1"
Expand Down

0 comments on commit d6f9c02

Please sign in to comment.