Sourceslist on Multi Distro

2012-01-17 Diskussionsfäden Mark Eisenblaetter
Hi list.

i have the Problem that Fai is using the Debian Squeeze Sources wen
installing ubuntu.

My setup is a Ubuntu LTS Server with a Debian Squeeze NFSRoot. Wen i
install the default Debian it works fine, but wen i try to install ubunut
fai is using the wrong sources.
I can see that fai is using the right base.tgz for ubuntu but installing
packedges from Debian.

Which sources list do i need to alter, that he is using the right apt
repository?


Mark


Re: Sourceslist on Multi Distro

2012-01-17 Diskussionsfäden Henning Sprang
There is a Fai internal method that copies the sources.list fron nfsroot to
the install system.

In my example code for ubuntu / multi installs you find which step you have
to disable with a hook in order to prevent that. Or check fai sources to
find it (I dont know it anymore and cannot look it up myself now im on the
road)...
Am 17.01.2012 13:20 schrieb "Mark Eisenblaetter" <
mark.eisenblaet...@gmail.com>:

> Hi list.
>
> i have the Problem that Fai is using the Debian Squeeze Sources wen
> installing ubuntu.
>
> My setup is a Ubuntu LTS Server with a Debian Squeeze NFSRoot. Wen i
> install the default Debian it works fine, but wen i try to install ubunut
> fai is using the wrong sources.
> I can see that fai is using the right base.tgz for ubuntu but installing
> packedges from Debian.
>
> Which sources list do i need to alter, that he is using the right apt
> repository?
>
>
> Mark
>


possible Hooks

2012-01-17 Diskussionsfäden Mark Eisenblaetter
Hello List,

i was not able to find a list of hooks?

wicht hooks can i use an wen do they hookin?

Mark


Re: possible Hooks

2012-01-17 Diskussionsfäden Thomas Lange
> On Tue, 17 Jan 2012 15:02:44 +0100, Mark Eisenblaetter 
>  said:

> Hello List,
> i was not able to find a list of hooks?
Have a look at section 7.2
http://fai-project.org/fai-guide/ar01s07.html
For each task you can define hooks.

See also
http://fai-project.org/fai-guide/ar01s07.html#_anchor_id_hooks_xreflabel_hooks_hooks

-- 
regards Thomas


Re: possible Hooks

2012-01-17 Diskussionsfäden Mark Eisenblaetter
Hi,

thanks, i missed the part with the default task.

Mark

On Tue, Jan 17, 2012 at 3:13 PM, Thomas Lange  wrote:

> > On Tue, 17 Jan 2012 15:02:44 +0100, Mark Eisenblaetter <
> mark.eisenblaet...@gmail.com> said:
>
>> Hello List,
>> i was not able to find a list of hooks?
> Have a look at section 7.2
> http://fai-project.org/fai-guide/ar01s07.html
> For each task you can define hooks.
>
> See also
>
> http://fai-project.org/fai-guide/ar01s07.html#_anchor_id_hooks_xreflabel_hooks_hooks
>
> --
> regards Thomas
>



-- 
Mark Eisenblätter
G & L Geißendörfer & Leschinsky GmbH
www.gl-systemhaus.de


Re: Sourceslist on Multi Distro

2012-01-17 Diskussionsfäden Mark Eisenblaetter
Thanks for the hint.

prepareapt.

Mark

On Tue, Jan 17, 2012 at 2:59 PM, Henning Sprang wrote:

> There is a Fai internal method that copies the sources.list fron nfsroot
> to the install system.
>
> In my example code for ubuntu / multi installs you find which step you
> have to disable with a hook in order to prevent that. Or check fai sources
> to find it (I dont know it anymore and cannot look it up myself now im on
> the road)...
> Am 17.01.2012 13:20 schrieb "Mark Eisenblaetter" <
> mark.eisenblaet...@gmail.com>:
>
> Hi list.
>>
>> i have the Problem that Fai is using the Debian Squeeze Sources wen
>> installing ubuntu.
>>
>> My setup is a Ubuntu LTS Server with a Debian Squeeze NFSRoot. Wen i
>> install the default Debian it works fine, but wen i try to install ubunut
>> fai is using the wrong sources.
>> I can see that fai is using the right base.tgz for ubuntu but installing
>> packedges from Debian.
>>
>> Which sources list do i need to alter, that he is using the right apt
>> repository?
>>
>>
>> Mark
>>
>


-- 
Mark Eisenblätter
G & L Geißendörfer & Leschinsky GmbH
www.gl-systemhaus.de


Setup-storage failure for LVM on wheezy

2012-01-17 Diskussionsfäden Nicolas Courtel

Hello,

Trying to install a wheezy host using FAI 4.0~beta3+experimental7, I 
have some troubles with setup-storage; the current disk partitioning is 
the following:


sda1 = primary partition for /boot
sda2 = primary partition for lvm volumes = vg0/root, vg0/usr, ...

The new partitioning should be the same, without preserving anything 
because of alignment issues. This is what happens:


[...]
Executing: wipefs -a /dev/sda1
Executing: vgchange -a n vg0
Executing: wipefs -a vg0/var
Command had non-zero exit code

There seems to be 2 problems:
- wipefs argument should be /dev/vg0/var
- vgchange -a n should not be called before wipefs, as it prevents it 
from seeing the partition


I have tweaked Commands.pm so that it does not fail in this case, but a 
clean fix might be useful in a future version of setup-storage.


--
Nicolas





Re: FAI and diskless clients

2012-01-17 Diskussionsfäden Andreas B. Mundt
Hello Toomas,

many thanks for your explanations and the script so far! 

On Mon, Jan 16, 2012 at 11:30:22AM +0200, Toomas Tamm wrote:

> We have used diskless clients for years. I am typing this answer on
> one :-) .

[...]

> Of course you also need to set up a server to export the root directory
> with appropriate permissions and make sure that the NFS is efficient
> and reliable in *your* network. My root is currently mounted as
> rw,vers=3,rsize=32768,wsize=32768,namlen=255,hard,intr,nolock,proto=tcp,
> timeo=7,retrans=3,sec=sys,mountproto=udp  . Your preferences and
> situation may vary.

This is where I am working right now.  I did not find a clear
documentation on how to do the implementation (chroot and booting)
best, by more or less try and error I ended up with something that
magically works and already looks quite promising, however I would
like to understand a bit more. Perhaps you or someone having deeper
insights into the subject can give some comments, tips and tricks on
what I did so far: 

I install the chroot with:

  export LC_ALL=C; fai -vNu diskless dirinstall /opt/live/filesystem.dir/

The FAI classes used are almost identical to a comparable disk
installation; only /etc/hosts and /etc/resolv.conf need to be modified
from what FAI produces.  The directory /opt is exported via NFS (I
can't use NFSv4, right?). 

Now I create the PXE configuration: 
  ...
  kernel vmlinuz-2.6.32-5-486
  append initrd=initrd.img-2.6.32-5-486 ip=dhcp root=/dev/nfs nfsroot=/opt 
boot=live

I was not able to figure out what boot=live exactly means.  What is
the difference to boot=nfs?  Are there other alternatives?

When booting the client, it seems to pick up the hostname from
dhcp/dns if it has been added to these services. This is already
great.  If the machine is unknown to dhcp/dns  it picks up 'host'.  
Can I easily modify or influence this behavior?  What's the
recommended implementation?

Problems I encountered before on debian-edu are security aspects:  We
would like to use Kerberos and NFSv4 for mounting the home
directories.  Of course a keytab in a readable chroot shared by  
many machines is not what you want.  Any ideas how to handle that
best? 

I documented what I got so far in more detail here:

  http://wiki.debian.org/DebianLAN/Setup_A>  

Hints, tips and tricks as well as pointers are appreciated.  Thanks! 

Best regards,

 Andi
 


Re: FAI and diskless clients

2012-01-17 Diskussionsfäden Thomas Lange
> On Tue, 17 Jan 2012 22:27:46 +0100, "Andreas B. Mundt" 
>  said:

> from what FAI produces.  The directory /opt is exported via NFS (I
> can't use NFSv4, right?). 
NFS v4 for the root file system is not supported by initramfs and
live-boot. But if you need FNS v4 only for /opt, just mount it later.

> I was not able to figure out what boot=live exactly means.  What is
This is described in live-boot(7).

> great.  If the machine is unknown to dhcp/dns  it picks up 'host'.  
> Can I easily modify or influence this behavior?  What's the
> recommended implementation?
I recommend using DHCP. But I guess live-boot has more options to
define the host name.

> Problems I encountered before on debian-edu are security aspects:  We
> would like to use Kerberos and NFSv4 for mounting the home
> directories.
That should be possible.

P.S.: NFS v4 for the root file system is possible using dracut instead
of initramfs-tools and live-boot. I did this a few days ago, but it's
not yet documented.
-- 
regards Thomas