Reputation: 25964
Env: MacOS Arm64
Installed:
sudo port install virt-manager
Trying to create a default network following this
When I do this:
sudo virsh net-define --file default.xml
I get this:
error: failed to connect to the hypervisor
error: Operation not supported: Cannot use direct socket mode if no URI is set
Upvotes: 1
Views: 6738
Reputation: 31
I encountered this message and fixed it by adding uri_default = "qemu:///session"
to /etc/libvirt/libvirt.conf
Of course the solution will be different if you're using a different hypervisor other than qemu.
Upvotes: 3
Reputation: 68
I had the exact same problem while trying to run the FCOS on my Fedora laptop for the very first time.
Solution for Fedora-based system:
sudo dnf install libvirt
I would assume Ubuntu would accept:
sudo apt-get install libvirt
Regards!
Upvotes: 4