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


Channel log from 14 December 2021   (all times are UTC)

02:09Vercas has left IRC (Vercas!~Vercas@gateway/tor-sasl/vercas, Remote host closed the connection)
02:09Vercas6 has joined IRC (Vercas6!~Vercas@gateway/tor-sasl/vercas)
02:18Vercas6 has left IRC (Vercas6!~Vercas@gateway/tor-sasl/vercas, Ping timeout: 276 seconds)
02:23Vercas has joined IRC (Vercas!~Vercas@gateway/tor-sasl/vercas)
04:02vagrantc has left IRC (vagrantc!~vagrant@2600:3c01:e000:21:21:21:0:100e, Quit: leaving)
05:57lucascastro has left IRC (lucascastro!~lucascast@192-140-51-187.static.oncabo.net.br, Ping timeout: 252 seconds)
06:42ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)
09:37jgee1 has joined IRC (jgee1!~jgee@186.80.49.20)
09:46jgee has left IRC (jgee!~jgee@186.80.49.20, *.net *.split)
09:46jgee1 is now known as jgee
10:15woernie has joined IRC (woernie!~werner@p5b296789.dip0.t-ipconnect.de)
10:18danboid has joined IRC (danboid!~dan@cpc127016-macc4-2-0-cust104.1-3.cable.virginm.net)
10:19
<danboid>
alkisg, I just tried to install the ltsp server packages under 20.04 (server) and the installation has stalled on the line:
10:20
Hmm its done now :)
10:20
Lucky escape!
10:20
My expectations get warped by using u.2 SSDs in RAID 10 :)
10:21
FASTER! :D
10:22
<alkisg>
👍️
10:25
<danboid>
alkisg, OK, so, before I run
10:25
ltsp dnsmasq
10:27
What would you recommend I do immediately after running that command to prevent this new LTSP server clashing with the existing LTSP server? Maybe disable one of the services?
10:28
I think to test it we'll be temp disabling the old LTSP server and handing over to th new one rather that creating MAC address lists on the DHCP server
10:28
If that makes sense
10:29
<alkisg>
sudo ltsp dnsmasq -p0 -r0
10:29
This disables both proxy and real dhcp, so it's not interfering with anything
10:29
<danboid>
Ah cool. So to reverse that I'd run
10:30
sudo ltsp dnsmasq -p1 -r1 ?
10:31
I'm sue its man page will tell me
10:35
<alkisg>
Yeah
10:36
<danboid>
OK seems I'd need to
10:36
run
10:37
ltsp dnsmasq -p $IPADDRESSOFDHCPSERVER
10:37
When I want to activate it
10:37
Obvs replacing $IPADDRESSOFDHCPSERVER with our DHCP servers address
10:43
<alkisg>
I don't know what your current DHCP setup is
10:43
If you want ltsp in proxy mode, then it's just: ltsp dnsmasq
10:49
<danboid>
alkisg, https://paste.ubuntu.com/p/hDVSRNYtqw/
10:50
<alkisg>
danboid: is it a flat image with the first partition = ext4?
10:50
<danboid>
alkisg, Also, what permissions should I use for the disk image files
10:50woernie has left IRC (woernie!~werner@p5b296789.dip0.t-ipconnect.de, Ping timeout: 256 seconds)
10:50woernie has joined IRC (woernie!~werner@p578bb7b6.dip0.t-ipconnect.de)
10:50
<danboid>
alkisg, I used VBoxManage to turn the vdi file into a RAW disk image
10:50
<alkisg>
It doesn't sound like it succeeded
10:50
<danboid>
I used the default install options in Ubuntu 20.04 desktop
10:51
<alkisg>
It's usually easier to have the disk image files in the administrator account, e.g. even in ~/Virtualbox VMs/image-flat.vmdk, and just symlink them to /srv/ltsp/image.img
10:53
Then a plain `ltsp image` from anywhere works
10:53
<danboid>
-rw------- 1 root root 53687091200 Dec 14 10:40 Ubuntu-20.04.raw
10:53
<alkisg>
Don't you want to boot it with virtualbox again?
10:53
If it's owned by root, you'll have a hard time booting it
10:53
<danboid>
I'm going to be updating it using qemu most likely
10:54
<alkisg>
Still, why would you want to use root to update a vm
10:54
<danboid>
Yes, what are the optimal permissions?
10:54
<alkisg>
qemu runs as the user with no issues
10:54
Noone needs to read that file except you
10:54
sudo ltsp image will have enough permissions no matter what you put there
10:55
So you can be as restrictive as you like
10:55
<danboid>
OK so I should've used a custom partition layout then, not the Ubuntu default?
10:55
<alkisg>
What's the current partition layout? Put it to pastebin
10:55
sudo fdisk -l /path/to/raw
10:55
* -l /path/to/raw | nc termbin.com 9999
10:56
<danboid>
Oh christ! Since when did vbox default to using UEFI?
10:57
I presumed it default to BIOS boot like virt-manager still does
10:57
<alkisg>
ltsp can still mount the second partition of that image, but it'll need a ,partition= parameter in ltsp image to do so
10:57
See the ltsp image man page for that
10:57
It's generally easier to just rewrite the partition table
10:58
<danboid>
rewrite the partition table?
10:59
<alkisg>
Switch it from gpt/grub-uefi to mbr/grub-bios
11:00
<danboid>
I've never done that. fdisk can do that?
11:01
<alkisg>
Eeeh that'll need more time to explain than I currently have; do cp or reinstall or whatever it's easier for you :)
11:04
<danboid>
I wonderred if you knew a single comand that could do that. I could do it manually but I'd rather just use te partition option for now. Lesson learned about vbox and ltsp image
11:05
<alkisg>
More than one command is needed to convert a gpt disk to mbr
11:06
<danboid>
Yeah, thats how I'd be doing it. In several stages
11:08
Maybe we could add a --uefi option to LTSP that would work with a default Ubuntu UEFI image?
11:08
to ltsp image
11:08
or it just autodetets
11:10
<alkisg>
There's a ,partition option, see the man page...
11:10
Autodetection would be nice, sure, except that it's possible to put the kernel in a fat partition
11:10
So it might work for some cases, and break others, it'll need a lot of time+checks
11:11
<danboid>
Whats the man page command for ltsp image?
11:11
That should be added to the install guide
11:12
and/or a link to the actual man page
11:12
<alkisg>
man ltsp image
11:12
or man ltsp-image
11:12
Or https://ltsp.org/man/ltsp-image/
11:13
Both of them are already there in the installation guide
11:14
<danboid>
Not quite
11:14
https://ltsp.org/docs/installation/
11:14
<alkisg>
Sorry no time to chat more, back later
11:14* alkisg will have little free time for the next few months...
11:14
<danboid>
says
11:14
see the ltsp image man page EXAMPLES section for how to include them
11:14
It should say
11:15
<alkisg>
The LTSP supports three methods to maintain a client image. They are documented in the ltsp image man page.
11:15
(from that page)
11:15
Anyway, feel free to send a PR if you wish, the site code is on github
11:15
<danboid>
see `man ltsp-image` ..
11:15
I will do yes
11:15
<alkisg>
👍️
11:16
<danboid>
The other prob is that this is the only example I see in there for partitions and I don't understand it:
11:16
ltsp image /,,/boot,subdir=boot,,/opt,subdir=opt
11:16
Whuh?
11:17
Here's my default vbox Ubuntu install UEFI partition layout
11:17
https://paste.ubuntu.com/p/5xHqZP5fdd/
11:18
So what would be the woprking ltsp image command?
11:20
We'll get this added to the LTSP image man page / install guide as an example
11:21
seeing as this will be a very common use case
11:26
alkisg, There is no mention of a partition option in the current ltsp-image man page
11:27
I think I understand the format
11:27lucascastro has joined IRC (lucascastro!~lucascast@192-140-51-187.static.oncabo.net.br)
11:27
<danboid>
alkisg, Woukld it be
11:28
ltsp image /,/dev/sda5
11:28
or
11:45
Nope
11:45
I've looked at /usr/share/ltsp/server/image/35-image.sh and there is no support for alternate partition maps that I can see
11:45
So looks like I'll have to convert my image to a non-UEFI image
11:50
alkisg, So it needs to be a raw MBR disk image with only 1 ext4 partition?
12:06
I'm making notes on the steps I take to convert the image
14:19dan_ has joined IRC (dan_!~dan@portal.salford.ac.uk)
14:22danboid has left IRC (danboid!~dan@cpc127016-macc4-2-0-cust104.1-3.cable.virginm.net, Ping timeout: 256 seconds)
15:29dan_ is now known as danboid
15:31
<danboid>
alkisg, Pfft! Took me most of the day to convert the image. Probably would've been faster for me to redo it :)
15:31
alkisg, I've documented it tho so will add that to the wiki
15:32
Could be useful to others until ltsp image supports EFI partitions
15:32
<alkisg>
danboid: ltsp does support the partition= parameter that I mentioned, that can boot from gpt/uefi installations
15:32
I do not have enough time to help you locate the information though, sorry...
15:33
It's been also discussed in the github discussions
15:33
<danboid>
alkisg, I looked at the image script and I couldn't see any such feature and its not covered in the man page
15:34
<alkisg>
OK, I'll have a look in January when I'll have time to document this
15:34
<danboid>
I didn't trawl the gh discussions. All important stuff such as this needs top be in the man pages or people won't find it
15:35
<alkisg>
tsp/common/ltsp/55-images.sh: partition=
15:35
lltsp/common/ltsp/55-images.sh: partition=*) partition=$value ;;
15:35
<danboid>
OK, I was looking at /usr/share/ltsp/server/image/35-image.sh
15:35
<alkisg>
Currently, that's all I can offer wrt ltsp
15:36
In January, I'll have a bit more time to fix a few things and release the 22.01 version, for Ubuntu 22.04
15:36
I do not have time for more, even if they're needed or expected
15:37
If ltsp had another long-term developer, that codes and documents and answers github discussions etc etc, I'm sure it would be in a better place. Currently, it is what it is ... :)
15:45
(most of the image handling code is in common because it's also used when the client boots; i.e. ltsp can boot directly from the vm-flat.vmdk, without running ltsp image at all; very useful for quick testing or even for booting unmodified .isos)
15:49
It's even possible to reboot your server, and ask ltsp to boot the server itself using the .vmdk image that is located in the X partition. Very handy, but it's not something that should be documented for all users, it would just confuse them...
15:50
<danboid>
It not safe to run
15:50
ltsp dnsmasq
15:50
Without configuring it first
15:51
My server hasn't been too happy since
15:54
The main interface is bond0 - 4x 1Gb ethernet connections bonded and then it hasd a separate 10gb nic
15:55
If a user has anyting a bit non-standard like this, should they not run `ltsp dnsmasq`?
15:55
<alkisg>
I'd like to mention a last thing: these months I'm time-pressed. I don't want to be completely unresponsive though, I don't like that. I can spend a few minutes per day helping ltsp users, but no more. So is possible, I would like to respond to e.g. one question per user per day or something like that; no time for long chats now
15:56
I hope that's OK, but even if it's not, that's all I can do currently. And with that, /me waves, back to work for now...! :)
15:56
<danboid>
That's understandable
16:08woernie has left IRC (woernie!~werner@p578bb7b6.dip0.t-ipconnect.de, Ping timeout: 250 seconds)
16:09woernie has joined IRC (woernie!~werner@p5b296789.dip0.t-ipconnect.de)
16:16
<danboid>
Hiopefully my network issues have ben fixed by running
16:16
sudo systemctl mask systemd-networkd-wait-online.service
16:17
Which I didn't think was still necessary but looks like it is
16:17lucascastro has left IRC (lucascastro!~lucascast@192-140-51-187.static.oncabo.net.br, Ping timeout: 240 seconds)
16:37
<danboid>
If I wanted to chainload LTSP's ipxe from GRUB4DOS, what address would I use? Something like
16:38
http://myserver.com/ltsp/boot.ipxe
16:38
Hyperbyte, ?
16:40
Hmmm, seems I've trashed my server by installing LTSP server on it. I keep on getting disconnected from SSH and then I can't reconnect again until I use iDRAC to reboot it
16:41lucascastro has joined IRC (lucascastro!~lucascast@45-167-143-6.netfacil.inf.br)
16:41
<danboid>
I'm going to have to look at what ltsp dnsmasq etc actually do
16:41
ie what assumptions they make about network devices
16:55bcg has left IRC (bcg!~b@dg4ybwyyyyyyyyyyyyyyt-3.rev.dnainternet.fi, Ping timeout: 268 seconds)
17:18bcg has joined IRC (bcg!~b@213-216-205-19.co.dnainternet.fi)
17:50woernie has left IRC (woernie!~werner@p5b296789.dip0.t-ipconnect.de, Ping timeout: 240 seconds)
17:50woernie has joined IRC (woernie!~werner@p578bb7b6.dip0.t-ipconnect.de)
20:28lucascastro has left IRC (lucascastro!~lucascast@45-167-143-6.netfacil.inf.br, Read error: Connection reset by peer)
20:29ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Quit: Leaving)
20:34lucascastro has joined IRC (lucascastro!~lucascast@45-167-143-6.netfacil.inf.br)
20:44lucascastro has left IRC (lucascastro!~lucascast@45-167-143-6.netfacil.inf.br, Remote host closed the connection)
21:03dan_ has joined IRC (dan_!~dan@cpc127016-macc4-2-0-cust104.1-3.cable.virginm.net)
21:05danboid has left IRC (danboid!~dan@portal.salford.ac.uk, Ping timeout: 252 seconds)
21:21lucascastro has joined IRC (lucascastro!~lucascast@192-140-51-187.static.oncabo.net.br)
21:53dan_ has left IRC (dan_!~dan@cpc127016-macc4-2-0-cust104.1-3.cable.virginm.net, Remote host closed the connection)