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


Re: Ubuntu 22

2023-04-05 Diskussionsfäden Bill MacAllister

On 2023-03-31 03:59, Marc Hoppins via linux-fai wrote:

I am a bit slow in responding but felt I could comment anyway.


I think what our guy was referring to was that he must have made a
Ubu22 basefile, either from a dist-upgraded ubu20 system or a modified
ubu22 basefile, which does not work here.


What is the failure?


In the meantime, I shall have to use a ubu20 and do dist-upgrades as
the request we have is for Ubu22 and I doubt we can wait for him to
finish with a working version.

I was just trying to clarify that the version on the project site was
good


I have been building Jammy (Ubuntu 22.04) systems with FAI for months 
now.

Both physical systems and Xen guests.  I can't answer the question about
the efficacy of Thomas's Jammy basefile because I just use been the
mk-basefile script to roll my own basefiles as needed.  The bottom line
is that building Jammy systems works fine with FAI.

Bill

--
"What can be asserted without evidence can also be dismissed without 
evidence."

Christopher Hitchens


RE: Ubuntu 22

2023-03-31 Diskussionsfäden Marc Hoppins via linux-fai
Diese Nachricht wurde eingewickelt um DMARC-kompatibel zu sein. Die
eigentliche Nachricht steht dadurch in einem Anhang.

This message was wrapped to be DMARC compliant. The actual message
text is therefore in an attachment.--- Begin Message ---
I think what our guy was referring to was that he must have made a Ubu22 
basefile, either from a dist-upgraded ubu20 system or a modified ubu22 
basefile, which does not work here.

In the meantime, I shall have to use a ubu20 and do dist-upgrades as the 
request we have is for Ubu22 and I doubt we can wait for him to finish with a 
working version.

I was just trying to clarify that the version on the project site was good.

Thanks

-Original Message-
From: linux-fai  On Behalf Of Thomas Lange
Sent: Friday, March 31, 2023 12:48 PM
To: fully automatic installation for Linux 
Subject: RE: Ubuntu 22

EXTERNAL


   > The basefile on YOUR site? It is fine?
It should be fine, but if you say it's not fine, please provide some more infos.

regards Thomas
--- End Message ---


RE: Ubuntu 22

2023-03-31 Diskussionsfäden Thomas Lange


   > The basefile on YOUR site? It is fine?
It should be fine, but if you say it's not fine, please provide some
more infos.

regards Thomas


RE: Ubuntu 22

2023-03-31 Diskussionsfäden Marc Hoppins via linux-fai
Diese Nachricht wurde eingewickelt um DMARC-kompatibel zu sein. Die
eigentliche Nachricht steht dadurch in einem Anhang.

This message was wrapped to be DMARC compliant. The actual message
text is therefore in an attachment.--- Begin Message ---
The basefile on YOUR site? It is fine?

-Original Message-
From: linux-fai  On Behalf Of Thomas Lange
Sent: Friday, March 31, 2023 10:34 AM
To: fully automatic installation for Linux 
Subject: Re: Ubuntu 22

EXTERNAL


> I see a JAMMY64 basefile on the fai-project site. Our FAI guy here tells 
me that it is not functional, is this the case?
> Marc
Any error messages? Some more info would be good.

--
regards Thomas
--- End Message ---


Re: Ubuntu 22

2023-03-31 Diskussionsfäden Thomas Lange


> I see a JAMMY64 basefile on the fai-project site. Our FAI guy here tells 
me that it is not functional, is this the case?
> Marc
Any error messages? Some more info would be good.

-- 
regards Thomas


Re: ubuntu basefiles and machine uuid

2022-11-02 Diskussionsfäden Thomas Lange


See https://github.com/faiproject/fai-config/pull/14 for my solution
of the problem.

-- 
regards Thomas


Re: ubuntu basefiles and machine uuid

2022-07-18 Diskussionsfäden Robert Markula

Am 19.07.22 um 03:00 schrieb andrew bezella:

hello -

a few months ago i noticed that most of the ubuntu focal/20.04 machines
that we had deployed were reporting the same machine id (stored in
/etc/machine-id).  i finally circled back and it appears the issue is
that, for an ubuntu basefile, debootstrap pulls in the dbus package
which generates a /var/lib/dbus/machine-id file.  if this file ends up
on the installed node, it overrides the FAI-emptied /etc/machine-id and
results in non-unique machine ids.

i've submitted a pull request[1] to exclude /var/lib/dbus/machine-id
from the basefile but thought i should check to see if this might
somehow be specific to our FAI configuration space/setup.  to others
who have deployed ubuntu: are you experiencing or have you already
worked around this issue?

1. https://github.com/faiproject/fai-config/pull/14


Yes, that one was responsible for very nasty, hard-to-spot networking 
errors with LACP (basically duplicated system IDs all over).


In scripts/DEBIAN/40-misc I commented out the following lines:


## make sure a machine-id exists
#if [ ! -f $target/etc/machine-id ]; then
#    > $target/etc/machine-id
#fi
## recreate machine-id if the file is empty
#if [ X"$(stat -c '%s' $target/etc/machine-id 2>/dev/null)"  = X0 -a -f 
$target/bin/systemd-machine-id-setup ]; then

#    $ROOTCMD systemd-machine-id-setup
#fi


and added these ones:


# Ensure a new machine-id is generated under any circumstances
rm $target/etc/machine-id
rm $target/var/lib/dbus/machine-id
$ROOTCMD dbus-uuidgen --ensure=/etc/machine-id
$ROOTCMD dbus-uuidgen --ensure


Now the machine-id is generated on-the-fly and unique on all hosts.

Cheers,


Robert


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.


Re: Ubuntu Focal trying to install/configure artful

2022-01-26 Diskussionsfäden andrew bezella
On Wed, 2022-01-26 at 15:19 -0800, Alvin Cura wrote:
> It would appear that fai-quickstart on Ubuntu 20.04 Focal has default
> config files that are looking for artful (17.10).  I'd love to get
> involved if someone can guide me in how to go about fixing and
> submitting.

ymmv, but even in an ubuntu environment i found it easier to use the
upstream packages and a debian netboot.  it does look like ubuntu has
updated FAI more regularly in their last few releases but the focal
version is from Apr 2017. if you want to use the ubuntu packages i
would suggest a newer version.  it looks like jammy will have the
still-current 5.10.3 release with some ubuntu-specific changes:
https://packages.ubuntu.com/source/jammy/fai

hth,

andy

-- 
andrew bezella 
internet archive


Re: Ubuntu 18.04: netplan support

2018-10-19 Diskussionsfäden Robert Markula



Am 17.10.18 um 18:51 schrieb Thomas Lange:
>> On Wed, 17 Oct 2018 15:05:18 +0200, Robert Markula  
>> said:
> > Two questions arose so far:
>
> > 1. Is the 'UBUNTU' class intended to be complementing the 'DEBIAN' class
> > or does it completely replace the DEBIAN class?
> yes, it is complementing the Debian class.
>
> > 2. Ubuntu 18.04 now uses a different network configuration utility
> > called 'netplan' [1]. However, I don't see support for that in the
> Have a look at
> https://lists.uni-koeln.de/pipermail/linux-fai/2018-May/012019.html
> Derek already wrote some code to generate netplan configs.
>

Excellent link! I slightly modified Derek's script, so the full
scripts/DEBIAN/30-interface now looks like this. Successfully tested on
Ubuntu 14.04 Server, Ubuntu 18.04 Server and Debian 9.5 Server using
DHCP. Did not test static IPs and XORG (using NetworkManager) yet.


#! /bin/bash

error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code

netplan_yaml() {
    # network configuration using ubuntu's netplan.io
    local IFNAME="$1"
    local METHOD="$2"
    echo "Generating netplan configuration for $IFNAME ($METHOD)" >&2
    echo "# generated by FAI"
    echo "network:"
    echo "  version: 2"
    echo "  renderer: $RENDERER"
    case "$RENDERER" in
  networkd)
    echo "  ethernets:"
    echo "    $IFNAME:"
    case "$METHOD" in
  dhcp)
    echo "  dhcp4: true"
    ;;
  static)
    echo "  addresses: [$CIDR]"
    echo "  gateway4: $GATEWAYS_1"
    echo "  nameservers:"
    echo "    search: [$DOMAIN]"
    echo "    addresses: [${DNSSRVS// /, }]"
    ;;
    esac
    esac
}

iface_stanza() {
    # classic network configuration using /etc/network/interfaces
    local IFNAME="$1"
    local METHOD="$2"
    echo "Generating interface configuration for $IFNAME ($METHOD)" >&2
    echo "# generated by FAI"
    echo "auto $IFNAME"
    echo "iface $IFNAME inet $METHOD"
    case "$METHOD" in
  static)
    echo "    address $IPADDR"
    echo "    netmask $NETMASK"
    echo "    broadcast $BROADCAST"
    echo "    gateway $GATEWAYS"
    ;;
    esac
}

newnicnames() {
    # determine predictable network names only for stretch and above

    [ $do_init_tasks -eq 0 ] && return
    [ -z "$NIC1" ] && return
    ver=$($ROOTCMD dpkg-query --showformat='${Version}' --show udev)
    if dpkg --compare-versions $ver lt 220-7; then
    return
    fi


    fields="ID_NET_NAME_FROM_DATABASE ID_NET_NAME_ONBOARD
ID_NET_NAME_SLOT ID_NET_NAME_PATH"
    for field in $fields; do
    name=$(udevadm info /sys/class/net/$NIC1 | sed -rn "s/^E:
$field=(.+)/\1/p")
    if [[ $name ]]; then
        NIC1=$name
        break
    fi
    done
    if [[ ! $name ]]; then
    echo "$0: error: could not find systemd predictable network name.
Using $NIC1."
    fi
}

if [ -z "$NIC1" ]; then
    echo "ERROR: \$NIC1 is not defined. Cannot configure
/etc/network/interfaces properly."
fi
CIDR=$(ip -o -f inet addr show $NIC1 | awk '{print $4}')
newnicnames

case "$FAI_ACTION" in
  install|dirinstall)
    ifclass DHCPC && METHOD=dhcp || METHOD=static
    ifclass XORG && RENDERER=NetworkManager || RENDERER=networkd

    if [ -d $target/etc/netplan ]; then
    # Ubuntu >= 17.10 with netplan.io
    if [ -n "$NIC1" ]; then
    netplan_yaml $NIC1 $METHOD > $target/etc/netplan/01-${NIC1}.yaml
    fi
    elif [ -d $target/etc/network/interfaces.d ]; then
    # ifupdown >= 0.7.41 (Debian >= 8, Ubuntu >= 14.04)
    iface_stanza lo loopback > $target/etc/network/interfaces.d/lo
    if [ -n "$NIC1" ]; then
    iface_stanza $NIC1 $METHOD > \
    $target/etc/network/interfaces.d/$NIC1
    fi
    else
    (
    iface_stanza lo loopback
    iface_stanza $NIC1 $METHOD
    ) > $target/etc/network/interfaces
    fi

    if ! ifclass DHCPC ; then
    [ -n "$NETWORK" ] && echo "localnet $NETWORK" > $target/etc/networks
    if [ ! -L $target/etc/resolv.conf -a -e /etc/resolv.conf ]; then
    cp -p /etc/resolv.conf $target/etc
    fi
    fi
    ;;
esac

# here fcopy is mostly used, when installing a client for running in a
# different subnet than during the installation
fcopy -iM /etc/resolv.conf
fcopy -iM /etc/network/interfaces /etc/networks

exit $error



Re: Ubuntu 18.04: netplan support

2018-10-17 Diskussionsfäden Thomas Lange
> On Wed, 17 Oct 2018 15:05:18 +0200, Robert Markula  
> said:

> Two questions arose so far:

> 1. Is the 'UBUNTU' class intended to be complementing the 'DEBIAN' class
> or does it completely replace the DEBIAN class?
yes, it is complementing the Debian class.

> 2. Ubuntu 18.04 now uses a different network configuration utility
> called 'netplan' [1]. However, I don't see support for that in the
Have a look at
https://lists.uni-koeln.de/pipermail/linux-fai/2018-May/012019.html
Derek already wrote some code to generate netplan configs.

-- 
regards Thomas


Re: Ubuntu 18.04: netplan support

2018-10-17 Diskussionsfäden Justin Cattle
Personally - I like yaml and use it a lot for many things :)

I've never liked xml on the other hand!


Cheers,
Just


On Wed, 17 Oct 2018 at 16:07, John G Heim  wrote:

> It' may be worse than you know. Netplan uses something called yaml for
> it's config files. YAML is a newish config language, sort of a
> replacement and/or competitor for XML.  I am no fan of XML, believe me.
> I'm blind, you sighted people think you have it hard editing XML config
> files, try doing it by listening to the code. At the same time, I am not
> looking forward to learning yet another protocol that is essentially a
> programming language for config files.
>
> I understand the drive. Every system has it's own syntax that ammounts
> to a programming language for it's config files. Knowing the syntax for
> bind9 config files doesn't help you one bit when writing a systemd
> config file. Samba uses a syntax borrowed from Windows INI files. About
> the only place I can think of where I didn't have to learn a new config
> file language is with apache and podcast feeds. Both use XML so if you
> understand the syntax for apache config files, you also understand the
> syntax for podcast feed files.
>
> So I don't know what to think about netplan & YAML. Haven't made up my
> mind whether to hate it or love it.
>
> On 10/17/18 9:19 AM, Justin Cattle wrote:
> > We have quite a lot invested in ifupdown - we won't be using netplan for
> > servers on bionic.
> >
> > I know that's not a helpful response, but if you decide not to use
> > netplan you won't be the only people :)
> >
> >
> > Cheers,
> > Just
> >
> >
> > On Wed, 17 Oct 2018 at 15:11, John G Heim  > > wrote:
> >
> > Well, I pulled a Bart Simpson. I tried for about 10 minutes and gave
> up.
> >
> > Bakc with Ubuntu 16.04, I tried modifying the old networking script
> > using the ifclass command. If the UBUNTU class was defined, it
> > generated
> > a /etc/netplan/10-interfaces file. Otherwise, it ran the old code to
> > generate a /etc/networking/interfaces file.
> >
> > I think the reason I couldn't get it to work was because of a bug in
> > NetworkManager. It looked like NetworkManager would neither make that
> > interface work nor release it so it could be configured by netplan.
> > This
> > was a long time ago and my memory is a little fuzzy but I recall
> typing
> > in network manager commands to try to get it to stop managing the
> > interface, it saying it wasn't managing the interface, while at the
> > same
> > time, a listing of the interfaces it managed showed the interface.
> Now
> > that I think about it, I believe I worked on it for way more than 10
> > minutes because I recall doing a file-by-file comparison of the
> configs
> > from a regular Ubuntu install and an FAI install and finding no
> > difference. The files in /etc were identical yet it worked in a
> normal
> > install of Ubuntu but not in the FAI install.
> >
> > I finally just added ifupdown to the packages installed during an
> > Ubuntu
> > install. So I've been subverting Ubuntu's normal network config
> process
> > for years now. I just don't do it the way Ubuntu would normally do
> > it. I
> > figure when/if Debian switched to netplan, the FAI developers will
> > modify FAI to account for it.
> >
> > Now that you've brought it up though, I might give it another try
> > when I
> > upgrade all of my workstations to Ubuntu 18.10 during semester break
> in
> > January. If I get it to work, I can post a howto here.
> >
> >
> >
> >
> > On 10/17/18 8:05 AM, Robert Markula wrote:
> >  > Hi,
> >  >
> >  > I'm currently in the process of updating tried-and-trusted FAI
> > 4.2.5 to
> >  > 5.7.2 and completely reworking the config space in the process,
> > starting
> >  > with the examples provided by fai-doc (which, btw, has been quite
> a
> >  > surprisingly pleasant experience so far, as fewer customization is
> >  > necessary in order to support different distributions as it was
> > the case
> >  > with the ancient 4.2.5 version. Nice!)
> >  >
> >  > Two questions arose so far:
> >  >
> >  > 1. Is the 'UBUNTU' class intended to be complementing the
> > 'DEBIAN' class
> >  > or does it completely replace the DEBIAN class?
> >  >
> >  > 2. Ubuntu 18.04 now uses a different network configuration utility
> >  > called 'netplan' [1]. However, I don't see support for that in the
> >  > example configspace. So while a Ubuntu Bionic host can be
> > successfully
> >  > installed using the 'FAIBASE UBUNTU DEMO' classes, it has no
> network
> >  > connectivity as the netplan configuration is missing from the
> > examples.
> >  > Has anybody successfully integrated netplan support yet?
> >  >
> >  >
> >  > Robert
> >  >
> >  > [1] 

Re: Ubuntu 18.04: netplan support

2018-10-17 Diskussionsfäden John G Heim
It' may be worse than you know. Netplan uses something called yaml for 
it's config files. YAML is a newish config language, sort of a 
replacement and/or competitor for XML.  I am no fan of XML, believe me. 
I'm blind, you sighted people think you have it hard editing XML config 
files, try doing it by listening to the code. At the same time, I am not 
looking forward to learning yet another protocol that is essentially a 
programming language for config files.


I understand the drive. Every system has it's own syntax that ammounts 
to a programming language for it's config files. Knowing the syntax for 
bind9 config files doesn't help you one bit when writing a systemd 
config file. Samba uses a syntax borrowed from Windows INI files. About 
the only place I can think of where I didn't have to learn a new config 
file language is with apache and podcast feeds. Both use XML so if you 
understand the syntax for apache config files, you also understand the 
syntax for podcast feed files.


So I don't know what to think about netplan & YAML. Haven't made up my 
mind whether to hate it or love it.


On 10/17/18 9:19 AM, Justin Cattle wrote:
We have quite a lot invested in ifupdown - we won't be using netplan for 
servers on bionic.


I know that's not a helpful response, but if you decide not to use 
netplan you won't be the only people :)



Cheers,
Just


On Wed, 17 Oct 2018 at 15:11, John G Heim > wrote:


Well, I pulled a Bart Simpson. I tried for about 10 minutes and gave up.

Bakc with Ubuntu 16.04, I tried modifying the old networking script
using the ifclass command. If the UBUNTU class was defined, it
generated
a /etc/netplan/10-interfaces file. Otherwise, it ran the old code to
generate a /etc/networking/interfaces file.

I think the reason I couldn't get it to work was because of a bug in
NetworkManager. It looked like NetworkManager would neither make that
interface work nor release it so it could be configured by netplan.
This
was a long time ago and my memory is a little fuzzy but I recall typing
in network manager commands to try to get it to stop managing the
interface, it saying it wasn't managing the interface, while at the
same
time, a listing of the interfaces it managed showed the interface. Now
that I think about it, I believe I worked on it for way more than 10
minutes because I recall doing a file-by-file comparison of the configs
from a regular Ubuntu install and an FAI install and finding no
difference. The files in /etc were identical yet it worked in a normal
install of Ubuntu but not in the FAI install.

I finally just added ifupdown to the packages installed during an
Ubuntu
install. So I've been subverting Ubuntu's normal network config process
for years now. I just don't do it the way Ubuntu would normally do
it. I
figure when/if Debian switched to netplan, the FAI developers will
modify FAI to account for it.

Now that you've brought it up though, I might give it another try
when I
upgrade all of my workstations to Ubuntu 18.10 during semester break in
January. If I get it to work, I can post a howto here.




On 10/17/18 8:05 AM, Robert Markula wrote:
 > Hi,
 >
 > I'm currently in the process of updating tried-and-trusted FAI
4.2.5 to
 > 5.7.2 and completely reworking the config space in the process,
starting
 > with the examples provided by fai-doc (which, btw, has been quite a
 > surprisingly pleasant experience so far, as fewer customization is
 > necessary in order to support different distributions as it was
the case
 > with the ancient 4.2.5 version. Nice!)
 >
 > Two questions arose so far:
 >
 > 1. Is the 'UBUNTU' class intended to be complementing the
'DEBIAN' class
 > or does it completely replace the DEBIAN class?
 >
 > 2. Ubuntu 18.04 now uses a different network configuration utility
 > called 'netplan' [1]. However, I don't see support for that in the
 > example configspace. So while a Ubuntu Bionic host can be
successfully
 > installed using the 'FAIBASE UBUNTU DEMO' classes, it has no network
 > connectivity as the netplan configuration is missing from the
examples.
 > Has anybody successfully integrated netplan support yet?
 >
 >
 > Robert
 >
 > [1] https://netplan.io
 >


Notice:  This email is confidential and may contain copyright material 
of members of the Ocado Group. Opinions and views expressed in this 
message may not necessarily reflect the opinions and views of the 
members of the Ocado Group.


If you are not the intended recipient, please notify us immediately and 
delete all copies of this message. Please note that it is your 
responsibility to scan this message for viruses.


Fetch and Sizzle are trading names of Speciality Stores Limited and 
Fabled is a trading 

Re: Ubuntu 18.04: netplan support

2018-10-17 Diskussionsfäden Justin Cattle
We have quite a lot invested in ifupdown - we won't be using netplan for
servers on bionic.

I know that's not a helpful response, but if you decide not to use netplan
you won't be the only people :)


Cheers,
Just


On Wed, 17 Oct 2018 at 15:11, John G Heim  wrote:

> Well, I pulled a Bart Simpson. I tried for about 10 minutes and gave up.
>
> Bakc with Ubuntu 16.04, I tried modifying the old networking script
> using the ifclass command. If the UBUNTU class was defined, it generated
> a /etc/netplan/10-interfaces file. Otherwise, it ran the old code to
> generate a /etc/networking/interfaces file.
>
> I think the reason I couldn't get it to work was because of a bug in
> NetworkManager. It looked like NetworkManager would neither make that
> interface work nor release it so it could be configured by netplan. This
> was a long time ago and my memory is a little fuzzy but I recall typing
> in network manager commands to try to get it to stop managing the
> interface, it saying it wasn't managing the interface, while at the same
> time, a listing of the interfaces it managed showed the interface. Now
> that I think about it, I believe I worked on it for way more than 10
> minutes because I recall doing a file-by-file comparison of the configs
> from a regular Ubuntu install and an FAI install and finding no
> difference. The files in /etc were identical yet it worked in a normal
> install of Ubuntu but not in the FAI install.
>
> I finally just added ifupdown to the packages installed during an Ubuntu
> install. So I've been subverting Ubuntu's normal network config process
> for years now. I just don't do it the way Ubuntu would normally do it. I
> figure when/if Debian switched to netplan, the FAI developers will
> modify FAI to account for it.
>
> Now that you've brought it up though, I might give it another try when I
> upgrade all of my workstations to Ubuntu 18.10 during semester break in
> January. If I get it to work, I can post a howto here.
>
>
>
>
> On 10/17/18 8:05 AM, Robert Markula wrote:
> > Hi,
> >
> > I'm currently in the process of updating tried-and-trusted FAI 4.2.5 to
> > 5.7.2 and completely reworking the config space in the process, starting
> > with the examples provided by fai-doc (which, btw, has been quite a
> > surprisingly pleasant experience so far, as fewer customization is
> > necessary in order to support different distributions as it was the case
> > with the ancient 4.2.5 version. Nice!)
> >
> > Two questions arose so far:
> >
> > 1. Is the 'UBUNTU' class intended to be complementing the 'DEBIAN' class
> > or does it completely replace the DEBIAN class?
> >
> > 2. Ubuntu 18.04 now uses a different network configuration utility
> > called 'netplan' [1]. However, I don't see support for that in the
> > example configspace. So while a Ubuntu Bionic host can be successfully
> > installed using the 'FAIBASE UBUNTU DEMO' classes, it has no network
> > connectivity as the netplan configuration is missing from the examples.
> > Has anybody successfully integrated netplan support yet?
> >
> >
> > Robert
> >
> > [1] https://netplan.io
> >
>

-- 


Notice:  This email is confidential and may contain copyright material of 
members of the Ocado Group. Opinions and views expressed in this message 
may not necessarily reflect the opinions and views of the members of the 
Ocado Group. 

 

If you are not the intended recipient, please notify us 
immediately and delete all copies of this message. Please note that it is 
your responsibility to scan this message for viruses. 

 

Fetch and Sizzle 
are trading names of Speciality Stores Limited and Fabled is a trading name 
of Marie Claire Beauty Limited, both members of the Ocado Group.

 


References to the “Ocado Group” are to Ocado Group plc (registered in 
England and Wales with number 7098618) and its subsidiary undertakings (as 
that expression is defined in the Companies Act 2006) from time to time.  
The registered office of Ocado Group plc is Buildings One & Two, Trident 
Place, Mosquito Way, Hatfield, Hertfordshire, AL10 9UL.


Re: Ubuntu 18.04: netplan support

2018-10-17 Diskussionsfäden John G Heim

Well, I pulled a Bart Simpson. I tried for about 10 minutes and gave up.

Bakc with Ubuntu 16.04, I tried modifying the old networking script 
using the ifclass command. If the UBUNTU class was defined, it generated 
a /etc/netplan/10-interfaces file. Otherwise, it ran the old code to 
generate a /etc/networking/interfaces file.


I think the reason I couldn't get it to work was because of a bug in 
NetworkManager. It looked like NetworkManager would neither make that 
interface work nor release it so it could be configured by netplan. This 
was a long time ago and my memory is a little fuzzy but I recall typing 
in network manager commands to try to get it to stop managing the 
interface, it saying it wasn't managing the interface, while at the same 
time, a listing of the interfaces it managed showed the interface. Now 
that I think about it, I believe I worked on it for way more than 10 
minutes because I recall doing a file-by-file comparison of the configs 
from a regular Ubuntu install and an FAI install and finding no 
difference. The files in /etc were identical yet it worked in a normal 
install of Ubuntu but not in the FAI install.


I finally just added ifupdown to the packages installed during an Ubuntu 
install. So I've been subverting Ubuntu's normal network config process 
for years now. I just don't do it the way Ubuntu would normally do it. I 
figure when/if Debian switched to netplan, the FAI developers will 
modify FAI to account for it.


Now that you've brought it up though, I might give it another try when I 
upgrade all of my workstations to Ubuntu 18.10 during semester break in 
January. If I get it to work, I can post a howto here.





On 10/17/18 8:05 AM, Robert Markula wrote:

Hi,

I'm currently in the process of updating tried-and-trusted FAI 4.2.5 to
5.7.2 and completely reworking the config space in the process, starting
with the examples provided by fai-doc (which, btw, has been quite a
surprisingly pleasant experience so far, as fewer customization is
necessary in order to support different distributions as it was the case
with the ancient 4.2.5 version. Nice!)

Two questions arose so far:

1. Is the 'UBUNTU' class intended to be complementing the 'DEBIAN' class
or does it completely replace the DEBIAN class?

2. Ubuntu 18.04 now uses a different network configuration utility
called 'netplan' [1]. However, I don't see support for that in the
example configspace. So while a Ubuntu Bionic host can be successfully
installed using the 'FAIBASE UBUNTU DEMO' classes, it has no network
connectivity as the netplan configuration is missing from the examples.
Has anybody successfully integrated netplan support yet?


Robert

[1] https://netplan.io



Re: Ubuntu 17.10 (artful) headsup

2017-12-28 Diskussionsfäden John G Heim
On 12/27/2017 02:41 PM, Thomas Lange wrote:>> On Wed, 27 Dec 2017 
13:34:33 -0600, John G Heim  said:

>
>  > devices, using netplan instead of ifupdown. Configuration is 
now written
>  > as YAML files to /etc/netplan instead of in 
/etc/network/interfaces."

> OMG, that's why I do not like Ubuntu and why I only use LTS versions!

Well, I don't know, maybe I made the wrong choice but I had to find 
something updated more often than debian stable.  Maybe I should have 
tried a continuous release distro like debian testing.  If only debian 
hadn't called it "testing". I was in a meeting and said something like, 
"What about debian testing? I know it is *called* testing and they have 
a release they call stable. But testing is a lot more stable than you'd 
think and they really should call stable, hardened or better yet, 
fossilized or something like that."


So that didn't go over too well. I am not the best salesman in the world.

If I was King Of the World, the second thing I'd do, after renaming 
cheesecake to "cheese pie" (it is just so clearly a type of pie, not 
cake), is to rename debian testing to debian stable, and rename debian 
stable to debian hardened.




Re: Ubuntu Artful

2017-12-28 Diskussionsfäden Robert Markula

On 27.12.2017 at 21:33, Thomas Lange wrote:
> > # apt-get -y install pbuilder debootstrap
> > Then you create the basefile:
> > # pbuilder create | tee /root/pbuilder.log
> IMO this is too complicated. Why using pbuilder when debootstrap is 
> sufficient?
>
Simplicity of use. No need to manually cleanup and tar the
debootstrap'ed files.



Re: Ubuntu 17.10 (artful) headsup

2017-12-27 Diskussionsfäden Thomas Lange
> On Wed, 27 Dec 2017 13:34:33 -0600, John G Heim  
> said:

> devices, using netplan instead of ifupdown. Configuration is now written 
> as YAML files to /etc/netplan instead of in /etc/network/interfaces."
OMG, that's why I do not like Ubuntu and why I only use LTS versions!
-- 
regards Thomas


Re: Ubuntu Artful

2017-12-27 Diskussionsfäden Thomas Lange
> On Wed, 27 Dec 2017 20:11:30 +0100, Robert Markula  
> said:

> # apt-get -y install pbuilder debootstrap
> Then you create the basefile:
> # pbuilder create | tee /root/pbuilder.log
IMO this is too complicated. Why using pbuilder when debootstrap is sufficient?

-- 
regards Thomas


Re: Ubuntu Artful

2017-12-27 Diskussionsfäden Robert Markula
On 27.12.2017 um 19:59 John G Heim wrote:
> All I remember is that it suggested booting from a live Ubuntu ISO and
> then running pbuilder. It doesn't look as if mk-basefile uses pbuilder
> though which confuses me.

Creating a basefile using a live ISO is really easy. First you install
the required packages:

# apt-get -y install pbuilder debootstrap

Then you create the basefile:

# pbuilder create | tee /root/pbuilder.log

The '| tee...' part is not really necessary of course, but I like having
a log around in case anything goes wrong.

The base image gets saved to /var/cache/pbuilder/base.tgz. It just needs
to be renamed to CLASS_NAME.tar.gz where CLASS_NAME is the name of the
class you are assigning your clients to. Mind the .tar.gz file
extension. Move the file to the FAI 'basefiles' directory and there you go.

Cheers,


Robert


Re: Ubuntu Artful

2017-12-27 Diskussionsfäden John G Heim
I tried doing a global replace on the  mk-basefile script 
s/XENIAL/ARTFUL/g but when I ran the modified script, it created a 4k 
file that didn't work as a basefile. So then I just copied the Ubuntu 
zesty/17.04 basefile to artful/17.10 and it appears to have worked. An 
installation is proceeding as I write.


But I think that the  documentation on the steps to manually build a 
basefile would be helpful. I don't suppose you still have that 
documentation for installing ubuntu around do you? All I remember is 
that it suggested booting from a live Ubuntu ISO and then running 
pbuilder. It doesn't look as if mk-basefile uses pbuilder though which 
confuses me.





On 12/27/2017 12:13 PM, Thomas Lange wrote:

I've removed this very old wiki howto. There's the script mk-basefile
in /usr/share/doc/fai-doc/examples/simple/basefiles/mk-basefile which
is used for creating basefiles. Currently there's only an entry for
Ubuntu xenial, but a similar one should work for 17.10.



Re: Ubuntu Artful

2017-12-27 Diskussionsfäden Thomas Lange
I've removed this very old wiki howto. There's the script mk-basefile
in /usr/share/doc/fai-doc/examples/simple/basefiles/mk-basefile which
is used for creating basefiles. Currently there's only an entry for
Ubuntu xenial, but a similar one should work for 17.10.

-- 
regards Thomas


Re: ubuntu 16.04 with wheezy nfs-root --> kernel panic

2016-04-12 Diskussionsfäden andrew bezella
On Tue, 2016-04-12 at 16:24 +0200, Thomas Lange wrote:
[...] 
> I have never used a Ubuntu nfsroot, and I do not know if this will
> work. Maybe other FAI users can help?
> 
> I would use a Debian Jessie nfsroot, and create a xenial base
> file. Then see what happens.

i was unable to get a xenial nfsroot working.

i can confirm that fai 5.0.3 on a 14.04/trusty host allowed me to create
a working jessie nfsroot from which i am able to initiate installs via a
16.04/xenial basefile.

andy

-- 
andrew bezella 
Internet Archive


Re: ubuntu 16.04 with wheezy nfs-root --> kernel panic

2016-04-12 Diskussionsfäden Sebastian Schmidt
> Is the nfsroot also a wheezy one?

I was assuming, creating one in wheezy creates a wheezy nfsroot? Your
question now tells me that's not the case? I'm also not sure which
setting influences this. In the nfsroot.conf I configured
FAI_DEBOOTSTRAP as xenial one. I created the nfsroot with fai-setup -vl 
and configured everything to point to xenial, so I think I created a
xenial nfsroot.


> Which FAI version are you using
> inside the nfsroot?

I added "deb http://fai-project.org/download wheezy koeln" to my
sources.list so I'm using 4.3.2+wheezy1


> The 4.4 kernel does not support aufs, which is needed by dracut. Have
> a look at http://wiki.fai-project.org/wiki/Grml_Kernel, which
> describes how to use a 4.4 kernel to which I've added aufs support.

I'm not using dracut (at least I think I'm not using it). At least I
didn't include it in my NFSROOT-config:

PACKAGES aptitude

nfs-common fai-nfsroot module-init-tools ssh rdate lshw rpcbind
rsync lftp less dump reiserfsprogs e2fsprogs usbutils
hwinfo psmisc pciutils hdparm smartmontools parted mdadm lvm2
dnsutils ntpdate dosfstools xfsprogs xfsdump btrfs-tools
procinfo numactl dialog
console-common kbd
iproute moreutils udev subversion
xz-utils
cupt
pxelinux syslinux-common

PACKAGES aptitude AMD64

grub-pc
linux-image-generic live-boot


> boot=live is not yet used/supported in recent FAI versions any more.
> So this may be your first problem.

I removed it and the kernel panic disappeared! But other errors
appeared now:

mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /run on /root/run failed: No such file or directory
run-init: opening conole: No such file or directory
Target filesystem doesn't have requested /sbin/init
run-init: opening console: No such file or directory
...
No init found. Try passing init= bootarg.


I think something is wrong with the folderstructure. He looks
for /root/dev and stuff like this but the correct path
is /root/live/filesystem.dir/



Re: Ubuntu 16.04 Xenial

2016-04-06 Diskussionsfäden andrew bezella
On Wed, 2016-04-06 at 12:50 +0200, sebast...@coli.uni-saarland.de
wrote: 
> Hi,
> I'm struggeling figuring out how to make FAI work with ubuntu 16.04. My
> base system is an ubuntu 16.04 as well and I'm using 5.0.3ubuntu1.
> 
> Can anyone share his NFSROOT-file and nfsroot-hooks ?
> 
> There are two problems I face right now:
> 
> 1.) systemd
> 
> 2.) dracut and initramfs

[...]

you're trying to get xenial to work as the nfsroot?  i spent a while on
that, too, and think i got to about the same point.  iirc, as suggested
by a launchpad bug, i found the package(s) that depended on
initramfs-tools and rebuilt to depend on linux-initramfs-tool instead
(which dracut Provides).  but once that was done it turned out that
(again, iirc) ubuntu's initramfs management didn't actually work
w/dracut in place.

at that point i gave up and went with a jessie nfsroot.

andy

-- 
andrew bezella 
Internet Archive


Re: Ubuntu, Vivid: Dracut

2015-04-29 Diskussionsfäden Thomas Lange
 On Wed, 29 Apr 2015 11:10:39 +0200, Moritz Struebe 
 moritz.stru...@cs.fau.de said:

 We are currently trying to getting Ubuntu installed, but getting the
 dracut package installed seems a PITA. I already made some
 adjustments[2], but I'm neither familiar with dracut nor a packaging 
expert.
 Any help is appreciated.
Hi Morty,

since I'm also the package maintainer of dracut, I may help you with
dracut related things like how to debug the dracut boot process.

-- 
regards Thomas


Re: Ubuntu support / Redesign

2015-04-15 Diskussionsfäden Thomas Lange
 On Wed, 07 Jan 2015 09:16:55 +0100, Moritz Struebe 
 moritz.stru...@cs.fau.de said:

 did you have time to have a look at my changes [1]? In the long run they
 should also save you from having to make separate releases, e.g. for 
wheezy.

 [1] https://github.com/cmorty/fai/tree/dev
Hi morty,

ich bekomme da ein 404. Wo finde ich denn deine Sachen?

-- 
Gruss Thomas


Re: Ubuntu support / Redesign

2015-03-10 Diskussionsfäden Moritz Struebe
Just a quick update (and push): I moved the branch to
https://github.com/cmorty/fai/tree/devel/ubuntu

Cheers
Morty

Am 07.01.2015 um 09:16 schrieb Moritz Struebe:
 Hey Thomas,

 did you have time to have a look at my changes [1]? In the long run they
 should also save you from having to make separate releases, e.g. for wheezy.

 Morty



 [1] https://github.com/cmorty/fai/tree/dev



-- 
Dipl.-Ing. Moritz 'Morty' Strübe (Wissenschaftlicher Mitarbeiter)
Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme)
Friedrich-Alexander-Universität Erlangen-Nürnberg
Martensstr. 1
91058 Erlangen

Tel   : +49 9131 85-25419
Fax   : +49 9131 85-28732
eMail : stru...@cs.fau.de
WWW   : https://www4.cs.fau.de/~morty





smime.p7s
Description: S/MIME Cryptographic Signature


Re: Ubuntu 14.04 host: kernel panic

2014-07-02 Diskussionsfäden Robert Markula
Am 16.06.2014 11:14, schrieb Thomas Lange:

  Please fill out http://fai-project.org/questionnaire
  Already done that a few years ago, although the envirtonment has changed
  significantly since. Should I fill it out again?
 Yes, please.

  If there is anything I can do to help regarding the FAI/Ubuntu topic,
  let me know what you need.
 We need someone how can test newer FAI version on Ubuntu. If you could
 give FAI 4.2 a try on an Ubuntu server and install Ubuntu 
 14.04 using it, that would be great. There's also a testing PPA
 which includes FAI 4.1.1. Even testing this version would help us.

 https://launchpad.net/~fai/+archive/testing/

 Please report any success or problems to this list.

Thomas, I used an existing wiki article to explain the details on how
FAI on Ubuntu works using stock Ubuntu packages without the PPA. The
original article consisted of a - not very helpful - single line only
and since my instructions are basically distribution agnostic, I felt
free to add them to this page:

http://wiki.fai-project.org/wiki/Installing_Ubuntu_Linux_with_FAI

Comments are welcome.

Kind regards,

Robert


Re: Ubuntu 14.04 host: kernel panic

2014-06-19 Diskussionsfäden Robert Markula
Hi,

Am 16.06.2014 11:04, schrieb Thomas Lange:
 What are you using pbuilder for? For building the base file or for
 building the FAI packages? In fai-doc there's the script mk-basefile
 which shows how to buid base files for different distributions. I'm
 using debootstrap for Debian based distributions. 

pbuilder is used to build the base files.

Cheers,

Robert


Re: Ubuntu 14.04 host: kernel panic

2014-06-16 Diskussionsfäden Thomas Lange
 On Sat, 14 Jun 2014 23:35:55 +0200, Robert Markula rob...@markula.org 
 said:

 Please fill out http://fai-project.org/questionnaire
 Already done that a few years ago, although the envirtonment has changed
 significantly since. Should I fill it out again?
Yes, please.

 If there is anything I can do to help regarding the FAI/Ubuntu topic,
 let me know what you need.
We need someone how can test newer FAI version on Ubuntu. If you could
give FAI 4.2 a try on an Ubuntu server and install Ubuntu 
14.04 using it, that would be great. There's also a testing PPA
which includes FAI 4.1.1. Even testing this version would help us.

https://launchpad.net/~fai/+archive/testing/

Please report any success or problems to this list.

-- 
regards Thomas


Re: Ubuntu 14.04 host: kernel panic

2014-06-16 Diskussionsfäden Stephen Jahl
 We need someone how can test newer FAI version on Ubuntu. If you could
  give FAI 4.2 a try on an Ubuntu server and install Ubuntu
 14.04 using it, that would be great. There's also a testing PPA
 which includes FAI 4.1.1. Even testing this version would help us.

 https://launchpad.net/~fai/+archive/testing/

 Please report any success or problems to this list.


For what it's worth, I've had pretty good success installing 14.04 clients
from a 12.04 server using the 4.1.1 testing PPA (the nfsroot is
14.04-based, with the default Ubuntu 3.13 kernel). I'm using a live-boot
setup since the dracut packages seemed to be broken in 14.04 when I built
the packages for the testing PPA.

I haven't had a chance to upgrade the FAI server to 14.04 since it's in
production, but I'll try to report back here after I try that.

I initially had trouble with 14.04 nfsroots on FAI 3.4.8 since some system
utilities had been moved/renamed (dpkg-divert comes to mind) -- but it's
been pretty smooth sailing since installing 4.1.1.


Re: Ubuntu 14.04 host: kernel panic

2014-06-13 Diskussionsfäden Toomas Tamm
On Thu, 2014-06-12 at 23:39 +0200, Robert Markula wrote:
 Hi list,
 
 after a few days of unsuccessful troubleshooting I'm afraid I have to
 ask for your help :-)

 
 Any idea what might be wrong? Or where to look at? Does anybody have a
 setup where installing Ubuntu 14.04 actually works?

Try adding rdshell rdinitdebug rd.debug to the kernel command line.
Makes the booting slow and produces enormous amount of output (at least
under Debian) but may help to pinpoint the part of booting process where
the error occurs.

In the past, for debugging of initrd problems, I have also created
custom initrd's with additional debug statements added to the various
shell scripts. I do not remember the details, but there should be guides
on the net on how to create your own initrd.

Regards,

Toomas Tamm


Re: Ubuntu 14.04 host: kernel panic

2014-06-13 Diskussionsfäden Thomas Lange
 On Thu, 12 Jun 2014 23:39:38 +0200, Robert Markula rob...@markula.org 
 said:

 I'm using FAI quite a lot mainly installing Ubuntu 10.04 and Ubuntu
 12.04-based servers and hosts. The FAI server itself is currently an
 Ubuntu 12.04-based machine. 
That sounds interesting. Did you ever fill out the FAI questionnaire?
I'm always very interested in user experiences with FAI. 
Please fill out http://fai-project.org/questionnaire

 Now I tried installing Ubuntu 14.04 using FAI. 
This is much more interesting. I like to help as much as I can for
making this work, since a lot of people like to use FAI on Ubuntu and
I did not get any feedback about running FAI with the newest Ubuntu
version.

First question: Which FAI version are you using?

 first reboot of the newly installed host, I get an ugly kernel panic:

 snip
 [...]
 EXT4-fs (vda2): mounted filesystem with ordered data mode. Opts: (null)
 Begin: Running /scripts/local-bottom ... done.
 Begin: Running /scripts/init-bottom ... done.
OK, you are using initramfs-tools and not dracut. But that's fine for
Ubuntu.

 But if I switch to the 14.04 base.tgz image, using the otherwise the
 same config [1] and the same disk layout [3] (using LVM), the kernel
 chickens out.
For installing Ubuntu 14.04, you are using the Ubuntu 12.04 nfsroot? Is
that right?

Please try to do an Ubuntu 14.04 installation without lvm, but just a
plain simple disk layout. That way, you can make sure if lvm or
something different causes the problem.


BTW, we can also switch to #fai on irc for faster help.
-- 
regards Thomas


Re: ubuntu

2014-01-30 Diskussionsfäden Sven Ulland

On 01/30/2014 08:25 AM, linux-service.be bvba wrote:

I am using fai debian wheezy to install ubuntu 13.10 clients.
Install goes well but after reboot some onboard nic's of realtek
does not work anymore.


Hi. It could be you're running into a feature, where the Ubuntu
installer sees that it's running on an NFS root, and therefore opts to
not configure the network interfaces. If you do, I've run into the
same issue before, and resolved it with a preseed script as described
in this thread:

https://lists.ubuntu.com/archives/ubuntu-installer/2013-April/001284.html

In short, I add the following parameter to the kernel command line
when installing:

url=http://my.web.server/ubuntu-fixnm.seed

And the ubuntu-fixnm.seed file contains this, *on a single line*:

ubiquity ubiquity/success_command string in-target \
sh -c echo auto lo  /etc/network/interfaces;
echo iface lo inet loopback  /etc/network/interfaces

sven


Re: ubuntu

2014-01-30 Diskussionsfäden Thomas Lange
 On Thu, 30 Jan 2014 08:25:12 +0100, linux-service.be bvba 
 g...@linux-service.be said:

 I am using fai debian wheezy to install ubuntu 13.10 clients.
 Install goes well but after reboot some onboard nic's of realtek does not 
work anymore.

What do you mean by 'does not work?
Please check if the kernel that you install is supporting the onboard
nic's.  What the content of /target/etc/network/interfaces?
Maybe some modules are not loaded correctly. Maybe only the order of
the interfaces changed.
-- 
regards Thomas


Re: ubuntu

2014-01-30 Diskussionsfäden linux-service.be bvba
I have /target/etc/network/interfaces/NEW_DHCP
with :
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp



On the client machines ifconfig gives me only the lo.

the r8169 module is loaded




  On Thu, 30 Jan 2014 08:25:12 +0100, linux-service.be bvba 
  g...@linux-service.be said:
  I am using fai debian wheezy to install ubuntu 13.10 clients.
  Install goes well but after reboot some onboard nic's of realtek does
  not work anymore.
 
 What do you mean by 'does not work?
 Please check if the kernel that you install is supporting the onboard
 nic's.  What the content of /target/etc/network/interfaces?
 Maybe some modules are not loaded correctly. Maybe only the order of
 the interfaces changed.


Re: ubuntu

2014-01-30 Diskussionsfäden linux-service.be bvba
I plugged in a usb-network device and after reboot i get network ok.



 I have /target/etc/network/interfaces/NEW_DHCP
 with :
 # The loopback network interface
 auto lo
 iface lo inet loopback
 
 # The primary network interface
 auto eth0
 iface eth0 inet dhcp
 
 
 
 On the client machines ifconfig gives me only the lo.
 
 the r8169 module is loaded
 
   On Thu, 30 Jan 2014 08:25:12 +0100, linux-service.be bvba 
   g...@linux-service.be said:
   I am using fai debian wheezy to install ubuntu 13.10 clients.
   Install goes well but after reboot some onboard nic's of realtek
   does not work anymore.
  
  What do you mean by 'does not work?
  Please check if the kernel that you install is supporting the onboard
  nic's.  What the content of /target/etc/network/interfaces?
  Maybe some modules are not loaded correctly. Maybe only the order of
  the interfaces changed.


Re: ubuntu

2014-01-30 Diskussionsfäden linux-service.be bvba
Here is a syslog of a fresh fai install ubuntu:
http://www.multiseatcomputer.be/syslog

again, installing without fai, with a usb stick, network is ok.


guy


 I plugged in a usb-network device and after reboot i get network ok.
 
  I have /target/etc/network/interfaces/NEW_DHCP
  with :
  # The loopback network interface
  auto lo
  iface lo inet loopback
  
  # The primary network interface
  auto eth0
  iface eth0 inet dhcp
  
  
  
  On the client machines ifconfig gives me only the lo.
  
  the r8169 module is loaded
  
On Thu, 30 Jan 2014 08:25:12 +0100, linux-service.be bvba 
g...@linux-service.be said:
I am using fai debian wheezy to install ubuntu 13.10 clients.
Install goes well but after reboot some onboard nic's of realtek
does not work anymore.
   
   What do you mean by 'does not work?
   Please check if the kernel that you install is supporting the onboard
   nic's.  What the content of /target/etc/network/interfaces?
   Maybe some modules are not loaded correctly. Maybe only the order of
   the interfaces changed.


Re: ubuntu

2014-01-30 Diskussionsfäden Thomas Lange
 On Thu, 30 Jan 2014 09:36:20 +0100, linux-service.be bvba 
 g...@linux-service.be said:

 I have /target/etc/network/interfaces/NEW_DHCP
 with :
Please put your fai.log and shell.log somewhere, so we can check if
your fcopy command for /etc/network./interfaces is fine.
-- 
regards Thomas


Re: ubuntu

2014-01-30 Diskussionsfäden linux-service.be bvba
here they are:
http://www.multiseatcomputer.be/fai.log
http://www.multiseatcomputer.be/shell.log

http://www.multiseatcomputer.be/fcopy.log


But I think it's some ubuntu problem:
i put in rc.local:
service network-manager start

on reboot, it takes almost 30 seconds (waiting for network) until i get the 
desktop and network on the 
realtek nic onboard.

When I put a usb-ethernet in the pc i get internet instantly






  On Thu, 30 Jan 2014 09:36:20 +0100, linux-service.be bvba 
  g...@linux-service.be said:
  I have /target/etc/network/interfaces/NEW_DHCP
 
  with :
 Please put your fai.log and shell.log somewhere, so we can check if
 your fcopy command for /etc/network./interfaces is fine.


Re: ubuntu

2014-01-30 Diskussionsfäden linux-service.be bvba
Ok,
As Sven suggested, the eth0 lines must be removed from /etc/network/interfaces
than all is working.
Is it neccesary for fai to fcopy the /target/etc/network/interfaces/ ?


 I have /target/etc/network/interfaces/NEW_DHCP
 with :
 # The loopback network interface
 auto lo
 iface lo inet loopback
 
 # The primary network interface
 auto eth0
 iface eth0 inet dhcp
 
 
 
 On the client machines ifconfig gives me only the lo.
 
 the r8169 module is loaded
 
   On Thu, 30 Jan 2014 08:25:12 +0100, linux-service.be bvba 
   g...@linux-service.be said:
   I am using fai debian wheezy to install ubuntu 13.10 clients.
   Install goes well but after reboot some onboard nic's of realtek
   does not work anymore.
  
  What do you mean by 'does not work?
  Please check if the kernel that you install is supporting the onboard
  nic's.  What the content of /target/etc/network/interfaces?
  Maybe some modules are not loaded correctly. Maybe only the order of
  the interfaces changed.


Re: ubuntu

2014-01-30 Diskussionsfäden Thomas Lange
 On Thu, 30 Jan 2014 12:43:03 +0100, linux-service.be bvba 
 g...@linux-service.be said:

 As Sven suggested, the eth0 lines must be removed from 
/etc/network/interfaces
 than all is working.
 Is it neccesary for fai to fcopy the /target/etc/network/interfaces/ ?
No.

-- 
regards Thomas


Re: ubuntu 11.10

2011-11-26 Diskussionsfäden Thomas Lange
 On Sat, 26 Nov 2011 13:44:36 +0100, linux-service.be bvba 
 g...@linux-service.be said:

 How can I wget the script and run it after the client install is finished 
by fai server?
 Or should I let fai do this with the /srv/fai/config/ scripts
Yes, you should use FAI's directory config/scripts for your scripts.

-- 
regards Thomas


Re: Ubuntu natty setup-storage questions

2011-09-01 Diskussionsfäden Michael Tautschnig
Hi Andreas,

Sorry for the delayed reply.

 
 Again me with three issues I asked some time ago already...
 
 a) setup-storage leads to a different partition table than
 setup_harddisks, although the disk_config file only changed in
 syntax.
 

This is expected as alignment constraints were updated and the entire code has
been rewritten, including the bit that computes partition sizes.
Preserve+always_format are the only way to fully retain an old layout.

 b) I'm currently using two classes NO_SCRATCH (for a standard
 partition layout that all of the FAI clients are using) and SCRATCH
 (to preserve a possibly existing /scratch partition that I created
 by hand earlier on some of the FAI clients, but not on all of them).
 
   b 1) How could theses classes NO_SCRATCH and SCRATCH be merged in one
single class? Is it possible at all?
 

When merging these into a single config file, would you also expect that no
scratch partition be created if none exists? Preserve-if-exists is possible, but
don't-create-if-not-there is not possible with current setup-storage. More
details on that below.

[...]
 
 I'd like to merge these two classes if possible.
 
 Is there a way to preserve a partition of  unknown size and unknown
 starting point, but only if it does exist already? I'm doing initial
 installs (fai-chboot -IvBk nouveau.modeset=0 fai_client), but still
 would like to preserve /scratch. I think 'preserve_lazy' is doing
 more than just preserving the partition.
 

What exactly do you mean by doing more than just preserving the partition? In
my opinion preserve_lazy is exactly what you want, except for the fact that it
will always create such a partition in those case where it didn't exist before.

 
 And, secondly, the disk_config file leads to an error:
 
 root@faisrv:/home/fai/l28/last# more format.log
 Starting setup-storage 1.3
 Using config file: /var/lib/fai/config/disk_config/SCRATCH
 Executing: parted -s /dev/sda unit TiB print
 Executing: parted -s /dev/sda unit B print free
 Executing: parted -s /dev/sda unit chs print free
 Creating directory /var/lock/lvm
 Finding all volume groups
   No volume groups found
 Executing: mdadm --examine --scan --verbose -c partitions
 /dev/sda3 will be preserved
 Executing: vgchange -a n
 Executing: parted -s /dev/sda mklabel msdos
 Executing: parted -s /dev/sda mkpart primary ext3 32256B 10479006719B
 Executing: parted -s /dev/sda mkpart extended  250056737280B 252145958399B
 Command had non-zero exit code


[...]

I believe that these problems should already be fixed in 3.4.8 (a bug in
computing partition sizes), which unfortunately isn't in Ubuntu. Could you
please give (a) the 3.4.8 packages from Debian a try and, if still failing, (b)
the experimental builds?

Thanks a lot,
Michael



pgpOHkFi1kF5b.pgp
Description: PGP signature


Re: Ubuntu natty setup-storage questions

2011-08-23 Diskussionsfäden Thomas Neumann
 b) I'm currently using two classes NO_SCRATCH (for a standard partition
 layout that all of the FAI clients are using) and SCRATCH (to preserve a
 possibly existing /scratch partition that I created by hand earlier on
 some of the FAI clients, but not on all of them).

b 1) How could theses classes NO_SCRATCH and SCRATCH be merged in one
 single class? Is it possible at all?

What is your goal?

a) Do you manually decide which class applies for each host and want to
automate/simplify the decision process?

b) Do you want to clean up/consolidate your config space and want to
handle /scratch as a special case of NO_SCRATCH?

The answers would be different. a) would hint at some decision logic in
class/ which automatically announces the correct class. b) would require
either modifying your layout-files on the fly or change the way
disk_config works.

Everything's possible. We just need to find the right hammer for your
nail. ;)




Re: Ubuntu natty setup-storage questions

2011-08-23 Diskussionsfäden Andreas Sindermann
Thomas Neumann writes:
   b) I'm currently using two classes NO_SCRATCH (for a standard partition
   layout that all of the FAI clients are using) and SCRATCH (to preserve a
   possibly existing /scratch partition that I created by hand earlier on
   some of the FAI clients, but not on all of them).
  
  b 1) How could theses classes NO_SCRATCH and SCRATCH be merged in one
   single class? Is it possible at all?
  
  What is your goal?
  
  a) Do you manually decide which class applies for each host and want to
  automate/simplify the decision process?
  
  b) Do you want to clean up/consolidate your config space and want to
  handle /scratch as a special case of NO_SCRATCH?
  
  The answers would be different. a) would hint at some decision logic in
  class/ which automatically announces the correct class. b) would require
  either modifying your layout-files on the fly or change the way
  disk_config works.
  
  Everything's possible. We just need to find the right hammer for your
  nail. ;)
  

Currently I'm using the following script to decide whether a client
does already have a scratch-partition or not:

root$ cat FAI/class/30-detect-scratch-partitions
#! /bin/bash
# detect whether a scratch partition /dev/sda3 already exists
size=`fdisk -s /dev/sda3 2/dev/null`
if [ ! -z $size ]; then echo SCRATCH ; else echo NO_SCRATCH; fi
exit 0


I'd prefer a single setup-storage layout file that automagically
detects and preserves an already existing partition. It seems that
the current setup-storage

a) changed behaviour concerning cylinder boundaries compared to
   setup_harddisks 

b) offers different methods how to preserve partitions, but none of
   them seems to fit my case (or I misunderstood the manual, that
   might be the case, of course...).

c) gives a simple error, which should not happen. Or my layout file
   has an error that I don't understand...


Andreas


Re: Ubuntu natty setup-storage question

2011-07-29 Diskussionsfäden Michael Tautschnig
Hi Andreas,

Sorry for the delayed reply.

Would you also have the exact disk layout available *before* you did this
installation run? That would help me reproduce the problem/verify that it's been
solved already by some later patch (which is likely as parts of this
size-computation code have been rewritten since).

[...]
 Here the disk_config/SCRATCH file:
 
 root@faisrv:/srv/fai/config/disk_config# cat SCRATCH 
 # example of new config file for setup-storage
 #
 # type mountpoint size   fs type mount options misc options
 
 disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid preserve_always:3
 primary  /1ext3  rw,noatime,errors=remount-ro
 logical  swap  2000swap  rw
 primary  /scratch  0-  ext3  rw
 
 
 I.e. if already existing, the /scratch partition is supposed to be
 preserved, otherwise it should be created.
 
 Any idea?
 

First of all, that's not quite the semantics of preserve_always; preserve_always
will require that the partition already exists. You want preserve_lazy, it
seems.

 And why does parted want to start the first partition at 32256B?
 (bad performance?)
 

That was the previous default, i.e., sector 63 as MSDOS did. We're new moving to
1MB, which should be better, but this is only part of experimental FAI packages
right now.

Best,
Michael



pgpHwylJaGDU0.pgp
Description: PGP signature


Re: Ubuntu natty: debootstrap doesn't install aptitude

2011-02-08 Diskussionsfäden Thomas Lange
 On Tue, 08 Feb 2011 07:54:25 +0100, Stephan Adig s...@sourcecode.de 
 said:

 So, right, aptitude was degraded to optional and is not going to be
 installed inside the natty chroot.

 I would like to change the NFSROOT package list to install, if noone
 objects.
The resulting list of packages may differ when using install. AFAIK
apt-get and aptitude uses different dependency resolvers.  But this
may not be a problem at all.

-- 
regards Thomas


Re: Ubuntu natty: debootstrap doesn't install aptitude

2011-02-07 Diskussionsfäden Stephan Adig
Hi Andreas,


On Mon, 2011-02-07 at 14:32 +0100, Andreas Sindermann wrote:
 root@faisrv:~# lsb_release -rd
 Description:Ubuntu natty (development branch)
 Release:11.04
 
 The FAI /usr/sbin/make-fai-nfsroot script creates a chroot environment 
 ('nfsroot') using the debootstrap command.
 
 At least with Ubuntu 11.04 Alpha 2 the debootstrap command no longer installs 
 the 'aptitude' package by default in this
 nfsroot environment. As 'aptitude' is missing, the nfsroot environment stays 
 incomplete and cannot be used for the further installation process.
 
 To resolve this issue, the natty fai-server package needs to be modified this 
 way:

Well, I would like to replace aptitude with apt-get in /etc/fai/NFSROOT

can you test this? 

Replace in /etc/fai/NFSROOT the name aptitude with install

Rational:

As Ubuntu still stays with apt-get, we should at least try to use the
installed by default utilities. I don't know the status of aptitude
inside Ubuntu (I don't use aptitude myself), but having Michael Vogt on
board of the Canonical ship, I think it would better to stay with
apt-get and not aptitude.

This is my personal opinion, and this is Ubuntu only. 

Regards,

\sh

-- 
Stephan '\sh' Adig
SysAdmin / Ubuntu Developer
xmpp: s...@sourcecode.de





Re: Ubuntu natty: debootstrap doesn't install aptitude

2011-02-07 Diskussionsfäden Andreas Sindermann
Stephan Adig writes:
  Hi Andreas,
  
  
  On Mon, 2011-02-07 at 14:32 +0100, Andreas Sindermann wrote:
   root@faisrv:~# lsb_release -rd
   Description:Ubuntu natty (development branch)
   Release:11.04
   
   The FAI /usr/sbin/make-fai-nfsroot script creates a chroot environment 
   ('nfsroot') using the debootstrap command.
   
   At least with Ubuntu 11.04 Alpha 2 the debootstrap command no longer 
   installs the 'aptitude' package by default in this
   nfsroot environment. As 'aptitude' is missing, the nfsroot environment 
   stays incomplete and cannot be used for the further installation process.
   
   To resolve this issue, the natty fai-server package needs to be modified 
   this way:
  
  Well, I would like to replace aptitude with apt-get in /etc/fai/NFSROOT
  
  can you test this? 
  
  Replace in /etc/fai/NFSROOT the name aptitude with install
  
  Rational:
  
   As Ubuntu still stays with apt-get, we should at least try to use the
  installed by default utilities. I don't know the status of aptitude
  inside Ubuntu (I don't use aptitude myself), but having Michael Vogt on
  board of the Canonical ship, I think it would better to stay with
  apt-get and not aptitude.
   
  This is my personal opinion, and this is Ubuntu only. 

This is someting more 'political' I would say.

In terms of keeping the original package as 'original' as possible one
better should resolve the aptitude dependency as described above, as
Thomas seems to like aptitude... :-)

On the other hand it might be a good idea to generally switch to
apt-get. But my suggestion would be to do this in the Debian packages.
Some time later the Ubuntu packages also would not rely on aptitude
any longer as an automatic outcome.

Regards
Andreas


Re: Ubuntu natty: debootstrap doesn't install aptitude

2011-02-07 Diskussionsfäden Thomas Lange
 On Mon, 7 Feb 2011 15:37:37 +0100 (MET), Andreas Sindermann 
 sin...@thp.uni-koeln.de said:

 On the other hand it might be a good idea to generally switch to
 apt-get. But my suggestion would be to do this in the Debian packages.
In the past we switched from apt-get to aptitude, so I will not return
to apt-get. IMO aptitude works fine on the command line, and all
examples in FAI are using aptitude since a long time.

-- 
regards Thomas


Re: Ubuntu natty: debootstrap doesn't install aptitude

2011-02-07 Diskussionsfäden Stephan Adig
Hi Andreas


On Mon, 2011-02-07 at 15:37 +0100, Andreas Sindermann wrote:
 Stephan Adig writes:
   On Mon, 2011-02-07 at 14:32 +0100, Andreas Sindermann wrote:
   [...]
   Rational:
   
  As Ubuntu still stays with apt-get, we should at least try to use the
   installed by default utilities. I don't know the status of aptitude
   inside Ubuntu (I don't use aptitude myself), but having Michael Vogt on
   board of the Canonical ship, I think it would better to stay with
   apt-get and not aptitude.
  
   This is my personal opinion, and this is Ubuntu only. 
 
 This is someting more 'political' I would say.

I don't think so, it's political. Ubuntu and Debian do have several
differences between the two distros.
That's a normal divertion between the two.


 In terms of keeping the original package as 'original' as possible one
 better should resolve the aptitude dependency as described above, as
 Thomas seems to like aptitude... :-)

Honestly, on Ubuntu the fai packages are changed in some ways, like
NFSROOT dependencies Ubuntu doesn't have, or named differently.
So having some special treatment for the package doesn't cost money.

 
 On the other hand it might be a good idea to generally switch to
 apt-get. But my suggestion would be to do this in the Debian packages.
 Some time later the Ubuntu packages also would not rely on aptitude
 any longer as an automatic outcome.

I think Thomas had something in mind to default to aptitude. I don't
know why.
But if it works when you replace aptitude with install, we are a step
further to a good FAI package in Ubuntu :)

Anyways, I'm trying to find the changelog of debootstrap to not install
aptitude anymore...


Regards,

\sh

-- 
Stephan '\sh' Adig
SysAdmin / Ubuntu Developer
xmpp: s...@sourcecode.de





Re: Ubuntu natty: debootstrap doesn't install aptitude

2011-02-07 Diskussionsfäden Stephan Adig
Hi thomas,


On Mon, 2011-02-07 at 16:57 +0100, Thomas Lange wrote:
  On Mon, 7 Feb 2011 15:37:37 +0100 (MET), Andreas Sindermann 
  sin...@thp.uni-koeln.de said:
 
  On the other hand it might be a good idea to generally switch to
  apt-get. But my suggestion would be to do this in the Debian packages.
 In the past we switched from apt-get to aptitude, so I will not return
 to apt-get. IMO aptitude works fine on the command line, and all
 examples in FAI are using aptitude since a long time.

What I don't understand is:

We do a debootstrap of variant=minbase (imho) I don't find the default
right now.
For minbase there was a patch for debian SID which explicitly stated
apt as base package.

Could it be, that somehow aptitude has the same impact?

regards,

\sh 

-- 
Stephan '\sh' Adig
SysAdmin / Ubuntu Developer
xmpp: s...@sourcecode.de





Re: Ubuntu natty: debootstrap doesn't install aptitude

2011-02-07 Diskussionsfäden Thomas Lange
 On Mon, 07 Feb 2011 17:41:03 +0100, Stephan Adig s...@sourcecode.de 
 said:

 We do a debootstrap of variant=minbase (imho) I don't find the default
 right now.
 For minbase there was a patch for debian SID which explicitly stated
 apt as base package.

 Could it be, that somehow aptitude has the same impact?
I guess aptitude is installed because it has priority important in
Debian. Maybe Ubuntu changed this.


-- 
regards Thomas


Re: Ubuntu natty: debootstrap doesn't install aptitude

2011-02-07 Diskussionsfäden Michael Goetze

Hi Stephan,

On 02/07/2011 05:41 PM, Stephan Adig wrote:

We do a debootstrap of variant=minbase (imho) I don't find the default
right now.
For minbase there was a patch for debian SID which explicitly stated
apt as base package.


we normally debootstrap with variant -, so in the squeeze script we get

if doing_variant - || doing_variant fakechroot; then
#required=$required $(get_debs Priority: important)
#  ^^ should be getting debconf here somehow maybe
base=$(get_debs Priority: important)

and, at least with the version of debootstrap in squeeze, the same 
happens for natty. And indeed, aptitude has priority optional in natty.


Regards,
Michael


Re: Ubuntu natty: debootstrap doesn't install aptitude

2011-02-07 Diskussionsfäden Stephan Adig
Moins,


On Mon, 2011-02-07 at 19:46 +0100, Michael Goetze wrote:
 Hi Stephan,
 
 On 02/07/2011 05:41 PM, Stephan Adig wrote:
  We do a debootstrap of variant=minbase (imho) I don't find the default
  right now.
  For minbase there was a patch for debian SID which explicitly stated
  apt as base package.
 
 we normally debootstrap with variant -, so in the squeeze script we get
 
  if doing_variant - || doing_variant fakechroot; then
  #required=$required $(get_debs Priority: important)
  #  ^^ should be getting debconf here somehow maybe
  base=$(get_debs Priority: important)
 
 and, at least with the version of debootstrap in squeeze, the same 
 happens for natty. And indeed, aptitude has priority optional in natty.

Oh yes, they changed it...and I was just too stupid to change into the
natty chroot and got the result from my lucid install.

So, right, aptitude was degraded to optional and is not going to be
installed inside the natty chroot.

Anyways, I'm still not sure, if I should change the NFSROOT package list
from aptitude to install.

I'm not a friend of having two package managers at the same time.

I would like to change the NFSROOT package list to install, if noone
objects.

Regards,

\sh 


-- 
Stephan '\sh' Adig
SysAdmin / Ubuntu Developer
xmpp: s...@sourcecode.de





Re: Ubuntu karmic no vmlinuz after installation

2011-01-31 Diskussionsfäden Thomas Lange
 On Mon, 31 Jan 2011 15:28:20 +, mamadou diop diopmod...@gmail.com 
 said:

 Hello, i have successfully installed ubuntu karmic with FAI.
Really? Did you check all logs files? Did you have installed a
linux-image package?

-- 
regards Thomas


Re: Ubuntu karmic no vmlinuz after installation

2011-01-31 Diskussionsfäden Jurrie Overgoor

On 01/31/2011 04:28 PM, mamadou diop wrote:
Hello, i have successfully installed ubuntu karmic with FAI. But, i 
cannot enter the system because there is no vmlinuz nor initrd in /boot.

i have found that by using the grub shell:
sh:grub


Hi Mamadou,

Did you see this posting by Robert Markula? 
https://lists.uni-koeln.de/pipermail/linux-fai/2010-August/008186.html

The problems seem similar...

With kind regards,

Jurrie



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Ubuntu 10.04 Installation problem

2011-01-22 Diskussionsfäden mamadou diop
Thank you David. I think my /etc/fai/apt/sources.list is correct and i use
an apt-proxy. I also notice contrarily on
Ubuntu 8.04 where in package_config, the classes are simple files, in Ubuntu
10.04, except the DEMO class,
the others are .pak file. I also remember that i am using setup_harddisks
instead of setup_storage.
May be the latter two the cause of the problem?
2011/1/21 David Dreezer d...@socialstrata.com

 You'll receive that error if your /etc/fai/apt/soures.list is incorrect.

 Also, if you are using your own mirror, and you have not updated it in a
 while, you will receive exactly that error if the resources files are out of
 date. If that is the issue you'll nee dot update your mirror.



 David Dreezer
 Customer Advocate, Social Strata, Inc.

 Online Community HQ Since 1996
 Hoop.la · LiveCloud · Eve Community

 Follow us: @socialstrata



 On Jan 21, 2011, at 8:36 AM, mamadou diop wrote:

  Hello, I have installed fai on Ubuntu lucid. During the installation of
 the client, after partitioning
  the hard disks, it is displayed many times couldn't find package whose
 name or description matched by package_name.
  And the system rebooted and displayed Error while loading the operating
 system.
  After replacing my FAI server Ubuntu 10.04 by a FAI  server Ubuntu 8.04,
 the client is installed successfully.
  What's the problem of FAI in Ubuntu lucid?




Re: Ubuntu 10.04 TFTP Error - File Not Found

2011-01-22 Diskussionsfäden mamadou diop
Thank you David, i have solved the problem by adding the configuration space
in /etc/exports.

2011/1/21 David Dreezer d...@socialstrata.com

 I can't help you there as I've never used Ubuntu 8.04, as we're on Debian
 here.  10.10 is current Ubuntu release, AFAIK.

 You'll want to make sure that your exports file matches what is in the
 NFSROOT in make-fai-nfsroot.conf. Edit it manually if you need to, then
 restart nfs-kernel-server.  If you need to make any adjustments to
 make-fai-nfsroot.conf be sure to run fai-setup again.

 David Dreezer
 Customer Advocate, Social Strata, Inc.

 Online Community HQ Since 1996
 Hoop.la · LiveCloud · Eve Community

 Follow us: @socialstrata



  On Jan 21, 2011, at 2:14 AM, mamadou diop wrote:

  Thank you David you've solved my problem. But after loading the kernel
 and the initrd, it displays NFS over TCP not available from 10.10.1.202.
 And i notice that contrarily on Ubuntu 8.04, in 10.04 the config space is
 not added in /etc/exports after fai-setup. Is that correct?
 
 
 




Re: Ubuntu 10.04 Installation problem

2011-01-21 Diskussionsfäden David Dreezer
You'll receive that error if your /etc/fai/apt/soures.list is incorrect.

Also, if you are using your own mirror, and you have not updated it in a while, 
you will receive exactly that error if the resources files are out of date. If 
that is the issue you'll nee dot update your mirror.



David Dreezer
Customer Advocate, Social Strata, Inc.

Online Community HQ Since 1996
Hoop.la · LiveCloud · Eve Community

Follow us: @socialstrata



On Jan 21, 2011, at 8:36 AM, mamadou diop wrote:

 Hello, I have installed fai on Ubuntu lucid. During the installation of the 
 client, after partitioning
 the hard disks, it is displayed many times couldn't find package whose name 
 or description matched by package_name.
 And the system rebooted and displayed Error while loading the operating 
 system.
 After replacing my FAI server Ubuntu 10.04 by a FAI  server Ubuntu 8.04, the 
 client is installed successfully.
 What's the problem of FAI in Ubuntu lucid?



Re: Ubuntu 10.04 TFTP Error - File Not Found

2011-01-21 Diskussionsfäden David Dreezer
I can't help you there as I've never used Ubuntu 8.04, as we're on Debian here. 
 10.10 is current Ubuntu release, AFAIK.  

You'll want to make sure that your exports file matches what is in the NFSROOT 
in make-fai-nfsroot.conf. Edit it manually if you need to, then restart 
nfs-kernel-server.  If you need to make any adjustments to 
make-fai-nfsroot.conf be sure to run fai-setup again.

David Dreezer
Customer Advocate, Social Strata, Inc.

Online Community HQ Since 1996
Hoop.la · LiveCloud · Eve Community

Follow us: @socialstrata



On Jan 21, 2011, at 2:14 AM, mamadou diop wrote:

 Thank you David you've solved my problem. But after loading the kernel and 
 the initrd, it displays NFS over TCP not available from 10.10.1.202. And i 
 notice that contrarily on Ubuntu 8.04, in 10.04 the config space is not added 
 in /etc/exports after fai-setup. Is that correct?
 
 
 



Re: Ubuntu 10.04 TFTP Error - File Not Found

2011-01-20 Diskussionsfäden David Dreezer
Make sure that /etc/default/tftpd-hpa has the correct directory, first off.  It 
will need to match what you have in /etc/fai/make_nfs_root.conf. Then edit 
TFTP_OPTIONS to include -v -v -v (all in lower case)  That will make tftpd 
write to your syslog so that you can read the log and see what the client is 
doing and where the server is trying to serve the files from.

You might also try man tftpd: http://linux.die.net/man/8/tftpd



David Dreezer
Customer Advocate, Social Strata, Inc.

Online Community HQ Since 1996
Hoop.la · LiveCloud · Eve Community

Follow us: @socialstrata


 



Re: Ubuntu Universe Freeze for Ubuntu 10.10.10

2010-09-22 Diskussionsfäden andrew bezella
hello -

i sent this to f...@sourcecode.de about a month ago, so apologies if it's
already been addressed.  i'm using 3.3.5ubuntu3 but the errant line
still appears in 3.4.2ubuntu1 from maverick.

i noticed that there is a minor glitch in fai-setup.  when it creates
the known_hosts for the loguser and live filesystem it does so
incorrectly.  instead of adding the server's ip address, it uses the ip
address/subnet mask (e.g., 207.241.226.106/21 ssh-dss [...] instead of
207.241.226.106 ssh-dss [...]).  for me this prevented the closing ssh
requests to the fai server from working by default.

there is a similar (correct) snippet of code in make-fai-nfsroot and i
made a simple tweak to fai-setup to match that.  it appears to fix the
problem.  patch file attached.

thank you for your time and effort in making fai available for ubuntu.

andy

-- 
andrew bezella abeze...@archive.org
Internet Archive
--- ./fai-3.3.5ubuntu3/bin/fai-setup	2009-10-28 08:31:30.0 -0700
+++ ./fai-3.3.5ubuntu3+ia1/bin/fai-setup	2010-08-17 15:49:35.226396421 -0700
@@ -115,7 +115,7 @@
 	[ -f /etc/ssh/ssh_host_dsa_key.pub ]  DSASERVER=$(sed -e s/= .*$/=/ /etc/ssh/ssh_host_dsa_key.pub)
 	[ -f /etc/ssh/ssh_host_rsa_key.pub ]  RSASERVER=$(sed -e s/= .*$/=/ /etc/ssh/ssh_host_rsa_key.pub )
 	# determine all IP addresses, and their host names
-	ips=$(ip addr show up| grep -w inet | cut -d t -f 2 | cut -d ' ' -f 2 | grep -v 127.0.0.1)
+	ips=$(ip addr show up| grep -w inet | cut -d t -f 2 | cut -d ' ' -f 2 | cut -d / -f 1 | grep -v 127.0.0.1)
 	for ip in $ips; do
 		hname=$(getent hosts $ip| tr -s ' ' ',')
 		: ${hname:=$ip}


Re: Ubuntu FAI PPA and Lucid Lynx - Lucid Host

2010-08-23 Diskussionsfäden Robert Markula
Hi everyone,

Robert Markula wrote:
 This works basically (in the sense that FAI does it's job) and the
 host gets installed. However, I'm currently stuck with the host booting
 straight into Memtest86+. Upon looking through the fai-setup.log [1],
 I'm a bit worried by the line:
 
 snip
 ls: cannot access /boot/vmlinu*: No such file or directory
 /snip
 
 On the target host the error.log[2] doesn't look any brighter:
 
 snip
 fai.log:Couldn't find any package whose name or description matched
 linux-image-486
 shell.log:ERROR: No kernel was installed. Have a look at shell.log
 /snip


the last piece of the puzzle was in one of the provided example files -
namely /srv/fai/config/package_config/DEFAULT.

In this file, all references to the kernel package still follow debian
naming convention (linux-image-486). Changing them to 'linux-image'
finally gets the system running.

Cheers,
Robert


Re: Ubuntu FAI PPA and Lucid Lynx - Lucid Host

2010-08-22 Diskussionsfäden Robert Markula
On to the task of installing Ubuntu 10.04 (instead of Debian Lenny) on
the target host.

I've once again used the vanilla PPA packages (3.3.5ubuntu3) without any
modifications except the following:

# First, I've edited the /etc/fai/make-fai-nfsroot.conf to set the
following option:

snip
FAI_DEBOOTSTRAP=lucid http://archive.ubuntu.com/ubuntu;
/snip


# Then I've edited /etc/fai/apt/sources.list to look like this:

snip
deb http://de.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid main restricted

deb http://de.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

deb http://de.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid universe
deb http://de.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid-updates universe

deb http://de.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://de.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
deb http://ppa.launchpad.net/fai/ppa/ubuntu lucid main
/snip

This works basically (in the sense that FAI does it's job) and the
host gets installed. However, I'm currently stuck with the host booting
straight into Memtest86+. Upon looking through the fai-setup.log [1],
I'm a bit worried by the line:

snip
ls: cannot access /boot/vmlinu*: No such file or directory
/snip

On the target host the error.log[2] doesn't look any brighter:

snip
fai.log:Couldn't find any package whose name or description matched
linux-image-486
shell.log:ERROR: No kernel was installed. Have a look at shell.log
/snip

The full fai.log is at [3].

I'm sure it's just some small config error I've overseen with my tired
eyes. Maybe someone has an idea what could be the reason that obviously
no kernel gets installed? I'm going to bed now.

Cheers,
Robert

[1] http://paste.debian.net/85029
[2] http://paste.debian.net/85030
[3] http://paste.debian.net/85031


Re: ubuntu installation just like from DVD Installer

2010-02-16 Diskussionsfäden Patrick Cervicek
Feedback: Installation with PACKAGES aptitude-r works as desired. It is 
now documented in the wiki.

thx to Waldemar,
Patrick


Re: ubuntu installation just like from DVD Installer

2010-02-08 Diskussionsfäden Thomas Neumann
 I would like to ask how other FAI-Ubuntu-admins are doing it:
 Do you have custom package lists?

Yes

 Do you care that some configuration differs from a normal ubuntu
 installation? e.g.

No.

The reason is, that I see vendor install as a starting point. Every
distributor (hopefully) tries to guess really hard, what their intended
userbase might need and what not - but ultimately it's a futile attempt.

I specify the stuff I really want and let FAI figure out which required
packages have to be installed in order to get there. (Works pretty well
for Debian and Ubuntu, SuSE is a bit more tricky.)

tschüß
thomas



Re: ubuntu installation just like from DVD Installer

2010-02-07 Diskussionsfäden Waldemar Brodkorb
Hi Patrick,
Patrick Cervicek wrote,

 I am installing Ubuntu Karmic with FAI and it works. No problems so far.

 From time to time I recognize that some packages are missing. Packages, which
 would be there if it would be a normal DVD Installation.
 To get this normal packages in my ubuntu I have to put them in my 
 KARMIC-Packages-List. Examples:
   software-center
   jockey-gtk jockey-kde # Hardware Drivers/ Proprietary drivers

 I tried already several metapackages e.g. apt-get install ubuntu-desktop 
 but there are still packages missing.
 I know, I could do an tarball but then I would need to change too many  
 preconfigured values.

The trick is to use aptitude-r with the meta-package ubuntu-desktop.
After that you nearly get a CD/DVD like installation. Only the
special language files may be missing. And if you use FAIBASE, you
get some extra packages installed for fai client.

bye
 Waldemar


Re: Ubuntu FAI behind ftp_proxy (squid)

2009-07-07 Diskussionsfäden Carsten Aulbert
Hi Stephan,

mett...@gmit-gmbh.de wrote:
 In our network we have no gateway and no DNS server.
 All internet access is done via a Squid-proxy.
 So we need to proxy ftp over http.
 
 
 This is no problem with ubuntu-http sources, but with ftp.
 

Isn't there a sources repo which holds the same stuf as the ftp server
but also serves it via http?

That appears to me the most simple solution here.

HTH

Carsten


Re: Ubuntu FAI behind ftp_proxy (squid)

2009-07-07 Diskussionsfäden mettler
hi,
That would have been a good workaround for the Ubuntu packages.

But we are providing our own software via FTP-Servers.
So i needed to set up both: ftp_proxy and http_proxy

mfg


 Hi Stephan,

 mett...@gmit-gmbh.de wrote:
 In our network we have no gateway and no DNS server.
 All internet access is done via a Squid-proxy.
 So we need to proxy ftp over http.


 This is no problem with ubuntu-http sources, but with ftp.


 Isn't there a sources repo which holds the same stuf as the ftp server
 but also serves it via http?

 That appears to me the most simple solution here.

 HTH

 Carsten



-- 
Stephan Mettler, System Administrator (Trainee)
Mail: mett...@gmit-gmbh.de
VCard: http://www.gmit-gmbh.de/mettler.vcf

GMIT GmbH, Novalisstrasse 10, D-10115 Berlin, Germany
Phone: +49 30 240 88 23 30
Fax  : +49 30 240 88 23 59
Amtsgericht Charlottenburg HRB 100581B
Geschäftsführer: Stephan Skrodzki
http://www.gmit-gmbh.de





Re: Ubuntu FAI behind ftp_proxy (squid)

2009-07-07 Diskussionsfäden mettler
hi,
Thanks alot Carsten,
We are serving some commercial software via password protected ftp and
can't give it away  - so there are several policies involved ;)

Thoughts about mirroring them via http are emerging ;)
But that will take some time.




The questions is:
When I use /etc/environment or /etc/bash.bashrc to export
environment-variables INSIDE the chroot they are not always respected when
using $ROOTCMD or using install_packages.


What would be the right place to put these?
How to set up an environment variable that will be used by install_packages?


Or how to modify the install_packages' $root_cmd without editing the
script itself? if there is no other way.




Regards!
Stephan



 Hi

 mett...@gmit-gmbh.de wrote:
 That would have been a good workaround for the Ubuntu packages.

 But we are providing our own software via FTP-Servers.
 So i needed to set up both: ftp_proxy and http_proxy

 I tend to think to stand up an http server for those should be easy, but
 then I don't know if you administer these servers yourself.

 What I would do is to mirror those packages into a private repo whcih
 you can thn access directly via ftp or http if possible. But then I
 don't know what kind of policies are other problems might stop you from
 doing that.

 HTH

 Carsten






Re: Ubuntu FAI behind ftp_proxy (squid)

2009-07-07 Diskussionsfäden Holger Parplies
Hi,

mett...@gmit-gmbh.de wrote on 2009-07-07 10:30:29 +0200 [Ubuntu FAI behind 
ftp_proxy (squid)]:
 In our network we have no gateway and no DNS server.
 All internet access is done via a Squid-proxy.
 So we need to proxy ftp over http.
 [...]
 In a running system we could just add the proxy settings like this:
 /etc/environment or /etc/bash.basrh
 ftp_proxy=http://192.168.30.42:2121
 http_proxy=http://192.168.30.42:2121
 
 and use 'apt-get update'
 But that did not work inside the chroot during installation ;(
 
 So we had to set ROOTCMD via a .var file to:
 ---
 ROOTCMD=chroot $target /usr/bin/env http_proxy=192.168.30.42:2121
 ftp_proxy=http://192.168.30.42:2121
 ---

why not simply set http_proxy and ftp_proxy in the .var file? That way they
should end up in the environment. Or is there a reason they can only be in
the environment inside the chroot?

Hope that helps.

Regards,
Holger


Re: Ubuntu 9.04 Jaunty FAI howto

2009-06-29 Diskussionsfäden Stephan Hermann
Hi Robert,

thx for your documentation on how to setup FAI on an Ubuntu Server
Host :)

Well done...

I have one fix for your documentation:

in hooks/updatebase.OS_UBUNTU_904_X32 you write something like this:

# Import FAI repository keys
echo Importing FAI repository keys
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com AB9B66FD


Most likely that this won't work in a production environment because
normally during setup you don't have internet connection (at least at
our place here, and in most Datacenters I was using FAI).

Normally you should prepare your own Package archives locally (not
using apt-proxy but some debmirror magic) so you can mirror the fai
koeln packages from uni-koeln.de

Btw...would you like to work with us on FAI in Ubuntu?

We need to adjust some values in MrFai packages for Ubuntu to not
change that much on the first installation.

Regards,

\sh


On Sun, 28 Jun 2009 10:27:02 +0200
Robert Markula robert.mark...@gmx.net wrote:

 Hi list,
 I've just finished my first HowTo in the wiki [1].
 
 Since it is my first FAI howto, I hope I did not violate any rules.
 I'd be happy for any comments and suggestions!
 
 Also, as mentioned in the WIKI, due to the lack of physical machines,
 I was only able to test this in a VirtualBox environment. It should
 work in a 'real' environment nevertheless, but here I depend on your
 feedback. I'd also be interested for any feedback with regards to
 using other distributions (OpenSuSE, RedHat, ...). It *should* work,
 but I didn't have the time to dig into this.
 
 Happy reading!
 Robert
 
 
 [1]
 http://faiwiki.informatik.uni-koeln.de/index.php/UbuntuJauntyInstallationHowTo


-- 
| Stephan '\sh' Hermann| OSS Dev / SysAdmin |
| JID: s...@linux-server.org | http://www.sourcecode.de/  | 
| GPG ID: 0xC098EFA8   | http://leonov.tv/  |
| FP: 3D8B 5138 0852 DA7A B83F DCCB C189 E733 C098 EFA8 |


Re: Ubuntu 9.04 Jaunty FAI howto

2009-06-29 Diskussionsfäden Robert Markula
Hi Stephan,
you are right, and thinking about it, this isn't needed for this FAI
installation anyway, as FAI_ALLOW_UNSIGNED is set to true in BC_BASE.var.

I'll correct it on the wiki.

Using apt-proxy instead of debmirror was done just out of simplicity.
IMO it serves the purpose of this howto (setting up a testing
environment) very well.
If it's about using FAI in production environment, I don't have as much
experience as you do. Maybe we should add a note to the wiki? Or
describe an alternative approach in detail?

 Btw...would you like to work with us on FAI in Ubuntu?
I'll contact you off-list.

Cheers,
Robert


Stephan Hermann wrote:
 Hi Robert,
 
 thx for your documentation on how to setup FAI on an Ubuntu Server
 Host :)
 
 Well done...
 
 I have one fix for your documentation:
 
 in hooks/updatebase.OS_UBUNTU_904_X32 you write something like this:
 
 # Import FAI repository keys
 echo Importing FAI repository keys
 apt-key adv --recv-keys --keyserver keyserver.ubuntu.com AB9B66FD
 
 
 Most likely that this won't work in a production environment because
 normally during setup you don't have internet connection (at least at
 our place here, and in most Datacenters I was using FAI).
 
 Normally you should prepare your own Package archives locally (not
 using apt-proxy but some debmirror magic) so you can mirror the fai
 koeln packages from uni-koeln.de
 
 Btw...would you like to work with us on FAI in Ubuntu?
 
 We need to adjust some values in MrFai packages for Ubuntu to not
 change that much on the first installation.
 
 Regards,
 
 \sh


Re: Ubuntu 9.04 Jaunty FAI howto

2009-06-28 Diskussionsfäden Henning Sprang
Hi Robert,

Robert Markula wrote:
 Hi list,
 I've just finished my first HowTo in the wiki [1].

Great, thanks!

 Since it is my first FAI howto, I hope I did not violate any rules. I'd
 be happy for any comments and suggestions!

It really looks quite good, but yes, I have some hints about possible
improvements that come to my mind when skimming over it:

What you should mention is, that this is also a Howto for getting FAI up
and running on an Ubuntu Server! I didn't try that myself for a long
while, but from thinghs I read in the list and IRC I was thinking FAI
server support is broken in UBuntu.

I don't exactly understand the part  Activate routing - it might be
very specific to the way you build your testing network,
maybe you should describe the whole network setup you assume to be used.

And, very last, some parts (especially the explanations and listings of
party of the configspace) look like these are things that are already
described in the configspace - maybe it could be made shorter by just
linking to other docs.
I might oversee that you show only things specific to your Ubuntu setup
- in that case, forget that remark :)

 Also, as mentioned in the WIKI, due to the lack of physical machines, I
 was only able to test this in a VirtualBox environment. It should work
 in a 'real' environment nevertheless, but here I depend on your feedback.

I'll not come to really test every step out, but usually, things whould
work very similar if you connect the cables the same way as the virtualy
machines are attched top each other...


Thanks for your efforts!

Henning


Re: ubuntu

2008-10-13 Diskussionsfäden Henning Sprang
Nikola Knežević wrote:
 Hi guys,
 
 How hard is to use FAI with Ubuntu Hoardy (as an install client).
 According to the wiki, I just need to create base.tar.gz (or
 CLASSNAME.tar.gz). Well, are there any problems I may come across?


It's hard to say how hard it is without knowing your experience with
automatic installations - and it is also hard to say in which problems
you might run - therefore:

Try it and ask if you don't get it done :)

That said, I'm doing it without any problems.

 Sorry for this lame question, I just discovered FAI, and I was delighted
 when I installed Debian on part of our cluster.

So, you got some experience with it?

 Also, multi-distribution wiki=page mentions some directory called
 configspace, which I do not have (I'm running FAI on Debian etch). I
 should probably try to get the latest FAI if I want Ubuntu, right?

This Wiki page might not be in all points totally out of date, but I'm
not aware of errors in there.

configspace is this:
http://www.informatik.uni-koeln.de/fai/fai-guide/ch-config.html#s-c3

And, be advised to read the whole FAI guide one time before going on -
it will make your life easier.

Henning



-- 
Henning Sprang
http://www.sprang.de | http://lazyb0y.blogspot.com/


Re: ubuntu

2008-10-13 Diskussionsfäden Henning Sprang
And, BTW:

Nikola Knežević wrote:
I should probably try to get the latest FAI if I want Ubuntu, right?

As you don't say which version you are currently running, I cannot say that.

If I recall correctly, in terms of your multi-distribution goal, there
are no big changes between the normal Etch version and the latest
release that was built for Etch on the FAI apt repository.

But upgrades to Lenny will be easier if you start using the newer
version now.

Henning


-- 
Henning Sprang
http://www.sprang.de | http://lazyb0y.blogspot.com/


Re: ubuntu

2008-10-13 Diskussionsfäden Ryan Steele

Nikola Knežević wrote:

Hi guys,

How hard is to use FAI with Ubuntu Hoardy (as an install client). 
According to the wiki, I just need to create base.tar.gz (or 
CLASSNAME.tar.gz). Well, are there any problems I may come across?


I'm running it on Hardy without any real problems.  But, I'm using the 
.deb from either Etch or Lenny (I forget which - it's version 3.2.10) so 
that I have good support for RAID + LVM via setup-storage.




Sorry for this lame question, I just discovered FAI, and I was 
delighted when I installed Debian on part of our cluster.


Also, multi-distribution wiki=page mentions some directory called 
configspace, which I do not have (I'm running FAI on Debian etch). I 
should probably try to get the latest FAI if I want Ubuntu, right?


I'm only worried about installing Ubuntu clients, so I never really 
bothered with the multi-distro page.


HTH,
Ryan


Re: ubuntu install

2008-06-11 Diskussionsfäden Henning Sprang

Thomas Neumann wrote:
I tried ... and failed. Main reason was that the ubuntu debootstrap and 
the debian debootstrap do things a bit differently.


Yes, you need at leats debootstrap 1.0 - the one from Lenny should work 
for both - Debian and Ubuntu.


Henning


Re: ubuntu install

2008-06-10 Diskussionsfäden Thomas Neumann

hiya

Goesta Smekal wrote:
 Henning Sprang schrieb:
 I think some people are using and doing this, without talking too
 much about it.

 Jep. Like me. Installing Ubuntu from a Debian Server is a bit tricky,

I tried ... and failed. Main reason was that the ubuntu debootstrap and 
the debian debootstrap do things a bit differently.


 but Ubuntu from Ubuntu works fine. Did it with Dapper and am currently
 porting my setup to Hardy.

That's the way I did it too. Set up an ubuntu host and create a suitable 
nfsroot. Copy the nfsroot to the fai-server and forget about the ubuntu 
box. Took me a bit of work to rewrite the config-space, but now 
debian32, debian64, ubuntu32 and ubuntu64 all get installed from the 
same config space. Just choose which OS you want from PXE bootprompt and 
wait a bit until completion.



tschüß
thomas




Re: ubuntu install

2008-06-10 Diskussionsfäden Olivier Le Thanh Duong
2008/6/6 Pierre Frenkiel [EMAIL PROTECTED]:
 hi,
 I wanted to try FAI to install Hardy Ubuntu on several computers,
 but I'm rather puzzled when seeing that the more recent Ubuntu distrib
 mentionned in all docs and archives is 4 years old(Breezy).
 Is the Ubuntu install actually working now?

 --
 Pierre Frenkiel



Installing Ubuntu hosts from an Ubuntu server work well under Hardy.
There was only a problem with unionfs but a work around has been
published now. I advice you to use the packets from the FAI PPA. [1]


[1] https://launchpad.net/~fai/+archive


Re: ubuntu hardy -- need network help

2008-05-23 Diskussionsfäden Michael Tautschnig
Hi!

[...]
 
  then the IPADDR is ok, but HOSTNAME still equals host (and I don't
  really want to specify the ip address -- that's what bootp is for,
  right?).
 
  Any ideas? This is also my first time using fai-cd.
 
  Install server = Ubuntu 8.04 with fai-server 3.2.4+svn4837, and also
  trying to install ubuntu hardy. I've put the log files here:
  http://web.cs.swarthmore.edu/failogs
 
  Bootp seems to respond correctly to bootptest, but during the install I
  see no bootp log messages on the server and nothing using tcpdump.
 

This might be some issue with klibc-utils and live-initramfs, please try
- using DHCP instead of BOOTP (if by any means possible)
- add hostname=yourhostname to the kernel command line

HTH,
Michael



pgpukvaJUtzWe.pgp
Description: PGP signature


Re: ubuntu make-fai-bootfloppy is currently broken.

2008-04-07 Diskussionsfäden Henning Sprang

Goesta Smekal wrote:

Installing Hardy on up to 140 Desktops aged 0 to 5 years I simply can't
do without initrd. Besides the default kernels of most distros nowadays
are initrd.

Is there any remedy? 


* Looking at the code and try to fix the problem
* boot with PXE


Both sound quite some work, or impossible if your hardware doesn't 
support PXE and etherboot doesn't work for you, but these are the 
current ways to solve it.


Or: try to use a pre-3.2 version (don't know if that works well)

Henning


Re: ubuntu make-fai-bootfloppy is currently broken.

2008-04-07 Diskussionsfäden Michael Tautschnig
 Goesta Smekal wrote:
 Installing Hardy on up to 140 Desktops aged 0 to 5 years I simply can't
 do without initrd. Besides the default kernels of most distros nowadays
 are initrd.

 Is there any remedy? 

 * Looking at the code and try to fix the problem
 * boot with PXE

[...]

Use FAI-CD ...

Best,
Michael



pgpDhHD3obJiT.pgp
Description: PGP signature


Re: ubuntu make-fai-bootfloppy is currently broken.

2008-04-07 Diskussionsfäden Goesta Smekal
Michael Tautschnig schrieb:
 
 Use FAI-CD ...

Sounds promising. And quite obvious too ;-)

I got an ISO now, but no machine at hand. I will try and report ...

  thanks

  Goesta

-- 
#!/usr/bin/perl
foreach $c (split(/ /,47 6f 65 73 74 61 20 53 6d 65 6b 61 6c 0d 0a)) {
print pack(C, hex($c));}



signature.asc
Description: OpenPGP digital signature


Re: Ubuntu hardy (8.04) problems

2008-02-08 Diskussionsfäden Andreas Sindermann

How does your pxe-file created by 'fai-chboot -IvF demohost' look like
exactly? What kernel are you using?

Andreas


Olivier Le Thanh Duong writes:
  There was a similar problem  in Gutsy, the UnionFS version shipped in
  the kernel doesn't support write over NFS. I got around the problem by
  creating the NFSROOT (and therefore the boot CD) under Feisty but
  putting the Gutsy installation base in it, but it's not a clean way to
  do it. My method is explained in more details here :
  http://staz.be/wiki/FAI_GUTSY
  (sorry I promised to migrate the HowTo to the FAI Wiki but still hasn't done 
  so)
  
  Olivier
  
  2008/2/6, Andreas Sindermann [EMAIL PROTECTED]:
   It seems that the unionfs delivered with hardy does not allow the
   client to change/append to existing files at all whereas creating new
   files is no problem...
  
   Andreas
  
  


Re: Ubuntu hardy (8.04) problems

2008-02-06 Diskussionsfäden Olivier Le Thanh Duong
There was a similar problem  in Gutsy, the UnionFS version shipped in
the kernel doesn't support write over NFS. I got around the problem by
creating the NFSROOT (and therefore the boot CD) under Feisty but
putting the Gutsy installation base in it, but it's not a clean way to
do it. My method is explained in more details here :
http://staz.be/wiki/FAI_GUTSY
(sorry I promised to migrate the HowTo to the FAI Wiki but still hasn't done so)

Olivier

2008/2/6, Andreas Sindermann [EMAIL PROTECTED]:
 It seems that the unionfs delivered with hardy does not allow the
 client to change/append to existing files at all whereas creating new
 files is no problem...

 Andreas




Re: Ubuntu installtion using seperate /var partition, no network running

2007-11-20 Diskussionsfäden Stephan Hermann
HI Thomas

Am Tue, 20 Nov 2007 16:43:17 +0100
schrieb Thomas Lange [EMAIL PROTECTED]:

 If you are doing an Ubuntu installation with FAI, you may have
 problems with your network. Ubuntu does not like if you use a separate
 /var partition. Read more here
 
 http://utcc.utoronto.ca/~cks/space/blog/linux/UbuntuVarRun


This is not correct.

You need to have /var/run created before anythin else...
this is only needed for some services during startup.

And yes, you have to create it if you don't have it.
Using an ubuntu chroot it actually have it...for others, it needs to be
created before hand :)

After that, you can mount /var and /var/run to whatever partition you
want.

Regards,

\sh


Re: Ubuntu installtion using seperate /var partition, no network running

2007-11-20 Diskussionsfäden Stephan Hermann
hi,

Am Tue, 20 Nov 2007 17:53:30 +0100
schrieb Emil Gorter [EMAIL PROTECTED]:

 
 On Tue, 20 Nov 2007 16:43:17 +0100
 Thomas Lange [EMAIL PROTECTED] wrote:
 
  If you are doing an Ubuntu installation with FAI, you may have
  problems with your network. Ubuntu does not like if you use a
  separate /var partition. Read more here
 
 I've had a struggle with that one too..
 
 My hack was quoted on the list, see bottom half of:
 
  https://lists.uni-koeln.de/pipermail/linux-fai/2007-June/005031.html

The easiest solution is to use a ubuntu base tarball as base.
The other solution is to create those directories after partitioning
and mounting.

\sh


Re: Ubuntu 7.10 - live/filesystem.dir and read only filesystem

2007-11-12 Diskussionsfäden Castang Jerome

Michael Tautschnig a écrit :

[...]

Maybe for you too http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=444079
applies - please try to add nfs-common to the NFSROOT file (as shown in the
patch attached to the bug report).

Best,
Michael

  

nfs-common already is in nfs root.
and it doesn't work...

I try to understand one thing:
- When a fai client boots up, he try to mount the nfsroot in read only. 
all the data is written somewhere else using tmpfs. Is that right ?


If this is true, it may be a problem with tmpfs wich is not doing is 
job (or not present, or not configured...) ?



--
Jerome Castang

Mail: [EMAIL PROTECTED]
Tel: +33(0)5 40 00 36 92



Re: Ubuntu 7.10 - live/filesystem.dir and read only filesystem

2007-11-09 Diskussionsfäden Castang Jerome

Michael Tautschnig a écrit :


There are parts that need to be written on every boot-up, just temporary things.
Prior to live-initramfs this was solved by mounting parts of the file system as
tmpfs. Now live-initramfs takes care of everything.

You definitely need to debug the mount problem, possibly by checking the logs on
the server.

HTH,
Michael


  

Taking a look at this old message, i found this:


Nov  9 10:00:39 procyon mountd[9249]: authenticated mount request from 
testfai.labri.fr:1014 for /soft/fai/nfsroot (/soft/fai/nfsroot)
Nov  9 10:00:39  mountd[9249]: refused unmount request from  for 
/root (/): not exported
Nov  9 10:00:40  mountd[9249]: authenticated mount request from 
:799 for /soft/fai/nfsroot (/soft/fai/nfsroot)
Nov  9 10:00:40  mountd[9249]: refused unmount request from x 
for /root (/): not exported
Nov  9 10:00:41  mountd[9249]: authenticated mount request from 
:840 for /soft/fai/nfsroot (/soft/fai/nfsroot)
Nov  9 10:00:41  mountd[9249]: refused unmount request from 
xxx.xxx.fr for /root (/): not exported


In /var/log/daemon

I don't really understand what's going on.
Maybe FAI tries to umount an nfs directory that does not exists ? (here 
/root)



--
Jerome Castang

Mail: [EMAIL PROTECTED]
Tel: +33(0)5 40 00 36 92



Re: Ubuntu 7.10 - live/filesystem.dir and read only filesystem

2007-11-09 Diskussionsfäden Castang Jerome

Michael Tautschnig a écrit :

[...]
  

--
Nov  9 09:46:32 procyon kernel: [ 1484.548824] nfsd: last server has exited
Nov  9 09:46:32 procyon kernel: [ 1484.548827] nfsd: unexporting all 
filesystems
Nov  9 09:46:32 procyon kernel: [ 1484.549856] RPC: failed to contact local 
rpcbind server (errno 5).
Nov  9 09:46:33 procyon kernel: [ 1485.599824] NFSD: Using 
/var/lib/nfs/v4recovery as the NFSv4 state recovery directory
Nov  9 09:46:33 procyon kernel: [ 1485.599837] NFSD: starting 90-second 
grace period

--

But rpcinfo -p says that rpc is running




AFAIK this is just fine, for whatever reason it comes up, but I think things
should work nevertheless.

So -- what's your current status? What does work, what does not?

Best,
Michael

  
A this time I get a PXE boot on kernel + initrd (2.6.22-14, but it does 
the same with olders).
Then if I define /srv/fai/nfsroot as NFSROOT it goes on an endless loop 
reporting:


Nov  9 10:00:41  mountd[9249]: authenticated mount request from 
:840 for /soft/fai/nfsroot (/soft/fai/nfsroot)


Nov  9 10:00:41  mountd[9249]: refused unmount request from 
xxx.xxx.fr for /root (/): not exported


In /var/log/daemon

In a second way if I define /srv/fai/nfsroot/live/filesystem.dir as 
NFSROOT (I now this is wrong, but for testing), there is no endless loop 
but FAI does not  work saying that the filesystem is read only.


--
Jerome Castang

Mail: [EMAIL PROTECTED]
Tel: +33(0)5 40 00 36 92



Re: Ubuntu 7.10 - live/filesystem.dir and read only filesystem

2007-11-09 Diskussionsfäden Michael Tautschnig
[...]

 
 Nov  9 10:00:39 procyon mountd[9249]: authenticated mount request from 
 testfai.labri.fr:1014 for /soft/fai/nfsroot (/soft/fai/nfsroot)
 Nov  9 10:00:39  mountd[9249]: refused unmount request from  for 
 /root (/): not exported
 Nov  9 10:00:40  mountd[9249]: authenticated mount request from 
 :799 for /soft/fai/nfsroot (/soft/fai/nfsroot)
 Nov  9 10:00:40  mountd[9249]: refused unmount request from x for 
 /root (/): not exported
 Nov  9 10:00:41  mountd[9249]: authenticated mount request from 
 :840 for /soft/fai/nfsroot (/soft/fai/nfsroot)
 Nov  9 10:00:41  mountd[9249]: refused unmount request from xxx.xxx.fr 
 for /root (/): not exported
 
 In /var/log/daemon

 I don't really understand what's going on.
 Maybe FAI tries to umount an nfs directory that does not exists ? (here 
 /root)


I have no idea who is trying to unmount something here (note that you replaced
parts by very different x-combinations). But I think FAI will never try to
unmount anything just after it mounted the root fs. It's all pretty strange...

Sorry, no idea so far...
Michael



pgpqs4TC70WIU.pgp
Description: PGP signature


  1   2   >