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

Minor fixes.

dev
Franco Masotti 3 years ago
parent
commit
99f87de871
  1. 3
      README.md
  2. 3
      qvm

3
README.md

@ -8,9 +8,10 @@ Trivial management of 64 bit virtual machines with qemu.
- [qvm](#qvm)
- [Table of contents](#table-of-contents)
- [Reasons](#reasons)
- [Version](#version)
- [What this script will do](#what-this-script-will-do)
- [Prerequisites](#prerequisites)
- [Version](#version)
- [Dependencies](#dependencies)
- [Installation](#installation)
- [Arch Linux based distros](#arch-linux-based-distros)

3
qvm

@ -27,8 +27,7 @@ attach()
local address=''
[ "${place}" = 'remote' ] && address="${HOST_IP_ADDRESS}" || address='127.0.0.1'
# FIXME:::
# [ -n "${place}" ] && ssh -p "${SSH_HOST_PORT}" -l "${SSH_GUEST_USERNAME}" "${address}"
[ -n "${place}" ] && [ "${display}" != 'vnc' ] && 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}"