mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-01 18:39:16 +00:00
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:
@ -120,3 +120,5 @@ ENV NO_AT_BRIDGE=1
|
||||
RUN <<EOF
|
||||
echo PATH=$PATH:/workspaces/Fennix/cross/bin >> /etc/profile
|
||||
EOF
|
||||
|
||||
ENV CHMOD_KVM=1
|
||||
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user