Fix permissions for VM access.
This commit is contained in:
parent
da71eed94b
commit
6c69d4ce4d
1 changed files with 2 additions and 0 deletions
|
@ -10,7 +10,9 @@ if [[ $# -ne 1 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VM_NAME="$1"
|
VM_NAME="$1"
|
||||||
|
|
||||||
## Make sure VMs can read the base directory:
|
## Make sure VMs can read the base directory:
|
||||||
chgrp 1010 "/lmn/media/${SUDO_USER}"
|
chgrp 1010 "/lmn/media/${SUDO_USER}"
|
||||||
|
chmod 0775 "/lmn/media/${SUDO_USER}"
|
||||||
|
|
||||||
systemctl start virtiofs@${VM_NAME}-clone:${SUDO_USER}.service
|
systemctl start virtiofs@${VM_NAME}-clone:${SUDO_USER}.service
|
||||||
|
|
Loading…
Add table
Reference in a new issue