安装SUSE Linux Enterprise 10应用PXE

系统 Linux
今天所要讲的是安装SUSE Linux Enterprise 10的另一种方法:。PXE方式安装 SUSE Linux Enterprise 10。PXE方式适用计算机无软驱和光驱,并且硬盘上没有操作系统的情况。

上次我们讲的是网络安装SUSE Linux Enterprise 10,今天所要讲的是安装SUSE Linux Enterprise 10的另一种方法:。PXE方式安装 SUSE Linux Enterprise 10。PXE方式适用计算机无软驱和光驱,并且硬盘上没有操作系统的情况。

一、前提条件
1、一台已安装SUSE Linux Enterprise 10的计算机来提供DHCP,TFTP,FTP服务。
2、SUSE Linux Enterprise 10的安装映象文件sles-10-x86-cd1.iso_cd4.iso
3、客户机带有支持PXE启动的网卡。

二、服务器的设置。(IP地址192.168.5.1)

1、设置dhcp服务。
编辑文件/etc/dhcpd.conf。下面是dhcpd.conf文件的例子。
default-lease-time 6000;
max-lease-time 72000;
ddns-update-style none; ddns-updates off;
subnet 192.168.5.0 netmask 255.255.255.0 {
range 192.168.5.2 192.168.5.4;
option routers 192.168.5.1;
}
host lin {
hardware ethernet 00:11:25:68:a5:c6; #客户机的网卡硬件地址
fixed-address 192.168.5.2; #分配给客户机的IP地址
server-name "192.168.5.1"; #指定TFTP的IP地址
next-server 192.168.5.1;
filename "/tftpboot/pxelinux.0"; #指定包含PXE引导程式的文件
}
启动dhcp服务: # rcdhcpd start

2、设置tftp服务。
首先查看系统是否安装了tftp服务器软件: 输入:rpm -qa |grep atftp.
如果提示没有安装,请用Yast安装。(注:SUSE Linux 10默认没有安装atftp)
编辑/etc/sysconfig/atftpd文件,其内容如下
ATFTPD_OPTIONS="--daemon --user tftp -v"
ATFTPD_USE_INETD="no"
ATFTPD_DIRECTORY="/srv/tftp" (注:/srv/tftp目录需要手工建立)
然后增加一个tftp用户:useradd -m tftp
启动tftp服务: # rcatftpd start

3、设置PXE引导环境
首先确保系统安装了syslinux包。(注:SUSE Liunx 10默认安装了enterprisesyslinux)
运行下列命令
# cd /srv/tftp
# mkdir tftpboot
# cd tftpboot
# mkdir pxelinux.cfg
# cp /usr/share/syslinux/pxelinux.0 /srv/tftp/tftpboot
# vi /srv/tftp/tftpboot/pxelinux.cfg/default
/srv/tftp/tftpboot/pxelinux.cfg/default内容如下:
default linux
prompt 1
timeout 30
label linux
kernel linux
append initrd=initrd splash=silent showopts

4、加载安装映像文件
# mkdir /sles10
# mkdir /sles10/cd{1,2,3,4} (注:在/sles10/下建立目录cd1,cd2,cd3,cd4)
# mount -o loop /mnt/wind/sles-10-x86-cd1.iso /sles10/cd1
# mount -o loop /mnt/wind/sles-10-x86-cd2.iso /sles10/cd2
# mount -o loop /mnt/wind/sles-10-x86-cd3.iso /sles10/cd3
# mount -o loop /mnt/wind/sles-10-x86-cd4.iso /sles10/cd4
复制cd1目录中linux和initrd文件到/srv/tftp/tftpboot
# cd /sles10/cd1/boot/i386/loader
# cp linux /srv/tftp/tftpboot/
# cp initrd /srv/tftp/tftpboot/

5、设置ftp服务。允许匿名登录,并设置其登录主目录为/sles10/.
能通过修改/etc/passwd文件来设置匿名登录的主目录。如下
ftp:x:40:49:FTP account:/sles10:/bin/bash
启动ftp服务器。
(有关ftp服务器的具体设置,请查阅相关资料。)

三、客户机安装
1、在BIOS中设置为网络启动
2、重新启动计算机。如果设置无误,系统会自动获得IP.
3、运行到出现boot:是,输入命令
boot:linux install=ftp://192.168.5.1/cd1
(注:install指定了ftp服务器的地址及安装文件的位置;输入内容速度要快。)
4、进入到SUSE Linux安装界面,有关步骤请参考文件《硬盘安装SUSE Linux
Enterprise 10》
/dev/sda8 /windows/M vfat users,gid=users,umask=0002,utf8=true,codepage=936 0 0类似这样一行等效于
代码:mount -t vfat -o users,gid=users,umask=0002,utf8=true,codepage=936 /dev/sda8 /windows/M

通过本文的介绍,希望你学会了PXE方式安装 SUSE Linux Enterprise 10,我在你以后的学习中,会对你有所帮助。

【编辑推荐】

  1. 详解Samba在Suse Linux中设置用户
  2. 配置笔记——“剖析”SUSE Linux配置Apache
  3. 如何在SUSE安装firefox和thunderbird两个版本
  4. 剖析SUSE Linux Tomcat自动启动
  5. 实例概括SUSE Linux Enterprise安装JDK1.6
责任编辑:小霞 来源: http://doc.linuxpk.com
相关推荐

2009-11-26 10:48:44

安装SUSE Linu

2009-11-27 10:15:26

Suse Linux

2009-11-24 10:06:21

SUSE enterp

2009-11-26 11:14:17

安装SUSE Linu

2009-12-03 18:31:37

SUSE Linux

2009-11-23 14:48:44

SUSE linux

2009-05-13 07:36:24

LinuxSUSEEnterprise

2009-12-01 19:06:22

SUSE Linux

2009-05-13 07:59:11

NovellSuseLinux

2010-11-11 10:08:54

2009-11-25 08:58:22

SUSE Linux

2009-03-26 17:15:09

NovellLinux Enterprise

2009-05-13 07:22:09

LinuxSuseEnterprise

2009-11-26 16:43:05

SUSE Linux

2009-03-31 16:53:10

LinuxNovellEnterprise

2009-11-30 14:23:40

Suse Linux

2009-05-13 07:40:29

LinuxSuseenterprise

2009-05-13 07:42:58

LinuxSUSEEnterprise

2009-11-24 10:20:36

SUSE Enterp

2009-03-24 16:53:36

LinuxSUSE Linux 关键性主题
点赞
收藏

51CTO技术栈公众号