Advertisement
lifeboy

LTSP udhcpc issue

Nov 21st, 2013
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. This is what happens on the thin client (I can only take a screenshot):
  2. https://dl.dropboxusercontent.com/u/12668653/Pictures/udhcpc_failing.png
  3.  
  4. This is the log on the server:
  5.  
  6. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 available DHCP range: 172.16.0.20 -- 172.16.0.50
  7. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 vendor class: udhcp 0.9.9-pre
  8. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 DHCPDISCOVER(br0) 52:54:00:c5:0e:33
  9. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 tags: br0
  10. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 DHCPOFFER(br0) 172.16.0.20 52:54:00:c5:0e:33
  11. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 requested options: 1:netmask, 3:router, 6:dns-server, 12:hostname,
  12. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 requested options: 15:domain-name, 17:root-path, 28:broadcast,
  13. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 requested options: 40:nis-domain, 41:nis-server, 42:ntp-server
  14. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 bootfile name: /ltsp/i386/pxelinux.0
  15. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 next server: 172.16.0.1
  16. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 sent size: 1 option: 53:message-type 02
  17. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 sent size: 4 option: 54:server-identifier 172.16.0.1
  18. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 sent size: 4 option: 51:lease-time 00:00:a8:c0
  19. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 sent size: 4 option: 58:T1 00:00:54:60
  20. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 sent size: 4 option: 59:T2 00:00:93:a8
  21. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 sent size: 4 option: 1:netmask 255.255.255.0
  22. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 sent size: 4 option: 28:broadcast 172.16.0.255
  23. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 sent size: 4 option: 3:router 172.16.0.1
  24. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 sent size: 4 option: 6:dns-server 172.16.0.1
  25. Nov 21 14:59:03 Ashton dnsmasq-dhcp[317]: 2840456473 sent size: 14 option: 17:root-path /opt/ltsp/i386
  26.  
  27. The dnsmasq config is as follows:
  28.  
  29. roland@Ashton:/opt/ltsp$ egrep -rv '^#|^$' /etc/dnsmasq*
  30. /etc/dnsmasq.conf:interface=br0
  31. /etc/dnsmasq.d/libvirt-bin:bind-interfaces
  32. /etc/dnsmasq.d/libvirt-bin:except-interface=virbr0
  33. /etc/dnsmasq.d/ltsp-server-dnsmasq.conf:port=53
  34. /etc/dnsmasq.d/ltsp-server-dnsmasq.conf:domain-needed
  35. /etc/dnsmasq.d/ltsp-server-dnsmasq.conf:bogus-priv
  36. /etc/dnsmasq.d/ltsp-server-dnsmasq.conf:log-dhcp
  37. /etc/dnsmasq.d/ltsp-server-dnsmasq.conf:tftp-root=/var/lib/tftpboot
  38. /etc/dnsmasq.d/ltsp-server-dnsmasq.conf:dhcp-boot=/ltsp/i386/pxelinux.0
  39. /etc/dnsmasq.d/ltsp-server-dnsmasq.conf:dhcp-option=17,/opt/ltsp/i386
  40. /etc/dnsmasq.d/ltsp-server-dnsmasq.conf:dhcp-no-override
  41. /etc/dnsmasq.d/ltsp-server-dnsmasq.conf:pxe-prompt="Press F8 for boot menu", 3
  42. /etc/dnsmasq.d/ltsp-server-dnsmasq.conf:pxe-service=X86PC, "Boot from network", /ltsp/i386/pxelinux
  43. /etc/dnsmasq.d/ltsp-server-dnsmasq.conf:pxe-service=X86PC, "Boot from local hard disk", 0
  44. /etc/dnsmasq.d/ltsp-server-dnsmasq.conf:dhcp-range=172.16.0.20,172.16.0.50,255.255.255.0,12h
  45. /etc/dnsmasq.d/ltsp-server-dnsmasq.conf:dhcp-option=252,"\n"
  46. /etc/dnsmasq.d-available/libvirt-bin:bind-interfaces
  47. /etc/dnsmasq.d-available/libvirt-bin:except-interface=virbr0
  48.  
  49. The file /opt/ltsp/i386/usr/share/initramfs-tools/scripts/init-premount/udhcp has been modified:
  50.  
  51. if udhcpc -n -s /tmp/dhcp-script.sh -i $i $hostname_param $ip_param >/dev/null 2>&1; then
  52.  
  53. After modification, the following was run:
  54.  
  55. $ sudo chroot /opt/ltsp/i386 update-initramfs -u
  56. $ sudo ltsp-update-kernels
  57.  
  58. Thereafter we have this:
  59.  
  60. $ cat /var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default
  61. default ltsp
  62. label ltsp
  63. kernel vmlinuz
  64. append ro initrd=initrd.img quiet splash nbdport=2002 nbdroot=:ltsp_i386
  65.  
  66. Even after rebuilding the client chroot as below, there is no change in behaviour.
  67.  
  68. $ sudo ltsp-update-image -a i386 -o "quiet splash nbdport=2002"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement