This group of options is used to manage virtual hard disks in a container.
Syntax.
prlctl set <CT_name> --device-add hdd [--image <file>] [--size <size>] [--mnt <path>] [--iface <ide|scsi|virtio>] [--position <pos>] prlctl set <CT_name> --device-set hdd<N> [--image <file>] [--size +<size>] [--mnt <path>] [--iface <ide|scsi|virtio>] [--position <pos>] [--autocompact <on|off>] prlctl set <CT_name> --backup-add <backup_ID> [--disk <disk_name>] prlctl set <CT_name> --device-del hdd<N> [--detach-only|--destroy-image] prlctl set <CT_name> --backup-del {<backup_ID>|all}
Table 3.17. Options
Name | Description |
---|---|
| Container name. |
| Adds a virtual hard disk to the container. If no other options are specified, the command creates a new unmounted disk with the following parameters:
|
| Modifies the parameters of the virtual hard disk NoteNote: For the list of disks, use the |
| Specifies an image file that will be used to emulate the virtual disk.
|
| Specifies the size of the virtual hard disk, in megabytes. |
| Specifies the mount point of the virtual hard disk inside the container. A corresponding entry is also added to container’s |
| Enables or disables compaction for the specified disk in the container. NoteNote: For details on how to enable or disable compaction for all disks in the container, see Section 3.2.11.1, “General Options”. |
| Attach the backup with the identifier |
| Used with |
| Deletes a virtual hard disk from the stopped container. |
| Removes the virtual disk from the container configuration but leaves its image file intact. |
| Removes the virtual disk from the container configuration and deletes its image file. |
| Detach either the backup with the identifier |