How to run linux VM on MacOS with Vagrant and QEMU?

Can anyone advise me how to run a headless linux (x86_64) virtual machine on a MacOS Monterey (Intel) using QEMU with HVF? So far I have installed the libvirt and qemu with homebrew, also vagrant-libvirt plugin. I did not configure anything else and I am confused.

$ vagrant init centos/7
$ vagrant up
Bringing machine 'centos' up with 'libvirt' provider...
Error while connecting to Libvirt: Error making a connection to libvirt URI qemu:///system:
Call to virConnectOpen failed: Failed to connect socket to '/usr/local/var/run/libvirt/virtqemud-sock': No such file or directory

Thanks for any help.

1 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like