-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile.libvirt
43 lines (33 loc) · 1.36 KB
/
Vagrantfile.libvirt
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.trigger.before :provision do |trigger|
trigger.name = "Clean up"
trigger.info = "Deleting previous images and boxes."
trigger.run = {path: "scripts/reset-images.sh"}
end
config.vm.box = "file://output/boxes/fedora32_libvirt.box"
#shitty workaround for now
# config.ssh.insert_key = false
# config.vm.box_check_update = false
#config.vm.network "forwarded_port", guest: 22, host: 2222, host_ip: "127.0.0.1", id: 'ssh'
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine and only allow access
# via 127.0.0.1 to disable public access
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"
config.vm.synced_folder '.', '/vagrant', disabled: true
config.vm.provider :libvirt do |libvirt|
libvirt.driver = "kvm"
libvirt.cpus = 4
# libvirt.cputopology :sockets => '2', :cores => '2', :threads => '2'
libvirt.memory = 2048
libvirt.video_type = "qxl"
libvirt.graphics_type = "spice"
libvirt.input :type => "keyboard", :bus => "usb"
libvirt.input :type => "mouse", :bus => "usb"
libvirt.input :type => "tablet", :bus => "usb"
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "playbooks/vagrant-up.yml"
end
end