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

Minor fixes.

dev
Franco Masotti 4 years ago
parent
commit
dc4d12864e
  1. 6
      README.md
  2. 2
      fbopt
  3. 6
      qvm

6
README.md

@ -159,12 +159,6 @@ network filesystems.
## Help
### qvm
FIXME
### automatic_remote_startup.sh
FIXME
## License

2
fbopt

@ -45,7 +45,7 @@ Exit status:
1 if an error occurred.
CC0 License
Written in 2016-2018 by Franco Masotti/frnmst <franco.masotti@live.com>
Written in 2018 by Franco Masotti/frnmst <franco.masotti@live.com>
EOF
}

6
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=none,mount_tag="${MOUNT_TAG}" \
-smp ${NUMBER_OF_CORES} \
-soundhw ac97 \
-display "${display}" \
@ -119,10 +119,10 @@ run_remote_instance()
if [ -z "$(ssh -l "${HOST_USERNAME}" "${HOST_IP_ADDRESS}" "pgrep qemu")" ]; then
if [ "${display}" = 'vnc' ]; then
ssh -p ${SSH_EXPOSED_PORT} -l "${HOST_USERNAME}" "${HOST_IP_ADDRESS}" \
"cd "${HOST_QVM_SCRIPT_DIRECTORY}" && ./qvm --run-vnc" &
"cd "${HOST_QVM_SCRIPT_DIRECTORY}" && ./qvm --run --vnc" &
else
ssh -p ${SSH_EXPOSED_PORT} -l "${HOST_USERNAME}" "${HOST_IP_ADDRESS}" \
"cd "${HOST_QVM_SCRIPT_DIRECTORY}" && ./qvm -n" &
"cd "${HOST_QVM_SCRIPT_DIRECTORY}" && ./qvm --run --nox" &
fi
sleep ${SECONDS_BEFORE_CONNECTION_ATTEMPT}
fi