The following set of commands will use vzctl
to suspend and resume a container. When you use vzctl
to suspend a container, it creates a save point of the container to a dump file. You can then use vzctl
to resume the container to the saved point it was in before the container was suspended.
To suspend a container, run the following command:
vzctl suspend 101
In the previous example, we used the vzctl
command with the suspend
option to suspend the container 101
.