frnmst-archives
/
qvm
Archived
1
0
Fork 0
Franco Masotti 4 years ago
parent
commit
e7f458ad12
  1. 6
      README.md
  2. 4
      qvm

6
README.md

@ -101,6 +101,12 @@ You must then run QVM with one of the VNC options on the server side.
On the client side you must simply edit the `HOST_IP_ADDRESS` and
`HOST_USERNAME` variables in the configuration file.
For this to work, you must enable the following lines in the SSH daemon
configuration of the host computer:
AllowTcpForwarding yes
AllowAgentForwarding yes
For example, on the server side you could install the virtual machine remotely
like this:

4
qvm

@ -28,7 +28,8 @@ attach()
local address=''
[ "${place}" = 'remote' ] && address="${HOST_IP_ADDRESS}" || address='127.0.0.1'
[ -n "${place}" ] && ssh -p "${SSH_HOST_PORT}" -l "${SSH_GUEST_USERNAME}" "${address}"
# FIXME:::
# [ -n "${place}" ] && ssh -p "${SSH_HOST_PORT}" -l "${SSH_GUEST_USERNAME}" "${address}"
if [ "${display}" = 'vnc' ]; then
ssh -N -f -L 5901:127.0.0.1:5900 -l "${HOST_USERNAME}" "${address}"
vncviewer 127.0.0.1:1
@ -83,7 +84,6 @@ run()
local display="${1}"
local vhd_type="${2}"
local vhd=''
local display=''
local enable_vnc=''
[ "${display}" = 'vnc' ] \