Previous page

Next page

Locate page in Contents

Deleting a Virtual Machine and Container

You can delete a virtual machine and Container that is not needed anymore using the pctl delete command. Notice that you cannot delete a running or mounted virtual machine and Container. The example below illustrates deleting Container 101 and the MyVM virtual machine:

Deleting Container 101

# pctl delete 101

Deleting Container private area: /vz/private/101

Container is currently mounted (unmount first)

# pctl stop 101

Stopping Container...

Container was stopped

Container is unmounted

# pctl delete 101

Deleting Container private area: /vz/private/101

Container private area was deleted

Deleting the MyVM virtual machine:

# pctl delete MyVM

Deleting the VM...

VM is currently running

# pctl stop MyVM

Stopping the VM...

VM was stopped

# pctl delete MyVM

Deleting the VM...

Container was deleted