This project is dead, please use vagrant-libvirt instead! A Vagrant 1.4+ plugin that adds a KVM provider to Vagrant, allowing Vagrant to control and provision KVM/QEMU VM.
Vagrant.configure(2) do |config|
config.vm.box = "debian7"
config.ssh.username = "root"
config.ssh.password = "toor"
config.vm.network :private_network, ip: "192.168.123.20"
config.vm.provider :kvm do |kvm, override|
kvm.memory_size = '512m'
kvm.sudo = false
kvm.gui = 1
kvm.cpu_model="x86_64"
kvm.memory_size = "2G"
kvm.core_number = 2
end
end
Base image does not contain sudo, everything works till it tries to mount p9share, which fails as it tries to mount with sudo, without checking if it exists first.
Monkeypatching cap/mount_p9.rb by replacing machine.communicate.sudo by machine.communicate.execute works without any issue.
Hi guys,
Configuring Vagrantfile as follow:
Vagrant.configure(2) do |config| config.vm.box = "debian7" config.ssh.username = "root" config.ssh.password = "toor" config.vm.network :private_network, ip: "192.168.123.20" config.vm.provider :kvm do |kvm, override| kvm.memory_size = '512m' kvm.sudo = false kvm.gui = 1 kvm.cpu_model="x86_64" kvm.memory_size = "2G" kvm.core_number = 2 end end
Base image does not contain sudo, everything works till it tries to mount p9share, which fails as it tries to mount with sudo, without checking if it exists first.
Monkeypatching cap/mount_p9.rb by replacing machine.communicate.sudo by machine.communicate.execute works without any issue.