Changes

Jump to: navigation, search

Command Line Management of VMware Virtual Disks

548 bytes added, 18:48, 29 May 2016
m
Text replacement - "<google>BUY_VMWARE_SERVER_2_BOTTOM</google>" to "<htmlet>vmware</htmlet>"
<table border="0" cellspacing="0" width="100%">
<tr>
<td width="20%">[[Managing VMware Server 2.0 Virtual Disks|Previous]]<td align="center">[[VMware Server 2.0 Essentials|Table of Contents]]<td width="20%" align="right">[[VMware Server 2.0 Security - Access, Roles and Permissions|Next]]</td>
<tr>
<td width="20%">Managing VMware Server 2.0 Virtual Disks<td align="center"><td width="20%" align="right">VMware Server 2.0 Security - Access, Roles and Permissions</td>
</table>
<hr>
 
 
<htmlet>vmware</htmlet>
 
 
The previous chapter covered the management of VMware virtual disks using the VI Web Access interface and VMware Tools. VMware also provides the option to perform a wide range of virtual disk management tasks from the command line using the Virtual Disk Manager tool (''vmware-vdiskmanager'').
== The VMware Virtual Disk Manager Command Line Tool ==
The VMware Virtual Disk Manager command line tool is installed by default along with VMware products such as VMware Server. The executable file is named ''vmware-vdiskmanager'' and is installing in ''Program Files\VMware\VMware Server'' on Windows hosts, and ''/usr/bin'' on Linux. The tool accepts a wide range of command line arguments, a summary of which may be obtained by running the tool with no command-line arguments:
<pre>
== Shrinking a Virtual Disk ==
Shrinking a virtual disk involves the reduction in size of a virtual disk image file by discarding unallocated space in the virtual disk. The process reduces the amount of space the virtual disk uses on the host, but does not change the size of the disk as far as the guest operating systems which use the disk are concerned. When more disk space is needed by a guest, VMware will automatically increase the size of the virtual disk file accordingly, until the maximize maximum specified size of the virtual disk is reached.
The amount by which a virtual disk file can be reduced depends entirely on the amount of unallocated space available and cannot be specified by the user. Only ''growable'' virtual disks may be shrunk. Before a ''pre-allocated'' disk can be shrunk it must first be converted using the steps outlined previously in this chapter. A further restriction is that there must be no snapshots of the virtual disk. If snapshots exist, they should be removed prior to performing the shrink operation.
vmware-vdiskmanager -d win2008.vmdk
</pre>
 
 
<htmlet>vmware</htmlet>

Navigation menu