The IVMHardDisk interface provides access to a hard disk image. It can be accessed through the IVMHardDiskConnection::HardDisk property or the IVMVirtualServer::GetHardDisk method.
Members
The IVMHardDisk interface inherits from the IDispatch interface. IVMHardDisk also has these types of members:
Methods
The IVMHardDisk interface has these methods.
| Method | Description |
|---|---|
| Compact | Compacts a dynamically expanding hard disk image. |
| Convert | Converts a disk image to either a dynamically expanding disk image or a fixed-size disk image. |
| Merge | Merges a differencing hard disk image with its parent disk image. |
| MergeTo | Merges a differencing hard disk image with all of its parents (up to and including the root parent hard disk image) to a new hard disk file. |
Properties
The IVMHardDisk interface has these properties.
| Property | Access type | Description |
|---|---|---|
| File |
Read-only |
The full path name of the current hard disk image file. |
| HostDriveIdentifier |
Read-only |
A string that identifies the host drive linked to by this virtual hard disk image. |
| HostFreeDiskSpace |
Read-only |
The amount of remaining disk space available on the host computer for the current hard disk image file. |
| Parent |
Read-only |
The parent of the current differencing hard disk image. |
| Security |
Read-only |
The virtual hard disk's security object. |
| SizeInGuest |
Read-only |
The size, in bytes, of the hard disk image, as represented in the guest operating system. |
| SizeOnHost |
Read-only |
The size, in bytes, of the hard disk image file on the host computer. |
| Type |
Read-only |
The type of the current hard disk image. |
Requirements
| Product |
Microsoft Virtual Server 2005 onWindows Server 2003 |
| Download |
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003 |
| Header |
|