Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Access VM Helpers Configuration with Tags

Bitworks LLC edited this page Nov 3, 2018 · 1 revision

The page is under development!

When a VM is created from a template or ISO, all template tags are be copied to VM. Certain tags are interpreted in a special way when a user wants to get access to a VM.

There are three access modes currently supported: VNC, SSH, HTTP.

VNC console access mode

This mode doesn't allow passing certain arguments inside and provided natively by CloudStack. VNC mode assumes that a user uses a local OS authentication method, e.g. console login for Unix, UI-based login for Windows. Anyway, a user needs to know certain credentials - a login and a password.

The templates may be password enabled, that is when created CloudStack generates a password and returns it back. Basically, our system supports storing this password into csui.vm.password.

Another thing to know is a login which may differ from template to template, e.g. in Windows - Administrator or even Администратор, for UNIX-based - root, administrator, ubuntu, centos, etc. It can be any name, actually. Users, when creating VMs, don't know that name beforehand. A user can use csui.vm.login to manage the function, so being set for a template or ISO that field must help a user to get acknowledged about what to type in the VNC console.

SSH access mode

This mode is the default option for Unix. This access mode is defined by the template tags:

csui.vm.auth-mode = SSH
csui.vm.ssh.login = login
csui.vm.ssh.password = password
csui.vm.ssh.port = port

HTTP access mode

This mode is useful for templates with ready to use web systems deployed, like Wordpress, etc. It's regulated by the next variables:

csui.vm.auth-mode = HTTP
csui.vm.http.protocol = HTTP|HTTPS
csui.vm.http.port =
csui.vm.http.path =
csui.vm.http.login =
csui.vm.http.password =

In certain cases all three access modes can coexist. E.g. for the template tags:

csui.vm.auth-mode=HTTP,SSH
csui.vm.http.protocol=HTTP
csui.vm.http.login=Admin
csui.vm.http.password=zabbix
csui.vm.ssh.port=22
csui.vm.ssh.login=appliance
csui.vm.ssh.password=zabbix
Clone this wiki locally