File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change 1717 " --device=/dev/kvm"
1818 ],
1919
20- // Use 'postCreateCommand' to run commands after the container is created
21- "postCreateCommand" : " bash .devcontainer/setup.sh" ,
22-
23- // Runs each time the container starts/restarts and set kvm permissions
20+ // Runs each time the container starts/restarts
2421 "postStartCommand" : " bash .devcontainer/setup.sh" ,
2522
2623 "customizations" : {
Original file line number Diff line number Diff line change 22
33# Change device ownership
44sudo chown -R $REMOTE_USER :$REMOTE_GROUP $DEVICE
5-
6- # Check for the KVM device and adjust permissions.
7- if [ -e /dev/kvm ]; then
8- sudo chown root:kvm /dev/kvm
9- sudo chmod 660 /dev/kvm
10- sudo usermod -aG kvm vscode
11- else
12- echo ' KVM device not found, skipping...'
13- fi
You can’t perform that action at this time.
0 commit comments