Public bug reported:

Binary package hint: ltsp-server

Version:
Ubuntu 8.04 "Hardy"

ltsp-server:
  Installed: 5.0.40~bzr20080212-0ubuntu7
  Candidate: 5.0.40~bzr20080212-0ubuntu7
  Version table:
 *** 5.0.40~bzr20080212-0ubuntu7 0
        500 http://gb.archive.ubuntu.com hardy-updates/main Packages
        100 /var/lib/dpkg/status
     5.0.40~bzr20080212-0ubuntu6 0
        500 http://gb.archive.ubuntu.com hardy/main Packages


If you create additional builds of the client, with this:
ltsp-build-client --base /opt/ltsp-test

Then change the dhcp server entry, so that the Root-path is:
/opt/ltsp-test

Then run this:
ltsp-update-kernels

The client should boot and pick up the small pxelinux, then swapping out
the 4Mb initrd for the NBD image as the '/' of the filesystem. It should
mount the NBD image in /opt/ltsp-test. It ends up mounting the default
one in /opt/ltsp, instead of the new one in /opt/ltsp-test.


I have tried to look into why this is, and I have found the file in the 
initrd.img that contains the instructions as to which NBD to mount:
If you:
mkdir /tmp/pxelinux-initrd
cd /tmp/pxelinux-initrd
zcat /var/lib/tftpboot/ltsp/i386/initrd.img | cpio -i

This extracts the initrd that is mounted for pxelinux to use, during the 
PXEboot process. In here is:
scripts/ltsp_nbd

This file looks to the variable 'nbdroot' to get the ipaddress and port number 
to mount the NBD image from. This variable is not being set correctly. when
an alternative client build is created. The DHCP server is specifying 
/opt/ltsp-test to show that a different image needs to be used. This does not 
seem to be picked up to get the system to mount the alternative NBD image.

The ltsp_nbd script defaults to port 2000. It is possible to specify a
different NBD server and port, as arguments to the kernel in the
pxelinux.cfg, using the nbdroot=<server-ip>:<port> But this means
configuration needs to be done in two places. It should only need to be
done once, when the ltsp-build-client --base <directory> is issued.

I may be completely missing something, and not understanding how this
works.

** Affects: ltsp (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Binary package hint: ltsp-server
  
  Version:
  Ubuntu 8.04 "Hardy"
  
  ltsp-server:
    Installed: 5.0.40~bzr20080212-0ubuntu7
    Candidate: 5.0.40~bzr20080212-0ubuntu7
    Version table:
   *** 5.0.40~bzr20080212-0ubuntu7 0
          500 http://gb.archive.ubuntu.com hardy-updates/main Packages
          100 /var/lib/dpkg/status
       5.0.40~bzr20080212-0ubuntu6 0
          500 http://gb.archive.ubuntu.com hardy/main Packages
  
  
  If you create additional builds of the client, with this:
  ltsp-build-client --base /opt/ltsp-test
  
  Then change the dhcp server entry, so that the Root-path is:
  /opt/ltsp-test
  
  Then run this:
  ltsp-update-kernels
  
  The client should boot and pick up the small pxelinux, then swapping out
  the 4Mb initrd for the NBD image as the '/' of the filesystem. It should
  mount the NBD image in /opt/ltsp-test. It ends up mounting the default
  one in /opt/ltsp, instead of the new one in /opt/ltsp-test.
  
  
  I have tried to look into why this is, and I have found the file in the 
initrd.img that contains the instructions as to which NBD to mount:
  If you:
  mkdir /tmp/pxelinux-initrd
  cd /tmp/pxelinux-initrd
  zcat /var/lib/tftpboot/ltsp/i386/initrd.img | cpio -i
  
  This extracts the initrd that is mounted for pxelinux to use, during the 
PXEboot process. In here is:
  scripts/ltsp_nbd
  
  This file looks to the variable 'nbdroot' to get the ipaddress and port 
number to mount the NBD image from. This variable is not being set correctly. 
when
  an alternative client build is created. The DHCP server is specifying 
/opt/ltsp-test to show that a different image needs to be used. This does not 
seem to be picked up to get the system to mount the alternative NBD image.
  
  The ltsp_nbd script defaults to port 2000. It is possible to specify a
  different NBD server and port, as arguments to the kernel in the
  pxelinux.cfg, using the nbdroot=<server-ip>:<port> But this means
  configuration needs to be done in two places. It should only need to be
  done once, when the ltsp-build-client --base <directory> is issued.
  
  I may be completely missing something, and not understanding how this
  works.
- 
- The ltsp-build-client sets up the pxelinux for the default client, but
- not for any subsequent ones

-- 
ltsp-update-kernels does not create separate pxelinux directory in 
/var/lib/tftpboot for a client in a non-default location
https://bugs.launchpad.net/bugs/244160
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to