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

Minor fixes.

dev
Franco Masotti 4 years ago
parent
commit
3b8fd08613
  1. 17
      README.md
  2. 2
      qvm

17
README.md

@ -93,13 +93,10 @@ elements are parameters.
## VNC options
The VNC options in this script allow you to connect to a remote instance of
QEMU. This is particularly useful, for example, if your local machine
processor does not support virtualization. The only thing to do is to make
the server's port (`5900`) reachable from the clients.
QEMU. This is particularly useful if, for example, your local machine
does not support virtualization.
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.
### Setup
For this to work, you must enable the following lines in the SSH daemon
configuration of the host computer:
@ -107,6 +104,14 @@ configuration of the host computer:
AllowTcpForwarding yes
AllowAgentForwarding yes
### Examples
You must 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 example, on the server side you could install the virtual machine remotely
like this:

2
qvm

@ -31,7 +31,9 @@ attach()
# FIXME:::
# [ -n "${place}" ] && ssh -p "${SSH_HOST_PORT}" -l "${SSH_GUEST_USERNAME}" "${address}"
if [ "${display}" = 'vnc' ]; then
# Forward "${address}":5900 to localhost:5901 through SSH.
ssh -N -f -L 5901:127.0.0.1:5900 -l "${HOST_USERNAME}" "${address}"
# Connect to port 5901.
vncviewer 127.0.0.1:1
fi
}