Introduction
The manifest of an OVF package is a text file with the extension
.mf and the same base name as the .ovf descriptor, beside it. It lists the digest
of each file of the package, so that a consumer can check that nothing changed. The DMTF's Open
Virtualization Format specification (DSP0243, clause 5.1) defines it. The text below was checked on 2026-11-19 against the PDFs of
DSP0243 1.0.0, 1.1.0, 1.1.1, 2.0.0, 2.0.1, 2.1.0 and 2.1.1, fetched from dmtf.org and converted to text with PDFKit
(the project script scripts/hex/pdf-text.swift); version 3.0 could not be fetched (the dmtf.org file name
tried gave 404), so a 3.x change would not be shown here.
The extension is also used by other things, notably Java's META-INF/MANIFEST.MF, which is a
different format; the explorer takes a .mf file for an OVF manifest only if every line has
the form below.
Structure
The grammar, in the specification's ABNF (rules separated by | are choices; characters are
case-sensitive; blanks allowed between elements):
manifest_file = *( file_digest )
file_digest = algorithm "(" file_name ")" "=" sp digest nl
algorithm = "SHA1" | "SHA256"
digest = *( hex-digit ) ; hex-digit = "0" … "9" | "a" … "f"
sp = %x20
nl = %x0A
SHA256(package.ovf)= 9902cc5ec4f4a00cabbff7b60d039263587ab430d5fbdbc5cd5e8707391c90a4
SHA256(vmdisk.vmdk)= aab66c4d70e17cec2236a651a3fc618cafc5ec6424122904dc0b9c286fce40c2
Annex A of DSP0243 says its ABNF differs from RFC 5234 in three ways: alternatives are separated by | rather than
/; characters are processed case-sensitively (so the algorithm name is upper case and the hex digits are
lower case only); and whitespace, meaning the space U+0020 and the tab U+0009, is allowed between the syntactical elements.
So SHA256 ( a.vmdk ) = 3f… follows the grammar as much as the usual form does. The grammar does not define
file_name, so what characters a name may hold is not specified beyond its being the
ovf:href value (see below); and it ends every entry with a line feed (%x0A) alone, which is why a
CR LF line ending is reported.
Rules
- An OVF package may have a manifest, and it may have none (“zero or one OVF manifest”). The extensions
.ovf,.mfand.certshall be used. - Packages written to the 2.x specifications shall use SHA256 digests (2.0.x: “older OVF packages are allowed to use SHA1”); SHA1 is also allowed by the grammar.
- The file shall have the extension
.mfand the same base name as the.ovf, and be a sibling of it. - It shall contain a digest for every distinct file referenced in the References element of the descriptor, and for no other file. The manifest and the certificate shall not be listed in References (so that the descriptor does not depend on whether the package has a manifest or is signed). The specification’s own example (its D.1) nevertheless lists
package.ovf, which is not in References; the specification does not reconcile the two, so whether the descriptor’s digest is listed is not settled by the text. Packages and the example list it, and the viewer accepts either. - The file name in each entry matches the value of the
ovf:hrefattribute of its File element (anhttporhttpsURL stays a URL, and a relative path may hold directories but no..segments); for a file split into chunks (ovf:chunkSize), the chunk URL is used, that ishref, a dot and a 9-digit decimal chunk number from000000000, and the manifest holds an entry for each chunk. For a chunked file the manifest is allowed to hold an entry for the entire file as well, and that digest shall also be verified (the specification’s D.4 example shows the chunk entries and an entry for a URL name). Two File elements may not reference the same file, so a file does not appear twice. - A consumer of the package should verify the digests (2.1.0 and 2.1.1); in 1.x and 2.0.x the text says shall. It does so by computing the actual digests of the files and comparing them with the listed ones.
- The digest length is not fixed by the 2.x grammar (
*( hex-digit )); in 1.0.0, 1.1.0 and 1.1.1 it was40( hex-digit ), “160-bit digest in 40-digit hexadecimal”, and the only algorithm was SHA1. The lengths 40 for SHA1 and 64 for SHA256 follow from the algorithms (160 and 256 bits), not from the text. - The manifest can be signed: the certificate holds the signed digest of the manifest. If there is no certificate the manifest is itself optional (1.x text); if either is present, in 1.x both come right after the descriptor or both at the end of the archive.
- In a single-file package (
.ova, a USTAR tar archive, ISO/IEC/IEEE 9945:2009) an entry exists only once, and the order of the entries is one of: descriptor, then the other files in the order of References; descriptor, manifest, certificate, then the rest; or descriptor, the rest, then manifest and certificate (2.1.1; 1.x lists the manifest and certificate as optional in the two positions). This lets a reader get the descriptor without scanning the archive. - The extensions
.mfand.certmay be used for other files in a package, as long as they are not at the sibling names where they would be read as the package manifest or certificate.
Differences between versions
| DSP0243 | Algorithms | Digest grammar | Verification |
|---|---|---|---|
| 1.0.0 | SHA1 (“SHA-1”) | 40( hex-digit ) | shall verify |
| 1.1.0, 1.1.1 | SHA1 | 40( hex-digit ) | shall verify |
| 2.0.0, 2.0.1 | SHA1 and SHA256; new packages shall use SHA256 | *( hex-digit ) | shall verify |
| 2.1.0, 2.1.1 | SHA1 and SHA256; shall use SHA256 | *( hex-digit ) | should verify |
Read from the converted text of each PDF. In the 1.x text the manifest section says only “the SHA-1 digests of individual files in the package”; the
sentence “all distinct files referenced in the References element … and for no other files” first appears in 2.0.x.
The “sibling of the .ovf file” and the .mf extension rules are in 1.1.0 and later; 1.0.0 asks only for the same base name.
The viewer lists the digests and reports lines that are not of the form, a digest of the wrong length, a line ending in CR LF, and a file listed twice. It does not compute the digests.
Not described
Known, not yet covered
- Viewer: the digests are shown but not verified against the package's files (that needs the files, which a manifest opened alone does not have, and a hash of each one).
- Reference: OVF 3.x (DSP0243 3.0.0 and later) was not read, because dmtf.org did not serve it under the file name tried and the other sources found are secondary; if it adds algorithms (for example SHA512) or changes the manifest rules, they are not described here.
- Reference: the characters a
file_namemay hold, and how a name with a space or a parenthesis is written, are not defined by the grammar in any DSP0243 version read (1.0.0 to 2.1.1); how the OVF Tool and other implementations write and parse such names has not been looked up.
Links
Software
- OVF Tool – VMware's command-line tool that makes and checks OVF and OVA packages (Windows, macOS, Linux)
Reference
- Open Virtualization Format – the DMTF's page for DSP0243