Parameter |
Choices/Defaults |
Comments |
archive
bool |
|
Create an archive of a container. This will create a tarball of the running container.
|
archive_compression
|
Choices:
gzip ←
- bzip2
- none
|
Type of compression to use when creating an archive of a running container.
|
archive_path
|
|
Path the save the archived container. If the path does not exist the archive method will attempt to create it.
|
backing_store
|
Choices:
dir ←
- lvm
- loop
- btrfs
- overlayfs
- zfs
|
Backend storage type for the container.
|
clone_name
bool
(added in 2.0) |
|
Name of the new cloned server. This is only used when state is clone.
|
clone_snapshot
bool
(added in 2.0) |
|
Create a snapshot a container when cloning. This is not supported by all container storage backends. Enabling this may fail if the backing store does not support snapshots.
|
config
|
|
Path to the LXC configuration file.
|
container_command
|
|
Run a command within a container.
|
container_config
|
|
list of 'key=value' options to use when configuring a container.
|
container_log
bool |
|
Enable a container log for host actions to the container.
|
container_log_level
|
Choices:
INFO ←
- ERROR
- DEBUG
|
Set the log level for a container where *container_log* was set.
|
directory
|
|
Place rootfs directory under DIR.
|
fs_size
|
Default:
"5G"
|
File system Size.
|
fs_type
|
Default:
"ext4"
|
Create fstype TYPE.
|
lv_name
|
Default:
"$CONTAINER_NAME"
|
Name of the logical volume, defaults to the container name.
|
lxc_path
|
|
Place container under PATH
|
name
required |
|
Name of a container.
|
state
|
Choices:
started ←
- stopped
- restarted
- absent
- frozen
|
Define the state of a container. If you clone a container using `clone_name` the newly cloned container created in a stopped state. The running container will be stopped while the clone operation is happening and upon completion of the clone the original container state will be restored.
|
template
|
Default:
"ubuntu"
|
Name of the template to use within an LXC create.
|
template_options
|
|
Template options when building the container.
|
thinpool
|
|
Use LVM thin pool called TP.
|
vg_name
|
Default:
"lxc"
|
If Backend store is lvm, specify the name of the volume group.
|
zfs_root
|
|
Create zfs under given zfsroot.
|