But now check kvm from the command virsh capabilities from flatpak app shell:
flatpak run --command=sh --devel --filesystem=$(pwd) org.gnome.Boxes
[📦 org.gnome.Boxes app]$ virsh --version
9.0.0
[📦 org.gnome.Boxes ~]$ virsh capabilities
error: failed to connect to the hypervisor
error: Failed to connect socket to '/app/var/run/libvirt/virtqemud-sock': No such file or directory
It seems that the Gnome Boxes app starts a qemu console socket which virsh connects to in order to get the capabilities but this fails because probably the qemu socket has failed for some reason.
Since it is a flatpak application and not a package as a service, I don't know how the qemu socket service is running. I have seen in the source code that many things are executed from the shell but there are no logs of it in any file or output from the same terminal, so I don't know how to reproduce the execution of the command that creates the socket to determine why it is not executed.
My version of the flatpak package is 46:
$ flatpak list
...
Boxes org.gnome.Boxes 46.0 stable system
I solve this problem removing the flatpak package and installinux the apt package and libvirt manualy. For some reason the apt version doesn't work either, but knowing that the problem is the execution of libvirt I have installed and configured it manually and it has worked very well:
When reinstall Gnome Boxes from Flatpak can not install any vm, the app says "No KVM" but have KVM in host machine:
I try find the problem:
In
./src/assistant/assistant.vala
:Find the checker:
In
./src/util-app.vala
:Check kvm from the command
virsh capabilities
from host os:But now check kvm from the command
virsh capabilities
from flatpak app shell:It seems that the Gnome Boxes app starts a qemu console socket which virsh connects to in order to get the capabilities but this fails because probably the qemu socket has failed for some reason.
Since it is a flatpak application and not a package as a service, I don't know how the qemu socket service is running. I have seen in the source code that many things are executed from the shell but there are no logs of it in any file or output from the same terminal, so I don't know how to reproduce the execution of the command that creates the socket to determine why it is not executed.
My version of the flatpak package is 46:
I solve this problem removing the flatpak package and installinux the apt package and libvirt manualy. For some reason the apt version doesn't work either, but knowing that the problem is the execution of libvirt I have installed and configured it manually and it has worked very well:
And that's it!.
However, something is wrong with the embedded qemu and libvirt binaries of this application.