IP Address of XenServer VM’s Using the Command Line

Issue: Needed to get the IP address of a VM running on my XenServer.

Resolution: Execute this command

xe vm-list params=name-label,networks | grep -v "^$"

The command yielded me a list of the VM’s with the ip address.

name-label ( RW) : DevStackOSDomU
networks (MRO): 2/ip:; 1/ip:; 0/ip:
name-label ( RW) : Control domain on host: warrier.dopensource.com
networks (MRO): <not in database>


Note, I only had 1 VM on this Xenserver, but I needed the IP address: