Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7403708
  • 博文数量: 1756
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16232
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1756)

文章存档

2024年(2)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: LINUX

2011-10-27 10:13:11

 is a system designed to help you automate your installs over the network. It's primarily aimed at Red Hat-based distributions, such as Red Hat Enterprise Linux, CentOS, and Fedora. However, you can use it to install Debian-based distributions as well, with a caveat.

The Debian support is not nearly as good as the RH one. Furthermore, in Debian Squeeze, the network boot does not support AHCI disk controllers, which makes it useless for my test setup. So I will put the Ubuntu instructions here, and someone can modify them to use it with Debian.

I will not be covering Cobbler basics here right now. The wiki is good for that. Also note that there is no package in Debian for Cobbler. There is one in the newest releases of Ubuntu.

Step 1, get Ubuntu Server Installer CD. I will use 10.04 LTS. Go  to get a list of CD mirrors near you. For me, this URL ends up being:



Step 2, loopback mount the ISO.

mount -o loop /home/isos/ubuntu-10.04.2-server-amd64.iso /media


Step 3, rsync files from ISO to /var/www/cobbler/ks_mirror/Ubuntu-lucid-x86_64

mkdir /var/www/cobbler/ks_mirror/Ubuntu-lucid-x86_64

rsync -a /media/ /var/www/cobbler/ks_mirror/Ubuntu-lucid-x86_64 --exclude-from=/etc/cobbler/rsync.exclude


Now you have a local copy of the CD as a Net-boot repo resource. The files needed are at:

/var/www/cobbler/ks_mirror/Ubuntu-lucid-x86_64/install/netboot/ubuntu-installer/amd64:
linux
initrd.gz


Step 4, Create a Distribution in Cobbler

cobbler distro add --name=Ubuntu-lucid-x86_64 --kernel=/var/www/cobbler/ks_mirror/Ubuntu-lucid-x86_64/install/netboot/ubuntu-installer/amd64/linux --initrd=/var/www/cobbler/ks_mirror/Ubuntu-lucid-x86_64/install/netboot/ubuntu-installer/amd64/initrd.gz --arch=x86_64 --breed=ubuntu --os-version=jaunty --ksmeta="directory=/cblr/links/Ubuntu-lucid-x86_64 suite=lucid hostname=@@http_server@@ language=english"


Note Jaunty is the newest one supported by this version of Cobbler.

Step 5, Create the Link for installation use:

cd /var/www/cobbler/links

ln -s /var/www/cobbler/ks_mirror/Ubuntu-lucid-x86_64 Ubuntu-lucid-x86_64


Step 6, Set up a profile

cobbler profile add --name=Ubuntu_x86_64 --distro=Ubuntu-lucid-x86_64 --kickstart=/var/lib/cobbler/kickstarts/sample.seed

Step 7, Set up a system

(Best done through web ui)

Step 8, test!

阅读(1673) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~