Virtual Machine Manager cannot create new virtual machines

No description
Solution:
open up the "add a connection" thing
Jump to solution
102 Replies
Raevenant
RaevenantOP3w ago
@tulip whenever you get some time, the virt-manager flatpak doesn't appear to be quite ootb
tulip🌷
tulip🌷3w ago
hmm?
Raevenant
RaevenantOP3w 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🌷3w ago
you need to use the user session
Raevenant
RaevenantOP3w ago
huh? I don't understand
tulip🌷
tulip🌷3w 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
RaevenantOP3w ago
this?
Raevenant
RaevenantOP3w ago
No description
tulip🌷
tulip🌷3w ago
yeah theres another one
Raevenant
RaevenantOP3w ago
No description
Solution
tulip🌷
tulip🌷3w ago
open up the "add a connection" thing
tulip🌷
tulip🌷3w ago
File -> add chungus
Raevenant
RaevenantOP3w ago
oooooooh, is this the "privilaged" network option you were talking about?
tulip🌷
tulip🌷3w ago
yeeeah the other one should work just fine check it out!
Raevenant
RaevenantOP3w ago
heyoooooo, that worked!
Raevenant
RaevenantOP3w ago
Thanks a ton Tulip 😄 amazingly helpful as always
blake
blake3w 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
blake3w ago
No description
tulip🌷
tulip🌷3w ago
try adding the extension here:
tulip🌷
tulip🌷3w ago
No description
tulip🌷
tulip🌷3w ago
if you wanna do it on the command line it should be flatpak install -y org.virt_manager.virt_manager.Extension.Qemu
blake
blake3w ago
god im such an idiot haha i dont see where i would find that page is that within VMM?
tulip🌷
tulip🌷3w ago
yup!! nonononoon tahts on your terminal just search up terminal on your desktop
blake
blake3w ago
oh no i see the terminal command you listed earlier i was askingf if this was in VMM this graphical interface
tulip🌷
tulip🌷3w ago
yeah! virtual machine manager
blake
blake3w ago
No description
blake
blake3w ago
like where tho hahaah
tulip🌷
tulip🌷3w 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
blake3w ago
and to beclear this flatpck is not available on the discover store right im not seeing it when i search
tulip🌷
tulip🌷3w 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
blake3w 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🌷3w 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
blake3w ago
ok i think i understand somewhat if i remove the VMM flatpack, will that also remove the extension?
tulip🌷
tulip🌷3w ago
yup i mean you can always install it again right
blake
blake3w 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🌷3w ago
have you seen what GNOME is? im using the GNOME desktop thats why my thing looks like that
blake
blake3w 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🌷3w ago
yup im not using the browser there
blake
blake3w ago
likle the DE?
tulip🌷
tulip🌷3w ago
yup!
tulip🌷
tulip🌷3w ago
that screenshot is from this
No description
blake
blake3w ago
oh ok i see ahh thats os helpful!
blake
blake3w ago
because now i see the addons section here
No description
tulip🌷
tulip🌷3w ago
OH! addons!!! click there
blake
blake3w ago
which has QEMU
No description
blake
blake3w ago
ahhhh
tulip🌷
tulip🌷3w 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
blake3w ago
working on it now!
tulip🌷
tulip🌷3w ago
thats so cool isnt it
blake
blake3w ago
QEMU is installed, but im seemingly running intop the same issues as above
tulip🌷
tulip🌷3w ago
like being able to run an entire system inside if ur system
blake
blake3w ago
tryihng ot figure out why
tulip🌷
tulip🌷3w ago
close the application and open it again just to make sure
blake
blake3w ago
yeah i did that im gonna delete all the connections and remake htem
tulip🌷
tulip🌷3w ago
make sure to just add the user session
blake
blake3w ago
still getting this
No description
blake
blake3w ago
i closed and reopened VMM multiple times
tulip🌷
tulip🌷3w 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
blake3w ago
like restarting PC?
tulip🌷
tulip🌷3w ago
yup
blake
blake3w ago
ok ill try that brb
tulip🌷
tulip🌷3w ago
theres some other way to do it on the terminal but restarting is easier
blake
blake3w ago
omg that worked!!
No description
tulip🌷
tulip🌷3w ago
there you go
blake
blake3w ago
thanks so much!! what was your big tip btw
tulip🌷
tulip🌷3w ago
you seem to be trying to virtualize windows so i dont think the tip applies
blake
blake3w ago
windows + others definitely curious to hear tips for others
tulip🌷
tulip🌷3w ago
if you virtualize linux you can get really fast graphics performance if you do some stuff lemme get some screenshots
tulip🌷
tulip🌷3w ago
No description
tulip🌷
tulip🌷3w ago
No description
tulip🌷
tulip🌷3w ago
you need both of these to look like this and it will run linux REALLY well
blake
blake3w ago
is that for enablign hardware accelearation? i remember refeading somewhere that it is not on by deefault
tulip🌷
tulip🌷3w ago
@blake
tulip🌷
tulip🌷3w 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
blake3w 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🌷3w ago
i dont think you can do these fancy things on a virtual machine right now :(
blake
blake3w ago
oh darn
tulip🌷
tulip🌷3w ago
only if you do GPU passthrough but that requires you to... have two GPUs on ur system
blake
blake3w ago
not including the igpu right
tulip🌷
tulip🌷3w ago
which is quite difficult to see someone do LOL igpu + some other GPU
blake
blake3w ago
oh well i mean i have a dedicated GPU
tulip🌷
tulip🌷3w 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
blake3w 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🌷3w ago
dont worry youll get better
blake
blake3w 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🌷3w 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
blake3w ago
it would be very convenient to control my watercooling through the VM Though if thats possible aquasuite is windows only
tulip🌷
tulip🌷3w ago
how does it work?
blake
blake3w ago
ive heard some people are able to control it via VM i think it does take some amount of config tho
tulip🌷
tulip🌷3w ago
which watercooler do you have? you might be able to configure it through coolercontrol
blake
blake3w 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🌷3w ago
man theres linux support for that i think
tulip🌷
tulip🌷3w 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🌷3w 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
blake3w ago
yeah all i really care about is monitoring my fluid temps, GPU and CPU temps and adjusting fan curves accordingly
tulip🌷
tulip🌷3w ago
it probably can do that not super sure since ive never tried it out but people seem to like it a lot
blake
blake3w ago
will look into it thanks! and thanks again for all your help!
tulip🌷
tulip🌷3w ago
just ping me again if you run into some trouble
drumandbase-2
drumandbase-23w 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
Techrosis2w 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
blake2w 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
blake2w 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?