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

Fixed run remote code. Fixed readme.

dev
Franco Masotti 4 years ago
parent
commit
588d1957fd
  1. 12
      README.md
  2. 21
      fbopt
  3. 6
      qvm
  4. 2
      version

12
README.md

@ -118,20 +118,24 @@ Note: the VNC traffic goes through SSH TCP forwarding, so it is encrypted.
# FIXME
To automatically start the virtual machine from a non-host computer you can
use the `automatic_remote_startup.sh` script. Make sure that both the local
non-host and the remote host computer have a copy of the QVM repository with
use the `--remote` option. Make sure that both the local
(non-host) and the remote host computer have a copy of the QVM repository with
the variables correctly set in the `configrc` file.
This script will start the virtual machine if on the host computer no other
virtual machine is running. You can use either the VNC or the headless
connection. Both of them require that SSH is configured correctly on the
computers: the host must be reachable from the client via SSH.
This can be verified by using the `--attach-remote` option.
This can be verified by using the `--attach --remote` options.
Once you have checked that everyting works, you can add a command alias in
your shell configuration file (e.g: `~/.bashrc`), something like:
alias vm='/home/user/scripts/qvm/automatic_remote_startup.sh'
alias vm='/home/user/scripts/qvm/qvm --run --remote --vnc'
or, if you are not interested in Xorg:
alias vm='/home/user/scripts/qvm/qvm --run --remote'
## Interesting applications

21
fbopt

@ -26,20 +26,19 @@ Only a single option is accepted.
By default, the backup vhd is run.
Mandatory arguments to long options are mandatory for short options too.
Options:
-a, --attach connect to SSH locally
-b, --backup backup vhd
-c, --create create new vhd
-d, --delete delete vhd backup
-a, --attach connect via SSH
-b, --backup backup the vhd
-c, --create create a new vhd
-d, --delete delete the vhd backup
-h, --help print this help
-i, --install install img on vhd
-m, --mkdir-shared create shared directory
-n, --nox run vm without opening a graphical window
which is useful for background jobs like SSH
-i, --install install the image on a vhd
-m, --mkdir-shared create a shared directory
-n, --nox run vm without graphical output
-o, --orig run from the original vhd
-r, --remote connect to a vnc instance via ssh
-v, --vnc run vm with vnc
-r, --remote connect to a remote instance of QVM
-v, --vnc use VNC
-V, --version print the software version
-x, --run run vm
-x, --run run the vm
Exit status:
0 if OK,

6
qvm

@ -127,11 +127,7 @@ run_remote_instance()
sleep ${SECONDS_BEFORE_CONNECTION_ATTEMPT}
fi
if [ "${display}" = 'vnc' ]; then
"${local_path}"/qvm --attach --remote --vnc &
else
"${local_path}"/qvm --attach --remote
fi
attach 'remote' "${display}"
}
program_name="${0}"

2
version

@ -1 +1 @@
0.0.2
0.0.1