Wednesday, March 14, 2012

Start All Containers On An OpenVZ Node

for ctid in `vzlist -SHo ctid`; do vzctl start $ctid; done

2 comments:

  1. for ctid in `vzlist -o ctid`; do vzctl start $ctid; done

    ^- This worked.

    ReplyDelete
  2. sorry, what I meant to say is: To suspend all vm's, use this command:

    for ctid in `vzlist -o ctid`; do vzctl suspend $ctid; done

    ReplyDelete