Skip to content

Commit

Permalink
Strip nvram from OVA
Browse files Browse the repository at this point in the history
  • Loading branch information
Cat5TV committed Jun 2, 2019
1 parent 6d0625a commit de10fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes/vm/Virtual Appliance.md
Expand Up @@ -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`
Expand Down

0 comments on commit de10fc0

Please sign in to comment.