Previous Topic: dpmhyperv CreateTemplateFromVM Command--Create a Template from a VMNext Topic: dpmhyperv CreateVirtFloppy Command--Create a Virtual Floppy Disk Image


dpmhyperv CreateVirtDisk Command--Create a Virtual Disk Image

The dpmhyperv CreateVirtDisk command lets you create a virtual disk image on a Hyper-V host.

This command has the following format:

dpmhyperv CreateVirtDisk 
[-ws_user username] 
[-ws_password password] 
[-ws_encrypted_password] 
-hypervHost hostname 
-path location 
-diskType {dynamic|fixed}
-size drive_size 
[-async] 
[-pre] 
[-post]
[-locale iso639value]
-ws_user username

(Optional) Specifies the CA Virtual Assurance user name.

-ws_password password

(Optional) Specifies the CA Virtual Assurance user password.

-ws_encrypted_password

(Optional) Indicates whether the CA Virtual Assurance password is encrypted.

-hypervHost hostname

Specifies the name of the Hyper-V host.

-path location

Defines the full path of the virtual disk image.

-diskType {fixed|dynamic}

Specifies the type of the virtual disk image. Options include the following:

fixed

Indicates that the disk is of fixed size and cannot be increased later.

dynamic

Indicates that the disk is of dynamic size and can be increased later on as required.

-size drive_size

Specifies the size of the drive in GB.

Note: The size of the disk can be changed later on.

-async

(Optional) Runs the command in the asynchronous mode.

-pre

(Optional) Generates an event before the operation is complete.

-post

(Optional) Generates an event after the operation is complete.

-locale iso639value

(Optional) Specifies an IS0 639_3166 combination to override the default English output, for example, fr_FR for French. To use the locale of the command prompt, specify "native".

Example: Create a Virtual Disk Image

This example creates a virtual disk, "01.vhd" of 5 GB.

dpmhyperv CreateVirtDisk -hypervHost hvserver -path C:\data\Disks\01.vhd -type dynamic -size 5 -async