QEMU-KVM: Can't virtualize in nested hypervisor with error: ERROR Host does not support any virtualization options

General support questions
Post Reply
adrianoepifas
Posts: 6
Joined: 2019/02/28 14:36:59

QEMU-KVM: Can't virtualize in nested hypervisor with error: ERROR Host does not support any virtualization options

Post by adrianoepifas » 2019/04/21 19:13:42

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: Select all

$ 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: Select all

# 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: Select all

# 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?

hunter86_bg
Posts: 1908
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: QEMU-KVM: Can't virtualize in nested hypervisor with error: ERROR Host does not support any virtualization options

Post by hunter86_bg » 2019/04/21 21:30:05

Maybe you need to enable nested o n CentOS. At least it won't hurt trying to.

adrianoepifas
Posts: 6
Joined: 2019/02/28 14:36:59

Re: QEMU-KVM: Can't virtualize in nested hypervisor with error: ERROR Host does not support any virtualization options

Post by adrianoepifas » 2019/04/22 00:08:36

So, looking at libvirt logs (journalctl -xeu libvirtd) I found out this error every time I was trying to use virt-install:
Abr 21 15:10:25 localhost.localdomain libvirtd[2156]: 2019-04-21 19:10:25.351+0000: 2176: error : virQEMUCapsNewForBinaryInternal:4589 : internal error: Failed to probe QEMU binary with QMP: /usr/libexec/qemu-kvm: relocation error: /lib64/libspice-server.so.1: symbol SSL_CONF_CTX_set_ssl_ctx, version libssl.so.10 not defined in file libssl.so.10 with link time reference

A quick search led me to this https://bugzilla.redhat.com/show_bug.cgi?id=1627693. Basically it said there is a bug with older versions of openssl and qemu. My openssl was 1.0.1e-fips 11 Feb 2013 and I updated to openssl-1.0.2k. Now it works like a charm.

User avatar
TrevorH
Forum Moderator
Posts: 26568
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: QEMU-KVM: Can't virtualize in nested hypervisor with error: ERROR Host does not support any virtualization options

Post by TrevorH » 2019/04/22 01:13:50

If you were missing that then you're probably missing a whole bunch of other stuff too. Running a full yum update should show you how much you're missing.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

adrianoepifas
Posts: 6
Joined: 2019/02/28 14:36:59

Re: QEMU-KVM: Can't virtualize in nested hypervisor with error: ERROR Host does not support any virtualization options

Post by adrianoepifas » 2019/04/23 02:15:20

TrevorH wrote:
2019/04/22 01:13:50
If you were missing that then you're probably missing a whole bunch of other stuff too. Running a full yum update should show you how much you're missing.
That was not the point.

User avatar
TrevorH
Forum Moderator
Posts: 26568
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: QEMU-KVM: Can't virtualize in nested hypervisor with error: ERROR Host does not support any virtualization options

Post by TrevorH » 2019/04/23 10:22:45

I am pointing out to you that you may still have a problem there. Only the current version of CentOS 7 gets fixes. And if openssl was still at 1.0.1e then you were massively out of date. The openssl package was rebased from 1.0.1e to 1.02k when 7.4 first came out nearly 2 years ago. You're very likely missing all of the rest of the last 2 years of updates too and some of those are "Critical" in severity.
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - General Support”