Skip to content

Commit ea31967

Browse files
authoredJun 6, 2022
Initial linux support
1 parent 40581e8 commit ea31967

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed
 

‎vm/_template/Vagrantfile

+11-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ Vagrant.configure("2") do |config|
99
### !!! CHANGE ME START !!!
1010
# Hostname inside of VM
1111
config.vm.hostname = "devzbox"
12+
13+
# Libvirt (qemu-kvm) for Linux
14+
config.vm.provider :libvirt do |lv, config|
15+
lv.memory = 8*1024
16+
lv.cpus = 8
17+
lv.cpu_mode = 'host-passthrough'
18+
lv.nested = true
19+
lv.keymap = 'pt'
20+
end
1221

1322
# Hyper-V available on Windows Pro or higher
1423
config.vm.provider "hyperv" do |h|
@@ -33,7 +42,8 @@ Vagrant.configure("2") do |config|
3342
#}
3443

3544
# This on Hyper-V works only on Intel CPUs so far in 2020
36-
# Needed if you want VM in VM setup
45+
# Needed if you want VM in VM setup (nested virtualization)
46+
# https://www.reddit.com/r/qemu_kvm/comments/jd1mug/amd_nested_virtualization_kvm_windows_10_guest/
3747
#h.enable_virtualization_extensions = true
3848
end
3949

0 commit comments

Comments
 (0)