Hi there,
Thanks for reading.
on the back of the drbl and clonezilla integration I would like to accomplish a linux boot using drbl and clonezilla which does not run a 'dhcpdiscover' and instead uses an assigned address from a 'boot.php' embeded script.
essentially my client should boot into ipxe, run a php script and then boot 'clonezilla' or 'distro-blah'
(I did have the clonezilla menu and such working but fiddled and lost the config)
essentially the php script assigned 'ip' should be used to integrate with drbl and mount a 'w/r' FS etc.
always happy to provide more information and/or answer questions?
Thanks,
Alan
NB =
process outline:
* PXE boot, ask for ip
* kea DHCP (server1) gives ip (x) assignment and 'next server' option (server2)
* 'next server' (server2) is contacted and ipxe and script is received
* ipxe script is run; assigns ip (y) from pool via 'boot.php' on server2, declares kernel, initrd and boots
* boot runs 'dhcpdiscover' received (x), negating 'boot.php' assigned ip
* mount of 'node' FS fails for drbl/clonezilla resources on server2 as (x) is blocked
* client drops into 'busybox'
I have never done this before. What I have done before is to use DHCP server to assign the fixed IP address to the specific MAC address.
In your scenario, what need to be done is to pass the IP address in proper syntax from iPXE to the Linux system. Since they are in different stages, and the network configuration can not be passed automatically from early stage (ipxe) to the 2nd stage (GNU/Linux).
So now you can try to pass the network configuration to the Linux kernel boot parameters, follow "ip" parameter in live-boot: https://manpages.debian.org/testing/live-boot-doc/live-boot.7.en.html#ip
It should work I believe.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi there,
Thanks for reading.
on the back of the drbl and clonezilla integration I would like to accomplish a linux boot using drbl and clonezilla which does not run a 'dhcpdiscover' and instead uses an assigned address from a 'boot.php' embeded script.
essentially my client should boot into ipxe, run a php script and then boot 'clonezilla' or 'distro-blah'
(I did have the clonezilla menu and such working but fiddled and lost the config)
essentially the php script assigned 'ip' should be used to integrate with drbl and mount a 'w/r' FS etc.
always happy to provide more information and/or answer questions?
Thanks,
Alan
NB =
process outline:
* PXE boot, ask for ip
* kea DHCP (server1) gives ip (x) assignment and 'next server' option (server2)
* 'next server' (server2) is contacted and ipxe and script is received
* ipxe script is run; assigns ip (y) from pool via 'boot.php' on server2, declares kernel, initrd and boots
* boot runs 'dhcpdiscover' received (x), negating 'boot.php' assigned ip
* mount of 'node' FS fails for drbl/clonezilla resources on server2 as (x) is blocked
* client drops into 'busybox'
ipxe file;
**#!ipxe
obtain ip from proxy dhcp
:start
ifconf -c dhcp && isset ${filename} || goto start
:boot
boot script from php server
chain http://192.168.3.199/boot.php?mac=${net0/mac}
:failure
echo Failure!
sleep 5
For Troubleshooting after Failure...
shell
php file;
~~~
oh, appears that the 'php' file got truncated;
Last edit: Alan Taylor 1 day ago
I have never done this before. What I have done before is to use DHCP server to assign the fixed IP address to the specific MAC address.
In your scenario, what need to be done is to pass the IP address in proper syntax from iPXE to the Linux system. Since they are in different stages, and the network configuration can not be passed automatically from early stage (ipxe) to the 2nd stage (GNU/Linux).
So now you can try to pass the network configuration to the Linux kernel boot parameters, follow "ip" parameter in live-boot:
https://manpages.debian.org/testing/live-boot-doc/live-boot.7.en.html#ip
It should work I believe.