个人工具

UbuntuHelp:Installation/WithFullyAutomaticInstaller

来自Ubuntu中文

跳转至: 导航, 搜索

Doing automatic ubuntu installations with FAI - Fully Automatic install from a debian sarge or ubuntu warty install server with FAI 2.6.5

Introduction

the following howto is a quick and dirty description what i did to get an Ubuntu system installed automatically without any manual interaction by using the tool FAI. On an Ubuntu Install Server, the easiest way is possibly to just use my Ubuntu FAI package from here: http://www.sprang.de/download/ubuntu/ ( I created it some time before the Hoary Release, and did not test it with the release version, please give me feedback in case anything doesn't work - see ContacT for that. In case you don't have an Ubuntu Server but want to install from a sarge Server, or if you want to use the newest FAI Package (version 2.8.2 at time of this writing), you should read the following howto and download the config files I provide. It can be made easily with a shared FAI config dir and an extra nfsroot directory - install some ubuntu machines, some sarge, maybe some sid... (will try progeny, too) I admit and am aware of, this Howto is not tested with the newest FAI version 2.8.4 (I wil do it when I have time to) and only with hoary about 4 weeks before release... I beg you to tell me of any error and problems that occur with my Ubuntu FAI Package or with the HOWTO below! Don't hesitate to mail me at: henning (place the at sign here) sprang.de I'd be very happy to get any type of feedback for my FAI documentation here, because for now I can't tell if anybody uses it and if it is helpful, I only have one hint about somebody being succesful and one other about somebody being not successful, but until know I have no hints on how to make it better, so feedback uis very much welcome and could help to improve these docs here - It would be best if the feedback goes along the lines of the famous "How to report bugs efficiently" doc found here: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. Again my mail address: henning (place the at sign here) sprang.de

Ubuntu FAI Installation Howto

  • install FAI as described in its docs: http://www.informatik.uni-koeln.de/fai/fai-guide.html/ - try a sarge install when you have a sarge install server. FAI involves a lot of Network services if you make a network install instead of using the FAI cd, and it can take a while to get that going.
  • when running on a sarge install server, install ubuntu's debootstrap from http://higgs.djpig.de/ubuntu/www/hoary/admin/debootstrap - needed because sarge package is missing warty scripts (might contact maintainer if patch is done?!)
  • make copy of the fai config in /etc/fai to /etc/ubuntu-fai -
  • adjust some things there, my config files for FAI 2.6.5 look like in this download file after that - short said, sources.list for ubuntu, nfsroot, debootstrap options...
  • run
make-fai-nfsroot -c /etc/ubuntu-fai
  • adjust /etc/exports to export the ubuntu nfsroot
  • adjust dhcp config so the nfsroot for the host to be installed to use ubuntu
  • adjust package config in fai config dir (can be resused from debian original config) which is broken (at least on my setup) because of some missing packages now ( would be great if those errors would be more verbose or otherwise better to find, or if there would be an option to apt-get install that it still installs available packages even if some of the packages in the parameters are missing from repository)
  • start the fai install
  • enjoy ubuntu

some time later, i realized that my cdrom wasnt found after that, and found out that this has something to do with the udev daemon ubuntu uses. it helped to load the kernel module ide-cd and cdrom (that was not neccessary in sarge) in case more problems occur (i don't remeber any more), the ubuntu bootstrapping howto might help: http://archive.ubuntulinux.org/ubuntu/dists/warty/main/installer-i386/current/doc/manual/en/apcs03.html If you want to create an ubuntu mirror, you can call debmirror like this: debmirror -h archive.ubuntu.com -d hoary -e rsync -s main,restricted,universe,multiverse --progress -r :ubuntu /home/ftp/ubuntu thanks to Thomas Lange for creating such a productivity-enhancing tool :) a list of things todo to make all this nicer on which I am working when I have the time to can be found at http://www.sprang.de/wiki/index.php/Ubuntu_install_with_FAI