You are not logged in.

#1 2022-10-24 04:46:50

DMCoder
Member
Registered: 2020-06-30
Posts: 6

virt-install cannot find virtualization, although kvm is enabled

I am trying to install an Alpine guest, following the instructions on the libvirt Arch Wiki page.

I am using the following command:

virt-install --name alpine_testing \
      --memory 1024 \
      --vcpus=4 \
      --cpu host \
      --cdrom $HOME/Downloads/alpine-virt-3.16.2-x86_64.iso \
      --disk size=2,format=qcow2 \
      --network user \
      --virt-type kvm \
      --connect qemu:///system \
      --virt-type kvm

However, this gives the following error:

ERROR    Host does not support any virtualization options

So, I go about checking if virtualization is enabled and if KVM is enabled, by executing the follwing commands:

❯ LC_ALL=C lscpu | grep Virtualization
Virtualization:                  AMD-V
❯ zgrep CONFIG_KVM /proc/config.gz
CONFIG_KVM_GUEST=y
CONFIG_KVM_MMIO=y
CONFIG_KVM_ASYNC_PF=y
CONFIG_KVM_VFIO=y
CONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=y
CONFIG_KVM_COMPAT=y
CONFIG_KVM_XFER_TO_GUEST_WORK=y
CONFIG_KVM=m
CONFIG_KVM_INTEL=m
CONFIG_KVM_AMD=m
CONFIG_KVM_AMD_SEV=y
CONFIG_KVM_XEN=y
CONFIG_KVM_EXTERNAL_WRITE_TRACKING=y
❯ lsmod | grep kvm
kvm_amd               172032  0
kvm                  1138688  1 kvm_amd
irqbypass              16384  1 kvm
ccp                   135168  1 kvm_amd

So, it seems that virtualization is enabled, KVM is available in the kernel and the modules are loaded up alright.

How may I go about fixing the error?

Offline

Board footer

Powered by FluxBB