Virtual Machine Manager cannot create new virtual machines

No description
Solution:
open up the "add a connection" thing
Jump to solution
102 Replies
Raevenant
RaevenantOP2mo ago
@tulip whenever you get some time, the virt-manager flatpak doesn't appear to be quite ootb
tulip🌷
tulip🌷2mo ago
hmm?
Raevenant
RaevenantOP2mo ago
Could not start virtual network 'default': cannot create directory /var/lib/libvirt/dnsmasq: Permission denied

Traceback (most recent call last):
File "/app/share/virt-manager/virtManager/device/netlist.py", line 208, in _check_network_is_running
netobj.start()
File "/app/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/share/virt-manager/virtManager/object/network.py", line 69, in start
self._backend.create()
File "/app/lib/python3.12/site-packages/libvirt.py", line 3569, in create
raise libvirtError('virNetworkCreate() failed')
libvirt.libvirtError: cannot create directory /var/lib/libvirt/dnsmasq: Permission denied
Could not start virtual network 'default': cannot create directory /var/lib/libvirt/dnsmasq: Permission denied

Traceback (most recent call last):
File "/app/share/virt-manager/virtManager/device/netlist.py", line 208, in _check_network_is_running
netobj.start()
File "/app/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/share/virt-manager/virtManager/object/network.py", line 69, in start
self._backend.create()
File "/app/lib/python3.12/site-packages/libvirt.py", line 3569, in create
raise libvirtError('virNetworkCreate() failed')
libvirt.libvirtError: cannot create directory /var/lib/libvirt/dnsmasq: Permission denied
tulip🌷
tulip🌷2mo ago
you need to use the user session
Raevenant
RaevenantOP2mo ago
huh? I don't understand
tulip🌷
tulip🌷2mo ago
you know when you connect to libvirt? on the menu there theres a QEMU/KVM one and theres a QEMU/KVM user session
Raevenant
RaevenantOP2mo ago
this?
Raevenant
RaevenantOP2mo ago
No description
tulip🌷
tulip🌷2mo ago
yeah theres another one
Raevenant
RaevenantOP2mo ago
No description
Solution
tulip🌷
tulip🌷2mo ago
open up the "add a connection" thing
tulip🌷
tulip🌷2mo ago
File -> add chungus
Raevenant
RaevenantOP2mo ago
oooooooh, is this the "privilaged" network option you were talking about?
tulip🌷
tulip🌷2mo ago
yeeeah the other one should work just fine check it out!
Raevenant
RaevenantOP2mo ago
heyoooooo, that worked!
Raevenant
RaevenantOP2mo ago
Thanks a ton Tulip 😄 amazingly helpful as always
blake
blake2mo ago
I wanted to jump on here if that's ok. Having the exact same issue as @Raevenant . On the menu I can only see a QEMU/KVM option. I can add a user session if i go file > add conneciton > hypervisor > QEMU/KVM user session, hwoever if i try to start a VM under that user session it says "error: no hypervisor options were found for this connection"
blake
blake2mo ago
No description
tulip🌷
tulip🌷2mo ago
try adding the extension here:
tulip🌷
tulip🌷2mo ago
No description
tulip🌷
tulip🌷2mo ago
if you wanna do it on the command line it should be flatpak install -y org.virt_manager.virt_manager.Extension.Qemu
blake
blake2mo ago
god im such an idiot haha i dont see where i would find that page is that within VMM?
tulip🌷
tulip🌷2mo ago
yup!! nonononoon tahts on your terminal just search up terminal on your desktop
blake
blake2mo ago
oh no i see the terminal command you listed earlier i was askingf if this was in VMM this graphical interface
tulip🌷
tulip🌷2mo ago
yeah! virtual machine manager
blake
blake2mo ago
No description
blake
blake2mo ago
like where tho hahaah
tulip🌷
tulip🌷2mo ago
wait ooooooh open up your terminal type out that thing then creating vms should just work suddenly on that Qemu/KVM User Session
blake
blake2mo ago
and to beclear this flatpck is not available on the discover store right im not seeing it when i search
tulip🌷
tulip🌷2mo ago
ive never checked it out? probably not? i know it shows up on the gnome software store but i dont know if discover does it
blake
blake2mo ago
from my understanding, VMM was supposed to work OOB in bazzite, cant remember hwere i read that - do you know why this extension is necessary? is it a specific hardware related issue?
tulip🌷
tulip🌷2mo ago
nope, that thing is because the virtual machine manager flatpak is meant to be a pure client so that you can connect to other computers via libvirt + ssh the extension adds the actual virtualization software behind it: QEMU (and some other utilities) thats why it doesnt work right now see missing hypervisor there? its missing QEMU
blake
blake2mo ago
ok i think i understand somewhat if i remove the VMM flatpack, will that also remove the extension?
tulip🌷
tulip🌷2mo ago
yup i mean you can always install it again right
blake
blake2mo ago
right ok im just tgrying to do everything so i fully understnad whats going on i think i have a good idea now i see this was just your browser of the flathub.org site for VMM'
tulip🌷
tulip🌷2mo ago
have you seen what GNOME is? im using the GNOME desktop thats why my thing looks like that
blake
blake2mo ago
well actually its kind of different, it looks like you can actually install and uninstall your addon from that interface which is different from what im seeing in the browser version
tulip🌷
tulip🌷2mo ago
yup im not using the browser there
blake
blake2mo ago
likle the DE?
tulip🌷
tulip🌷2mo ago
yup!
tulip🌷
tulip🌷2mo ago
that screenshot is from this
No description
blake
blake2mo ago
oh ok i see ahh thats os helpful!
blake
blake2mo ago
because now i see the addons section here
No description
tulip🌷
tulip🌷2mo ago
OH! addons!!! click there
blake
blake2mo ago
which has QEMU
No description
blake
blake2mo ago
ahhhh
tulip🌷
tulip🌷2mo ago
hell yeah!!! there you go download it close virtual machine manager and open it again BAM! it will work then @blake whenever you try making a vm please ping me i need to give you a big tip
blake
blake2mo ago
working on it now!
tulip🌷
tulip🌷2mo ago
thats so cool isnt it
blake
blake2mo ago
QEMU is installed, but im seemingly running intop the same issues as above
tulip🌷
tulip🌷2mo ago
like being able to run an entire system inside if ur system
blake
blake2mo ago
tryihng ot figure out why
tulip🌷
tulip🌷2mo ago
close the application and open it again just to make sure
blake
blake2mo ago
yeah i did that im gonna delete all the connections and remake htem
tulip🌷
tulip🌷2mo ago
make sure to just add the user session
blake
blake2mo ago
still getting this
No description
blake
blake2mo ago
i closed and reopened VMM multiple times
tulip🌷
tulip🌷2mo ago
huh sometimes restarting closes the flatpak completely that might be it ive ran into issues like that when i was testing the extensions too
blake
blake2mo ago
like restarting PC?
tulip🌷
tulip🌷2mo ago
yup
blake
blake2mo ago
ok ill try that brb
tulip🌷
tulip🌷2mo ago
theres some other way to do it on the terminal but restarting is easier
blake
blake2mo ago
omg that worked!!
No description
tulip🌷
tulip🌷2mo ago
there you go
blake
blake2mo ago
thanks so much!! what was your big tip btw
tulip🌷
tulip🌷2mo ago
you seem to be trying to virtualize windows so i dont think the tip applies
blake
blake2mo ago
windows + others definitely curious to hear tips for others
tulip🌷
tulip🌷2mo ago
if you virtualize linux you can get really fast graphics performance if you do some stuff lemme get some screenshots
tulip🌷
tulip🌷2mo ago
No description
tulip🌷
tulip🌷2mo ago
No description
tulip🌷
tulip🌷2mo ago
you need both of these to look like this and it will run linux REALLY well
blake
blake2mo ago
is that for enablign hardware accelearation? i remember refeading somewhere that it is not on by deefault
tulip🌷
tulip🌷2mo ago
@blake
tulip🌷
tulip🌷2mo ago
oh my cursor didnt get recorded well still it doesnt feel like im using a virtual machine yup you cant do that on windows tho
blake
blake2mo ago
oh wow that looks great i was thinking of making my windows VM a parsec host and connecting to it from there
tulip🌷
tulip🌷2mo ago
i dont think you can do these fancy things on a virtual machine right now :(
blake
blake2mo ago
oh darn
tulip🌷
tulip🌷2mo ago
only if you do GPU passthrough but that requires you to... have two GPUs on ur system
blake
blake2mo ago
not including the igpu right
tulip🌷
tulip🌷2mo ago
which is quite difficult to see someone do LOL igpu + some other GPU
blake
blake2mo ago
oh well i mean i have a dedicated GPU
tulip🌷
tulip🌷2mo ago
i think it works if you have a dedicated one its a really huge rabbit hole tho its a pain in the ass to do
blake
blake2mo ago
yeah if i had this much difficulty just getting a VM going no chance id be able to do aynthing complicated rn lol
tulip🌷
tulip🌷2mo ago
dont worry youll get better
blake
blake2mo ago
so for running stuff like adobe lightroom, dual boot is pretty much my most realistic option right i was hoping to run it in VM, but VM may be too slow
tulip🌷
tulip🌷2mo ago
i recommend you to virtualize tons of linux distributions so that you can know how all this linux stuff works i think so
blake
blake2mo ago
it would be very convenient to control my watercooling through the VM Though if thats possible aquasuite is windows only
tulip🌷
tulip🌷2mo ago
how does it work?
blake
blake2mo ago
ive heard some people are able to control it via VM i think it does take some amount of config tho
tulip🌷
tulip🌷2mo ago
which watercooler do you have? you might be able to configure it through coolercontrol
blake
blake2mo ago
so i use an octo controller with a heatkiller pump, res, and water blocks id be controlling the octo controller via aquasuite, since thats connected ot my fans and the pump
tulip🌷
tulip🌷2mo ago
man theres linux support for that i think
tulip🌷
tulip🌷2mo ago
GitHub
liquidctl/docs/aquacomputer-octo-guide.md at main · liquidctl/liqui...
Cross-platform CLI and Python drivers for AIO liquid coolers and other devices - liquidctl/liquidctl
tulip🌷
tulip🌷2mo ago
dont follow anything here tho just open up your terminal and type ujust install-coolercontrol i think thats the name then you should get a cool app to control your thing
blake
blake2mo ago
yeah all i really care about is monitoring my fluid temps, GPU and CPU temps and adjusting fan curves accordingly
tulip🌷
tulip🌷2mo ago
it probably can do that not super sure since ive never tried it out but people seem to like it a lot
blake
blake2mo ago
will look into it thanks! and thanks again for all your help!
tulip🌷
tulip🌷2mo ago
just ping me again if you run into some trouble
drumandbase-2
drumandbase-22mo ago
This will by default install at the system-level. Should not this and the virt-manager Flatpak be installed with --user? Edit: See also my related thread in #🐧linux-general. I wish Flatpak installed apps at the user-level by default. (Like how I've long-wished systemctl would by default talk to the user service manager.)
Techrosis
Techrosis2mo ago
been following along this virtual machine stuff....i have it working....question though....is there a way with the user level restrictions to do bridged networking? I need the windows vm to be on the same network as the host
blake
blake2mo ago
Hey @tulip🌷 , I'm trying to pass through a mouse and running into permission issues. A google search lists possible fedora solutions that involve rpm-ostree which I know I'm supposed to avoid with bazzite. Any ideas for how to get around this? Thanks!
No description
blake
blake2mo ago
meant to add that I've enabled input devices and virtualization permissions in flatseal for VMM ok I got it going! I ran ujust setup virtualziation and added myself to the libvirt group and enabled usb hot plugging

Did you find this page helpful?