forked from ruzickap/packer-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile-linux.template
27 lines (25 loc) · 1.17 KB
/
Vagrantfile-linux.template
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
Vagrant.configure("2") do |config|
config.vm.provider :libvirt do |libvirt, override|
libvirt.driver = "kvm"
libvirt.disk_bus = "virtio"
libvirt.nic_model_type = "virtio"
libvirt.video_type = "qxl"
libvirt.sound_type = "ich6"
libvirt.graphics_type = "spice"
libvirt.channel :type => 'unix', :target_name => 'org.qemu.guest_agent.0', :target_type => 'virtio'
libvirt.channel :type => 'spicevmc', :target_name => 'com.redhat.spice.0', :target_type => 'virtio'
libvirt.random :model => 'random'
libvirt.memory = 2048
end
config.vm.provider :virtualbox do |virtualbox, override|
virtualbox.gui = true
virtualbox.customize ["modifyvm", :id, "--cpus", 2]
virtualbox.customize ["modifyvm", :id, "--audiocontroller", "hda"]
virtualbox.customize ["modifyvm", :id, "--memory", 2048]
virtualbox.customize ["modifyvm", :id, "--accelerate2dvideo", "on"]
virtualbox.customize ["modifyvm", :id, "--vram", 128]
virtualbox.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
end
# Disable NFS sharing (==> default: Mounting NFS shared folders...)
config.vm.synced_folder ".", "/vagrant", type: "nfs", disabled: true
end