Xen Server console to vm via command line / CLI

How to get console on linux domU with XenServer (xm console equivlent)

Besides the gui/vnc con­soles you can still use the equiv­lent of xm con­sole in Cit­rix XenServer.

On the host console:

  • xe vm-list to get the list of domins run­ning (just note the uuid of the domain you want).
  • list_domains will list the domain name and the uuid of the domains. Match up your uuid so you get the proper dom_id
  • xm con­sole equiv­lent is /usr/lib/xen/bin/xenconsole dom_id

Its not in the root users $PATH though I think it ought to be. Of course you can sym­link it or alter your path your­self but it would be a sen­si­ble default.

Exam­ple:

xen01 = dom0

knox = lin­uxpv domU

Say I want to con­nect to knox (a linux domU)

1
2
3
4
5
6
7
8
9
10
11
12

Now get domain ids

1
2
3
4
5
6

You can see the domain ID that matches the UUID of knox is 11. So we use xenconsole.

1
2
3
4



Comments

comments

Leave a Reply