Virtuozzo/OpenVZ vzctl Commands

Useful vzctl commands for your server:

List all VM’s

vzlist -a

Shutdown a specific VM

vzctl stop CTID

Shutdown all VM’s on a node

for ctid in 'vzlist -Ho ctid'; do vzctl stop $ctid; done

Boot a specific VM

vzctl start CTID

Boot all VM’s on a node

for ctid in 'vzlist -Ho ctid'; do vzctl start $ctid; done

Restart a specific VM

vzctl restart CTID

Continue reading