vzctl Operations¶
Manage OpenVZ containers with vzctl.
Facts used in these operations: vzctl.OpenvzContainers.
vzctl.create¶
Stateless operation
This operation will always execute commands and is not idempotent.
Create OpenVZ containers.
- ctid: CTID of the container to create
Global arguments
This operation also inherits all global arguments.
vzctl.delete¶
Stateless operation
This operation will always execute commands and is not idempotent.
Delete OpenVZ containers.
- ctid: CTID of the container to delete
Global arguments
This operation also inherits all global arguments.
vzctl.mount¶
Stateless operation
This operation will always execute commands and is not idempotent.
Mount OpenVZ container filesystems.
- ctid: CTID of the container to mount
Global arguments
This operation also inherits all global arguments.
vzctl.restart¶
Stateless operation
This operation will always execute commands and is not idempotent.
Restart OpenVZ containers.
- ctid: CTID of the container to restart
- force: whether to force container start
Global arguments
This operation also inherits all global arguments.
vzctl.set¶
Stateless operation
This operation will always execute commands and is not idempotent.
Set OpenVZ container details.
- ctid: CTID of the container to set
- save: whether to save the changes
- settings: settings/arguments to apply to the container
Settings/arguments:
these are mapped directly to vztctl arguments, eg
hostname='my-host.net' becomes --hostname my-host.net.
Global arguments
This operation also inherits all global arguments.
vzctl.start¶
Stateless operation
This operation will always execute commands and is not idempotent.
Start OpenVZ containers.
- ctid: CTID of the container to start
- force: whether to force container start
Global arguments
This operation also inherits all global arguments.
vzctl.stop¶
Stateless operation
This operation will always execute commands and is not idempotent.
Stop OpenVZ containers.
- ctid: CTID of the container to stop
Global arguments
This operation also inherits all global arguments.
vzctl.unmount¶
Stateless operation
This operation will always execute commands and is not idempotent.
Unmount OpenVZ container filesystems.
- ctid: CTID of the container to unmount
Global arguments
This operation also inherits all global arguments.