Thin client "Error: Socket failed: Connection timed out" when booting from Ubuntu 14.04.2 LTS LTSP server in virtual environment

awei

Trying to get a thin client to boot from my VirtualBox installed with 14.04.2 and LTSP. Here's what is happening:

  1. Thin vm client powers on and gets assigned 192.168.9.20 by LTSP server
  2. Thin client then is able to grab the pxelinux.0 file from LTSP server

    pxelinux.cfg/default       ok
    
  3. Screen goes blank for a few moments

  4. Then i get this error:

    Error: Socket failed: Connection timed out
    Exiting. 
    

Thin client finally defaults into BusyBox.

Not sure if it matters, but, when I do an ifconfig from (initramfs) prompt, i see that the ip address is now 192.168.9.101 which is odd.

Edit

Kind of flailing around now, but, when I tried to (initfamfs) wget ftp://192.168.9.10, I get wget: can't connect to remote host (192.168.9.10) where 192.168.9.10 is the LTSP server.

Any suggestions are appreciated.

awei

After some guidance on LTSP IRC (special thanks to alkisg), I figured out the issue. Ultimately, it turned out that my VirtualBox host-only network was doing something weird. It didn't actually disable the virtual dhcp server when I unchecked the box.

Force VirtualBox Manager to disabled dhcp

Some other people had the same issue: https://forums.virtualbox.org/viewtopic.php?f=1&t=32201

  1. On your host machine, list the running dhcp servers: VBoxManage list dhcpservers
  2. Note the name of the dhcp service you want to disable, then VBoxManage dhcpserver remove --netname {name of dhcp server}. In my case: VBoxManage dhcpserver remove --netname HostInterfaceNetworking-vboxnet1
  3. Do another VBoxManage list dhcpservers to ensure it's actually gone.

Debugging steps

On the thin server, modify the pxe boot command issued to the thin client located in /var/lib/tftpboot/ltsp/{architecture}/pxelinux.cfg/default where {architecture} is either amd64 or i386. Although the config file says not to edit anything because your changes will be overwritten, it's fine to do so as we're just testing. You'll want to locate the correct section that pertains to your LTSP setup (whether NBD or NFS) and make it look something like the following n.b. the break=mount:

label ltsp-NBD
menu label LTSP, using NBD
kernel vmlinuz-3.13.0-46-generic
# append ro initrd=initrd.img-3.13.0-46-generic init=/sbin/init-ltsp quiet splash root=/dev/nbd0
append ro initrd=initrd.img-3.13.0-46-generic init=/sbin/init-ltsp root=/dev/nbd0 break=mount
ipappend 2
  1. First, from your LTSP server tail the log to see what errors come up: tail /var/log/syslog -f.

  2. Now, reboot the thin client and you should be presented with an (initramfs) command prompt.

  3. Check the ip address of your machine to make sure your on the correct network by running: ifconfig.

  4. Check the network configuration provided by the LTSP server: cat /run/net-eth0.cfg. (For me, I noticed that the ip address assigned to ROOTSERVER was not the same as that of my LTSP server.)

  5. Check to see if you can manually mount and boot the image from the LTSP server: nbd-client {ltsp server ip} -N /opt/ltsp/{architecture} /dev/nbd0.

As I said, ultimately, something funky was going on w/ my vm host-only network and after powering off the server and client and restarting, it all worked.

Hope this helps someone.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Dual boot ubuntu 14 .04LTS

From Dev

How do I install Muvizu on Ubuntu 14,04 LTS?

From Dev

Error installing ubuntu server 14:04 / 15:04

From Dev

Ubuntu 12.04 Lts not booting

From Dev

Thin Server - Virtual Path

From Dev

Ubuntu 20.04 LTS does not mount NFS when booting PXE

From Dev

Kernel Panic when booting ubuntu 12.04 LTS in virtualbox

From Dev

Is booting to Ubuntu 16.04 LTS through Legacy boot mode from safe?

From Dev

Errors when booting Ubuntu from Live USB

From Dev

No "install Ubuntu" option when booting from USB

From Dev

What's the difference between a zero client and a thin client when it comes to virtual desktops?

From Dev

TCP IP Client in WPF for Ubuntu 14 Server

From Dev

How do I execute a script on a LTSP-Thin Client after boot?

From Dev

How to install gitolite3 on ubuntu server LTS 14

From Dev

Booting ubuntu from a mac

From Dev

When use thick client over thin client?

From Dev

Ubuntu Server booting with NGINX running and not Apache2

From Dev

Can't upgrade ubuntu server from 10.04 LTS to 12.04 LTS

From Dev

upgrade ubuntu server from 12.04 LTS to 14.04 LTS

From Dev

Can't upgrade ubuntu server from 10.04 LTS to 12.04 LTS

From Dev

Error updating Ubuntu Server from 16.04.1 LTS to 18.04.1 LTS

From Dev

Virtual hosts not working Ubuntu both sites direct to the same root 14 LTS and apache 2.4.7

From Dev

No "Install Ubuntu" option when booting from USB drive

From Dev

paritions when booting windows (10) machine from ubuntu

From Dev

How to upgrade from Ubuntu 16.04 LTS to 20.04 (in virtual machine)

From Dev

How to upgrade from Ubuntu 16.04 LTS to 20.04 (in virtual machine)

From Dev

Using Raspberry Pi as a thin client to Ubuntu

From Dev

How to fix Ubuntu Server not booting?

From Dev

Black screen when booting Ubuntu and windows 7 in virtual-box on a windows 10 computer

Related Related

  1. 1

    Dual boot ubuntu 14 .04LTS

  2. 2

    How do I install Muvizu on Ubuntu 14,04 LTS?

  3. 3

    Error installing ubuntu server 14:04 / 15:04

  4. 4

    Ubuntu 12.04 Lts not booting

  5. 5

    Thin Server - Virtual Path

  6. 6

    Ubuntu 20.04 LTS does not mount NFS when booting PXE

  7. 7

    Kernel Panic when booting ubuntu 12.04 LTS in virtualbox

  8. 8

    Is booting to Ubuntu 16.04 LTS through Legacy boot mode from safe?

  9. 9

    Errors when booting Ubuntu from Live USB

  10. 10

    No "install Ubuntu" option when booting from USB

  11. 11

    What's the difference between a zero client and a thin client when it comes to virtual desktops?

  12. 12

    TCP IP Client in WPF for Ubuntu 14 Server

  13. 13

    How do I execute a script on a LTSP-Thin Client after boot?

  14. 14

    How to install gitolite3 on ubuntu server LTS 14

  15. 15

    Booting ubuntu from a mac

  16. 16

    When use thick client over thin client?

  17. 17

    Ubuntu Server booting with NGINX running and not Apache2

  18. 18

    Can't upgrade ubuntu server from 10.04 LTS to 12.04 LTS

  19. 19

    upgrade ubuntu server from 12.04 LTS to 14.04 LTS

  20. 20

    Can't upgrade ubuntu server from 10.04 LTS to 12.04 LTS

  21. 21

    Error updating Ubuntu Server from 16.04.1 LTS to 18.04.1 LTS

  22. 22

    Virtual hosts not working Ubuntu both sites direct to the same root 14 LTS and apache 2.4.7

  23. 23

    No "Install Ubuntu" option when booting from USB drive

  24. 24

    paritions when booting windows (10) machine from ubuntu

  25. 25

    How to upgrade from Ubuntu 16.04 LTS to 20.04 (in virtual machine)

  26. 26

    How to upgrade from Ubuntu 16.04 LTS to 20.04 (in virtual machine)

  27. 27

    Using Raspberry Pi as a thin client to Ubuntu

  28. 28

    How to fix Ubuntu Server not booting?

  29. 29

    Black screen when booting Ubuntu and windows 7 in virtual-box on a windows 10 computer

HotTag

Archive