Skip to content

Instantly share code, notes, and snippets.

Avatar

T. "paina" SATO paina

View GitHub Profile
@paina
paina / internetsim-vmware-hack.sh
Last active Aug 24, 2018
Fixes VITOCHA OVA Image to work with VMware Fusion
View internetsim-vmware-hack.sh
#!/bin/sh
ORIGINAL_OVA=${1:-./InternetSim.ova}
DESTDIR=${2:-.}
tar -C $DESTDIR -xvf $ORIGINAL_OVA
cp -ip $DESTDIR/InternetSim.ovf $DESTDIR/InternetSim.ovf_ORG
sed -i "" 's/ovf:capacity="19326328320"/ovf:capacity="18" ovf:capacityAllocationUnits="GigaBytes"/' $DESTDIR/InternetSim.ovf
sed -i "" 's/ovf:capacity="21474836480"/ovf:capacity="20" ovf:capacityAllocationUnits="GigaBytes"/' $DESTDIR/InternetSim.ovf
You can’t perform that action at this time.