clonepxe
is a minimal Linux image that allows to clone and restore disk images over the network. It is made to boot from the network (using PXE). This allows to quickly restore an image on multiple computers, like a classroom for example...
In the instructions below, we assume the IP address of the server is 192.168.1.10
...
clonepxe
entry to your iPXE menu, so it should look like this:#!ipxe
menu Select boot option
item clonepxe Start clonepxe
item exit Exit iPXE and continue normal boot
item reboot Reboot
choose --default exit --timeout 10000 option && goto ${option}
:clonepxe
kernel http://192.168.1.10/clonepxe/bzImage.efi
initrd http://192.168.1.10/clonepxe/initramfs.cpio.gz
imgargs bzImage.efi initrd=initramfs.cpio.gz ip=dhcp video=efifb
boot
:reboot
reboot
:exit
exit 1
bzImage.efi
and initramfs.cpio.gz
) in the appropriate directory:wget https://gitlab.cylab.be/api/v4/projects/806/packages/generic/clonepxe/latest/clonepxe.zip
unzip clonepxe.zip
sudo cp -f bzImage.efi initramfs.cpio.gz /srv/http/clonepxe/
If you prefer to build bzImage.efi
and initramfs.cpio.gz
yourself...
Install prerequisites:
make prerequisites
Build the kernel and initramfs:
make
This will build
bzImage
: the kernelinitramfs.cpio.gz
: the compressed initramfs imageYou can also quickly test with qemu:
make qemu
You can stop qemu by hitting ctrl + a
and then x