Create OpenSwitch VM
- Download onie-kvm.iso
- Create a VM - it must use BIOS boot mode
- WARNING If you are running on VMWare ESXi you must use an IDE hard drive!
- WARNING If you are running on VMWare ESXi you must use the E1000E driver for the network card!
- Boot from the CD, but at the grub menu, hit tab to edit the options and remove all console options
- See: https://askubuntu.com/questions/771871/16-04-virtualbox-vm-from-vhd-file-hangs-at-non-blocking-pool-is-initialized
- Once you drop to the ONIE command line run
sed -i 's/vda/sda/g' /lib/onie/onie-updater
- Workable fix:
sed 's/if \[ "$sha1.*/if false; then/g' /lib/onie/onie-updater
- Run
onie-self-update -e file://lib/onie/onie-updater
- Reboot.
- For whatever reason I couldn't get the discovery process to work so I ran
onie-discovery-stop
- Then run
onie-nos-install http://<SERVER_IP>/onie-installer
Faster fix that didn't work
- Run
sha1sum /lib/onie/onie-updater
and note the sha1 hash
- Run
sed "s/payload\=.*/payload_sha1=<YOURHASH>/g" /lib/onie/onie-updater
- I tried
sed "s/payload\=.*/payload_sha1=$(sha1sum <THING> | cut -d " " -f 1)/g" /lib/onie/onie-updater
and it wouldn't let me do it