fix(devcontainer): qemu cannot access /dev/kvm "failed to initialize kvm: Permission denied"

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-03-25 15:18:43 +00:00
parent d251d9d03f
commit 34bd348f25
3 changed files with 6 additions and 5 deletions

View File

@ -32,7 +32,7 @@
"type": "bind"
},
{
"source": "${localEnv:XAUTHORITY}",
"source": "${env:XAUTHORITY}",
"target": "/home/vscode/.Xauthority",
"type": "bind"
},
@ -44,6 +44,5 @@
],
"runArgs": [
"--privileged"
],
"postAttachCommand": "sudo chmod 666 /dev/kvm"
]
}