Chinaunix首页 | 论坛 | 博客
  • 博客访问: 588292
  • 博文数量: 187
  • 博客积分: 10025
  • 博客等级: 上将
  • 技术积分: 2990
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-18 17:40
文章分类

全部博文(187)

文章存档

2010年(1)

2009年(23)

2008年(163)

我的朋友

分类: LINUX

2008-12-10 11:03:34

RHCT Lab1: Network Installation

RHCT Lab1: Performing network OS installation (HTTP, NFS, FTP)

1. HTTP

A. Preparing the installation server (192.168.75.11)

#yum install httpd

#mkdir -p /var/www/html/install

Method1 #mount -o loop /path/to/Centos5.iso /var/www/html/install (for ISO image)

Method2 #mount -o loop /dev/hdc /var/www/html/install (for CD-ROM)

#vi /etc/http/conf.d/install.conf

Alias /var/www/html/install "/install"

Options Indexes
AllowOverride None
Order allow,deny
Allow from all

#service httpd restart

Next, make sure that the /install directory is shared via HTTP, and verify
client access by the following commands:

#lynx

B. Installing the CentOS5 client using HTTP

Set BIOS to boot from CD-ROM

Boot from boot.iso or the CentOS5 DVD

boot:linux askmethod            # text mode by default

Choose a Language --> English --> OK

Keyboard Type --> us --> OK

Installation Method --> HTTP --> OK

Configure TCP/IP --> Enable IPv4 support --> DHCP --> OK

HTTP Setup --> Web site name: 192.168.75.11 --> CentOS directory: /install --> OK

Next, the "Welcome" dialog appears. Follow the steps in the Redhat installation document.

2. NFS

A. Preparing the installation server (192.168.75.11)

#yum install nfs-utils

#mkdir /install

Method1 #cp /path/to/Centos5.iso /install/Centos5.iso

Method2 #mount -o loop /dev/hdc /install (for CD-ROM)

#vi /etc/exports

/install   *(ro, no_root_squash)

#service portmap restart

#service nfs restart

Be sure to test the NFS share by the following command:

#showmount -e localhost

#exportfs -v

B. Installing the CentOS5 client using NFS

Set BIOS to boot from CD-ROM

Boot from boot.iso or the CentOS5 DVD

boot:linux askmethod  #GUI mode by default; you can specify the text mode by typing:

boot:linux askmethod text

Choose a Language --> English --> OK

Keyboard Type --> us --> OK

Installation Method --> NFS image --> OK

Configure TCP/IP --> Enable IPv4 support --> DHCP --> OK

NFS Setup --> NFS server name: 192.168.75.11 --> CentOS directory: /install --> OK

Next, the "Welcome" dialog appears. Follow the steps in the Redhat installation document.

3. FTP

A. Preparing the installation server (192.168.75.11)

#yum install vsftpd

#mkdir -p /var/ftp/pub/install

Method1. #mount -o loop /path/to/Centos5.iso /var/ftp/pub/install (for ISO image)

Method2. #mount -o loop /dev/hdc /var/ftp/pub/install (for CD-ROM)

#service vsftpd restart

Next, make sure that the /var/ftp/pub/install directory is shared via FTP, and verify
client access by typing

#lftp 192.168.75.11

B. Installing the CentOS5 client using FTP

Set BIOS to boot from CD-ROM

Boot from boot.iso or the CentOS5 DVD

boot:linux askmethod              # text mode by default

Choose a Language --> English --> OK

Keyboard Type --> us --> OK

Installation Method --> FTP --> OK

Configure TCP/IP --> Enable IPv4 support --> DHCP --> OK

FTP Setup --> FTP site name: 192.168.75.11 --> CentOS directory: /pub/install --> OK

Next, the "Welcome" dialog appears. Follow the steps in the Redhat installation document.

Note: the boot.iso can be found in the images folder on the Centos.iso.

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