How to connect to a console of a Linux VM from XenServer Host Console

How to connect to a console of a Linux VM from XenServer Host Console

book

Article ID: CTX217606

calendar_today

Updated On:

Description

Sometimes it might be necessary to connect to the console of VM via command line when SSH  and XenCenter console is not working. This article describe the process for it


Instructions

1. Run the following command

# xe console-list vm-name-label=<VM name>

You will see output like this.

uuid ( RO)             : 9240bdb1-f7f6-3217-c193-27ff65b0b2dd

          vm-uuid ( RO): 46de5cd3-967c-410b-a48a-b74f9e5d96ba

    vm-name-label ( RO): Control domain on host: xshou4704155371831296.xs6564.citrix.dc

         protocol ( RO): VT100

         location ( RO): https://x.x.x.x/console?ref=OpaqueRef:0149b0fe-84b9-ccca-a1e5-5aa7238f2faf
 

From the console of XenServer, you can login into the VM

#xl console domid

 

Domid can be  obtained from list_domains command

Or

 

#xe console vm=<vm name>

 

Example output

[root@test ~]# xl console 2



Welcome to Vyatta - vyatta hvc0



To quit the console press ctrl+} symbol