-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
53 lines (47 loc) · 1.52 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Vagrant.configure(2) do |config|
config.vm.box = "generic/debian10"
config.vm.hostname = "vagrant-xen"
config.vm.define "Xen"
# Build Xen from source
xen_src = true
# Version of Xen repo to checkout (tag, branch, etc...)
xen_src_version = "stable-4.14"
xen_force_build = false
xen_patch_path = ""
enabled_vms = {
'winxp': true,
'win7': false,
'ubuntu': false,
}
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider :libvirt do |libvirt|
libvirt.default_prefix = "Vagrant"
libvirt.cpus = 2
libvirt.cpu_mode = "host-passthrough"
libvirt.cpu_fallback = "forbid"
libvirt.memory = 3072
libvirt.nic_model_type = "virtio"
libvirt.driver = "kvm"
libvirt.nested = true
end
config.vm.provider :hyperv do |hyperv|
hyperv.vmname = "Vagrant"
hyperv.cpus = 2
hyperv.maxmemory = 3072
hyperv.enable_virtualization_extensions = true
hyperv.linked_clone = true
hyperv.vlan_id = 3
end
config.vm.provision "ansible" do |ansible|
ansible.compatibility_mode = "2.0"
ansible.playbook = "./ansible/provision.yml"
ansible.extra_vars = {
'xen_src': xen_src,
'xen_src_version': xen_src_version,
'xen_force_build': xen_force_build,
'xen_patch_path': xen_patch_path,
'enabled_vms': enabled_vms,
'ansible_python_interpreter': '/usr/bin/python3',
}
end
end