Regardless if I have a Vagrant file or if one doesn't exist and I create my own with vagrant init
(which works btw) I get an error when trying to do this:
vagrant up
The error is:
1: from /usr/share/rubygems-integration/all/gems/vagrant-libvirt-0.0.43/lib/vagrant-libvirt/driver.rb:40:in `connection'
/usr/share/rubygems-integration/all/gems/vagrant-libvirt-0.0.43/lib/vagrant-libvirt/driver.rb:43:in `rescue in connection': Error while connecting to libvirt:
Error making a connection to libvirt URI qemu:///system?no_verify=1&keyfile=/home/michael/.ssh/id_rsa: (VagrantPlugins::ProviderLibvirt::Errors::FogLibvirtConnectionError)
Call to virConnectOpen failed: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
Error while connecting to libvirt: Error making a connection to libvirt URI qemu:///system?no_verify=1&keyfile=/home/michael/.ssh/id_rsa:
Call to virConnectOpen failed: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
This is on Ubuntu 18.04
Two things are needed:
For 2 (setting up the provider) you can do (for example)
sudo apt-get install virtualbox
Then, for 1 (setting up the box from them)
vagrant up --provider virtualbox
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With