The following instructions will allow you to netboot the Urbackup restoration CD/ISO using netboot.xyz and were derived from info at:
Note
These instructions assume you are using the Netboot.xyz Docker container.
-
Download the USB/CD boot iso from:
https://hndl.urbackup.org/Restore/urbackup_restore_2.4.2.iso (64bit ISO)
-
Extract
initrd.img
,vmlinuz
andfilesystem.squashfs
fromurbackup_restore_2.4.2.iso\live\
with 7zip or similar. -
Upload these files to your netboot.xyz asset mirror e.g. to
/mnt/netboot/asset-mirror/releases/urbackup
-
Create a new ipxe file called
urbackuprestore.ipxe
and add the following content amending thelive_endpoint
and folder paths as required:
#!ipxe
set live_endpoint http://192.168.1.250:8484
set squash_url ${live_endpoint}/asset-mirror/releases/urbackup/filesystem.squashfs
set kernel_url ${live_endpoint}/asset-mirror/releases/urbackup/vmlinuz
set initrd_url ${live_endpoint}/asset-mirror/releases/urbackup/initrd.img
goto boot
:boot
imgfree
kernel ${kernel_url} boot=live config username=urbackup fetch=${squash_url}
initrd ${initrd_url}
boot
- Add a custom ipxe file for the machine you want to netboot with Urbackup using the MAC address, e.g.
MAC-4e1de17bfe26.ipxe
- Add the following content to the file, adjusting hostnames or paths appropriately:
#!ipxe
chain urbackuprestore.ipxe
- Now netboot the machine.
Note
As there are multiple machine architectures/boot methods and we have only downloaded the 64bit ISO above, these instructions apply to the utils-efi.ipxe
and utils-pcbios-64.ipxe
utilities menu files.
If you want to make a netboot available for the other architectures you will need to create another urbackuprestore.ipxe
using the matching bit value (e.g. 32 bit) or architecture (e.g. ARM) initrd.img
, vmlinuz
and filesystem.squashfs
files then edit the matching utilities menu, e.g. utils-arm.ipxe
and utils-pcbios-32.ipxe
.
- Open the
utils-efi.ipxe
andutils-pcbios-64.ipxe
and first insert the Urbackup "item" between theitem --gap Utilities:
anditem --gap netboot.xyz tools:
lines:
item urbackup ${space} Urbackup
- Second, add the matching definition to chain boot the
urbackuprestore.ipxe
file just before the:utils_exit
section:
:urbackup
chain urbackuprestore.ipxe
goto utils_exit
Warning
You must avoid pasting in where this would break the syntax of other configuration blocks. If you make a mistake and need to revert, you can revert the file to the original with the revert/delete button.