IRC chat logs for #ltsp on irc.freenode.net (webchat)


Channel log from 4 October 2020   (all times are UTC)

04:34
<alkisg>
Aison0: this means that your router does NOT send a gateway, and ipxe/dhclient are smart enough to figure it out, but initramfs/ipconfig aren't
04:34
Update your router to send a gateway
04:35
This *emulates* a dhcp request: /usr/lib/klibc/bin/ipconfig -n enp5s0
04:35
You can check the result from there
06:37RaphGro has joined IRC (RaphGro!~raphgro@fedora/raphgro)
09:11
<Aison0>
alkisg, this data sent to the client: https://pastebin.com/kE43fBSj
09:12
from the dhcp server
09:18
<alkisg>
Aison0: and the output of the command that I said above? ^
09:20
It's more important to check the actual result that initramfs-tools parses, than the dhcp packet itself
09:24
I think I've seen initramfs-tools choking before, when encountering static routes in the dhcp packet, and the user had to manually put the gateway using a POST_INIT command
09:27adrianor1 has left IRC (adrianor1!~adrianorg@177.156.224.99, Ping timeout: 240 seconds)
09:27adrianorg has joined IRC (adrianorg!~adrianorg@177.156.224.99)
09:43
<Aison0>
alkisg, yes, that's true. Therefore I set the gateway twice, once in static routes and once as router option
09:48
ipconfig -n shows
09:48
routes: 10.0.0.0/8 via 10.0.0.1, 0.0.0.0/0 via 10.0.0.1
09:49
else there are not informations about gateway
10:04
rootserver: 10.0.0.2 is correct
10:04
whats: filename: ltsp/unmatched-client
12:39
<alkisg>
Aison0: this is good information, but unfortunately what we need to solve the problem is the output of the command that I asked for..
12:39
(07:35:24 AM) alkisg: This *emulates* a dhcp request: /usr/lib/klibc/bin/ipconfig -n enp5s0
12:39
This is not ifconfig. It's ipconfig, a different command in a different path. It's what initramfs is using.
12:40
So if initramfs can't handle your dhcp configuration, you either need to update your dhcp, or work around this initramfs bug with a POST_INIT ltsp.conf parameter
13:50adrianor1 has joined IRC (adrianor1!~adrianorg@187.113.246.71)
13:51adrianorg has left IRC (adrianorg!~adrianorg@177.156.224.99, Ping timeout: 256 seconds)
15:03
<Aison0>
alkisg, i'm talking about /usr/lib/klibc/bin/ipconfig -n
15:04
<alkisg>
Aison0: can you paste all its output?
15:04
usr/lib/klibc/bin/ipconfig -n enp2s0 | nc termbin.com 9999
15:04
https://termbin.com/pns9f
15:04
Something like that
15:05
If there's no gateway there, can you fix it from your dhcp server?
15:06
If you can't fix it from dhcp, then initramfs won't get a gateway, and you need a POST_INIT directive to work around it
15:08
<Aison0>
alkisg, I wounder why it a problem of my initramfs, I guess it is just a configuration problem of the initramfs generator of ubuntu 20.04
15:08
<alkisg>
Aison0: it's an bug in initramfs-tools since all debian and ubuntu versions
15:09
It's not smart, it supports "gateway" but not "routes"
15:09
<Aison0>
the funny thing is, I also tried dracut
15:09
same problem there
15:09
<alkisg>
The reason you weren't seeing it was because you were never using netbooting; dhclient doesn't have that issue
15:09
<Aison0>
but maybe I forgot to enable some dracut modules for network boot
15:09
<alkisg>
LTSP doesn't support dracut
15:09
<Aison0>
ah, ok
15:10
<alkisg>
(yet)
15:10
<Aison0>
maybe it is possible to omit sending "routes" for the ltsp clients?
15:10
I can configure that on the dhcp server
15:11
<alkisg>
Sure, or you can just put POST_INIT_ADD_ROUTE="ip add route..." in ltsp.conf
15:11
Whatever you prefer
15:47
<Aison0>
hmm, dns lookup is also not working in debug shell
15:47
even after adding the default route
16:06
ok, dns was bad because systemd-resolved, I created now a static resolv.conf
16:06
now dns works in debug shell
16:07
why is CTRL+C not working ^^
16:10
http://termbin.com/wnm1d
16:22
<alkisg>
Aison0: debug_shell isn't a shell. It's a loop of "eval"s
16:22
It help in viewing internal variables
16:22
You may run `bash` in there if you want ctrl+c to work
16:24
unmatched-client means that there was no match for the boot attempt; at that point it's not a boot attempt so it's ok
16:24
Now if you run ipconfig without the -n parameter, it will create a /run/net-*.conf file, with the parsed values inside it
16:25
With the output that I see in termbin, I guess IPV4_GATEWAY will be 0 in the generated conf file, so you'll need to provide a gateway or use POST_INIT=ip add route...
19:59RaphGro has left IRC (RaphGro!~raphgro@fedora/raphgro, Quit: Please remember your own message. It'll be read as soon as possible.)
20:20markit has joined IRC (markit!~marco@mail.ammdomus.it)
21:37RaphGro has joined IRC (RaphGro!~raphgro@fedora/raphgro)
21:51markit has left IRC (markit!~marco@mail.ammdomus.it, )
22:36RaphGro has left IRC (RaphGro!~raphgro@fedora/raphgro, Quit: Please remember your own message. It'll be read as soon as possible.)