Hello, I'm x2go user since some years ago. Now trying to install a new PXEBOOT server. What I did:
Updated x2go sources according: https://wiki.x2go.org/doku.php/wiki:repositories:debian
Then continued building system with instructions https://wiki.x2go.org/doku.php/doc:howto:tce#building_your_own_x2go-tce_imag...
$ apt-get install genisoimage git-core live-build live-config-doc live-manual-html live-boot-doc lsb-release netcat-traditional $ apt-get install apt-cacher-ng $ apt-get install qemu-user-static # dpkg -l|grep x2go ii x2go-keyring 2019.08.20+git20190820.118+10.main.1 all GnuPG keys of all X2Go developers and the X2Go archive rc x2gothinclient-management 1.5.0.1-0x2go2+git20191129.725+10.main.1 all Management tools for X2Go Thin Client chroot server
$ mkdir /usr/local/x2gobuild ; cd /usr/local/x2gobuild
# then created the three files patchscript/x2go-tce-build/x2go-tce-config # applied patchscript and started to build
root@pxeserver:/usr/local/x2gobuild# ./x2go-tce-build .... cryptsetup: WARNING: Couldn't determine root device cryptsetup: ERROR: Couldn't resolve device /dev/sda3 cryptsetup: WARNING: The initramfs image may not contain cryptsetup binaries nor crypto modules. If that's on purpose, you may want to uninstall the 'cryptsetup-initramfs' package in order to disable the cryptsetup initramfs integration and avoid this warning. ....
Build is done: './live-build-x2go-20200227200355-netboot-amd64-openbox-magic-pixel-workaround-buster' 641641 bloques [2020-02-27 20:20:07] lb clean P: Cleaning chroot root@pxeserver:/usr/local/x2gobuild#
http server installed. Both x2go-tce.sessions & x2go-tce-filesystem.squashfs are accesible through niginx. root@pxeserver:/usr/local/x2gobuild# cp live-build-x2go-20200227200355-netboot-amd64-openbox-magic-pixel-workaround-buster/x2go-tce-filesystem.squashfs /var/www/html/x2go-tce/
dhcp server installed and working.
Netbooting 4.1) atftp server working 4.2) Copied x2go-tce-vmlinuz and x2go-tce-initrd.img to /srv/tftp/x2go-tce 4.3) created in tftproot "pxelinux.cfg/x2go-tce" (file reference to x2go-tce/vmlinuz and x2go-tce/initrd.img instead, changed that)
4.4) looking for a pxelinux.0 file:
4.4.1) root@pxeserver :/usr/local/x2gobuild/live-build-x2go-20200227200355-netboot-amd64-openbox-magic-pixel-workaround-buster# cp live-image-amd64.netboot.tar /srv/tftp/ root@pxeserver:/usr/local/x2gobuild/live-build-x2go-20200227200355-netboot-amd64-openbox-magic-pixel-workaround-buster# tar xvf live-image-amd64.netboot.tar
# copied tftpboot directory to tftproot directory root@pxeserver:/srv/tftp# ls advanced.cfg install.cfg libcom32.c32 libmenu.c32 live menu.cfg pxelinux.cfg stdmenu.cfg x2go-tce hdt.c32 ldlinux.c32 libgpl.c32 libutil.c32 live.cfg pxelinux.0 splash.png vesamenu.c32
---> Result, system does not boot (ethernet driver fails) or
4.4.2) Using old x2gothinclient_preptftpboot script ---> System boots but login screen offers to connect to an X server somewhere in the Internet (seems is not using sessions file)
Thanks in advance,
-- Luciano Andino Master en Ing. de Software - BMSTU Ing. en Sistemas de Información - UTN FRSF
Am 28.02.20 um 17:27 schrieb Luciano Andino:
Hello, I'm x2go user since some years ago. Now trying to install a new PXEBOOT server. What I did:
[snip]
Build is done:
'./live-build-x2go-20200227200355-netboot-amd64-openbox-magic-pixel-workaround-buster' 641641 bloques [2020-02-27 20:20:07] lb clean P: Cleaning chroot root@pxeserver:/usr/local/x2gobuild#
Looks good.
- http server installed. Both x2go-tce.sessions & x2go-tce-filesystem.squashfs are accesible through niginx. root@pxeserver:/usr/local/x2gobuild# cp live-build-x2go-20200227200355-netboot-amd64-openbox-magic-pixel-workaround-buster/x2go-tce-filesystem.squashfs /var/www/html/x2go-tce/
So what's the full URL for each of them?
* dhcp server installed and working.
Netbooting 4.1) atftp server working 4.2) Copied x2go-tce-vmlinuz and x2go-tce-initrd.img to /srv/tftp/x2go-tce 4.3) created in tftproot "pxelinux.cfg/x2go-tce" (file reference to x2go-tce/vmlinuz and x2go-tce/initrd.img instead, changed that)
4.4) looking for a pxelinux.0 file:
4.4.1) root@pxeserver :/usr/local/x2gobuild/live-build-x2go-20200227200355-netboot-amd64-openbox-magic-pixel-workaround-buster# cp live-image-amd64.netboot.tar /srv/tftp/ root@pxeserver:/usr/local/x2gobuild/live-build-x2go-20200227200355-netboot-amd64-openbox-magic-pixel-workaround-buster# tar xvf live-image-amd64.netboot.tar
# copied tftpboot directory to tftproot directory root@pxeserver:/srv/tftp# ls advanced.cfg install.cfg libcom32.c32 libmenu.c32 live menu.cfg pxelinux.cfg stdmenu.cfg x2go-tce hdt.c32 ldlinux.c32 libgpl.c32 libutil.c32 live.cfg pxelinux.0 splash.png vesamenu.c32
---> Result, system does not boot (ethernet driver fails)
The question is: what's inside the *.cfg files there? You're not following the instructions from the Wiki if you're using the tar file. I mean, it's okay to do that if you don't have an existing PXE setup that this might interfere with *and you know what you are doing*, but for a first-time setup, sticking to the instructions really is the better idea.
"Our" instructions say you need to copy the kernel, initrd and squashfs files that are created by our build script (they all start with x2go-tce-*), and manually edit the .cfg file, see <https://wiki.x2go.org/doku.php/doc:howto:tce#setting_up_your_own_netbootable_x2go-tce_environment> Section "Adding the configuration files to your Boot Server", especially the third bullet point there, and the example *you need to edit* below.
4.4.2) Using old x2gothinclient_preptftpboot script ---> System boots but login screen offers to connect to an X server
somewhere in the Internet (seems is not using sessions file)
That sounds like you're mixing NFS and Live-Boot. Don't do that. NFS doesn't understand Live-Boot's boot parameters, so you can't tell it where to find its config file via a boot parameter.
-Stefan
-- BAUR-ITCS UG (haftungsbeschränkt) Geschäftsführer: Stefan Baur Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364 Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243