Skip to content

Instantly share code, notes, and snippets.

@fb-erik
Forked from goodjob1114/howToModifyOvaFile.md
Last active February 24, 2017 09:40
Show Gist options
  • Select an option

  • Save fb-erik/662303b8f418070c2a940ddc07898a80 to your computer and use it in GitHub Desktop.

Select an option

Save fb-erik/662303b8f418070c2a940ddc07898a80 to your computer and use it in GitHub Desktop.
how to modify .ova file on linux/Mac using terminal....export vm (OVF 1.0) from virtualbox, then modify some tag and hash value for import vm to ESXi

extract ova files from an archive

$ tar -xvf vmName.ova

re-calculate sha1 from vmName.ovf, then modify the hash value of vmName.mf

$ openssl sha1 vmName.ovf
$ openssl sha1 vmName.vmdk
$ subl vmName.mf

package to ova which source files from [vmName.ovf, vmName-disk1.vmdk, vmName.mf]

$ tar -cvf vmName-sha1.ova vmName.ovf vmName-disk1.vmdk vmName.mf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment