kvm安装报错“ERROR Host does not support domain type kvm for virtualization type 'hvm' arch

kvm安装centos8报错“ERROR    Host does not support domain type kvm for virtualization type 'hvm' arch 'x86_64'”

[root@centosC18 ~]#virt-install --virt-type kvm --name centos8 --ram 2048 --vcpus 2 --cdrom=/data/isos/CentOS-8.2.2004-x86_64-minimal.iso --disk path=/var/lib/libvirt/images/centos8.qcow2 --network network=default --graphics vnc,listen=0.0.0.0


ERROR Host does not support domain type kvm for virtualization type 'hvm' arch 'x86_64'

 

解决方法:

1.modprobe kvm

2.去掉--virt-type kvm参数即可。

[root@centosC18 ~]#virt-install  --name centos8  --ram 2048  --vcpus 2  --cdrom=/data/isos/CentOS-8.2.2004-x86_64-minimal.iso  --disk path=/var/lib/libvirt/images/centos8.qcow2  --network  network=default  --graphics vnc,listen=0.0.0.0
WARNING  KVM acceleration not available, using 'qemu'
WARNING  No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results.
WARNING  Graphics requested but DISPLAY is not set. Not running virt-viewer.
WARNING  No console to launch for the guest, defaulting to --wait -1

Starting install...
Domain installation still in progress.
Waiting for installation to complete.

  

 

上一篇:kvm的基本命令使用


下一篇:懂了!VMware/KVM/Docker原来是这么回事儿