Saturday 2 June 2012

Xen commands and their utilities


      # xm list   ------: lists all running virtual machines on a physical node.

      # xm console "instance name / id " : it will connects to the shell of an instance . we can know it's id by "xm list " command.
                                                               To exit from this type " cntrl + 5"


      # xm shutdown "instance name / id " :  shut down an instance peacefully.

      # xm destroy   "instance name / id "  :  to poweroff an instance forcefully.


      # xm create "instancename.cfg" : To start an instance from it's configuration file. The configuration file will be usually at /etc/xen/ "name.cfg".

      # xm reboot instance : to reboot a running instance

      # xm save <instance> <filename> : To save the state of instance to a file

      # xm restore <filename> : Restore an instance from a saved file.
      

No comments:

Post a Comment