[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Adding support for ONIE to Debian Live



Hi all,

I've got a feature that we developed at $work to contribute. Most of
the work was done by my colleague at Vyatta, Erik (CC'ed). I've rebased
and refreshed and re-tested the patches.

The feature is native support for the ONIE environment.

Open Network Install Environment is an open image format used by
networking vendor to ship a standardised image for networking white box
switches that can be deployed in an automated fashion and so on.

ONIE hardware takes this image at boot and the embedded script will
chain load into the final environment via kexec. We can support Debian
and derivatives on such systems by packing an ISO which then gets
unpacked, kexec'ed and live-booted as described.

A base ONIE system can be tested in QEMU by building a VM following
these instrunctions:

https://github.com/opencomputeproject/onie/blob/master/machine/kvm_x86_64/INSTALL

Once built, boot onie-recovery-x86_64-kvm_x86_64-r0.iso in QEMU/libvirt
and on the console there will be the terminal prompt. Check the IP
assigned by libvirt and then scp the live image (ssh access is enabled
as root without password...). Then the .bin can be booted with:
  ONIE-RECOVERY:/ # onie-nos-install /tmp/live.hybrid.iso-ONIE.bin

I hope this can be useful for others. For example I know Cumulus Linux
is Debian-based, and they are one of the main sponsors behind this
project.

The major change is in live-build:

https://salsa.debian.org/live-team/live-build/merge_requests/4

A new optional binary script is added. It is completely self-contained, 
apart from the usual boilerplate to add the option.

A small fix is also necessary in live-boot, to make it happy to boot a
local ISO:

https://salsa.debian.org/live-team/live-boot/merge_requests/8

I am of course happy to maintain the new binary_onie script going
forward with any future bug fix.

-- 
Kind regards,
Luca Boccassi

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: