vdiskcreate.pl - Create a new virtual disk on a virtual machine.
vdiskcreate.pl [options]
This command provides an interface to create virtual disk on a virtual machine. The virtual disk is composed of one or more files on the host file system. Together, these files appear as a single hard disk to the guest operating system.
Required. The name of the virtual machine. It will be used to select the virtual machine.
Required. Name of the host file used as a backing for the virtual disk to be created.
Optional. Capacity of virtual disk in MB.
Optional. To specify whether the changes on the virtual disk retained after the virtual machine is powered off.
Optional. To specify whether disks gets affected by snapshots or not.
Optional. Information about a file backing for a device in a virtual machine.
Create a new virtual disk on virtual machine myVM:
vdiskcreate.pl --url https://<host>:<port>/sdk/vimService --username myuser --password mypassword --vmname myVM --filename filename
Create a new virtual disk on virtual machine myVM using raw disk mapping option:
vdiskcreate.pl --url https://<host>:<port>/sdk/vimService --username myuser --password mypassword --vmname myVM --filename filename -backingtype rdm
Create a new virtual disk on virtual machine myVM with independent option:
vdiskcreate.pl --url https://<host>:<port>/sdk/vimService --username myuser --password mypassword --vmname myVM --filename filename --independent
Create a new virtual disk on virtual machine myVM with nopersistent option:
vdiskcreate.pl --url https://<host>:<port>/sdk/vimService --username myuser --password mypassword --vmname myVM --filename filename --nopersistent