.\" Manpage for vmdk-convert .TH VMDK-CONVERT 1 "September 2025" "open-vmdk 0.3.12" "User Commands" .SH NAME vmdk-convert \- Convert raw disk images or VMFS extents to streamable VMDK images .SH SYNOPSIS .B vmdk-convert [\fB-t\fR \fItools_version\fR] \fIinput_file\fR [\fIoutput_file\fR] .SH DESCRIPTION The .B vmdk-convert command converts raw disk images or VMFS virtual machine disk extents into streamable VMDK images compatible with VMware products. It can also set the VMware Tools version in the disk metadata. .SH OPTIONS .TP \fB-t\fR \fItools_version\fR Set the VMware Tools version installed in the virtual machine disk. The tools version is a number calculated from the version string x.y.z using: 1024*x + 32*y + z. Example: version 12.1.5 → 1024*12 + 32*1 + 5 = 12325. Default: 2147483647 (MAXINT, 2^31-1). .SH EXAMPLES .SS Convert a new raw disk image to VMDK (as root): .nf $ dd if=/dev/zero of=testvm.img bs=1M count=4096 $ LOOP_DEVICE=$(losetup --show -f testvm.img) .fi Format disk to loop device and install OS into image .nf $ losetup -d $LOOP_DEVICE $ vmdk-convert testvm.img testvm.vmdk .fi Set the VMware Tools version in an existing VMDK: .nf $ vmdk-convert -t 12325 testvm-flat.vmdk disk1.vmdk .fi .SS Create VMDK disk from an existing vSphere virtual machine: Presume the virtual machine's name is testvm, and virtual machine files include: .RS testvm-312d29db.hlog testvm-flat.vmdk testvm.nvram testvm.vmdk testvm.vmsd testvm.vmx vmware.log .RE .PP Copy testvm folder to $TESTSVM_PATH Convert vmfs raw data extent file of the VM to OVF streaming format. .nf $ cd $TESTSVM_PATH $ vmdk-convert testvm-flat.vmdk .fi After converting, a new vmdk file dst.vmdk will be created under $TESTSVM_PATH folder. Or, you can specify the new vmdk file name by running .nf $ vmdk-convert testvm-flat.vmdk disk1.vmdk .fi .SH SEE ALSO .B mkova (1), .B ova-compose (1), .B ovfenv (1) .SH AUTHOR Written by Mégane Vilain .SH REPORTING BUGS Report bugs to . .SH COPYRIGHT Copyright © 2025 Mégane Vilain Licensed under the Apache License, Version 2.0.