我一直使用 Ubuntu,直到最近改用 Arch (Manjaro)。然而,当再次重新安装 Virt-Manager 时,我想启动旧的虚拟机。配置没有改变,但我遇到了错误:
机器无法再显示,我收到以下错误消息:
Error launching details: Host does not support domain type kvm
with machine 'pc-i440fx-focal' for virtualization type 'hvm' with
architecture 'x86_64'
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/vmwindow.py", line 40, in get_instance
cls._instances[key] = vmmVMWindow(vm)
File "/usr/share/virt-manager/virtManager/vmwindow.py", line 83, in __init__
self._details = vmmDetails(self.vm, self.builder, self.topwin,
File "/usr/share/virt-manager/virtManager/details/details.py", line 389, in __init__
self._init_details()
File "/usr/share/virt-manager/virtManager/details/details.py", line 807, in _init_details
vmmAddHardware.build_video_combo(self.vm, video_dev)
File "/usr/share/virt-manager/virtManager/addhardware.py", line 816, in build_video_combo
default = DeviceVideo.default_model(vm.xmlobj)
File "/usr/share/virt-manager/virtinst/devices/video.py", line 47, in default_model
if (guest.lookup_domcaps().supports_video_virtio() and
File "/usr/share/virt-manager/virtinst/guest.py", line 656, in lookup_domcaps
if not self._domcaps or not _compare(self._domcaps):
File "/usr/share/virt-manager/virtinst/guest.py", line 646, in _compare
if self.os.machine and not _compare_machine(domcaps):
File "/usr/share/virt-manager/virtinst/guest.py", line 633, in _compare_machine
capsinfo = self.lookup_capsinfo()
File "/usr/share/virt-manager/virtinst/guest.py", line 674, in lookup_capsinfo
self._capsinfo = self.conn.caps.guest_lookup(
File "/usr/share/virt-manager/virtinst/capabilities.py", line 319, in guest_lookup
raise ValueError(msg)
ValueError: Host does not support domain type kvm with machine 'pc-i440fx-focal'
for virtualization type 'hvm' with architecture 'x86_64'
我没有对 BIOS 设置或任何内容进行任何更改。因此,虚拟化总体上应该仍然可以正常工作。
有任何想法吗?
答案1
啊,我终于明白了。
当我查看配置时,它包含以下行:
<type arch="x86_64" machine="pc-i440fx-focal">hvm</type>
作为新建机器,其中包含略有不同的行:
<type arch="x86_64" machine="pc-i440fx-7.0">hvm</type>
所以我猜想 Ubuntu 和 Arch 之间的一些机器包是不同的。