I created a Debian Lenny virtual machine as described on the manual. How to control it?

It has no IP since my LAN has DHCP disabled. If it only had a static IP and SSHD enabled I could just PuTTY it.

  • xm console <DOM_NAME>. obtain dom name with xml list. sorry, didnt move to XL yet ;) – Chris Jun 19 '14 at 20:19

With Citrix XenServer, you have the control interface called XenCenter with which you can connect to your hypervisor and do such things.

With OSS Xen, you can use the xm console command.

| improve this answer | |

Besides the gui/vnc consoles you can still use the equivlent of xm console

On the host console: xe vm-list to get the list of domins running (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 console equivlent 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 symlink it or alter your path yourself but it would be a sensible default.


Say I want to connect to knox (a linux domU)

[root@xen01 ~]# xe vm-list

uuid ( RO)           : 8258a6d4-23f6-003d-30d7-65bd13086863
     name-label ( RW): knox
    power-state ( RO): running

uuid ( RO)           : 1a191475-a99d-7a77-6550-b30a0038fd92
     name-label ( RW): Windows Server 2008 SP2 x86
    power-state ( RO): halted

uuid ( RO)           : ffd95724-d818-4f15-b4b4-159b7ff41df4
     name-label ( RW): Control domain on host: xen01
    power-state ( RO): running

Now get domain ids

[root@xen01 ~]# list_domains
 id |                                 uuid |  state
  0 | ffd95724-d818-4f15-b4b4-159b7ff41df4 |     R 
  1 | bc150966-8c21-7ad9-c329-839d5823041d |    B H
  7 | baa3699b-95dd-eea0-ccc4-51e8972857f5 |    B  
 11 | 8258a6d4-23f6-003d-30d7-65bd13086863 |    B  

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

[root@xen01 ~]# /usr/lib/xen/bin/xenconsole 11
(press enter)
You have new mail in /var/spool/mail/root
[root@knox ~]# 
| improve this answer | |
  • glad you found it helpful, You might find bit.ly/9TZlMB and bit.ly/bjnOIN useful as well. – Nick Anderson Apr 7 '10 at 16:48
  • 1
    /usr/lib64/xen/bin/xenconsole worked for me – Nat Jun 24 '16 at 9:12
  • /usr/libexec/xen/bin/xenconsol worked for me (+1 @Greg's answer) – FractalSpace Nov 14 '17 at 16:11

In case someone facing the initial problem with XenServer 7.1 and has to access the guest CLI without XenCenter, the answer of Nick Anderson is the right way:

  1. get the uuid of the guestVM in question (HVM guests may be not suitable)
  2. get the domain ID based on the UUID
  3. use xenconsole to connect to the CLI of the guest on XenServer 7.1

    /usr/libexec/xen/bin/xenconsole domainID
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.