From d10642d86b1c62eaf776d47f4b8b4dd16b6bd2fc Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 9 Jun 2024 14:10:44 +0200 Subject: [PATCH] docs: KVM support --- readme.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index bc2608b..10456df 100644 --- a/readme.md +++ b/readme.md @@ -326,14 +326,16 @@ kubectl apply -f kubernetes.yml * ### How do I verify if my system supports KVM? - To verify if your system supports KVM, run the following commands: + To verify that your system supports KVM, run the following commands: ```bash sudo apt install cpu-checker sudo kvm-ok ``` - If you receive an error from `kvm-ok` indicating that KVM acceleration can't be used, check the virtualization settings in the BIOS. + If you receive an error from `kvm-ok` indicating that KVM acceleration can't be used, check whether the virtualization extensions (`Intel VT-x` or `AMD SVM`) are enabled in your BIOS. If you are running the container inside a VM instead of directly on the host, you will also need to enable nested virtualization in its settings. If you are using a cloud provider, you may be out of luck as most of them do not allow nested virtualization for their VPS's. If you are using Windows 10 or MacOS, you are also out of luck, as only Linux and Windows 11 support KVM. + + If you don't receive any error from `kvm-ok` at all, but the container still complains that `/dev/kvm` is missing, it might help to add `privileged: true` to your compose file (or `--privileged` to your `run` command), to rule out any permission issue. * ### How do I run macOS in a container?