Re: Ubuntu 22.04: problem installing nvidia-driver-525

2023-04-20 Diskussionsfäden Thomas Lange
Here's the log of an Ubuntu installation using FAI 6 and Ubuntu 22.04
in kvm (no real nvidia HW available)

http://public.cs.uni-koeln.de/lange/ubuntu-fai.log

There's no problem by using the wrong kernel. Have a look at line
9236ff

The installaion ISO was created using https://fai-project.org/FAIme,
and I've selected Ubuntu version and added the two packages

  linux-headers-generic nvidia-driver-525

Maybe this helps
-- 
regards Thomas


Re: Ubuntu 22.04: problem installing nvidia-driver-525

2023-04-20 Diskussionsfäden Thomas Lange
> On Thu, 20 Apr 2023 13:14:04 +0200, Andreas Sindermann 
>  said:


> It should create the initramfs in the Ubuntu environment, not in the 
> Debian environment...
update-initramfs should recreate the initrd.

-- 
viele Grüße Thomas


Re: Ubuntu 22.04: problem installing nvidia-driver-525

2023-04-20 Diskussionsfäden Andreas Sindermann




On 4/20/23 13:07, Thomas Lange wrote:

On Thu, 20 Apr 2023 10:45:52 +0200, Andreas Sindermann 
 said:


 > Hi all,
 > there seems to be a problem installing a Ubuntu 22.04 package that is
 > trying to call update-initramfs:

 > update-initramfs: Generating /boot/initrd.img-5.10.0-18-amd64
 > W: missing /lib/modules/5.10.0-18-amd64
 > W: Ensure all necessary drivers are built into the linux image!
 > depmod: ERROR: could not open directory /lib/modules/5.10.0-18-amd64: No
 > such file or directory
Is 5.10.0-18-amd64 the kernel version, that is running during the
installation? Or is it the ubuntu kernel version inside /target?


Yes, it seems that  5.10.0-18-amd64  is indeed the Debian kernel running 
during the installation:



root@jammysrv:/srv/fai/nfsroot/lib/modules# ls
5.10.0-18-amd64




My guess is that update-initramfs tries to build an initrd for the
wrong kernel version.

Can you just ignore this error, or does the installation aborts?



The installation itself continues but the gpu is not identified when 
booting the installed Ubuntu 22.04:


root@l96:~# lspci  |grep -i nvi
01:00.0 VGA compatible controller: NVIDIA Corporation Device 2507 (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 228e (rev a1)

It should create the initramfs in the Ubuntu environment, not in the 
Debian environment...


Thanks!
Andreas




regards Thomas


--
Dr. Andreas Sindermann   fon: +49 (221) 470-4201
Institut fuer Theoretische Physikfax: +49 (221) 470-5159
Universitaet zu Koeln
Zuelpicher Str. 77   mailto:sin...@thp.uni-koeln.de
D-50937 Koeln, Germany   http://www.thp.uni-koeln.de/~sinder


Re: Ubuntu 22.04: problem installing nvidia-driver-525

2023-04-20 Diskussionsfäden Thomas Lange
>>>>> On Thu, 20 Apr 2023 10:45:52 +0200, Andreas Sindermann 
>>>>>  said:

> Hi all,
> there seems to be a problem installing a Ubuntu 22.04 package that is 
> trying to call update-initramfs:

> update-initramfs: Generating /boot/initrd.img-5.10.0-18-amd64
> W: missing /lib/modules/5.10.0-18-amd64
> W: Ensure all necessary drivers are built into the linux image!
> depmod: ERROR: could not open directory /lib/modules/5.10.0-18-amd64: No 
> such file or directory
Is 5.10.0-18-amd64 the kernel version, that is running during the
installation? Or is it the ubuntu kernel version inside /target?

My guess is that update-initramfs tries to build an initrd for the
wrong kernel version.

Can you just ignore this error, or does the installation aborts?


regards Thomas


Ubuntu 22.04: problem installing nvidia-driver-525

2023-04-20 Diskussionsfäden Andreas Sindermann

Hi all,

there seems to be a problem installing a Ubuntu 22.04 package that is 
trying to call update-initramfs:



root@jammysrv:~# cat /srv/fai/config/package_config/NVIDIACURRENT
PACKAGES install
linux-headers-generic
nvidia-driver-525
#nvidia-cuda-toolkit


Error messages in fai.log:


Setting up nvidia-kernel-common-525 (525.105.17-0ubuntu0.22.04.1) ...
update-initramfs: deferring update (trigger activated)
update-initramfs: Generating /boot/initrd.img-5.10.0-18-amd64
W: missing /lib/modules/5.10.0-18-amd64
W: Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/5.10.0-18-amd64: No 
such file or directory

depmod: FATAL: could not search modules: No such file or directory
cat: 
/var/tmp/mkinitramfs_Oa84zB/lib/modules/5.10.0-18-amd64/modules.builtin: 
No such file or directory




Kind regards,
Andreas

--
Dr. Andreas Sindermann   fon: +49 (221) 470-4201
Institut fuer Theoretische Physikfax: +49 (221) 470-5159
Universitaet zu Koeln
Zuelpicher Str. 77   mailto:sin...@thp.uni-koeln.de
D-50937 Koeln, Germany   http://www.thp.uni-koeln.de/~sinder



Re: Ubuntu-22.04

2022-05-19 Diskussionsfäden Thomas Lange
>>>>> On Wed, 20 Apr 2022 09:40:17 +0200, Stefan Möding  said:


    > Ubuntu-22.04 now uses the zstd(1) compression program for packages.  FAI
> can't install these packages out of the box because debootstrap on
> Debian-11 doesn't know about this compression format.  Here are the things
> I changed.
I would just install debootstrap >= 1.0124 on my machine, because this
version added zstd support. Normally it's easy to install a newer version
of debootstrap because it has no special dependencies.
But I didn't tested this yet.
-- 
regards Thomas


Re: Ubuntu 22.04

2022-05-18 Diskussionsfäden Vinzenz Vietzke

Hi Bruno,

Am 2022-05-18 16:57, schrieb bruno pinto:

Hello ,

When will the new version of ubuntu be available in the Fai basefiles?

Or is there another way to generate your own basefile?


Maybe have a look here: 
https://github.com/faiproject/fai-config/blob/master/basefiles/mk-basefile


Extending this script for Jammy shouldn't be too complicated. If you 
want to try, here's my fork with JAMMY64 added (but untested!):

https://github.com/vinzv/fai-config/blob/master/basefiles/mk-basefile

Cheers,

vinz.


Ubuntu 22.04

2022-05-18 Diskussionsfäden bruno pinto
Hello , 

When will the new version of ubuntu be available in the Fai basefiles?

Or is there another way to generate your own basefile?

Kind regards,
Bruno Pinto

--- 
Bruno FERREIRA PINTO
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 100A Pce A118
91898 Orsay Cédex
---


Ubuntu-22.04

2022-04-20 Diskussionsfäden Stefan Möding
Hi,

I updated my current FAI setup to install the recently released
Ubuntu-22.04 with it.

Ubuntu-22.04 now uses the zstd(1) compression program for packages.  FAI
can't install these packages out of the box because debootstrap on
Debian-11 doesn't know about this compression format.  Here are the things
I changed.

1) Create the directory /srv/fai/config/debootstrap in my config space and
populate it with the content of the original /usr/share/debootstrap.
I didn't want to mess with the original files installed by Debian, so
I use a local copy that I can update for FAI.

2) Apply the attached patch "functions.patch" to
/srv/fai/config/debootstrap/functions.  This will add support for zstd
compression.

3) Apply the attached patch "mk-basefile.patch" to the mk-basefile script.
Now debootstrap will a) use the patched functions and b) use "ar" to
unpack the Ubuntu-22.04 packages.  Make sure you have the packages zstd
and binutils installed on the FAI server to provide the needed binaries.

These are the changes I made to create a basefile for Ubuntu-22.04.

The patches do not include other changes to support Ubuntu-22.04 with
mk-basefile to prevent to much noise.  Obviously the list of packages and
the name of the OS need to be configured.  Other files/scripts in the
config space also need to be updated.

Maybe this will get you started when you plan to include the new Ubuntu
release in your FAI setup.

Regards,
Stefan

--- functions.orig	2019-01-09 14:00:04.0 +0100
+++ functions	2022-04-12 14:12:51.590232162 +0200
@@ -958,6 +958,7 @@
 	case "$tarball" in
 		control.tar.gz) cat_cmd=zcat ;;
 		control.tar.xz) cat_cmd=xzcat ;;
+		control.tar.zst) cat_cmd=zstdcat ;;
 		control.tar)cat_cmd=cat ;;
 		*) error 1 UNKNOWNCONTROLCOMP "Unknown compression type for %s in %s" "$tarball" "$pkg" ;;
 	esac
@@ -980,6 +981,7 @@
 		data.tar.gz)  cat_cmd=zcat ;;
 		data.tar.bz2) cat_cmd=bzcat ;;
 		data.tar.xz)  cat_cmd=xzcat ;;
+		data.tar.zst) cat_cmd=zstdcat ;;
 		data.tar) cat_cmd=cat ;;
 		*) error 1 UNKNOWNDATACOMP "Unknown compression type for %s in %s" "$tarball" "$pkg" ;;
 	esac
diff --git i/basefiles/mk-basefile w/basefiles/mk-basefile
index 085b9a48..e3c2f430 100755
--- i/basefiles/mk-basefile
+++ w/basefiles/mk-basefile
@@ -15,8 +15,9 @@
 # Scientific Linux Cern 5/6
 #
 # Packages you might want to install to use this command:
-# debootstrap, rinse, xz-utils
+# debootstrap, rinse, xz-utils, zstd
 
+export DEBOOTSTRAP_DIR=/srv/fai/config/debootstrap
 
 # Define your local mirros here
 # For the first stage, set the CentOS/SLC mirror in /etc/rinse/rinse.conf
@@ -195,7 +196,7 @@ debgeneric() {
 	else
 arch=i386
 	fi
-	debootstrap --arch $arch ${exc} $inc $dist $xtmp $mirror
+	debootstrap --extractor=ar --arch $arch ${exc} $inc $dist $xtmp $mirror
 fi
 cleanup-deb
 tarit

-- 
Lisp without parentheses is like Python without whitespace.