Skip to content

Instantly share code, notes, and snippets.

@dungvtdev
Last active December 8, 2016 13:41
Show Gist options
  • Save dungvtdev/808035a1ed2a06854abb634d198f7f26 to your computer and use it in GitHub Desktop.
Save dungvtdev/808035a1ed2a06854abb634d198f7f26 to your computer and use it in GitHub Desktop.
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt'
Vagrant.configure("2") do |config|
config.vm.provider :libvirt do |libvirt|
libvirt.host = 'asterisk_sip'
libvirt.uri = 'qemu+unix:///system'
libvirt.driver = 'kvm'
# libvirt_pool_name = 'SPool1'
end
config.vm.define :asterisk_vm do |machine|
machine.vm.box = 'ubuntu/trusty64'
machine.vm.network :private_network, :ip => "192.168.122.22"
machine.vm.network :public_network,
:dev => "virbr0",
:mode => "bridge",
:type => "bridge"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment