Changes

Jump to: navigation, search

User Guide/Operations on Containers

7 bytes removed, 10:52, 28 April 2009
Deleting Container: fixed example
You can delete a Container that is not needed anymore with the <code>vzctl destroy ''CTID''</code> command. This command removes the Container private area completely and renames the Container configuration file and action scripts by appending the <code>.destroyed</code> suffix to them.
{{Note|Since vzctl-3.0.24, you can also use the <code>vzctl delete </code> command introduced in Virtuozzo Containers 4.0 to remove Containers from your Hardware Node. This command has the syntax identical to vzctl destroy and is meant to replace the latter in the future.}}
A running Container cannot be destroyed with the <code>vzctl destroy</code> command. The example below illustrates destroying Container 101:
# '''vzctl destroy 101''' Container is currently running. Stop it first. # '''vzctl stop 101''' Stopping container ... Container was stopped Container is unmounted # '''vzctl destroy 101''' Destroying container private area: /vz/private/101 Container private area was destroyed # '''ls /etc/vz/conf/101.*''' /etc/vz/conf/101.conf.destroyed # '''vzctl status 101''' CTID 102 deleted unmounted down
Destroying If you do not need the backup copy of the Container private area: /vz/private/101 Container is currently mounted configuration files (unmount first) # vzctl stop 101 Stopping Container ..with the Container was stopped Container is unmounted # vzctl destroy 101 Destroying Container private area: /vz/private/101 Container private area was destroyed # ls /etc/vz/conf/101suffix), you may delete them manually.*
/etc/vz/conf/101.conf.destroyed
 
# vzctl status 101
 
VEID 101 deleted unmounted down
 
If you do not need the backup copy of the Container configuration files (with the .destroyed suffix), you may delete them manually.
== Disabling Container ==
== Suspending Container ==

Navigation menu