ubuntu 18.04 boxes无法创建虚拟机

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
ywmy210
帖子: 257
注册时间: 2010-10-14 12:54

ubuntu 18.04 boxes无法创建虚拟机

#1

帖子 ywmy210 » 2018-05-24 23:22

如题,gnome-boxes无法创建虚拟机,virtualbox没问题。终端启动boxes,创建虚拟机的时候,提示
Unable to start domain: unsupported configuration: CPU mode 'custom' for x86_64 kvm domain on x86_64 host is not supported by hypervisor
这个是什么意思?CPU mode ?
各位大大,有没有了解的?非常感谢!
头像
九天星
帖子: 1440
注册时间: 2007-07-14 20:45

Re: ubuntu 18.04 boxes无法创建虚拟机

#2

帖子 九天星 » 2018-05-25 8:35

介绍一下你的电脑的硬件环境,CPU架构


分析:要么是你的主机BIOS中的CPU虚拟化没开。要么使用以下配置。
在你的BOXES虚拟机中使用以下配置。
[x] copy host cpu configuration
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 18.04 boxes无法创建虚拟机

#3

帖子 poloshiao » 2018-05-25 9:02

把下面指令 複製 貼進終端機 執行
1. gnome-boxes --checks
2. kvm-ok
把指令及結果全部直接 選取/複製/貼上來
不要摘錄 以免遺漏重要訊息
不要擷圖 方便回文直接引用你貼上來的資料 方便你閱讀
头像
ywmy210
帖子: 257
注册时间: 2010-10-14 12:54

Re: ubuntu 18.04 boxes无法创建虚拟机

#4

帖子 ywmy210 » 2018-05-31 23:59

1、gnome-boxes --checks
(gnome-boxes:4581): Boxes-WARNING **: 23:50:53.775: util-app.vala:270: Failed to execute child process ?virsh? (No such file or directory)

(gnome-boxes:4581): Boxes-WARNING **: 23:50:53.779: util-app.vala:250: 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 <https://bugzilla.gnome.org/enter_bug.cg ... nome-boxes>.
Boxes home page: <https://wiki.gnome.org/Apps/Boxes>.

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

BIOS中虚拟化是开的。
处理器:Intel® Core™ i5-6200U CPU @ 2.30GHz × 4
显卡:Intel® HD Graphics 520 (Skylake GT2)
gonme:3.28.1 wayland
内存:8GB

无法创建子进程?
libvtr-kvm-guest 不可用?
谢谢各位。
:em01
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 18.04 boxes无法创建虚拟机

#5

帖子 poloshiao » 2018-06-01 9:42

1. https://en.wikipedia.org/wiki/GNOME_Boxes
Boxes uses the QEMU, KVM, and libvirt virtualisation technologies.
1-1. 換句話說 如果你的系統已經安裝/支援 QEMU, KVM, and libvirt 應該是能夠跑 GNOME Boxes
Failed to execute child process ?virsh? (No such file or directory)
Failed to execute child process ?restorecon? (No such file or directory)
1-2. https://help.ubuntu.com/lts/serverguide ... html.en-GB
libvirt
Make sure “virsh -c qemu:///session pool-dumpxml gnome-boxes” is working.
1-3. https://help.ubuntu.com/lts/serverguide/qemu.html.en-GB
Qemu

2. 如果確信已經支援 QEMU, KVM, and libvirt 再參閱這一篇
https://www.lifewire.com/guide-to-gnome-boxes-2202073
A Beginner's Guide to GNOME Boxes
回复