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


Channel log from 16 May 2018   (all times are UTC)

00:01gbaman has left IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net, Ping timeout: 240 seconds)
00:09TheBoyd has left IRC (TheBoyd!~TheBoyd@2605:a601:652:9500:1586:258d:f2dd:a2ee, Read error: Connection reset by peer)
00:30gbaman has joined IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net)
00:35gbaman has left IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net, Ping timeout: 264 seconds)
00:36GodFather has joined IRC (GodFather!~rcc@174-081-217-069.dhcp.chtrptr.net)
01:34yanu has left IRC (yanu!~yanu@178-116-60-189.access.telenet.be, Ping timeout: 240 seconds)
01:47yanu has joined IRC (yanu!~yanu@178-116-60-189.access.telenet.be)
02:06lucascastro has joined IRC (lucascastro!~lucas@177-185-141-105.isotelco.net.br)
02:31gbaman has joined IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net)
02:36gbaman has left IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net, Ping timeout: 256 seconds)
02:38mmarconm has joined IRC (mmarconm!~mmarconm@unaffiliated/mmarconm)
02:40mmarconm has left IRC (mmarconm!~mmarconm@unaffiliated/mmarconm, Client Quit)
03:07adrianor1 has joined IRC (adrianor1!~adrianorg@177.18.174.7)
03:10adrianorg has left IRC (adrianorg!~adrianorg@177.204.157.140.dynamic.adsl.gvt.net.br, Ping timeout: 240 seconds)
03:37
<Keith_>
@vagrantc The one where it constantly reboots stating that there's an update available.
03:40
I figured out how to create one, however as I continue learning this thing, ran into something else. Trying to setup a kiosk session with just Firefox. I chroot in, ran apt-get install firefox, and then added the SCREEN_07="kiosk" and KIOSK_EXE="/usr/bin/firefox" lines to lts.conf - however, booting it just loops "xf86OpenConsole: Cannot open virtual console 7 (Permission denied)."
03:40
I checked the logs in /tmp, but they really didn't spit out anything useful (that I saw)
03:58gbaman has joined IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net)
04:03gbaman has left IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net, Ping timeout: 248 seconds)
04:05vagrantc has joined IRC (vagrantc!~vagrant@unaffiliated/vagrantc)
04:41
<alkisg>
!nbd
04:41
<ltsp>
I do not know about 'nbd', but I do know about these similar topics: 'disable-nbd-proxy', 'nbd-proxy', 'nbd-compression', 'quick-nbd-tests', 'nbd-client', 'nbd-server-bug', 'nbd-trusty-bug', 'nbd-client-breaks-nm', 'nbd-bug', 'nbd-checkupdate'
04:41
<alkisg>
!nbd-checkupdate | echo Keith_:
04:41
<ltsp>
Keith_: nbd-checkupdate: To avoid bug https://github.com/NetworkBlockDevice/nbd/issues/59, put this in lts.conf: INIT_COMMAND_RM_NBD_CHECKUPDATE="rm -rf /usr/share/ldm/rc.d/I01-nbd-checkupdate"
04:44
<vagrantc>
that sounds ... bad
04:44
not saying it isn't a necessary workaround ... but ... hrm.
04:54
<alkisg>
One could always just add a delay if he needs that functionality
04:54
But imho it's bad design to have to mount a network file system to see if reboot is needed
04:55
I don't know how many "sleep" seconds nbd would need not to show this race condition
05:01
<vagrantc>
sure
05:05vagrantc has left IRC (vagrantc!~vagrant@unaffiliated/vagrantc, Quit: leaving)
05:27Statler|Home has joined IRC (Statler|Home!~Georg@p5489740C.dip0.t-ipconnect.de)
05:41kjackal has joined IRC (kjackal!~quassel@2a02:587:3102:4300:11f0:3675:563a:9b30)
05:59ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)
07:25
<eirikb>
I've been re-investigating hosting a VDI, but still not able to make it work. Here is my latest simplest test trying to set up a local chroot to mimic a VDI (for testing) and using ltsp-update-image: https://gist.github.com/eirikb/700e457796e15749199fce2097deb765
07:25
The error I get is: mount: mount point /tmp/tmp.WZv3yLzzGU/root/client does not exist
07:32
<alkisg>
eirikb: you don't need "-c" (cleanup) since it's a newly debootstrapped chroot
07:33
<eirikb>
That was my guess as well, I actually don't want it as it would be nice to create users locally
07:36
That actually helped. My gosh. Thanks alkisg
07:37
<alkisg>
np
07:51
<eirikb>
It seems /var/lib/tftpboot/ltsp/client is missing pxelinux.0, am I missing a ltsp-config command?
07:51
The folder only contains lts.conf
08:00gbaman has joined IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net)
08:01
<alkisg>
You're supposed to run /usr/share/ltsp/update-kernels in the chroot after installation
08:01
Why are you trying to reimplement ltsp-build-client instead of using it?
08:02Statler|Home has left IRC (Statler|Home!~Georg@p5489740C.dip0.t-ipconnect.de, Remote host closed the connection)
08:02
<eirikb>
I thought I had to use ltsp-update-image if I already had an install (existing VDI)
08:04
<alkisg>
You have a .vdi and yet you're calling debootstrap?
08:04
<eirikb>
That's for testing
08:05
I want it as simple as possible first, before I try with the actual vdi
08:05
<alkisg>
OK. And why you don't want to serve the .vdi directly, and you're using directories and chroots?
08:05
<eirikb>
I would love to serve the VDI, but I don't know how
08:05gbaman has left IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net, Ping timeout: 265 seconds)
08:05
<alkisg>
You just point nbd-server to the .vdi file
08:05
qemu-nbd --read-only --partition=1 --connect=/dev/nbd2 /home/alkisg/VirtualBox\ VMs/bionic-mate-sch32/bionic-mate-sch32-flat.vmdk
08:06
This mounts the first partition of a vbox image to /dev/nbd2
08:06
Then nbd-server can just export /dev/nbd2
08:06
You don't need to run debootstrap or anything...
08:06
You don't need ltsp-build-client, you don't need ltsp-update-image, nothing
08:15
<eirikb>
I still need ltsp-client-core installed in the VDI right, and call /usr/share/ltsp/update-kernels inside the VDI?
08:36
<alkisg>
Yes
08:37
And to run ltsp-update-kernels in the server
08:37
You can symlink nbd2 to /opt/ltsp/images/amd64.img to make things easier
08:38
<eirikb>
ltsp-update-kernels throws "No chroots found in /opt/ltsp"
08:39
<alkisg>
(11:37:49 πμ) alkisg: You can symlink nbd2 to /opt/ltsp/images/amd64.img to make things easier
08:39
<eirikb>
It throws that after linking
08:40
Maybe I've done something wrong, "du" on the .img-file says 0
08:42
I'm trying the .vdi file, not the .vmdk, but didn't think that would matter, and qemu-nbd doesn't throw any error
08:45
<alkisg>
Yes using the .vdi is correct. Try sudo mount -o loop,ro /dev/nbd2 /mnt; ls /mnt
08:45
If it mounts, your image is fine
08:49
<eirikb>
"mount: cannot mount /dev/loop0 read-only"
08:51Statler_Office has joined IRC (Statler_Office!~Georg@gwrz3.lohn24.de)
08:52
<eirikb>
Worked: sudo qemu-nbd -c /dev/nbd3 -P 1 /home/debian/client.vdi . Basically same as your command. Strange
08:53
sudo ltsp-update-kernels still throws "No chroots found in /opt/ltsp"
08:53
<alkisg>
Sorry, that's all the time I had today for free support. Maybe I'll be able to help again tomorrow.
08:53
<eirikb>
Thanks :)
08:54
<alkisg>
np
10:12kjackal has left IRC (kjackal!~quassel@2a02:587:3102:4300:11f0:3675:563a:9b30, Remote host closed the connection)
10:16kjackal has joined IRC (kjackal!~quassel@2a02:587:3102:4300:111c:3ebd:b74c:dbc3)
10:30gbaman has joined IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net)
10:55gbaman has left IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net, Remote host closed the connection)
10:56gbaman has joined IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net)
11:00gbaman has left IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net, Ping timeout: 256 seconds)
11:43Faith has joined IRC (Faith!~Paty_@unaffiliated/faith)
11:58hipower has joined IRC (hipower!53301e6b@gateway/web/freenode/ip.83.48.30.107)
11:58
<hipower>
hello
11:58
anybody?
11:59adrianor1 is now known as adrianorg
11:59
<eirikb>
alkisg: I was able to make it work! I will try to make a gist of it, others might find it very interesting
12:09
<hipower>
does somebody know how to force low color (disable smart color) on LTSP skolelinux on the primary net??
12:18hipower has left IRC (hipower!53301e6b@gateway/web/freenode/ip.83.48.30.107, Quit: Page closed)
12:53
<alkisg>
eirikb: great, glad you liked it
12:57
<eirikb>
Docker still didn't work, not sure why, I get an error about it starting too fast. But I can prepare docker-ce, and run "apt-get install -y docker-ce" on boot. It boots slower, but I don't care as I will hardly ever reboot
13:14merc has joined IRC (merc!d42103d2@gateway/web/freenode/ip.212.33.3.210)
13:31GodFather__ has joined IRC (GodFather__!~rcc@174-081-217-069.dhcp.chtrptr.net)
13:46SYS64738 has left IRC (SYS64738!~capitano@ip-28-80.sn2.clouditalia.com, Ping timeout: 256 seconds)
13:46SYS64738 has joined IRC (SYS64738!~capitano@ip-28-80.sn2.clouditalia.com)
14:06Faith has left IRC (Faith!~Paty_@unaffiliated/faith, Read error: Connection reset by peer)
14:06Faith has joined IRC (Faith!~Paty_@unaffiliated/faith)
14:12kjackal has left IRC (kjackal!~quassel@2a02:587:3102:4300:111c:3ebd:b74c:dbc3, Remote host closed the connection)
14:14kjackal has joined IRC (kjackal!~quassel@2a02:587:3102:4300:7972:dbe6:eea9:417b)
14:15
<eirikb>
Would also be cool if I could just send the VDI as-is (perhaps cloned as img) directly to the client, using default tftp. It would be slow (as the image can reach 2-3GB), but I would only reboot a couple of times a year, and it would require a lot of RAM, but I have 24GB. I imagine it would run smoother, no tampering, perhaps even docker would just
14:15
work
14:22
<fiesh>
ipxe can do http requests
14:22
<eirikb>
Yeah that would also work. I actually gave it a try, both tftp and http + memdisk, but it never booted. The img-file was sent, but got some boot errors
14:26
<alkisg>
LTSP has a copy_to_ram parameter that can copy the image from nbd to ram
14:27
The only benefit being that you could disconnect the server; unrelated to docker or whatever else is failing for you
14:27
<eirikb>
Ok. That's not important. Docker is though, I will have to look into that later. The boot-to-install solution isn't great
14:29
<alkisg>
What was the problem with docker? It runs inside the vm, but not when booted as an ltsp client?
14:31
<eirikb>
I'm currently only testing in VM, or PXE boot in VBox. It didn't run inside the VBox client. I lost the error now, can get it back later. However if I install it after booting the client then it works
14:32
<alkisg>
If docker doesn't run in the real installation, of course it won't run when booted as a client. Fix that first.
14:33
<eirikb>
It works in the real installation
14:33
<alkisg>
And are you using the image of the real installation or the vbox image?
14:34
Because if you're using the vbox image and it doesn't work there... well, that's my point
14:34
<eirikb>
The client was initially built on VBox. This client had docker working. After booting a PXE client from this VDI docker doesn't work, inside that PXE client
14:36
<alkisg>
"initially" could mean "in the meantime I updated the kernel and that's why it's not working anymore"
14:36
Does it work now if you boot in in vbox?
14:36
*boot it
14:37
<eirikb>
Oh, I probably installed docker before running /usr/share/ltsp/update-kernel, could that be a problem?
14:38
<alkisg>
Try booting the .vdi in vbox now...
14:39
<eirikb>
I don't have anything at hand now, as I have gone home for work, but I will try to set it up at home later tonight
14:40* alkisg is using vnc over ssh for that ;)
14:41
<eirikb>
I'm a fan of reverse ssh, and even sshuttle, or simply vpn, but this work was at customers location
14:46gbaman has joined IRC (gbaman!~gbaman@85.255.235.229)
15:07GodFather has left IRC (GodFather!~rcc@174-081-217-069.dhcp.chtrptr.net, Ping timeout: 240 seconds)
15:20GodFather has joined IRC (GodFather!~rcc@50-200-10-106-static.hfc.comcastbusiness.net)
15:54gbaman has left IRC (gbaman!~gbaman@85.255.235.229, Remote host closed the connection)
16:31vagrantc has joined IRC (vagrantc!~vagrant@unaffiliated/vagrantc)
17:23lucascastro has left IRC (lucascastro!~lucas@177-185-141-105.isotelco.net.br, Remote host closed the connection)
17:28gbaman has joined IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net)
17:50vagrantc has left IRC (vagrantc!~vagrant@unaffiliated/vagrantc, Ping timeout: 255 seconds)
17:51vagrantc has joined IRC (vagrantc!~vagrant@unaffiliated/vagrantc)
18:39gbaman has left IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net, Remote host closed the connection)
18:39gbaman has joined IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net)
18:43gbaman has left IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net, Ping timeout: 240 seconds)
18:49Statler_Office has left IRC (Statler_Office!~Georg@gwrz3.lohn24.de, Remote host closed the connection)
18:50gbaman has joined IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net)
19:45sutula has left IRC (sutula!~sutula@207-118-154-237.dyn.centurytel.net, Ping timeout: 256 seconds)
20:45ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Quit: Leaving)
20:47Faith has left IRC (Faith!~Paty_@unaffiliated/faith, Quit: Leaving)
21:21sutula has joined IRC (sutula!~sutula@207-118-152-193.dyn.centurytel.net)
21:38lucascastro has joined IRC (lucascastro!~lucas@177-185-141-105.isotelco.net.br)
22:16lucascastro has left IRC (lucascastro!~lucas@177-185-141-105.isotelco.net.br, Ping timeout: 260 seconds)
22:25lucascastro has joined IRC (lucascastro!~lucas@177-185-141-105.isotelco.net.br)
22:27gbaman has left IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net, Remote host closed the connection)
22:29gbaman has joined IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net)
22:34gbaman has left IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net, Remote host closed the connection)
22:34gbaman has joined IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net)
22:39gbaman has left IRC (gbaman!~gbaman@cpc104700-belf11-2-0-cust917.2-1.cable.virginm.net, Ping timeout: 268 seconds)
23:06mmarconm has joined IRC (mmarconm!~mmarconm@unaffiliated/mmarconm)