[root@kvm ~]# virsh create /root/ns1.jesse64.xml error: Failed to create domain from /root/ns1.jesse64.xml error: internal error: process exited while connecting to monitor: qemu-kvm: -machine pc-i440fx-trusty,accel=kvm,usb=off: Unsupported machine type
所以我运行/ usr / libexec / qemu-kvm -machine? 看看
Supported machines are: none empty machine pc RHEL 7.0.0 PC (i440FX + PIIX, 1996) (alias of pc-i440fx-rhel7.0.0) pc-i440fx-rhel7.0.0 RHEL 7.0.0 PC (i440FX + PIIX, 1996) (default) rhel6.6.0 RHEL 6.6.0 PC rhel6.5.0 RHEL 6.5.0 PC rhel6.4.0 RHEL 6.4.0 PC rhel6.3.0 RHEL 6.3.0 PC rhel6.2.0 RHEL 6.2.0 PC rhel6.1.0 RHEL 6.1.0 PC rhel6.0.0 RHEL 6.0.0 PC
那么是否有一些我需要安装的软件包? VM是在Ubuntu KVM主机上创build的。
你看到这个错误,因为Ubuntu把他们自己的定制到它的libvirt和qemu / KVM版本中。 RHEL当然也是这样做的。
但总有一种机器可以工作,即pc 。 在定义虚拟机时,这总是与虚拟机pipe理程序上可用的最新i440fx机器types混淆。
在XML的某个地方,你会发现像这样的东西:
<type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
只需将其更改为:
<type arch='x86_64' machine='pc'>hvm</type>
(请注意,如果您使用新的pc-q35-xxx机器types,则通用机器types为q35 。)