Previous page

Next page

Locate page in Contents

Virtual hard disk

Add a hard disk

--device-add hdd [ --image < image_name >] [ --type < expand | plain >] [ --size < n >] [ --split ]

[ --iface < ide | scsi | sata >] [ --position < n >]

[ --subtype < buslogic | lsi-spi | lsi-sas >]

[ --online-compact < on | off >]

Modify a hard disk

--device-set < hdd_name > [ --image < image_name >] [ --type < expand | plain >]

[ --size < n >] [ --split ] [ --iface < ide | scsi | sata >] [ --position < n >]

[ --subtype < buslogic | lsi-spi | lsi-sas >] [ --online-compact < on | off >]

Parameters

hdd_name: The name of the virtual hard disk to modify (- -device-set command only). Virtual hard disks are named using the hddN format where N is the drive index number starting from 0 (e.g. hdd0, hdd1). To obtain the list of disk names, use the prlctl list --info command.

--image : specifies the name of the file to be used for emulating the VM virtual disk drive. If this option is omitted, a new file is created inside the directory storing all VM-related configuration files and assigned the name of harddiskN.hdd .

--type : specifies the type of the virtual disk from one of the following:

  • expand (default) : virtual disks of this type are small initially and grow in size as you add data to it.
  • plain : virtual disks of this type have a fixed size from the moment of their creation.

--size : hard disk size, in megabytes.

--split : splits the hard disk into 2 Gb pieces.

--iface : virtual hard disk interface type: ide , scsi , or sata .

--position : the SCSI / IDE / SATA device identifier to be used for the disk drive. Allowed ranges:

  • 0-3 for IDE disk drives
  • 0-6 for SCSI disk drives
  • 0-5 for SATA disk drives

--subtype : virtual hard disk subtype: buslogic , lsi-spi , lsi-sas .

--online-compact : enables or disables virtual hard disk online compact mode.