Virtual Disk API Programming Guide - Documentation - VMware
Virtual Disk API Programming Guide - Documentation - VMware
Virtual Disk API Programming Guide - Documentation - VMware
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Virtual</strong> <strong>Disk</strong> <strong>Programming</strong> <strong>Guide</strong><br />
<strong>Virtual</strong> <strong>Disk</strong> Library<br />
Vix<strong>Disk</strong>Lib is a standalone wrapper library to help you develop solutions that integrate into <strong>VMware</strong> platform<br />
products. The virtual disk library has the following capabilities:<br />
It allows programs to create, convert, expand, defragment, shrink, and rename virtual disk files.<br />
It can create redo logs (parent‐child disk chaining, or deltas) and can delete VMDK files.<br />
It permits random read/write access to data anywhere in a VMDK file, and reads metadata.<br />
It can connect to remote vSphere storage using advanced transports, SAN or HotAdd.<br />
For Windows, the virtual disk kernel‐mode driver is 32‐bit or 64‐bit depending on the underlying system.<br />
User‐mode libraries are 32‐bit because Windows On Windows 64 can run 32‐bit programs without alteration.<br />
For Linux, both 32‐bit and 64‐bit user‐mode libraries are provided.<br />
<strong>Disk</strong> Mount Library<br />
The virtual disk mount library, vixMntapi, allows programmatic access of virtual disks as if they were<br />
mounted disk partitions. For more information see Appendix A, “<strong>Virtual</strong> <strong>Disk</strong> Mount <strong>API</strong>,” on page 87. The<br />
vixMntapi library is packaged in the VDDK with vix<strong>Disk</strong>Lib.<br />
<strong>Virtual</strong> <strong>Disk</strong> Utilities<br />
The <strong>Virtual</strong> <strong>Disk</strong> Development Kit includes two command‐line utilities for managing virtual disk: disk mount<br />
and virtual disk manager. The virtual disk manager has been included with <strong>VMware</strong> Server and Workstation.<br />
<strong>Disk</strong> mount is available in the <strong>Virtual</strong> <strong>Disk</strong> Development Kit.<br />
<strong>VMware</strong> disk mount (vmware-mount) is a utility for Windows and Linux hosts. If a virtual disk is not in use,<br />
the utility mounts it as an independent disk volume, so it can be examined outside its original virtual machine.<br />
You can also mount specific volumes of a virtual disk if the virtual disk is partitioned.<br />
<strong>VMware</strong> virtual disk manager (vmware-vdiskmanager) is a command‐line utility for Windows and Linux<br />
hosts. It allows you to create, convert, expand, defragment, shrink, and rename virtual disk files. It does not<br />
have a facility to create redo logs or snapshots.<br />
For more information see the <strong>Disk</strong> Mount and <strong>Virtual</strong> <strong>Disk</strong> Manager User’s <strong>Guide</strong>, which is available on the Web.<br />
Backup and Restore on vSphere<br />
The <strong>VMware</strong> Storage <strong>API</strong>s – Data Protection (VADP) is a collection of <strong>API</strong>s that are useful for developing or<br />
extending backup software so it can protect virtual machines running on ESX/ESXi hosts in <strong>VMware</strong> based<br />
datacenters. For more information see Chapter 7, “Designing vSphere Backup Solutions,” on page 57.<br />
Backup Design for vCloud Director<br />
With <strong>VMware</strong> vCloud ® , the self‐service capabilities of vCloud Director provide three levels of data protection.<br />
Backup providers can offer vApp protection at the system level, the tenant level, or the end‐user level. For<br />
information about vCloud data protection, see the technical note Backup Design for vCloud Tenant vApps.<br />
Use Cases for the <strong>Virtual</strong> <strong>Disk</strong> Library<br />
The VDDK provides easy access to virtual disk storage, enabling a wide range of use cases for application<br />
vendors including:<br />
Back up a particular volume, or all volumes, associated with a virtual machine.<br />
Connect a backup proxy to vSphere and back up all virtual machines on a storage cluster.<br />
Read virtual disk and run off‐line centralized anti‐virus scanning of virtual machines.<br />
Read virtual disk and run software package analysis of virtual machines.<br />
12 <strong>VMware</strong>, Inc.