Previous page

Next page

Locate page in Contents

Adding a Virtual 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 >]

Parameters

image_name : 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.