Linux Virtualisation Cheat Sheet


View Our VPS Plans
Risk-free. 30-Day Money Back Guarantee. 24/7 Support.



vzlist                               # List running instances
vzlist -a                            # List all instances
vzctl stop 
vzctl start 
vzctl status 
vzctl exec  

# Change properties

vzctl set  –hostname  –save
vzctl set  –ipadd  –save
vzctl set  –userpasswd root: –save


virsh list                # List running
virsh list --all          # List all

# Control instances

virsh start 
virsh shutdown 
virsh destroy 
virsh suspend 
virsh resume 
virsh console 

# Define instances

virsh dumpxml  >dump.xml
virsh create dump.xml   # Create from XML
virsh edit 
virsh undefine 
virsh dominfo
virsh vcpuinfo
virsh nodeinfo
virsh quit   # Leave CLI


xm list           # List all domains
xm list vm1       # List status of a single VM
xm list vm1 -l    # Details for a VM 
xm create vm1     # Starts/Creates a VM
xm reboot vm1     
xm shutdown vm1
xm destroy vm1
xm network-list vm1
xm console vm1     # Open console to VM (escape like telnet)
xm info            # HV infos
xm top             # Monitor HV and domains
xm log             # View HV log
xm dominfo
xm vcpuinfo
xm nodeinfo

Find out which IP a VM has:

# Grep and resolve MAC:
xm list -l  | grep mac
arp -a | grep -i 

December 8, 2014   2014    Linux  
Total 3 Votes:

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

Leave a Comment