Skip to content

Commit d6f9c02

Browse files
committed
add support for the libvirt vagrant provider
1 parent 006945b commit d6f9c02

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Vagrantfile

+12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
Vagrant.configure(2) do |config|
22
config.vm.box = "windows-2016-amd64" # see https://github.com/rgl/windows-2016-vagrant
3+
4+
config.vm.provider "libvirt" do |lv, config|
5+
lv.memory = 4096
6+
lv.cpus = 2
7+
lv.cpu_mode = "host-passthrough"
8+
# lv.nested = true
9+
lv.keymap = "pt"
10+
config.vm.synced_folder ".", "/vagrant", type: "smb", smb_username: ENV["USER"], smb_password: ENV["VAGRANT_SMB_PASSWORD"]
11+
end
12+
313
config.vm.provider "virtualbox" do |vb|
414
vb.linked_clone = true
515
vb.memory = 4096
16+
vb.cpus = 2
617
vb.customize ["modifyvm", :id, "--vram", 64]
718
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
819
vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
920
end
21+
1022
config.vm.provision "shell", inline: "$env:chocolateyVersion='0.10.11'; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex", name: "Install Chocolatey"
1123
config.vm.provision "shell", path: "Vagrantfile-locale.ps1"
1224
config.vm.provision "shell", path: "Vagrantfile-provision.ps1"

0 commit comments

Comments
 (0)