一、创建新的虚拟机,启动后错误如下
swtpm_setup: Not overwriting existing state file. kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11] kvm: Host doesn't support requested features stopping swtpm instance (pid 2585) due to QEMU startup error TASK ERROR: start failed: QEMU exited with code 1
通过以上的错误可以看出,是CPU的问题,所以只需要在虚拟机硬件下找到处理器配置,尝试更改类别即可,比如我的将Haswall改为host就可以了。
二、PVE(Proxmox)提示 kvm: -device ide-hd,bus=ide.0,unit=1,drive=drive-ide1,id=ide1,bootindex=101: Can't create IDE unit 1, bus supports only 1 units TASK ERROR: start failed: QEMU exited with code 1错误的解决方案
PVE(Proxmox)在创建虚拟机启动后提示如下错误
kvm: -device ide-hd,bus=ide.0,unit=1,drive=drive-ide1,id=ide1,bootindex=101: Can't create IDE unit 1, bus supports only 1 units TASK ERROR: start failed: QEMU exited with code 1
问题说明
如果您使用“q35”作为机器类型,则只有 ide0 和 ide2 可用...这是 qemu 的限制
解决方式
转到虚拟机的“硬件”选项下,把硬盘设备中的ide1去掉,重新添加为ide2,或者将ide1修改为ide2即可
三、PVE(Proxmox)提示TASK ERROR: command 'apt-get update' failed: exit code 100错误的解决方案
如下图
解决方式:登录PVE web管理界面-服务器视图-数据中心-pve-更新-存储库,将存储库里面的更新全部禁用,你也可以禁用出错的。
四、错误详见如下与截图
error writing '1' to '/sys/bus/pci/devices/0000:01:00.0/reset': Inappropriate ioctl for device failed to reset PCI device '0000:01:00.0', but trying to continue as not all devices need a reset kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512f [bit 16] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512dq [bit 17] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512cd [bit 28] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512bw [bit 30] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512vl [bit 31] kvm: warning: host doesn't support requested feature: CPUID.07H:ECX.avx512vnni [bit 11] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 5] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 6] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 7] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512f [bit 16] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512dq [bit 17] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512cd [bit 28] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512bw [bit 30] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512vl [bit 31] kvm: warning: host doesn't support requested feature: CPUID.07H:ECX.avx512vnni [bit 11] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 5] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 6] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 7] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512f [bit 16] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512dq [bit 17] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512cd [bit 28] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512bw [bit 30] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512vl [bit 31] kvm: warning: host doesn't support requested feature: CPUID.07H:ECX.avx512vnni [bit 11] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 5] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 6] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 7] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512f [bit 16] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512dq [bit 17] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512cd [bit 28] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512bw [bit 30] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512vl [bit 31] kvm: warning: host doesn't support requested feature: CPUID.07H:ECX.avx512vnni [bit 11] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 5] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 6] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 7] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512f [bit 16] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512dq [bit 17] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512cd [bit 28] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512bw [bit 30] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512vl [bit 31] kvm: warning: host doesn't support requested feature: CPUID.07H:ECX.avx512vnni [bit 11] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 5] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 6] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 7] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512f [bit 16] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512dq [bit 17] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512cd [bit 28] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512bw [bit 30] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512vl [bit 31] kvm: warning: host doesn't support requested feature: CPUID.07H:ECX.avx512vnni [bit 11] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 5] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 6] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 7] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512f [bit 16] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512dq [bit 17] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512cd [bit 28] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512bw [bit 30] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512vl [bit 31] kvm: warning: host doesn't support requested feature: CPUID.07H:ECX.avx512vnni [bit 11] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 5] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 6] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 7] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512f [bit 16] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512dq [bit 17] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512cd [bit 28] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512bw [bit 30] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512vl [bit 31] kvm: warning: host doesn't support requested feature: CPUID.07H:ECX.avx512vnni [bit 11] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 5] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 6] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 7] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512f [bit 16] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512dq [bit 17] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512cd [bit 28] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512bw [bit 30] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512vl [bit 31] kvm: warning: host doesn't support requested feature: CPUID.07H:ECX.avx512vnni [bit 11] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 5] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 6] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 7] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512f [bit 16] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512dq [bit 17] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512cd [bit 28] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512bw [bit 30] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512vl [bit 31] kvm: warning: host doesn't support requested feature: CPUID.07H:ECX.avx512vnni [bit 11] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 5] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 6] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 7] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512f [bit 16] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512dq [bit 17] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512cd [bit 28] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512bw [bit 30] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512vl [bit 31] kvm: warning: host doesn't support requested feature: CPUID.07H:ECX.avx512vnni [bit 11] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 5] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 6] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 7] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.hle [bit 4] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.rtm [bit 11] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512f [bit 16] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512dq [bit 17] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512cd [bit 28] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512bw [bit 30] kvm: warning: host doesn't support requested feature: CPUID.07H:EBX.avx512vl [bit 31] kvm: warning: host doesn't support requested feature: CPUID.07H:ECX.avx512vnni [bit 11] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 5] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 6] kvm: warning: host doesn't support requested feature: CPUID.0DH:EAX [bit 7] TASK ERROR: start failed: QEMU exited with code 1
我的情况属于直通了GPU,开启虚拟机后就有如上图的错误,原因是我的PVE宿主机内存有16GB,直通的虚拟机也分配了16GB导致的,虚拟机的最大内存=PVE宿主机最大内存-2GB即可。
原文链接:https://imacos.top/2023/09/17/89/,转载请注明出处。
评论0