frnmst-archives
/
qvm
Archived
1
0
Fork 0
Browse Source

Minor fix. Added note.

dev
Franco Masotti 2 years ago
parent
commit
cfd0a58377
  1. 11
      README.md
  2. 2
      qvm

11
README.md

@ -156,6 +156,17 @@ elements are parameters.
host_share /home/vm/shared 9p noauto,x-systemd.automount,trans=virtio,version=9p2000.L 0 0
Note: to be able to access the shared directory the user and group ids must
be the same for the host and guest machines. If needed, change those ids within
the guest machine:
1. connect via VNC
2. login as root
3. run: ``# usermod -u ${new_user_id} "${user_name}" && groupmod -g ${new_group_id}`` "{group_name}"``
4. run: ``# chown -R "${user_name}":"{group_name}" /home/"${user_name}"
5. reboot
## Connection to the machine
- You can also access the virtual machine through SSH:

2
qvm

@ -104,7 +104,7 @@ run()
hostfwd=tcp::"${HOST_PORT_1}"-:"${GUEST_PORT_1}",\
hostfwd=tcp::"${HOST_PORT_2}"-:"${GUEST_PORT_2}",\
hostfwd=tcp::"${SSH_HOST_PORT}"-:"${SSH_GUEST_PORT}" \
-virtfs local,path="${SHARED_DATA_PATH}",security_model=none,mount_tag="${MOUNT_TAG}" \
-virtfs local,path="${SHARED_DATA_PATH}",security_model=passthrough,mount_tag="${MOUNT_TAG}" \
-smp ${NUMBER_OF_CORES} \
-soundhw ac97 \
-display "${display}" \