6.0.1

Table Of Contents
You can congure a virtual machine to use this virtual disk by adding lines to the virtual machine
conguration le, as in the following example:
scsi0:0.present = TRUE
scsi0:0.fileName = /vmfs/volumes/myVMFS/myOS.vmdk
If you want to convert the format of the disk or change the adapter type, use the -d|--diskformat and the -
a|--adaptertype suboptions. For example:
vmkfstools -i /vmfs/volumes/myVMFS/templates/gold-master.vmdk /vmfs/volumes/myVMFS/myOS.vmdk -d
thin -a buslogic
Migrate Virtual Machines Between DifferentVMware Products
Typically, you use VMware Converter to migrate virtual machines from other VMware products into your
ESXi system. However, you can use the vmkfstools -i command to import virtual disks in 2gbsparse format
into ESXi and then aach this disk to a new virtual machine you create in ESXi.
You must import the virtual disk rst because you cannot power on disks in 2gbsparse format on the ESXi
host.
Procedure
1 Import a disk in 2gbsparse format into the ESXi host by running the following command. Make sure to
select the disk format compatible with ESXi.
vmkfstools -i <input> <output> -d <format>
2 Use the vSphere Web Client to aach the disk you imported to a virtual machine in ESXi.
For information, see the vSphere Virtual Machine Administration.
Extending a Virtual Disk
This option extends the size of a disk allocated to a virtual machine after the virtual machine has been
created.
-X --extendvirtualdisk newSize [kK|mM|gG]
You must power o the virtual machine that uses this disk le before you enter this command. You might
have to update the le system on the disk so the guest operating system can recognize and use the new size
of the disk and take advantage of the extra space.
N You cannot hot-extend virtual SATA disks, or any virtual disk if the capacity after extension is equal
to or greater than 2TB.
You specify the newSize parameter in kilobytes, megabytes, or gigabytes by adding a k (kilobytes), m
(megabytes), or g (gigabytes) sux. The unit type is not case sensitive. vmkfstools interprets either k or K to
mean kilobytes. If you don’t specify a unit type, vmkfstools defaults to kilobytes.
The newSize parameter denes the entire new size, not just the increment you add to the disk.
For example, to extend a 4g virtual disk by 1g, enter: vmkfstools -X 5g disk name.
You can extend the virtual disk to the eagerzeroedthick format by using the -d eagerzeroedthick option.
N Do not extend the base disk of a virtual machine that has snapshots associated with it. If you do, you
can no longer commit the snapshot or revert the base disk to its original size.
Upgrading Virtual Disks
This option converts the specied virtual disk le from ESX Server 2 format to the ESXi format.
-M --migratevirtualdisk
vSphere Storage
290 VMware, Inc.