Procedure 1: Access to Console of Single Guest VM
1: Open XenCenter, go to General tab of the VM which you want access, and check for the UUID
2: Open XenServer text console, run the list_domains command, and find the VM UUID in the output
3: Run the following command to access guest VM console:
/usr/lib/xen/bin/xenconsole < domain id >
Procedure 2: Log Output of Newly Created Linux VMs to Text File
To collect and save output from all VMs running on the XenServer host, complete the following procedure:
1: Run the following command on XenServer host:
xenstore-write /local/logconsole/@ /tmp/console.%d.log
2: Restart the VM from which you want to collect the console output.
3: Verify if file /tmp/console..log exists. This file should contain VM console output. To find domain ID, refer to Procedure 1: Access to Console of Single Guest VM.
4: Run the following command to stop logging console output:
xenstore-rm /local/logconsole/@
https://support.citrix.com/article/CTX137216