Debian Codegraph @

debian/doc/vmdk-convert.1

raw
1 .\" Manpage for vmdk-convert
2 .TH VMDK-CONVERT 1 "September 2025" "open-vmdk 0.3.12" "User Commands"
3 .SH NAME
4 vmdk-convert \- Convert raw disk images or VMFS extents to streamable VMDK images
5
6 .SH SYNOPSIS
7 .B vmdk-convert
8 [\fB-t\fR \fItools_version\fR] \fIinput_file\fR [\fIoutput_file\fR]
9
10 .SH DESCRIPTION
11 The
12 .B vmdk-convert
13 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.
14
15
16 .SH OPTIONS
17 .TP
18 \fB-t\fR \fItools_version\fR
19 Set the VMware Tools version installed in the virtual machine disk.
20 The tools version is a number calculated from the version string x.y.z using: 1024*x + 32*y + z.
21 Example: version 12.1.5 → 1024*12 + 32*1 + 5 = 12325.
22 Default: 2147483647 (MAXINT, 2^31-1).
23
24
25 .SH EXAMPLES
26
27 .SS Convert a new raw disk image to VMDK (as root):
28
29 .nf
30 $ dd if=/dev/zero of=testvm.img bs=1M count=4096
31 $ LOOP_DEVICE=$(losetup --show -f testvm.img)
32 .fi
33
34 Format disk to loop device and install OS into image
35 .nf
36 $ losetup -d $LOOP_DEVICE
37 $ vmdk-convert testvm.img testvm.vmdk
38 .fi
39
40 Set the VMware Tools version in an existing VMDK:
41
42 .nf
43 $ vmdk-convert -t 12325 testvm-flat.vmdk disk1.vmdk
44 .fi
45
46
47 .SS Create VMDK disk from an existing vSphere virtual machine:
48
49 Presume the virtual machine's name is testvm, and virtual machine files include:
50 .RS
51 testvm-312d29db.hlog
52 testvm-flat.vmdk
53 testvm.nvram
54 testvm.vmdk
55 testvm.vmsd
56 testvm.vmx
57 vmware.log
58 .RE
59
60 .PP
61 Copy testvm folder to $TESTSVM_PATH
62 Convert vmfs raw data extent file of the VM to OVF streaming format.
63
64 .nf
65 $ cd $TESTSVM_PATH
66 $ vmdk-convert testvm-flat.vmdk
67 .fi
68
69 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
70
71 .nf
72 $ vmdk-convert testvm-flat.vmdk disk1.vmdk
73 .fi
74
75 .SH SEE ALSO
76 .B mkova (1),
77 .B ova-compose (1),
78 .B ovfenv (1)
79
80 .SH AUTHOR
81 Written by Mégane Vilain <[email protected]>
82
83 .SH REPORTING BUGS
84 Report bugs to <https://github.com/vmware/open-vmdk/issues>.
85
86 .SH COPYRIGHT
87 Copyright © 2025 Mégane Vilain Licensed under the Apache License, Version 2.0.