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: 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
- 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
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.
Install:
- Virt-viewer [windows binary]
Also, don't forget to add virt-viewer bin folder to your windows PATH [howto]
The simple way. Just install:
-
Git Bash (or cygwin with openssh) [windows binary]
-
Zenity [windows binary]
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"