MENU

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

August 14, 2019 • Read: 3645 • 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

2 Comments
  1. Amy Amy

    Hey,

    "Category" looked off to me, possibly misspelled. spellingreport.com has helped me clear these up before.

    Cheers,
    Amy

  2. Hi there,

    "Copyright" stood out-- maybe misspelled? Quickly confirming with spelldoc.com or another tool usually helps.

    Cheers,
    Maria