How to Fix Vagrant: Error while connecting to libvirt
When you setup a box with vagrant and virtualbox and got this error message:
Error while connecting to libvirt: Error making a connection to libvirt URI qemu:///system?no_verify=1&keyfile=/home/username/.ssh/id_rsa:
Call to virConnectOpen failed: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
the reason you can’t run the vagrant box is because your Virtualbox is not recognized by Vagrant Script. You can fix this by run vagrant use virtualbox as the provider.
[sourcecode]vagrant up –provider virtualbox[/sourcecode]
if you lucky, the box will start and booting. but, if you got this error: (more…)