xenserver get vnc port

From thelinuxwiki
Revision as of 15:26, 18 July 2019 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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