Skip to content

Instantly share code, notes, and snippets.

@robinsmidsrod
Created May 16, 2016 11:47
Show Gist options
  • Save robinsmidsrod/360eef74b6a41d08118dd526fbab77bd to your computer and use it in GitHub Desktop.
Save robinsmidsrod/360eef74b6a41d08118dd526fbab77bd to your computer and use it in GitHub Desktop.
Build script for custom iPXE ROM for VirtualBox
make_vbox() {
pushd "$HOME/src/forked/ipxe/src" >/dev/null &&
#make bin/intel--virtio-net--pcnet32.dsk EMBED=../nic-menu.ipxe &&
make CONFIG=vbox bin/intel--virtio-net--pcnet32.isarom && #EMBED=config/vbox/embedded.ipxe &&
#perl util/padimg.pl --verbose --blksize 4096 bin/intel--virtio-net--pcnet32.isarom &&
echo "Max size of VirtualBox ROM is 56KB, 57344 bytes" &&
ls -l bin/intel--virtio-net--pcnet32.isarom &&
prefix=$(date +%Y%m%d-%H%M%S) &&
mkdir -p /ipxe/$prefix &&
cp -v bin/intel--virtio-net--pcnet32.isarom /ipxe/$prefix/ &&
echo -e "@echo off\r\nvboxmanage setextradata global VBoxInternal/Devices/pcbios/0/Config/LanBootRom C:\\Programs\\iPXE\\$prefix\\intel--virtio-net--pcnet32.isarom\r\nvboxmanage getextradata global enumerate\r\n" >/ipxe/setvboxrom.bat &&
popd >/dev/null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment