$ tar -xvf vmName.ova
$ vi vmName.ovf
$ sha1sum vmName.ovf
$ vi vmName.mf
$ tar -cvf vmName-NEW.ova vmName.ovf vmName-disk1.vmdk vmName.mf
$ tar -xvf vmName.ova
$ vi vmName.ovf
$ sha1sum vmName.ovf
$ vi vmName.mf
$ tar -cvf vmName-NEW.ova vmName.ovf vmName-disk1.vmdk vmName.mf
tar -cvf vmName-NEW.ova vmName.ovf vmName-disk1.vmdk vmName.mf
- no comma needed
OK~ Thanks!!!
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.
Figured I'd put this here as well. Looks like more recent version of ESXi/vCenter require sha256.
Just a note for anybody that needs as much sleep as I do...
Make sure you run the command in the same directory the ovf
, mf
, and vmdk
files are in.
Like this: tar -cvf nixos.ova .*.{ovf,vmdk,mf}
Not like this: tar -cvf nixos.ova ../nix-build-fix-esxi-image.drv-0/ova/*.{ovf,vmdk,mf}
Otherwise, the resulting ovf
will be looking for the VMDK in a non-existent directory... 😪
to save time for those using mac. As mentioned by @ParadingLunatic ovf hash needs uses sha256 on newer releases. Here is the command for Mac Catalina
$ shasum -a 256 vmName.ovf
On MacOS 10.15 i had to use
tar -cvf vmName-NEW.ova --format=ustar vmName.ovf vmName-disk1.vmdk vmName.mfto get it imported.
Thanks! The --format=ustar
made the difference for me
tar -cvf vmName-NEW.ova vmName.ovf vmName-disk1.vmdk vmName.mf
- no comma needed