分类: LINUX
2010-11-26 15:55:41
在Dell
PowerEdge 2600服务器上pxe安装Ubuntu
10.10 Server
PowerEdge 2600配置:
硬盘:scsi
内存:
网卡:三块,其中服务器上原配的千兆网卡带有pxe(Pre-Boot Execution Environment)功能
一、配置pxe服务器
需要配置dhcp, tftp, Web服务器。
1、 dhcp和tftp服务器,可以在window下使用tftpd32软件。如图:
将从网络上下载的ubuntu-10.10-server-i386.iso解压,把install\netboot目录下的内容都拷贝到D:\tftpboot\pxe下;把D:\tftpboot\pxe\ubuntu-installer\i386目录下的pxelinux.0文件拷贝到D:\tftpboot\pxe下来;修改D:\tftpboot\pxe\pxelinux.cfg目录下的default文件,添加语句include ubuntu-installer/i386/boot-screens/prompt.cfg,使得通过pxe启动时能够进入安装菜单界面。
2、 Web服务器使用linux系统下的apache服务器
将ubuntu-10.10-server-i386.iso文件上传到linux,运行命令
mkdir
/var/www/ubuntu
sudo
mount –o loop ubuntu-10.10-server-i386.iso /var/www/ubuntu
二、在PowerEdge 2600上通过pxe安装
1、启动PowerEdge 2600,按F12,使得服务器进入pxe。
2、Pxe先通过dhcp获得ip地址,如192.168.0.116。
3、pxe通过tftp获得启动需要的文件,并进入安装菜单。
4、安装过程中,会提示选择镜像网站,滚动到第一条,手动添加Web服务器的地址,如192.168.0.119,之后提示选择路径,添/ubuntu,开始通过Web服务器安装。安装过程中,还会在互联网上下载需要的安装包,需要一直与外网(互联网)保持连接。
5、安装后,需要修改apt-get更新源,修改/etc/apt/ sources.list文件,否则,apt-get时会一直在安装服务器(192.168.0.119)上更新。设置apt-get更新源为,可修改为以下内容:
#
# deb cdrom:[Ubuntu-Server 10.10
_Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
#deb cdrom:[Ubuntu-Server 10.10
_Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
# See
for how to upgrade to
# newer versions of the
distribution.
deb
maverick main restricted
deb-src
maverick main restricted
## Major bug fix updates produced
after the final release of the
## distribution.
deb
maverick-updates main restricted
deb-src
maverick-updates main restricted
## N.B. software from this
repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that
software in universe WILL NOT receive any
## review or updates from the
Ubuntu security team.
deb
maverick universe
deb-src
maverick universe
deb
maverick-updates universe
deb-src
maverick-updates universe
## N.B. software from this
repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a
free licence. Please satisfy yourself as to
## your rights to use the
software. Also, please note that software in
## multiverse WILL NOT receive
any review or updates from the Ubuntu
## security team.
deb
maverick multiverse
deb-src
maverick multiverse
deb
maverick-updates multiverse
deb-src
maverick-updates multiverse
## Uncomment the following two
lines to add software from the 'backports'
## repository.
## N.B. software from this
repository may not have been tested as
## extensively as that contained
in the main release, although it includes
## newer versions of some
applications which may provide useful features.
## Also, please note that
software in backports WILL NOT receive any review
## or updates from the Ubuntu
security team.
# deb
maverick-backports main restricted
universe multiverse
# deb-src
maverick-backports main restricted
universe multiverse
## Uncomment the following two
lines to add software from Canonical's
## 'partner' repository.
## This software is not part of
Ubuntu, but is offered by Canonical and the
## respective vendors as a
service to Ubuntu users.
# deb
maverick partner
# deb-src
maverick partner
## Uncomment the following two
lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of
Ubuntu, but is offered by third-party
## developers who want to ship
their latest software.
# deb
maverick main
# deb-src
maverick main
deb
http://security.ubuntu.com/ubuntu maverick-security main restricted
deb-src
http://security.ubuntu.com/ubuntu maverick-security main restricted
deb http://security.ubuntu.com/ubuntu
maverick-security universe
deb-src
http://security.ubuntu.com/ubuntu maverick-security universe
deb
http://security.ubuntu.com/ubuntu maverick-security multiverse
deb-src
http://security.ubuntu.com/ubuntu maverick-security multiverse