Gentoo Archives: gentoo-server

From: "Todd M. Hébert" <todd@×××.ie>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] binary kernel package
Date: Sun, 10 Feb 2008 12:44:54
Message-Id: 47AEF1BC.8060906@iil.ie
In Reply to: [gentoo-server] binary kernel package by Thilo Bangert
1 If the servers are all identical hardware, I would just build one machine, then boot each other box off a live CD, and dd the contents of the entire drive/array over. (You could do this partition by partition as well.. but if you do the whole drive/array you only have to do it once.)
2
3 dd if=/dev/<DRIVE/ARRAY> | ssh root@host "dd of=/dev<DRIVE/ARRAY>"
4
5 That should do it. (as long as the hardware is identical.) Of course.. it will take time to transfer, and you'll have to change the IP's & hostname of each server. This is a lot like making & deploying a GHOST image.. it's just skipping the "make" part and moving right to deploy. You could also send it to a file, then DD the file into place on each host from a DVD if they're small enough (or bzip2 compress them to see if they can be made to fit.)
6
7 If you're doing machines that aren't identical, but you can use a standard structure for most disk elements (same size /boot, /, /var, /usr, etc..) you can build one machine, create an image for each of the standard partitions, and dd those over.
8
9 You could create a tarball that has the kernel, including /boot, /usr/src, /lib/modules etc.., but you might not end up with world files that are in-step with what's actually on the machine.
10
11 I hope this is helpful.
12
13 --Todd
14
15 Thilo Bangert wrote:
16 > Hi guys,
17 >
18 > in the near future i am looking at installing gentoo onto a number of
19 > hosts. i already have a buildhost preparing binary packages for the
20 > clients - one of the missing pieces is the kernel install.
21 >
22 > i'd like to avoid having to compile a kernel on each and every host. how
23 > do you install a prebuilt kernel onto the host, fx. after having deployed
24 > a stage4 using quickstart? the best thing i can come up with is writing
25 > my own custom script, which pulls a tarball via http. the tarball has the
26 > modules, the initrd and the kernel...
27 >
28 > thanks.
29 > kind regards
30 > Thilo
31
32 ----- Items below this line are required under Irish law. -----
33
34 **********************************************************************
35 "Private Confidential & Privileged"
36 This Email and any files and attachments transmitted with it are
37 confidential and/or privileged. They are intended solely for
38 the use of the intended recipient. Any views and opinions expressed
39 are those of the individual author/sender and are not necessarily
40 shared or endorsed by Independent Newspapers (Ireland) Limited or any
41 associated or related company. The content of this Email and any file
42 or attachment transmitted with it may have been changed or altered
43 without the consent of the author. If you are not the intended
44 recipient, please note that any review, dissemination, disclosure,
45 alteration, printing, circulation or transmission of this Email and/or
46 any file or attachment transmitted with it, is prohibited and may be
47 unlawful. If you have received this Email or any file attachment
48 transmitted with it in error, please notify support@×××.ie or contact
49 Systems Administrator Tel: +353 (1) 411 2244
50 Internet Interaction Limited
51 3050 Lake Drive, Citywest digital Park, Co Dublin
52 CRO # 247783
53
54
55 --
56 gentoo-server@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-server] binary kernel package Thilo Bangert <bangert@g.o>