Skip to content

docker里面添加kvm #4

Description

@GCYYfun

docker 基于 ubuntu20.04

使用

egrep -c '(vmx|svm)' /proc/cpuinfo

egrepvmx

使用kvm-ok 查看

kvm-ok

使用 modprobe kvm_intel

modprobe

使用 kvm

enable-kvm

参考过
boot2docker/boot2docker#1138

安装
https://help.ubuntu.com/community/KVM/Installation

其中尤其要注意 要重新启动 在 run container时 添加 --privileged 参数

可成功运行

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions