Hello,
I am trying to run my first VM with vagrant on Debian 10 but I get this message:
Error while connecting to libvirt: Error making a connection to libvirt URI qemu:///system?no_verify=1&keyfile=/root/.ssh/id_rsa:
Call to virConnectOpen failed: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
I don't understand this message since my Vagrantfile does not refer to libvirt but to virtualbox, since I'm using it and no longer libvirt.
Vagrant.configure("2") do |config|
# master server
config.vm.define "kmaster" do |kmaster|
kmaster.vm.box = "debian/stretch64"
kmaster.vm.hostname = "kmaster"
kmaster.vm.box_url = "debian/stretch64"
kmaster.vm.network :private_network, ip: "192.168.1.10"
kmaster.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 2048]
v.customize ["modifyvm", :id, "--name", "kmaster"]
v.customize ["modifyvm", :id, "--cpus", "2"]
end
end
end
Virtualbox without vagrant works fine on my system.