xenserver get vnc port

From thelinuxwiki
Jump to: navigation, search

taken from https://gist.github.com/r72cccp/f44c9e7a1e1ab6af288c

select your vm:

xe vm-list

detect id of dom of its vm:

xe vm-param-list uuid=8e2dd6ac-4883-0e6e-5cce-afbf214fa916 | grep dom-id

read vnc port by that dom_id:

xenstore-read /local/domain/18/console/vnc-port