Previous page

Next page

Locate page in Contents

Print this page

Adding Multiple Virtual Disks to Containers

Even though new Containers are created with just one virtual hard disk, you can add more disks to a Container and keep the corresponding ploop images at locations of your choice, be it directly attached HDDs or SSDs or Parallels Cloud Storage. Such functionality allows creating more flexible Containers, in which, for example, the operating system is kept on a fast SSD and user content is stored on a capacious HDD or Parallels Cloud Storage.

To add a virtual hard disk to a Container, whether stopped or running, use the prlctl set --device-add hdd command. For example:

# prlctl set 101 --device-add hdd --image /hdd/101 --size 100G --mnt /userdisk

This command adds to the configuration of Container 101 a virtual hard disk with the following parameters:

  • name: hdd <N> where <N> is the next available disk index,
  • image location: /hdd/101 ,
  • size: 102400 MB,
  • mount point inside Container 101: /userdisk . A corresponding entry is also added to Container's /etc/fstab file.

For more information on command parameters, see the Parallels Cloud Server Command Line Reference Guide .