如何在 gnome-boxes 上启用 KVM?

如何在 gnome-boxes 上启用 KVM?

我一直在尝试弄清楚为什么 Windows 10 中的 gnome 盒子很慢,并且注意到 gnome-boxes 似乎无法连接到 libvirsh 中的 KVM


(gnome-boxes:9264): Boxes-WARNING **: 17:14:11.078: util-app.vala:330: Failed to execute child process ?restorecon? (No such file or directory)
• The CPU is capable of virtualization: yes
• The KVM module is loaded: yes
• Libvirt KVM guest available: no
• Boxes storage pool available: no
    Could not get “gnome-boxes” storage pool information from libvirt. Make sure “virsh -c qemu:///session pool-dumpxml gnome-boxes” is working.
• The SELinux context is default: no

Report bugs to <http://gitlab.gnome.org/gnome/gnome-boxes/issues>.
Boxes home page: <https://wiki.gnome.org/Apps/Boxes>.

KVM 可用:

kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

libvirt 已启动:

● libvirtd.service - Virtualization daemon
   Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-04-09 17:02:32 BST; 13min ago
     Docs: man:libvirtd(8)
           https://libvirt.org
 Main PID: 5069 (libvirtd)
    Tasks: 19 (limit: 32768)
   Memory: 40.6M
   CGroup: /system.slice/libvirtd.service
           ├─5069 /usr/sbin/libvirtd
           ├─7161 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
           └─7165 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper

Apr 09 17:02:32 computer dnsmasq[7161]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify dumpfile
Apr 09 17:02:32 computer dnsmasq-dhcp[7161]: DHCP, IP range 192.168.122.2 -- 192.168.122.254, lease time 1h
Apr 09 17:02:32 computer dnsmasq-dhcp[7161]: DHCP, sockets bound exclusively to interface virbr0
Apr 09 17:02:32 computer dnsmasq[7161]: reading /etc/resolv.conf
Apr 09 17:02:32 computer dnsmasq[7161]: using nameserver 127.0.0.53#53
Apr 09 17:02:32 computer dnsmasq[7161]: read /etc/hosts - 32 addresses
Apr 09 17:02:32 computer dnsmasq[7161]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Apr 09 17:02:32 computer dnsmasq-dhcp[7161]: read /var/lib/libvirt/dnsmasq/default.hostsfile
Apr 09 17:02:38 computer dnsmasq[7161]: reading /etc/resolv.conf
Apr 09 17:02:38 computer dnsmasq[7161]: using nameserver 127.0.0.53#53

我在KVM组:

groups                                                                                                                                            
stu adm cdrom sudo audio dip plugdev input lpadmin sambashare docker kvm libvirt libvirtd realtime

我不知道下一步该尝试什么?

答案1

我遇到了这个问题。

我认为通过安装就修复了这个问题libvirt-clients

sudo apt install libvirt-clients

相关内容