티스토리 뷰

Fedora 18 Virtualization KVM Nested KVM


 

Configure nested KVM. It's possible to install KVM and create virtual machines as nested KVM on KVM host.


1. Enable nested function first.


[root@otaec ~]# vi /etc/modprobe.d/kvm-nested.conf

# create new

options kvm_intel nested=1


[root@otaec ~]# modprobe -r kvm_intel # unload

[root@otaec ~]# modprobe kvm_intel # load again


[root@otaec ~]# cat /sys/module/kvm_intel/parameters/nested 

Y # just enabled



2. Make sure the CPU model on your computer.


[root@otaec ~]# virsh capabilities | egrep "/model|/vendor" 

<model>SandyBridge</model># CPU model

<vendor>Intel</vendor># CPU vendor

<model>none</model>

<model>dac</model>



3. Edit the configuration of virtual machine for nested.


[root@otaec ~]# virsh edit www # edit a virtual machine "www"

# add following lines

<cpu mode='custom' match='exact'>

  # CPU model

  <model fallback='allow'>SandyBridge</model>

  # CPU vendor

  <vendor>Intel</vendor>

  <feature policy='require' name='vmx'/>

</cpu>



  That's all OK. 

The follows is the screen that CentOS 6.4 guest is running on CentOS 6.4 KVM host which is nested KVM on Fedora 18 KVM host.

'EN > Fedora 18' 카테고리의 다른 글

Fedora 18 Configure NIS Server  (0) 2016.04.17
Fedora 18 NFS Server  (0) 2016.04.17
Fedora 18 Virtualization KVM Nested KVM  (0) 2016.04.17
Fedora 18 Virtualization KVM SPICE Server  (0) 2016.04.17
Fedora 18 Virtualization KVM Install Virt-top  (0) 2016.04.17
Fedora 18 Virtualization KVM Operarion  (0) 2016.04.17
댓글