Creates a virtual disk.
create VirtualDisk
size=
value
shareable=
{ yes
| no
} sparse=
{ yes
| no
} name=
[value
description=
] value
on Repository
instance
Where
is:
instance
{ id=
| id
name=
}name
This command creates a virtual disk in a storage repository.
The following table shows the available options for this command.
Option | Description |
---|---|
| The size of the virtual disk in GiB. |
| Whether the virtual disk is shareable. Shareable disks have read/write privileges in multiple virtual machines and should be used with caution. |
| Whether to create a sparse or non-sparse virtual disk. |
| A name to identify the virtual disk. |
| Optional description for the virtual disk. |
{ |
The instance of the object using either the
|
Any create command only creates a single instance of an object, and therefore only accepts a single object instance as an attribute. Providing more than one object of the same attribute type as a parameter always results in the last attribute value taking precedence.
Example A.37 Creating a virtual disk in a storage repository
OVM> create VirtualDisk name=MyVMDisk size=10 sparse=yes shareable=no on Repository \ name=MyRepository