NAME

vmdisk.pl - Create a new virtual disk on a Virtual Machine.


SYNOPSIS

 vminfo.pl [options]


DESCRIPTION

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.


OPTIONS

GENERAL OPTIONS

vmname

Required. The name of the virtual machine. It will be used to select the virtual machine.

host

Required. Name of the host.

datastore

Required. Name of the datastore.

filename

Required. Name of the host file used as a backing for the virtual disk to be created.

disksize

Required. Capacity of virtual disk in MB.


EXAMPLES

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


SUPPORTED PLATFORMS

All operations work with VMware VirtualCenter 2.0.1 or later.

All operations work with VMware ESX server 3.0.1 or later.