0

Imagine the condition for lab for 100 computers Case 1 - Hardware conf of all 100 comp is same -- what is the best way to install Ubuntu 9.10 in whole lab

Case 2 - Hardware conf of all 100 comp is different from each other -- what is the best way to install Ubuntu 9.10 in whole lab

Any practical experience ? Any good links ?

5 Answers 5

1

For Case 1, we use a nice little tool called udpcast. It automatizes and optimizes the whole process explained by Richard Holloway.

1
  • Certainly, it is. udpcast.linux.lu :) You just set up a model machine and image it all across the lab. Since it is multicast, speed doesn't alter with the number of machines participating. Commented Apr 6, 2010 at 8:13
1

"Official Ubuntu Server Book" on Amazon. If you use Ubuntu Server, this really is a terrificly written and broad book. It's not even THAT dated (very little talk of Upstart) and has few grammatical errors. My tutorial below is from what I learned from this book.

It has an entire chapter on automating and customizing Ubuntu installations.

Also, the last "System Administration" Linux Journal (March or April 2010, I think) had a similar article from start to finish, well written, on the same topic.
Edit: Apparently, their articles are free online after a few months.
Here's the article: Economy Size Geek - Installation Toolkit

Three keywords to look into:
Preseeding
Kickstart
PXE

Hope this helps.

Tutorial

I'm only covering getting netboot installed, not making custom installs with Kickstart/Preseeding. I'm assuming you know DHCP configuration. It's not that difficult.

1)You'll need your DHCP server (you need one) configured with several new options in
/etc/dhcp3/dhcpd.conf.

a. Inside the subnet declaration, have

range dynamic-bootp lowip highip

Basically, add the "dynamic-bootp" option in your range config.

b. Next, in global settings OR in your specified subnet, add the following two options:

next-server ip_of_netboot_server
filename "pxelinux.0"

2) Install the tftpd-hpa package on the netboot server. Make sure UDP port 69 is opened there.

3)Grab the netboot images.
The following is made easy by the fact that Ubuntu preconfigures a lot of the setup, so you'll be ready to go with a simple setup quickly.

$ cd /var/lib/tftpdboot
$ sudo wget http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/netboot/netboot.tar.gz
$ sudo tar -xzvf netboot.tar.gz`

There are many different ways to tweak all these programs, netboot installation options, etc. to make it a very powerful, customized tool. What I've described is the bare bones.

FROM HERE

you can plug a computer into your network, boot it from LAN (via BIOS, or hotkey at POST) and install Ubuntu. It will be grabbing a lot of packages from the Internet, so be ready for that. You can set up mirrors or apt-cache servers to alleviate this problem, but as I said, this is only the simple setup.

0

If each machine is identical, I would build one machine, then use dd copy each partition onto a USB drive or FTP server.

You can then boot the next machine from a live CD and simply dd the partitions from the USB drive or FTP server onto the disk.

I used to use Mondo Rescue for cloning machines but it was overly complicated for what I needed.

100 machines is a lot and this would be time consuming, so I expect there may be better solutions.

For machines on differing hardware, I perform a minimal install and have my own installer scripts that convert the base OS to our company specific requirements, installing packages and setting up configuration files. There are lots of things like kickstart that can do this too.

0

There is a chapter in the Ubuntu Installation Guide about Automatic Installation and Automating the installation using preseeding.

You could also use external projects like FAI for automatically installing Ubuntu on your computers.

The image based installation which Richard Holloway described in his answer is not faster than using Kickstart/Preseed/FAI but has the disadvantage that you have to create new images every time your 'master copy' changes. Additionally you'd still have to customize the installed systems (e. g. set hostname, network interfaces, etc.).

0

+1 from me to not use an image based installation.

Use FAI, since it's the most flexible tool for doing it. And it's a rock solid tool, that I'm using since over 10 years. FAI will work for you, especially since you have different machines.

The FAI project now has a new $HOME. IT's

http://fai-project.org

You must log in to answer this question.