Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Fedora Core 6 Xen Virtualization Guide
Previous Page Home Next Page

Managing Virtual Machines from the command line with `xm`

In addition to the virsh command, virtual machines can also be managed on the command line with the Xen-specific xm utility. To power on a virtual machine and attach a serial console, use:

  • # /usr/sbin/xm create -c <name of virtual machine> 
    

To list the virtual machines currently running, use:

  •  # xm list
    

To power off a guest use:

  • # /usr/sbin/xm shutdown <virtual machine name>
    

To save a snapshot of the machine to a file of your choosing:

  • # /usr/sbin/xm save <virtual machine name> /<filename>
    

To restore a previously saved snapshot:

  • # /usr/sbin/xm restore /<filename>
    

To display top-like statistics for all running machines:

  • # /usr/sbin/xm top
    

For a complete list of commands available for use with xm run:

  • # /usr/sbin/xm help
    

Bugs in the xm tool should be reported in [WWW] BugZilla against the 'xen' component

Fedora Core 6 Xen Virtualization Guide
Previous Page Home Next Page

 
 
  Published under the terms of the GNU General Public License Design by Interspire