MENU

设置KVM虚拟机支持嵌套虚拟化

August 14, 2019 • Read: 2869 • Linux阅读设置

首先检查 KVM host(宿主机/母机)上的kvm_intel模块是否打开了嵌套虚拟机功能(默认未开启的):

root@localhost:~# modinfo kvm_intel | grep nested
parm: nested:bool
root@localhost:~# cat /sys/module/kvm_intel/parameters/nested
N
root@localhost:~#

如果上面的显示结果是 N 的话需要开启 nested:

root@localhost:~# modprobe -r kvm-intel
root@localhost:~# modprobe kvm-intel nested=1
root@localhost:~# cat /sys/module/kvm_intel/parameters/nested
Y

如果提示下面的报错,则说明宿主机中有KVM虚拟机正在运行,全部关机后再操作。

modprobe: FATAL: Module kvm_intel is in use.
Archives QR Code
QR Code for this page
Tipping QR Code
Leave a Comment

3 Comments
  1. It looks like you have a couple broken links on your website. Check out a service like URLInspect.com to help. We've used it in the past and liked it.

    Here's one link: https://ccav.me/usr/themes/mirages/images/spinner.svg

  2. Hi,

    I thought I would mention that it looks like this link on your website is dead: https://ccav.me/usr/themes/mirages/images/spinner.svg

    I've seen some tools to help with problems like this such as DeadLinkReport.com. I just thought you should know!

    -Amanda

  3. Hi,

    I thought I would mention that it looks like this link on your website is dead: https://ccav.me/usr/themes/mirages/images/spinner.svg

    I've seen some tools to help with problems like this such as DeadLinkReport.com. I just thought you should know!

    -Jesiica