错误主机不支持虚拟化types“hvm”

我在使用libvirt virsh install在KVM上安装vm时遇到问题

 sudo virt-install -n ccnx1 -r 512 --vcpus=1 --os-type=linux --accelerate --nographics -v -l ~/ubuntu-12.04.5-alternate-i386.iso --disk path=/var/lib/libvirt/images/test.img,size=5 -x "console=ttyS0" 

控制台ERROR Host does not support virtualization type 'hvm'的输出ERROR Host does not support virtualization type 'hvm'

在安装qemu 1.2.0之前,(对于使用qemu-img),安装虚拟机运行良好,但是在安装qemu之后,产生了上面的输出

我的kvm版本是QEMU模拟器版本1.0(qemu-kvm-1.0)

virshfunction

 <capabilities> <host> <uuid>00000000-0000-0000-0000-00259091d77a</uuid> <cpu> <arch>x86_64</arch> <model>Westmere</model> <vendor>Intel</vendor> <topology sockets='1' cores='4' threads='1'/> <feature name='rdtscp'/> <feature name='pdpe1gb'/> <feature name='x2apic'/> <feature name='dca'/> <feature name='xtpr'/> <feature name='tm2'/> <feature name='est'/> <feature name='vmx'/> <feature name='ds_cpl'/> <feature name='monitor'/> <feature name='pbe'/> <feature name='tm'/> <feature name='ht'/> <feature name='ss'/> <feature name='acpi'/> <feature name='ds'/> <feature name='vme'/> </cpu> <power_management> <suspend_mem/> <suspend_disk/> <suspend_hybrid/> </power_management> <migration_features> <live/> <uri_transports> <uri_transport>tcp</uri_transport> </uri_transports> </migration_features> <topology> <cells num='1'> <cell id='0'> <cpus num='4'> <cpu id='0'/> <cpu id='1'/> <cpu id='2'/> <cpu id='3'/> </cpus> </cell> </cells> </topology> <secmodel> <model>apparmor</model> <doi>0</doi> </secmodel> </host> </capabilities> 

  1. 检查kvmkvm_intel是否已加载( lsmod |grep kvm
  2. 如果他们没有加载,尝试修改它们
  3. 如果失败,请检查您的BIOS,CPU标志将显示function,但不是实际上是否可用。 您应该启用VT,如果您发现它被禁用,请确保您不仅启用它,而且还运行服务器的完整重新启动周期。