Skip to content

Latest commit

 

History

History
66 lines (40 loc) · 2.03 KB

README.md

File metadata and controls

66 lines (40 loc) · 2.03 KB

OpenNebula VM Connector

Simple and secure bash-script that provides your users access to own OpenNebula VMs via SPICE. VNC is also supported.

No Sunstone needed, connecting carried directly from user's desktop.

Script automatically suspend VM after disconnect and resume VM when user connect.

It allows you to organize simplest VDI structure.

Usage

Usage:    vm-connect.sh --host HOST [--username USERNAME]

Arguments:
    -H, --host                  OpenNebula hostname or IP
    -u, --user                  Username for SSH-connection
    -l, --log-file              Path to log file
    -d, --debug                 Enable debug output
    -h, --help                  This message

Installation

  • Install dependings
  • Configure passwordless SSH authentication to your OpenNebula host.
  • Authorise user on OpenNebula host via oneuser login command.
  • Also you may to configure SSH Auth

Dependings

Linux

Just install virt-viewer and zenity packages.

If you intend to use Cyrillic and other character encodings in virtual machines names, please install recode, it will be convert html characters in virtual machines names.

Windows

Install:

Also, don't forget to add virt-viewer bin folder to your windows PATH [howto]

Git Bash

The simple way. Just install:

My zenity build for windows already contains recode package.

Create shortcut for start vm-connect script:

"C:\Program Files\Git\usr\bin\mintty.exe" -w hide -e bash -c "C:/Soft/one-connect/vm-connect.sh -H hostname -u user"

Or for enable debug output:

"C:\Program Files\Git\usr\bin\mintty.exe" -e bash -c "C:/Soft/one-connect/vm-connect.sh -d -H hostname -u user"