LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-21-2019, 03:01 PM   #1
adrianoepifas
LQ Newbie
 
Registered: Apr 2019
Posts: 1

Rep: Reputation: Disabled
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?
 
Old 04-23-2019, 12:25 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 2,981

Rep: Reputation: 775Reputation: 775Reputation: 775Reputation: 775Reputation: 775Reputation: 775Reputation: 775
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.

Last edited by berndbausch; 04-23-2019 at 12:27 AM.
 
Old 05-16-2019, 01:03 AM   #3
zonbin
LQ Newbie
 
Registered: May 2019
Posts: 1

Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by berndbausch View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Xen Project Hypervisor: Virtualization and Power Management are Coalescing into an Energy-Aware Hypervisor LXer Syndicated Linux News 0 07-11-2018 06:59 PM
KVM "ERROR Host does not support any virtualization options" acrux Linux - Virtualization and Cloud 5 08-21-2014 08:42 AM
[SOLVED] Virt-install: ERROR Host does not support any virtualization options. morrison71 Linux - Virtualization and Cloud 16 11-07-2013 08:13 AM
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration