From R.Schulz at dvz-mv.de Mon Mar 2 10:43:02 2015 From: R.Schulz at dvz-mv.de (Schulz, Reiner) Date: Mon, 2 Mar 2015 09:43:02 +0000 Subject: task_error bei softupdate Message-ID: <8366374F3A57564BBED164D1981FA6940B65CE53@DVZSN-RA0325.bk.dvz-mv.net> ... Die Frage ist also eher: Soll dann abgebrochen werden oder soll der Wert ignoriert werden. Das ist eine Designentscheidung, wobei ich zu ersterem tendiere: Wenn es einen fatalen Fehler in einem hook gibt, sollte FAI abbrechen. Daf?r scheint mir der Error-Code 99 ideal zu sein... ... Ich hatte auf dieser Liste ein Posting von Thomas gefunden in der er schrieb, das task_error genau daf?r gedacht ist. Deshalb habe ich diesen Weg gew?hlt. Reiner From werner.pommerer at uni-hohenheim.de Fri Mar 20 14:06:05 2015 From: werner.pommerer at uni-hohenheim.de (Werner Pommerer) Date: Fri, 20 Mar 2015 14:06:05 +0100 Subject: fai-make-nfsroot Message-ID: <003701d0630e$a1784490$e468cdb0$@pommerer@uni-hohenheim.de> Hello, after a new fai version on the the fai-server is installed, what is the correct way, the install-clients will use this new version. I got troubles after fai-make-nfsroot ?f. The client installation failed completely. Regards Werner Pommerer Universit?t Hohenheim Kommunikations-, Informations- und Medienzentrum (630) IT-Dienste | Systemtechnik und Betrieb Schloss, Westhof S?d | 70599 Stuttgart Tel.: +49 711 459-22837 | Fax: +49 711 459-23449 E-Mail: werner.pommerer at uni-hohenheim.de Web: https://kim.uni-hohenheim.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From lange at informatik.uni-koeln.de Fri Mar 20 18:02:38 2015 From: lange at informatik.uni-koeln.de (Thomas Lange) Date: Fri, 20 Mar 2015 18:02:38 +0100 Subject: fai-make-nfsroot In-Reply-To: <003701d0630e$a1784490$e468cdb0$@pommerer@uni-hohenheim.de> References: <003701d0630e$a1784490$e468cdb0$@pommerer@uni-hohenheim.de> Message-ID: <21772.21166.304409.259580@kueppers.informatik.uni-koeln.de> >>>>> On Fri, 20 Mar 2015 14:06:05 +0100, "Werner Pommerer" said: > after a new fai version on the the fai-server is installed, what is the correct way, > the install-clients will use this new version. I got troubles after fai-make-nfsroot ?f. > The client installation failed completely. Please add some more detailed error description. First try fai-make-nfsroot -fv and see if this runs smoothly without any errors. -- regards Thomas From steven.wend at t-online.de Mon Mar 23 12:22:44 2015 From: steven.wend at t-online.de (steven.wend at t-online.de) Date: Mon, 23 Mar 2015 12:22:44 +0100 Subject: Variable DOMAIN in get-boot-info ignored in case of IP as kernel parameter Message-ID: <1561903065550ff7847453d5.94938450@email.t-online.de> Hello to all, inside a test net I' am not using an DHCP server so all maschine have static IPs. Thats why I have set ip, gateway, dns and domain as kernel parameters. Version is: apt-cache policy fai-server fai-server: Installed: 4.3.2 Kernel Parameters are: [...] ip=" + hostip + "::" + standgateway + ":255.255.255.0:" + vmhostname + ":eth0:none:: root=/dev/nfs nfsroot=" + faiserver + ":/srv/fai/nfsroot/debian8 FAI_FLAGS=verbose,sshd,createvt FAI_CONFIG_SRC=nfs://" + faiserver + "/srv/fai/config/debian8 FAI_ACTION=install DNSSRVS=" + dnsserver + " DOMAIN=" + domain + " GATEWAYS=" + standgateway [...] Everything works fine except the domain variable. The reason ist the script "get-boot-info". In case if a static ip the domain isn't set to $bootlog. setnet() { # get network parameters # first get first active network device local dev dummy dev=$(ip ad show up | awk -F': ' '/^[0-9]/ && ! / lo:/ {print $2;exit}') if [ -z "$dev" ]; then sleep 3 # if interface needs some time to come up dev=$(ip ad show up | awk -F': ' '/^[0-9]/ && ! / lo:/ {print $2;exit}') fi read IPADDR NETMASK BROADCAST dummy<<<$(ifdata -p $dev) GATEWAYS=$(ip route | awk '/^default/ {print $3}') cat >> $bootlog <<-EOF netdevices_all="$netdevices_all" netdevices_up="$netdevices_up" netdevices="$netdevices" IPADDR=$IPADDR SERVER=$SERVER NETMASK=$NETMASK GATEWAYS=$GATEWAYS BROADCAST=$BROADCAST EOF } And at the end of the script $bootlog is getting checked for "DOMAIN=" which would never be true and causes an localdomain. if ! grep -q DOMAIN= $bootlog; then echo 'Warning: no domain name configured, using "localdomain"' >&2 echo "DOMAIN=localdomain" >> $bootlog fi I'm not sure about this - bug or not? Or is there another reason at all not seen by me? Cheers Steven This can be fixed by adding DOMAIN=$DOMAIN to setnet(). ---------------------------------------------------------------- Profitieren Sie von der sicheren E-Mail-?bertragung Ihrer Daten mit einer kostenlosen E-Mail-Adresse der Telekom. www.t-online.de/email-kostenlos From lange at informatik.uni-koeln.de Tue Mar 24 11:43:16 2015 From: lange at informatik.uni-koeln.de (Thomas Lange) Date: Tue, 24 Mar 2015 11:43:16 +0100 Subject: Variable DOMAIN in get-boot-info ignored in case of IP as kernel parameter In-Reply-To: <1561903065550ff7847453d5.94938450@email.t-online.de> References: <1561903065550ff7847453d5.94938450@email.t-online.de> Message-ID: <21777.16324.716002.654069@paeffgen.informatik.uni-Koeln.de> >>>>> On Mon, 23 Mar 2015 12:22:44 +0100, "steven.wend at t-online.de" said: > And at the end of the script $bootlog is getting checked for "DOMAIN=" which would never be true and causes an localdomain. > I'm not sure about this - bug or not? Or is there another reason at all not seen by me? > This can be fixed by adding DOMAIN=$DOMAIN to setnet(). Hi Steven, thanks for the bug report. I've patched it theway you've recommended: diff --git a/lib/get-boot-info b/lib/get-boot-info index 01b5da7..e0fbde6 100755 --- a/lib/get-boot-info +++ b/lib/get-boot-info @@ -83,6 +83,11 @@ setnet() { GATEWAYS=$GATEWAYS BROADCAST=$BROADCAST EOF + + if [ -n "$DOMAIN" ]; then + # DOMAIN was specified on the kernel command line + echo "DOMAIN=$DOMAIN" >> $bootlog + fi } # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - get_fixed_info() { -- regards Thomas From Werner.Pommerer at uni-hohenheim.de Wed Mar 25 13:54:27 2015 From: Werner.Pommerer at uni-hohenheim.de (Werner.Pommerer at uni-hohenheim.de) Date: Wed, 25 Mar 2015 13:54:27 +0100 Subject: fai-make-nfsroot In-Reply-To: <21772.21166.304409.259580@kueppers.informatik.uni-koeln.de> References: <003701d0630e$a1784490$e468cdb0$@pommerer@uni-hohenheim.de> <21772.21166.304409.259580@kueppers.informatik.uni-koeln.de> Message-ID: <20150325135427.Horde.y_U6-vKexzAoMTVwXwKMig1@webmail.uni-hohenheim.de> Hello, root at btwp3:/tmp>fai-make-nfsroot -fv Using configuration files from /etc/fai Creating FAI nfsroot in /srv/fai/nfsroot mv: cannot move `/srv/fai/nfsroot' to `/srv/fai/nfsroot/../.will-now-be-deleted/nfsroot': Directory not empty Log file written to /var/log/fai/fai-make-nfsroot.log Regards Werner ----- Nachricht von Thomas Lange --------- Datum: Fri, 20 Mar 2015 18:02:38 +0100 Von: Thomas Lange Antwort an: fully automatic installation for Linux Betreff: Re: fai-make-nfsroot An: fully automatic installation for Linux >>>>>> On Fri, 20 Mar 2015 14:06:05 +0100, "Werner Pommerer" >>>>>> said: > > > after a new fai version on the the fai-server is installed, > what is the correct way, > > the install-clients will use this new version. I got troubles > after fai-make-nfsroot ?f. > > The client installation failed completely. > Please add some more detailed error description. > First try fai-make-nfsroot -fv and see if this runs smoothly without > any errors. > -- > regards Thomas ----- Ende der Nachricht von Thomas Lange ----- From lange at informatik.uni-koeln.de Wed Mar 25 14:13:09 2015 From: lange at informatik.uni-koeln.de (Thomas Lange) Date: Wed, 25 Mar 2015 14:13:09 +0100 Subject: fai-make-nfsroot In-Reply-To: <20150325135427.Horde.y_U6-vKexzAoMTVwXwKMig1@webmail.uni-hohenheim.de> References: <003701d0630e$a1784490$e468cdb0$@pommerer@uni-hohenheim.de> <21772.21166.304409.259580@kueppers.informatik.uni-koeln.de> <20150325135427.Horde.y_U6-vKexzAoMTVwXwKMig1@webmail.uni-hohenheim.de> Message-ID: <21778.46181.254156.493351@paeffgen.informatik.uni-Koeln.de> >>>>> On Wed, 25 Mar 2015 13:54:27 +0100, Werner.Pommerer at uni-hohenheim.de said: > Hello, > root at btwp3:/tmp>fai-make-nfsroot -fv > Using configuration files from /etc/fai > Creating FAI nfsroot in /srv/fai/nfsroot > mv: cannot move `/srv/fai/nfsroot' to > `/srv/fai/nfsroot/../.will-now-be-deleted/nfsroot': Directory not empty > Log file written to /var/log/fai/fai-make-nfsroot.log OK, manually remove the directory /srv/fai/nfsroot. Then call fai-make-nfsroot -v again. -- regards Thomas From werner.pommerer at uni-hohenheim.de Thu Mar 26 14:13:20 2015 From: werner.pommerer at uni-hohenheim.de (Werner Pommerer) Date: Thu, 26 Mar 2015 14:13:20 +0100 Subject: AW: fai-make-nfsroot In-Reply-To: <21778.46181.254156.493351@paeffgen.informatik.uni-Koeln.de> References: <003701d0630e$a1784490$e468cdb0$@pommerer@uni-hohenheim.de> <21772.21166.304409.259580@kueppers.informatik.uni-koeln.de> <20150325135427.Horde.y_U6-vKexzAoMTVwXwKMig1@webmail.uni-hohenheim.de> <21778.46181.254156.493351@paeffgen.informatik.uni-Koeln.de> Message-ID: <002701d067c6$a16d6130$e4482390$@pommerer@uni-hohenheim.de> Hello, fai-make-nfsroot -v run without errors. But client-installation fails. (after booting, installation stops with a blank screen) There must be (in my case) a problem in making nfsroot. Because, when I do a "find": >find /srv/fai/nfsroot -name *fai* -print /srv/fai/nfsroot/proc/sys/vm/memory_failure_early_kill /srv/fai/nfsroot/proc/sys/vm/memory_failure_recovery /srv/fai/nfsroot/lib/x86_64-linux-gnu/security/pam_faildelay.so /srv/fai/nfsroot/var/lib/apt/lists/fai-project.org_download_dists_wheezy_koe ln_binary-amd64_Packages /srv/fai/nfsroot/var/lib/apt/lists/partial/fai-project.org_download_dists_wh eezy_Release.gpg /srv/fai/nfsroot/var/lib/apt/lists/fai-project.org_download_dists_wheezy_Rel ease /srv/fai/nfsroot/var/lib/fai /srv/fai/nfsroot/var/log/faillog /srv/fai/nfsroot/usr/bin/faillog /srv/fai/nfsroot/usr/share/man/zh_CN/man5/faillog.5.gz /srv/fai/nfsroot/usr/share/man/zh_CN/man8/faillog.8.gz /srv/fai/nfsroot/usr/share/man/sv/man5/faillog.5.gz /srv/fai/nfsroot/usr/share/man/sv/man8/faillog.8.gz /srv/fai/nfsroot/usr/share/man/it/man5/faillog.5.gz /srv/fai/nfsroot/usr/share/man/it/man8/faillog.8.gz /srv/fai/nfsroot/usr/share/man/de/man5/faillog.5.gz /srv/fai/nfsroot/usr/share/man/de/man8/faillog.8.gz /srv/fai/nfsroot/usr/share/man/fr/man5/faillog.5.gz /srv/fai/nfsroot/usr/share/man/fr/man8/faillog.8.gz /srv/fai/nfsroot/usr/share/man/cs/man5/faillog.5.gz /srv/fai/nfsroot/usr/share/man/cs/man8/faillog.8.gz /srv/fai/nfsroot/usr/share/man/pl/man5/faillog.5.gz /srv/fai/nfsroot/usr/share/man/pl/man8/faillog.8.gz /srv/fai/nfsroot/usr/share/man/man5/faillog.5.gz /srv/fai/nfsroot/usr/share/man/ja/man5/faillog.5.gz /srv/fai/nfsroot/usr/share/man/ja/man8/faillog.8.gz /srv/fai/nfsroot/usr/share/man/man8/faillog.8.gz /srv/fai/nfsroot/usr/share/man/man8/pam_faildelay.8.gz /srv/fai/nfsroot/usr/share/man/ru/man5/faillog.5.gz /srv/fai/nfsroot/usr/share/man/ru/man8/faillog.8.gz /srv/fai/nfsroot/etc/apt/apt.conf.d/10fai There is no e.g. /srv/fai/nfsroot/usr/sbin/fai nfsroot seems not to be complete. Do you need the logfile from fai-make-nfsroot -v ? Regards Werner -----Urspr?ngliche Nachricht----- Von: linux-fai [mailto:linux-fai-bounces at uni-koeln.de] Im Auftrag von Thomas Lange Gesendet: Mittwoch, 25. M?rz 2015 14:13 An: fully automatic installation for Linux Betreff: Re: fai-make-nfsroot >>>>> On Wed, 25 Mar 2015 13:54:27 +0100, Werner.Pommerer at uni-hohenheim.de said: > Hello, > root at btwp3:/tmp>fai-make-nfsroot -fv > Using configuration files from /etc/fai > Creating FAI nfsroot in /srv/fai/nfsroot > mv: cannot move `/srv/fai/nfsroot' to > `/srv/fai/nfsroot/../.will-now-be-deleted/nfsroot': Directory not empty > Log file written to /var/log/fai/fai-make-nfsroot.log OK, manually remove the directory /srv/fai/nfsroot. Then call fai-make-nfsroot -v again. -- regards Thomas From lange at informatik.uni-koeln.de Thu Mar 26 14:41:29 2015 From: lange at informatik.uni-koeln.de (Thomas Lange) Date: Thu, 26 Mar 2015 14:41:29 +0100 Subject: AW: fai-make-nfsroot In-Reply-To: <002701d067c6$a16d6130$e4482390$@pommerer@uni-hohenheim.de> References: <003701d0630e$a1784490$e468cdb0$@pommerer@uni-hohenheim.de> <21772.21166.304409.259580@kueppers.informatik.uni-koeln.de> <20150325135427.Horde.y_U6-vKexzAoMTVwXwKMig1@webmail.uni-hohenheim.de> <21778.46181.254156.493351@paeffgen.informatik.uni-Koeln.de> <002701d067c6$a16d6130$e4482390$@pommerer@uni-hohenheim.de> Message-ID: <21780.3209.24645.808610@paeffgen.informatik.uni-Koeln.de> >>>>> On Thu, 26 Mar 2015 14:13:20 +0100, "Werner Pommerer" said: > There is no e.g. /srv/fai/nfsroot/usr/sbin/fai > nfsroot seems not to be complete. Do you need the logfile from > fai-make-nfsroot -v ? Yes, please put it on paste.debian.net. You may want to join the #fai chanel on irc.debian.org and post the link there. -- regards Thomas From Werner.Pommerer at uni-hohenheim.de Thu Mar 26 15:49:20 2015 From: Werner.Pommerer at uni-hohenheim.de (Werner.Pommerer at uni-hohenheim.de) Date: Thu, 26 Mar 2015 15:49:20 +0100 Subject: AW: fai-make-nfsroot In-Reply-To: <21780.3209.24645.808610@paeffgen.informatik.uni-Koeln.de> References: <003701d0630e$a1784490$e468cdb0$@pommerer@uni-hohenheim.de> <21772.21166.304409.259580@kueppers.informatik.uni-koeln.de> <20150325135427.Horde.y_U6-vKexzAoMTVwXwKMig1@webmail.uni-hohenheim.de> <21778.46181.254156.493351@paeffgen.informatik.uni-Koeln.de> <002701d067c6$a16d6130$e4482390$@pommerer@uni-hohenheim.de> <21780.3209.24645.808610@paeffgen.informatik.uni-Koeln.de> Message-ID: <20150326154920.Horde.YWJcADn1wEvxd1sy_9zZ3Q1@webmail.uni-hohenheim.de> I put the log on paste.debian.net regards Werner ----- Nachricht von Thomas Lange --------- Datum: Thu, 26 Mar 2015 14:41:29 +0100 Von: Thomas Lange Antwort an: fully automatic installation for Linux Betreff: Re: AW: fai-make-nfsroot An: fully automatic installation for Linux >>>>>> On Thu, 26 Mar 2015 14:13:20 +0100, "Werner Pommerer" >>>>>> said: > > > There is no e.g. /srv/fai/nfsroot/usr/sbin/fai > > nfsroot seems not to be complete. Do you need the logfile from > > fai-make-nfsroot -v ? > Yes, please put it on paste.debian.net. You may want to join the #fai > chanel on irc.debian.org and post the link there. > > -- > regards Thomas ----- Ende der Nachricht von Thomas Lange ----- From lange at informatik.uni-koeln.de Thu Mar 26 15:56:41 2015 From: lange at informatik.uni-koeln.de (Thomas Lange) Date: Thu, 26 Mar 2015 15:56:41 +0100 Subject: AW: fai-make-nfsroot In-Reply-To: <20150326154920.Horde.YWJcADn1wEvxd1sy_9zZ3Q1@webmail.uni-hohenheim.de> References: <003701d0630e$a1784490$e468cdb0$@pommerer@uni-hohenheim.de> <21772.21166.304409.259580@kueppers.informatik.uni-koeln.de> <20150325135427.Horde.y_U6-vKexzAoMTVwXwKMig1@webmail.uni-hohenheim.de> <21778.46181.254156.493351@paeffgen.informatik.uni-Koeln.de> <002701d067c6$a16d6130$e4482390$@pommerer@uni-hohenheim.de> <21780.3209.24645.808610@paeffgen.informatik.uni-Koeln.de> <20150326154920.Horde.YWJcADn1wEvxd1sy_9zZ3Q1@webmail.uni-hohenheim.de> Message-ID: <21780.7721.868492.871149@paeffgen.informatik.uni-Koeln.de> >>>>> On Thu, 26 Mar 2015 15:49:20 +0100, Werner.Pommerer at uni-hohenheim.de said: > I put the log on paste.debian.net Which URL? -- regards Thomas From Werner.Pommerer at uni-hohenheim.de Thu Mar 26 16:36:23 2015 From: Werner.Pommerer at uni-hohenheim.de (Werner.Pommerer at uni-hohenheim.de) Date: Thu, 26 Mar 2015 16:36:23 +0100 Subject: AW: fai-make-nfsroot In-Reply-To: <21780.7721.868492.871149@paeffgen.informatik.uni-Koeln.de> References: <003701d0630e$a1784490$e468cdb0$@pommerer@uni-hohenheim.de> <21772.21166.304409.259580@kueppers.informatik.uni-koeln.de> <20150325135427.Horde.y_U6-vKexzAoMTVwXwKMig1@webmail.uni-hohenheim.de> <21778.46181.254156.493351@paeffgen.informatik.uni-Koeln.de> <002701d067c6$a16d6130$e4482390$@pommerer@uni-hohenheim.de> <21780.3209.24645.808610@paeffgen.informatik.uni-Koeln.de> <20150326154920.Horde.YWJcADn1wEvxd1sy_9zZ3Q1@webmail.uni-hohenheim.de> <21780.7721.868492.871149@paeffgen.informatik.uni-Koeln.de> Message-ID: <20150326163623.Horde.Citi3CzIS2pBVz86oGR-lg4@webmail.uni-hohenheim.de> http://paste.debian.net/hidden/a7354e4b Regards Werner ----- Nachricht von Thomas Lange --------- Datum: Thu, 26 Mar 2015 15:56:41 +0100 Von: Thomas Lange Antwort an: fully automatic installation for Linux Betreff: Re: AW: fai-make-nfsroot An: fully automatic installation for Linux >>>>>> On Thu, 26 Mar 2015 15:49:20 +0100, >>>>>> Werner.Pommerer at uni-hohenheim.de said: > > > I put the log on paste.debian.net > Which URL? > > -- > regards Thomas ----- Ende der Nachricht von Thomas Lange ----- From lange at informatik.uni-koeln.de Thu Mar 26 17:55:34 2015 From: lange at informatik.uni-koeln.de (Thomas Lange) Date: Thu, 26 Mar 2015 17:55:34 +0100 Subject: AW: fai-make-nfsroot In-Reply-To: <20150326163623.Horde.Citi3CzIS2pBVz86oGR-lg4@webmail.uni-hohenheim.de> References: <003701d0630e$a1784490$e468cdb0$@pommerer@uni-hohenheim.de> <21772.21166.304409.259580@kueppers.informatik.uni-koeln.de> <20150325135427.Horde.y_U6-vKexzAoMTVwXwKMig1@webmail.uni-hohenheim.de> <21778.46181.254156.493351@paeffgen.informatik.uni-Koeln.de> <002701d067c6$a16d6130$e4482390$@pommerer@uni-hohenheim.de> <21780.3209.24645.808610@paeffgen.informatik.uni-Koeln.de> <20150326154920.Horde.YWJcADn1wEvxd1sy_9zZ3Q1@webmail.uni-hohenheim.de> <21780.7721.868492.871149@paeffgen.informatik.uni-Koeln.de> <20150326163623.Horde.Citi3CzIS2pBVz86oGR-lg4@webmail.uni-hohenheim.de> Message-ID: <21780.14854.126853.987165@kueppers.informatik.uni-koeln.de> >>>>> On Thu, 26 Mar 2015 16:36:23 +0100, Werner.Pommerer at uni-hohenheim.de said: > http://paste.debian.net/hidden/a7354e4b You are mixing jessie and wheezy packages. When calling debootstrap (line 4) you are using jessie, but later you are using packages from wheezy. This will cause problems. Please do not mix repositories. -- regards Thomas From lange at informatik.uni-koeln.de Fri Mar 27 16:06:08 2015 From: lange at informatik.uni-koeln.de (Thomas Lange) Date: Fri, 27 Mar 2015 16:06:08 +0100 Subject: FAI 4.3.2, new CD image Message-ID: <21781.29152.74776.192973@paeffgen.informatik.uni-Koeln.de> A week ago I released a new version of FAI. 4.3.2 includes some bug fixes. It also adds a new variable $FAI_MONITOR_PORT which can be used for setting the port number to which the clients send its messages for the FAI monitor daemon. I just added the wheezy version of FAI 4.3.2 (4.3.2+wheezy1) to the package repository of the FAI project. Additionally a new version of the FAI CD ist now available at http://fai-project.org/fai-cd/ Currently we are working on FAI 4.4. It will include a major rewrite and up-to-date version of the FAI guide and the FAI CD will replace live-boot with dracut. -- regards Thomas From R.Schulz at dvz-mv.de Mon Mar 30 08:30:15 2015 From: R.Schulz at dvz-mv.de (Schulz, Reiner) Date: Mon, 30 Mar 2015 06:30:15 +0000 Subject: Option to set Ports for NFS mount Message-ID: <8366374F3A57564BBED164D1981FA6940B66E93D@DVZSN-RA0325.bk.dvz-mv.net> Hi, in our enviroment we must to use a ssh tunnelt to connect to fai clients. So we have to use reverse ssh tunnel for all connections from client to server (nfs, save-log, etc) Up to now we patch the fai programs to use/change the used ports. Could you make an option to used custom ports? Reiner Schulz From lange at informatik.uni-koeln.de Mon Mar 30 12:15:32 2015 From: lange at informatik.uni-koeln.de (Thomas Lange) Date: Mon, 30 Mar 2015 12:15:32 +0200 Subject: Option to set Ports for NFS mount In-Reply-To: <8366374F3A57564BBED164D1981FA6940B66E93D@DVZSN-RA0325.bk.dvz-mv.net> References: <8366374F3A57564BBED164D1981FA6940B66E93D@DVZSN-RA0325.bk.dvz-mv.net> Message-ID: <21785.8772.771922.271423@kueppers.informatik.uni-koeln.de> >>>>> On Mon, 30 Mar 2015 06:30:15 +0000, "Schulz, Reiner" said: > in our enviroment we must to use a ssh tunnelt to connect to fai clients. > So we have to use reverse ssh tunnel for all connections from client to server (nfs, save-log, etc) > Up to now we patch the fai programs to use/change the used ports. > Could you make an option to used custom ports? Hi Reiner, you can use /root/.ssh/config (inside the nfsroot) to specify a different port for the ssh and scp commands. It should look like this: Host faiserver.yourdomain faiserver Port 1234 The port of the monitor daemon can be specified using the variable $FAI_MONITOR_PORT (since FAI 4.3.2), but you have to set this in /srv/fai/nfsroot/etc/fai/fai.conf, because FAI checks very early if the monitor daemon is available. Setting this in the config space is too late. I'm not sure where to set the port for the NFS mount, maybe specifying this on the kernel command line would help. It seems that you have a interesting setup. Can you please fill out the FAI questionnaire http://fai-project.org/questionnaire and send it back to me when you finished a project with fai. -- regards Thomas From R.Schulz at dvz-mv.de Mon Mar 30 12:41:48 2015 From: R.Schulz at dvz-mv.de (Schulz, Reiner) Date: Mon, 30 Mar 2015 10:41:48 +0000 Subject: AW: Option to set Ports for NFS mount In-Reply-To: <21785.8772.771922.271423@kueppers.informatik.uni-koeln.de> References: <8366374F3A57564BBED164D1981FA6940B66E93D@DVZSN-RA0325.bk.dvz-mv.net> <21785.8772.771922.271423@kueppers.informatik.uni-koeln.de> Message-ID: <8366374F3A57564BBED164D1981FA6940B66EAD2@DVZSN-RA0325.bk.dvz-mv.net> We use fai 3.4.8 for now and "patch" /usr/sbin/fai at line " export romountopt" to " export romountopt="-t nfs4 -o port=20549,soft,async,noatime,nolock,ro,actimeo=1800" and /usr/lib/fai/fai-savelog in save_log_remote() to "export remotesh="ssh -p20550 -i /var/lib/fai/config/.ssh/id_ecdsa.failoguser" "export remotecp="scp -P20550 -i /var/lib/fai/config/.ssh/id_ecdsa.failoguser" For background: We connect to the client via ssh tunnel with two reverse tunnel, one for nfs and another for remote logging. Reiner Schulz -----Urspr?ngliche Nachricht----- Von: linux-fai [mailto:linux-fai-bounces at uni-koeln.de] Im Auftrag von Thomas Lange Gesendet: Montag, 30. M?rz 2015 12:16 An: fully automatic installation for Linux Betreff: Re: Option to set Ports for NFS mount >>>>> On Mon, 30 Mar 2015 06:30:15 +0000, "Schulz, Reiner" said: > in our enviroment we must to use a ssh tunnelt to connect to fai clients. > So we have to use reverse ssh tunnel for all connections from client to server (nfs, save-log, etc) > Up to now we patch the fai programs to use/change the used ports. > Could you make an option to used custom ports? ... I'm not sure where to set the port for the NFS mount, maybe specifying this on the kernel command line would help. ... -- regards Thomas From lange at informatik.uni-koeln.de Mon Mar 30 17:08:47 2015 From: lange at informatik.uni-koeln.de (Thomas Lange) Date: Mon, 30 Mar 2015 17:08:47 +0200 Subject: AW: Option to set Ports for NFS mount In-Reply-To: <8366374F3A57564BBED164D1981FA6940B66EAD2@DVZSN-RA0325.bk.dvz-mv.net> References: <8366374F3A57564BBED164D1981FA6940B66E93D@DVZSN-RA0325.bk.dvz-mv.net> <21785.8772.771922.271423@kueppers.informatik.uni-koeln.de> <8366374F3A57564BBED164D1981FA6940B66EAD2@DVZSN-RA0325.bk.dvz-mv.net> Message-ID: <21785.26367.826683.670445@kueppers.informatik.uni-koeln.de> >>>>> On Mon, 30 Mar 2015 10:41:48 +0000, "Schulz, Reiner" said: > We use fai 3.4.8 for now and "patch" /usr/sbin/fai at line " export romountopt" to > " export romountopt="-t nfs4 -o port=20549,soft,async,noatime,nolock,ro,actimeo=1800" It should be possible to redefine the variable romountopt in /srv/fai/nfsroot/etc/fai/fai.conf. -- regards Thomas