Skip to content

Instantly share code, notes, and snippets.

@goodjob1114
Last active January 27, 2024 10:49
Show Gist options
  • Star 41 You must be signed in to star a gist
  • Fork 17 You must be signed in to fork a gist
  • Save goodjob1114/9ededff0de32c1119cf7 to your computer and use it in GitHub Desktop.
Save goodjob1114/9ededff0de32c1119cf7 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

modify ovf for some invalid tag

$ vi vmName.ovf

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

$ sha1sum vmName.ovf
$ vi vmName.mf

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

$ tar -cvf vmName-NEW.ova vmName.ovf vmName-disk1.vmdk vmName.mf
@ministryofjay
Copy link

On MacOS 10.15 i had to use

tar -cvf vmName-NEW.ova --format=ustar vmName.ovf vmName-disk1.vmdk vmName.mf

to get it imported.

Thanks! The --format=ustar made the difference for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment