虚拟机嵌套kvm/vmware
http://www.vpsee.com/2012/09/how-to-run-kvm-nested-vms-on-kvm/
http://www.vpsee.com/?s=kvm+on+kvm
http://www.vpsee.com/2012/02/how-to-run-kvm-nested-vms-on-vmware-esxi/
http://zhumeng8337797.blog.163.com/blog/static/100768914201293195720840
kvm嵌套(kvm_intel, kvm_amd)
CentOS6.5 x64默认不支持kvm虚拟机嵌套,CentOS 7内核升级为3.10默认就支持。以kvm_intel为例,amd CPU也是调相同参数。
[root@test ~]# lsb_release -a
LSB Version:
Distributor ID:
Description:
Release:
Codename:
[root@test ~]# uname -a
Linux test 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@test ~]# lscpu
Architecture:
CPU op-mode(s):
Byte Order:
CPU(s):
On-line CPU(s) list:
Thread(s) per core:
Core(s) per socket:
Socket(s):
NUMA node(s):
Vendor ID:
CPU family:
Model:
Model name:
Stepping:
CPU MHz:
BogoMIPS:
Virtualization:
L1d cache:
L1i cache:
L2 cache:
L3 cache:
NUMA node0 CPU(s):
修改kvm_intel内核模块参数nested N ==>Y
https://docs.openstack.org/developer/devstack/guides/devstack-with-nested-kvm.html
[root@test ~]# cat /sys/module/kvm_intel/parameters/nested
N
[root@test ~]# echo 'options kvm-intel nested=1' >>/etc/modprobe.d/kvm_nested.conf
[root@test ~]# modprobe -r kvm-intel
[root@test ~]# modprobe kvm-intel
[root@test ~]# cat /sys/module/kvm_intel/parameters/nested
Y
针对要嵌套的虚拟机,在控制台将物理CPU的属性copy给该虚拟机,按钮“Copy host CPU configuration",以支持虚拟机嵌套。
VMware ESXi 5.0
VMware ESXi 5.0 默认情况下不支持嵌套虚拟,需要修改配置文件/etc/vmware/config,添加如下行
vhv.allow = "TRUE"后重启ESXi,并将虚拟机类型调整为VMware ESXi5.x
VMware Fusion8.0