Creates a virtual disk.
Syntax
create VirtualDisk
size=
value
shareable=
{
Yes
|
No
}
sparse=
{
Yes
|
No
}
name=
[
value
description=
]
value
on Repository
instance
Where
is:
instance
{
id=
|
value
name=
}value
Description
This command creates a virtual disk in a storage repository.
Options
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.
Examples
Example A.65 Creating a virtual disk in a storage repository
OVM> create VirtualDisk name=MyVMDisk size=10 sparse=Yes shareable=No on Repository \ name=MyRepository