Use the vmkfstools command to create a virtual disk.

-c --createvirtualdisk size[kK|mM|gG]
      -a --adaptertype [buslogic|lsilogic|ide|lsisas|pvscsi] srcfile
      -d --diskformat [thin|zeroedthick|eagerzeroedthick]
      -W --objecttype [file|vsan|vvol]
      --policyFile fileName

This option creates a virtual disk at the specified path on a datastore. Specify the size of the virtual disk. When you enter the value for size, you can indicate the unit type by adding a suffix of k (kilobytes), m (megabytes), or g (gigabytes). The unit type is not case sensitive. vmkfstools interprets either k or K to mean kilobytes. If you don’t specify a unit type, vmkfstools defaults to bytes.

You can specify the following suboptions with the -c option.

  • -a specifies the controller that a virtual machine uses to communicate with the virtual disks. You can choose between BusLogic, LSI Logic, IDE, LSI Logic SAS, and VMware Paravirtual SCSI.

  • -d specifies disk formats.

  • -W specifies whether the virtual disk is a file on VMFS or NFS datastore, or an object on a Virtual SAN or Virtual Volumes datastore.

  • --policyFile fileName specifies VM storage policy for the disk.