NAME

vdiskcreate.pl - Create a new virtual disk on a virtual machine.


SYNOPSIS

 vdiskcreate.pl [options]


DESCRIPTION

This VI Perl command-line utility 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.


OPTIONS

GENERAL OPTIONS

vmname

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

filename

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

disksize

Optional. Capacity of virtual disk in MB.

nopersist

Optional. To specify whether the changes on the virtual disk retained after the virtual machine is powered off.

independent

Optional. To specify whether disks gets affected by snapshots or not.

backingtype

Optional. Information about a file backing for a device in a virtual machine.


EXAMPLES

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


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.