XEN Server Status Monitoring Command Cheat Sheet

The xm command is the main command line interface for managing Xen guest domains. The program can be used to create, pause, and shutdown domains. It can also be used to list current domains, enable or pin VCPUs, and attach or detach virtual block devices.

Please note that before running any one of the following command you must run xend ( Xen control daemon aka service) and must be run as privileged user. Running xm command as non root will return an error.

I hope following XEN status monitoring cheat sheet will save your time.

Displays uptime for a domain

xm uptime

Monitors a host and its domains in real time

xm top

Displays domain information

xm list

Displays host information

xm info

Lists domain virtual processors

xm vcpu-list

Lists domain virtual network interfaces

xm network-list

Displays node information

virsh nodeinfo

Displays domain virtual processor information

virsh vcpuinfo

Displays the xend log

xm log

Displays domain information

virsh dominfo

Reads the xend daemon’s message buffer just like dmesg

xm dmesg

Further readings

=> Read xm and virsh command man page.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 8 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
8 comments… add one
  • unixfoo Dec 17, 2007 @ 17:47
  • Surekha Jan 21, 2008 @ 6:38


    Some basic commands from me also :-

    1. Create a node

    xm create xyz.com -c

    2. Switch to the node

    xm console xyz.com

    3. destroy node

    xm destroy xyz.com

  • ilango Feb 4, 2009 @ 12:25

    command for find the ip address of all powered on virtual machines.

  • djtremors Apr 20, 2009 @ 11:06

    Finding the IP address is not that simple since every guest can be configured internally without a care from the dom0 since it usually only knows the mac address and has MAC rules in iptables for each of the guests, not their IP addresses. BUT, if they are all in the same subnet and are (eg) DHCP clients, you could run nmap -sP and ping sweep the network then match what the dom0 knows as the MAC address against the results of the ping sweep. crude yes but why get yourself into an issue like this in the first place?

  • Cloi Aug 30, 2009 @ 21:39

    Hi all,

    Please, I need to use php scripting to exectute xm command for example: xml list, in php I need see all virtual machines that is running and show in screen using php.


  • Sri Jul 7, 2010 @ 13:24

    This article is like an extract..
    Please Continue this.

    One doubt.
    I am using Debian Lenny Distro.
    I ve an iso image.
    I wish to create a vm from the iso file, with out using virt-manager.
    Is there any tutorial like that here…
    please help me….
    Thanks in Advance,,
    Sri ! !

    • 🐧 nixCraft Jul 7, 2010 @ 20:49

      Use virt-install, it has an option to install from iso image.

  • Sreejith Sathyan Nov 27, 2010 @ 8:33

    Nice article… Good Work….

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum