故障报错 virsh-install 提示 ERROR 主机不支持任何虚拟化选项
基本信息如下:
1、OS版本:openEuler release 24.03 (LTS)
libvirtd版本:
Name : libvirt
Version : 9.10.0
Release : 11.oe2403
Architecture: x86_64
2、 qemu版本:
Name : qemu
Epoch : 11
Version : 8.2.0
Release : 21.oe2403
Architecture: x86_64
3、cpu 信息
model name : Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
stepping : 1
microcode : 0xb00002e
cpu MHz : 3000.000
cache size : 20480 KB
physical id : 0
siblings : 16
core id : 7
cpu cores : 8
apicid : 15
initial apicid : 15
fpu : yes
fpu_exception : yes
cpuid level : 20
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l3 cdp_l3 pti intel_ppin ssbd ibrs ibpb stibp tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap intel_pt xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts vnmi flush_l1d
vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs pml
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit mmio_stale_data
bogomips : 4190.39
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
BIOS中也开启了相关VT的选项。
问题现象:
执行virt-install --name wsus01 --video vga --memory 4096 --vcpus 4 --disk size=500 --cdrom /kvm/iso/cn_windows_server_2016_vl_x64_dvd_11636695.iso --network bridge=br0 --graphics vnc,listen=0.0.0.0,port=5900 命令时,提示
ERROR 主机不支持任何虚拟化选项
然后查看libvirtd状态:
systemctl status libvirtd
○ libvirtd.service - libvirt legacy monolithic daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; preset: enabled)
Active: inactive (dead) since Fri 2025-01-10 14:14:37 CST; 13min ago
Duration: 2min 2.013s
TriggeredBy: ○ libvirtd.socket
○ libvirtd-admin.socket
○ libvirtd-ro.socket
Docs: man:libvirtd(8)
https://libvirt.org/
Process: 9662 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=0/SUCCESS)
Main PID: 9662 (code=exited, status=0/SUCCESS)
Tasks: 2 (limit: 32768)
Memory: 68.2M ()
CGroup: /system.slice/libvirtd.service
├─2356 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
└─2357 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper
1月 10 14:12:36 AOPS-1000 libvirtd[9662]: 为 /usr/bin/qemu-system-x86_64 探测功能失败:无法从监控程序中读取: Connection reset by peer
1月 10 14:12:36 AOPS-1000 libvirtd[9662]: 无效参数:无法找到 arch=x86_64 的功能
1月 10 14:12:36 AOPS-1000 libvirtd[9662]: 内部错误:无法找到适合 x86_64 的模拟器
1月 10 14:12:37 AOPS-1000 libvirtd[9662]: 无法从监控程序中读取: Connection reset by peer
1月 10 14:12:37 AOPS-1000 libvirtd[9662]: 为 /usr/bin/qemu-system-x86_64 探测功能失败:无法从监控程序中读取: Connection reset by peer
1月 10 14:12:37 AOPS-1000 libvirtd[9662]: 无法从监控程序中读取: Connection reset by peer
1月 10 14:12:37 AOPS-1000 libvirtd[9662]: 为 /usr/bin/qemu-system-x86_64 探测功能失败:无法从监控程序中读取: Connection reset by peer
1月 10 14:14:37 AOPS-1000 systemd[1]: libvirtd.service: Deactivated successfully.
1月 10 14:14:37 AOPS-1000 systemd[1]: libvirtd.service: Unit process 2356 (dnsmasq) remains running after unit stopped.
1月 10 14:14:37 AOPS-1000 systemd[1]: libvirtd.service: Unit process 2357 (dnsmasq) remains running after unit stopped.
直接使用
qemu-kvm -name “wsus01” -cpu host -smp 4 -m 8072m -drive file=/kvm/wsus01/wsus.qcow2 -cdrom /kvm/iso/cn_windows_server_2016_vl_x64_dvd_11636695.iso -daemonize
可以正常创建虚拟机,安装操作系统。
已经做过的操作:
1、检查BIOS设置,确认开启虚拟化选项
2、更新openssl相关包
3、修改/etc/libvirt/qemu/qemu.conf文件,设置user = root group=root
求大神帮看看什么问题,先行感谢!