Thank you, it works perfectly ! On Mon, Jun 22, 2020 at 4:08 PM 'Jeff Bonhag' via Vagrant < vagrant-up@googlegroups.com> wrote:
> Hi there, > > You can run `vagrant up --provider virtualbox` to tell Vagrant to use > VirtualBox for the current environment. You can also set the environment > variable `VAGRANT_DEFAULT_PROVIDER=virtualbox` if you want Vagrabt to use > VirtualBox for all your VMs. > > Hope this helps! > > Cheers, > Jeff > > On Sun, Jun 21, 2020 at 4:46 AM Sleipnir <jacky.francois.m...@gmail.com> > wrote: > >> 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. >> >> -- >> This mailing list is governed under the HashiCorp Community Guidelines - >> https://www.hashicorp.com/community-guidelines.html. Behavior in >> violation of those guidelines may result in your removal from this mailing >> list. >> >> GitHub Issues: https://github.com/hashicorp/vagrant/issues >> Discuss: https://discuss.hashicorp.com/c/vagrant/24 >> --- >> You received this message because you are subscribed to the Google Groups >> "Vagrant" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to vagrant-up+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/vagrant-up/67740b7d-d8ed-41e8-a341-23d348831f7eo%40googlegroups.com >> <https://groups.google.com/d/msgid/vagrant-up/67740b7d-d8ed-41e8-a341-23d348831f7eo%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/hashicorp/vagrant/issues > Discuss: https://discuss.hashicorp.com/c/vagrant/24 > --- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vagrant-up+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vagrant-up/CAAf6GadtHc71Xj0QZx8VoY_w7YhXxcJG70L7eAAC88kZXqERDQ%40mail.gmail.com > <https://groups.google.com/d/msgid/vagrant-up/CAAf6GadtHc71Xj0QZx8VoY_w7YhXxcJG70L7eAAC88kZXqERDQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/hashicorp/vagrant/issues Discuss: https://discuss.hashicorp.com/c/vagrant/24 --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAJX93%2BYNHGsESATQWZXYG3B_%2BPtcaO%3DuHrF59HCX72YHWEddKA%40mail.gmail.com.