Skip to content
Permalink
Browse files

Strip nvram from OVA

  • Loading branch information...
Cat5TV committed Jun 2, 2019
1 parent 6d0625a commit de10fc0c8f9f407504e3738e28cdec6c2e39c6eb
Showing with 1 addition and 1 deletion.
  1. +1 −1 notes/vm/Virtual Appliance.md
@@ -6,7 +6,7 @@
- Halt the machine
- Remove Optical drive and USB 2.0 controller
- Export to OVA using [OVF Tool](https://my.vmware.com/group/vmware/details?downloadGroup=OVFTOOL430&productId=742)
- Linux: `ovftool --noSSLVerify --shaAlgorithm=SHA1 "vi://root@10.0.0.3/NEMS Linux 1.5" NEMS.ova` - Using SHA1 to ensure compatibility with older ESXi where SHA256 is not available.
- `ovftool --noSSLVerify --shaAlgorithm=SHA1 "vi://root@10.0.0.3/NEMS Linux 1.5" NEMS.ova && mkdir ova-working && cd ova-working && tar -xf ../nems.ova && sed -i -E "/nvram/d" *.ovf && sed -i "/\.ovf/s/= .*/= `sha1sum *.ovf |cut -d " " -f 1`/;/nvram/d" *.mf && rm -f *.nvram && tar -cf ../nems.ova * && cd .. && rm -rf ova-working`
- VHD:
- Extract VMDK file from OVA.
- With VirtualBox installed, convert the VMDK file with the following command: `"c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" clonemedium --format vhd NEMS-disk1.vmdk NEMS.vhd`

0 comments on commit de10fc0

Please sign in to comment.
You can’t perform that action at this time.