Hello, I'm trying to setup dnsmasq 2.62-3+deb7u3 under Debian 7.x to act as a DHCP so I can keep my DHCP server as is and add PXE boot functionality to it. The DHCP server is sitting on a off the shelf all in one router (Netgear R7000) which doesn't have the ability to add PXE boot.
I've installed dnsmasq on my LTSP server (192.168.200.4) and entered a configure file which looks like this; # DNS Options port=0 # Disable DNS server # Log lots of extra information about DHCP transactions. log-dhcp # DHCP Options dhcp-range=192.168.200.4,proxy,255.255.255.0 # rootpath option, for NFS dhcp-option=17,"192.168.200.4:/opt/ltsp/i386" # kill multicast dhcp-option=vendor:PXEClient,6,2b # Disable re-use of the DHCP servername and filename fields as extra # option space. That's to avoid confusing some old or broken DHCP clients. dhcp-no-override # PXE menu #pxe-prompt="Press F8 for boot menu", 3 # PXE services pxe-service=X86PC, "Boot from network", /ltsp/i386/pxelinux # TFTP Options # leave this up to xinetd to provide the tftp service. #enable-tftp #tftp-root=/var/lib/tftpboot # set through xinetd, not needed. The error I get when PXE clients try to boot is 'nfsmount: need a path' this is due to the rootserver and rootpath not being set. I try and set the rootserver and rootpath by using dhcp-option 17, but the PXE client doesn't seem to listen to this option. Is there a nice way around this? Am I doing something wrong here? In the log file (syslog on LTSP server) I can see that it passes other dhcp-options across; Nov 13 15:02:47 ltsp dnsmasq-dhcp[21560]: 1420397432 available DHCP subnet: 192.168.200.4/255.255.255.0 Nov 13 15:02:47 ltsp dnsmasq-dhcp[21560]: 1420397432 vendor class: PXEClient:Arch:00000:UNDI:002001 Nov 13 15:02:47 ltsp dnsmasq-dhcp[21560]: 1420397432 user class: iPXE Nov 13 15:02:47 ltsp dnsmasq-dhcp[21560]: 1420397432 PXE(br0) 52:54:00:bc:1b:98 proxy Nov 13 15:02:47 ltsp dnsmasq-dhcp[21560]: 1420397432 tags: br0 Nov 13 15:02:47 ltsp dnsmasq-dhcp[21560]: 1420397432 broadcast response Nov 13 15:02:47 ltsp dnsmasq-dhcp[21560]: 1420397432 sent size: 1 option: 53 message-type 2 Nov 13 15:02:47 ltsp dnsmasq-dhcp[21560]: 1420397432 sent size: 4 option: 54 server-identifier 192.168.200.4 Nov 13 15:02:47 ltsp dnsmasq-dhcp[21560]: 1420397432 sent size: 9 option: 60 vendor-class 50:58:45:43:6c:69:65:6e:74 Nov 13 15:02:47 ltsp dnsmasq-dhcp[21560]: 1420397432 sent size: 17 option: 97 client-machine-id 00:6f:6a:9a:5b:09:08:88:11:79:a8:a6:3a:43... Nov 13 15:02:47 ltsp dnsmasq-dhcp[21560]: 1420397432 sent size: 44 option: 43 vendor-encap 06:01:03:0a:04:00:50:58:45:08:07:80:00:01... Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 1420397432 available DHCP subnet: 192.168.200.4/255.255.255.0 Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 1420397432 vendor class: PXEClient:Arch:00000:UNDI:002001 Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 1420397432 user class: iPXE Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 0 available DHCP subnet: 192.168.200.4/255.255.255.0 Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 0 vendor class: PXEClient:Arch:00000:UNDI:002001 Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 0 user class: iPXE Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 0 PXE(br0) 192.168.200.189 52:54:00:bc:1b:98 /ltsp/i386/pxelinux.0 Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 0 tags: br0 Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 0 bootfile name: /ltsp/i386/pxelinux.0 Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 0 next server: 192.168.200.4 Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 0 sent size: 1 option: 53 message-type 5 Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 0 sent size: 4 option: 54 server-identifier 192.168.200.4 Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 0 sent size: 9 option: 60 vendor-class 50:58:45:43:6c:69:65:6e:74 Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 0 sent size: 17 option: 97 client-machine-id 00:6f:6a:9a:5b:09:08:88:11:79:a8:a6:3a:43... Nov 13 15:02:48 ltsp dnsmasq-dhcp[21560]: 0 sent size: 10 option: 43 vendor-encap 47:04:80:00:00:00:06:01:02:ff Nov 13 15:02:53 ltsp dnsmasq-dhcp[21560]: 1252024891 available DHCP subnet: 192.168.200.4/255.255.255.0 Nov 13 15:02:53 ltsp dnsmasq-dhcp[21560]: 1252024891 vendor class: Linux ipconfig Nov 13 15:02:53 ltsp dnsmasq-dhcp[21560]: 1252024891 available DHCP subnet: 192.168.200.4/255.255.255.0 Nov 13 15:02:53 ltsp dnsmasq-dhcp[21560]: 1252024891 vendor class: Linux ipconfig Nov 13 15:02:54 ltsp dnsmasq-dhcp[21560]: 1252024891 available DHCP subnet: 192.168.200.4/255.255.255.0 Nov 13 15:02:54 ltsp dnsmasq-dhcp[21560]: 1252024891 vendor class: Linux ipconfig As you can see from the log options 53, 54, 60, 97 & 43 get passed but not option 17. Refer to full error here: http://www.zimagez.com/zimage/screenshot-131115-145555.php Note: I've been testing this PXE booting through a KVM instance, but have also tested it on a real thin client and get the same result. I know one option is to just disable the DHCP server and configure my LTSP machine as a full DHCP server and that is my Plan B if I cannot get this working nicely. It would just be nice to have a portable LTSP server and be able to plug it into an existing network and not have to reconfigure the DHCP server or disable their DHCP. Any clues anyone? -- from Michael ------------------------------------------------------------------------------ _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net