summaryrefslogtreecommitdiffstats
path: root/builder/Vagrantfile
blob: d760bdb80d35022e42a098da36cad7e705b95e70 (plain)
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
54
55
56
57
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure('2') do |config|

	# Example configuration of new VM..
	#
	#config.vm.define :test_vm do |test_vm|
		# Box name
		#
		#test_vm.vm.box = 'centos-6'

		# Domain Specific Options
		#
		# See README for more info.
		#
		#test_vm.vm.provider :libvirt do |domain|
		#	domain.memory = 2048
		#	domain.cpus = 2
		#end

		# Interfaces for VM
		#
		# Networking features in the form of `config.vm.network` support private
		# networks concept. No public network or port forwarding are supported in
		# current version of provider. See README for more info.
		#
		#test_vm.vm.network :private_network, :ip => '10.20.30.40'
	#end

	# Options for libvirt vagrant provider.
	config.vm.provider :libvirt do |libvirt|

		# A hypervisor name to access. Different drivers can be specified, but
		# this version of provider creates KVM machines only. Some examples of
		# drivers are qemu (KVM/qemu), xen (Xen hypervisor), lxc (Linux Containers),
		# esx (VMware ESX), vmwarews (VMware Workstation) and more. Refer to
		# documentation for available drivers (http://libvirt.org/drivers.html).
		libvirt.driver = 'qemu'

		# The name of the server, where libvirtd is running.
		#libvirt.host = 'localhost'

		# If use ssh tunnel to connect to Libvirt.
		libvirt.connect_via_ssh = false

		# The username and password to access Libvirt. Password is not used when
		# connecting via ssh.
		libvirt.username = 'root'
		#libvirt.password = 'secret'

		# Libvirt storage pool name, where box image and instance snapshots will
		# be stored.
		libvirt.storage_pool_name = 'default'
	end
end