Ubuntu 14.04 with DNSmasq 2.76
Trying to get a DRBL/Clonezilla server to operate with another DHCP server on the subnet.
Believe I'm close to figuring it out, but I need some help regarding what file needs to be edited. How would somebody go about hardcoding the location of the DRBL server to where when the client pxe boots into the default menu and the option to select the operation to perform (such as DRBL, Clonzilla, Memory Test, FreeDos, Local Operating System), it looks at an ipaddress that is not also the gateway/DHCP server.
Specifically i need it to look at rootpath 198.162.1.2/tftpboot/node_root when I choose either the Clonezilla option or the Ubuntu DRBL option
but its looking at 198.162.1.1/tftpboot/node_root
and errors out.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Added option dhcp-no-override to the lstp.conf file for dnsmasq and forwarded option 66 and 67 on the DHCP router and it worked after producing strange errors.
More to come for whom it may concern.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The unstable DRBL has a method to use dnsmasq to replay the DHCP. There is a command "drbl-proxy-dhcp". Once you have installed dnsmasq, you can run:
drbl-proxy-dhcp enable
for that.
//NOTE// This is still testing, so it might be buggy, althouth it's used in DRBL live.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
SO i firgured out how to ge the dnsmasq thing to work....
After compiling dnsmasq 2.76 and then adding the code dhcp_no_override to the lstp.conf file I also added the option (on my router running DHCP) to forward all 66 and 67 port activities to the DRBL server the clients will PXE boot to the main DRBL/Clonezilla server start page. Problem is... you need to run the command
usr/sbin/mknic-nbi -c n s
so that the client network card accepts the DRBL server and the DHCP server operating off two seperate machines.
My new problem is that on Windows 7 (which works) before it successfully uploads or restores and image it must first exit initRAMFS (or something like that) before it finds what to boot from.
on Windows 10 after it gets the IP address it gives the error
udhcpc: SIOCGIFINDEX: No such device.
Is this a kernel / network driver issues?
EDIT:(oops i already posted some of this, sorry about that.)
Last edit: Steven Katona 2017-05-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
also this is my dnsmasq 2.76 lstp.conf file (located in etc/dnsmasq.d)
dhcp_no_override
pxe-prompt = "press f8 or else"
tftp-root = tftpboot/nbi_img
pxe-service x86PC, "Network Boot", pxelinux
dhcp-boot = pxelinux.0
dhcp-range = x.x.x.x,proxy
(above line left x as to not confuse onlookers as it will be different for everybody)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
" udhcpc: SIOCGIFINDEX: No such device." -> It seems the network device is not found, or maybe it's detected later. Try to use
/usr/sbin/mknic-nbi -c -p 5
to force to wait for 5 secs before going on.
Steven
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ubuntu 14.04 with DNSmasq 2.76
Trying to get a DRBL/Clonezilla server to operate with another DHCP server on the subnet.
Believe I'm close to figuring it out, but I need some help regarding what file needs to be edited. How would somebody go about hardcoding the location of the DRBL server to where when the client pxe boots into the default menu and the option to select the operation to perform (such as DRBL, Clonzilla, Memory Test, FreeDos, Local Operating System), it looks at an ipaddress that is not also the gateway/DHCP server.
Specifically i need it to look at rootpath 198.162.1.2/tftpboot/node_root when I choose either the Clonezilla option or the Ubuntu DRBL option
but its looking at 198.162.1.1/tftpboot/node_root
and errors out.
Added option dhcp-no-override to the lstp.conf file for dnsmasq and forwarded option 66 and 67 on the DHCP router and it worked after producing strange errors.
More to come for whom it may concern.
The unstable DRBL has a method to use dnsmasq to replay the DHCP. There is a command "drbl-proxy-dhcp". Once you have installed dnsmasq, you can run:
drbl-proxy-dhcp enable
for that.
//NOTE// This is still testing, so it might be buggy, althouth it's used in DRBL live.
Steven
SO i firgured out how to ge the dnsmasq thing to work....
After compiling dnsmasq 2.76 and then adding the code dhcp_no_override to the lstp.conf file I also added the option (on my router running DHCP) to forward all 66 and 67 port activities to the DRBL server the clients will PXE boot to the main DRBL/Clonezilla server start page. Problem is... you need to run the command
usr/sbin/mknic-nbi -c n s
so that the client network card accepts the DRBL server and the DHCP server operating off two seperate machines.
My new problem is that on Windows 7 (which works) before it successfully uploads or restores and image it must first exit initRAMFS (or something like that) before it finds what to boot from.
on Windows 10 after it gets the IP address it gives the error
udhcpc: SIOCGIFINDEX: No such device.
Is this a kernel / network driver issues?
EDIT:(oops i already posted some of this, sorry about that.)
Last edit: Steven Katona 2017-05-04
also this is my dnsmasq 2.76 lstp.conf file (located in etc/dnsmasq.d)
dhcp_no_override
pxe-prompt = "press f8 or else"
tftp-root = tftpboot/nbi_img
pxe-service x86PC, "Network Boot", pxelinux
dhcp-boot = pxelinux.0
dhcp-range = x.x.x.x,proxy
(above line left x as to not confuse onlookers as it will be different for everybody)
" udhcpc: SIOCGIFINDEX: No such device." -> It seems the network device is not found, or maybe it's detected later. Try to use
/usr/sbin/mknic-nbi -c -p 5
to force to wait for 5 secs before going on.
Steven