How to start XEN/KVM/OpenVz vm from command line Print

  • 3

To start Xen PV/HVM:
On the xen node try to start the vps by hand:

xm create /home/xen/vm101/vm101.cfg


Mass Starting Virtual Servers

On the xen node run:

CFGS=/home/xen/vm*/;for cfg in $CFGS;do xm create $cfg*.cfg;done



On the Openvz node run:

CFGS=`vzlist -S -Ho ctid`;for cfg in $CFGS;do vzctl start $cfg;done



On the KVM node run:

CFGS=/home/kvm/kvm*/;for cfg in $CFGS;do virsh create $cfg*.xml;done







Was this answer helpful?

« Back