2013-03-27 12:17:35 +01:00
|
|
|
# -*- 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
|
2013-07-10 16:53:41 +02:00
|
|
|
#
|
2013-03-27 12:17:35 +01:00
|
|
|
#test_vm.vm.box = "centos64"
|
|
|
|
|
|
2013-07-10 16:53:41 +02:00
|
|
|
# Domain Specific Options
|
|
|
|
|
#
|
|
|
|
|
# See README for more info.
|
|
|
|
|
#
|
|
|
|
|
#test_vm.vm.provider :libvirt do |domain|
|
|
|
|
|
# domain.memory = 2048
|
|
|
|
|
# domain.cpus = 2
|
|
|
|
|
#end
|
|
|
|
|
|
2013-03-27 12:17:35 +01:00
|
|
|
# Interfaces for VM
|
|
|
|
|
#
|
2013-07-10 16:53:41 +02:00
|
|
|
# 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'
|
2013-03-27 12:17:35 +01:00
|
|
|
#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
|
2014-05-10 22:42:38 -05:00
|
|
|
# drivers are kvm (qemu hardware accelerated), qemu (qemu emulated),
|
|
|
|
|
# xen (Xen hypervisor), lxc (Linux Containers),
|
2013-03-27 12:17:35 +01:00
|
|
|
# esx (VMware ESX), vmwarews (VMware Workstation) and more. Refer to
|
|
|
|
|
# documentation for available drivers (http://libvirt.org/drivers.html).
|
2014-05-10 22:42:38 -05:00
|
|
|
libvirt.driver = "kvm"
|
2013-03-27 12:17:35 +01:00
|
|
|
|
|
|
|
|
# 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"
|
2014-01-11 22:31:53 -05:00
|
|
|
|
|
|
|
|
# Set a prefix for the machines that's different than the project dir name.
|
|
|
|
|
#libvirt.default_prefix = ''
|
2013-03-27 12:17:35 +01:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|