vmdisk.pl - Create a new virtual disk on a Virtual Machine.
This VI Perl command-line utility provides an interface to create virtual disk on virtual machine. 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.
Required. Name of the datastore.
Required. Name of the host file used as a backing for the virtual disk to be created.
Required. Capacity of virtual disk in MB.
Create a new virtual disk on virtual machine myVM:
vmdisk.pl --url https://<host>:<port>/sdk/vimService --username myuser --password mypassword --vmname myVM --host hostName --datastore datastorename --filename filename -disksize 1024
All operations work with VMware VirtualCenter 2.0.1 or later.
All operations work with VMware ESX server 3.0.1 or later.