LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   QEMU-KVM: Can't virtualize in nested hypervisor with error: ERROR Host does not support any virtualization options (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/qemu-kvm-can%27t-virtualize-in-nested-hypervisor-with-error-error-host-does-not-support-any-virtualization-options-4175652530/)

adrianoepifas 04-21-2019 03:01 PM

QEMU-KVM: Can't virtualize in nested hypervisor with error: ERROR Host does not support any virtualization options
 
I have a qemu-kvm hypervisor in Ubuntu (Level 0) with a CentOS 7 as a VM (Level 1), which I also installed QEMU-KVM, turning it into another hypervisor, where I intend to have Arch as a VM (Level 2). My CentOS 7 (Level 1) seems to be working fine.

I activated nested virtualization in my Hypervisor (Level 0):
Code:

$ cat /etc/modprobe.d/qemu-system-x86.conf
options kvm_intel nested=1

$ cat /sys/module/kvm_intel/parameters/nested
Y

Inside my CentOS VM (Level 1) I confirmed KVM is present:
Code:

# echo "Number of processors that support KVM: $(grep -Ec "(vmx|svm)" /proc/cpuinfo)"
Number of processors that support KVM: 2

# lscpu | grep "Virtualization\|Hypervisor"
Virtualization:        VT-x
Hypervisor vendor:    KVM
Virtualization type:  full

# lsmod | grep -i kvm
kvm_intel            170181  0
kvm                  554609  1 kvm_intel
irqbypass              13503  1 kvm

Now when I try to install my Arch in my CentOS Hypervisor (Level 1) it fails. Below, you'll see that even the option --prompt fails:
Code:

# virt-install --name=Nested-Arch --vcpus=1 --ram=512 --os-type=linux --os-variant=virtio26 --nographics --description "Arch Linux inside CentOS inside Ubuntu (Nesting)" --network bridge=virbr0,model=virtio --disk path=/var/lib/libvirt/images/guest.img,size=32 --cdrom=/root/Downloads/archlinux-2016.09.03-dual.iso --extra-args="console=tty0 console=ttyS0,115200n8 serial"
ERROR    Host does not support any virtualization options

# virt-install --prompt
WARNING  --prompt mode is no longer supported.
ERROR    Host does not support any virtualization options

Does anyone have an idea how to fix this?

berndbausch 04-23-2019 12:25 AM

Is --os-variant=virtio26 valid? On my hypervisor (Fedora 28), it doesn't exist:
Code:

$ osinfo-query os|grep virtio
$

I think you also have to tie the hypervisor's (level 1's) CPU to the VM (level 2) with something like --cpu host.

zonbin 05-16-2019 01:03 AM

Quote:

Originally Posted by berndbausch (Post 5987647)
Is --os-variant=virtio26 valid? On my hypervisor (Fedora 28), it doesn't exist:
Code:

$ osinfo-query os|grep virtio
$

I think you also have to tie the hypervisor's (level 1's) CPU to the VM (level 2) with something like --cpu host.

Thank you so much


All times are GMT -5. The time now is 08:09 PM.