歡迎您光臨本站 註冊首頁

driverdisk --source=nfs:host:/path/to/img

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

driverdisk --source=nfs:host:/path/to/img

RHEL5.2+PXE+DHCP+TFTP+NFS+ks.cfg 實現對遠程計算機的自動安裝系統。但是遠程計算機需要load SCSI driver后才能自動安裝。ks.cfg中參數driverdisk --source=nfs:不知道該怎麼配置,希望高手指導一下,謝謝。
具體:
1.default中ks=nfs:192.168.1.1:/pxe/ks_nfs.cfg
2.OS=/pxe/nfs/rhel52.iso
3.ks.cfg=/pxe/ks_nfs.cfg
4.driver=/pxe/rhel52.img
5.ks_nfs.cfg中driverdisk部分該怎麼配置????
《解決方案》

你首先手動用pxe裝台機器,裝好后在root的根目錄里會生成一個anaconda-ks.cfg文件   。
這就是你要的ks.cfg配置文件
《解決方案》

大哥,我不是不會做ks.cfg,是不知道怎麼寫driverdisk --source=nfs:192.168.1.1:/pxe/rhel5.img格式。因為我寫了幾種都不正確。
《解決方案》

我的default
label autoinstall
MENU LABEL Red Hat Enterprise Linux ES 4 Autoinstall packages
kernel vmlinuz
append ks=nfs:192.168.0.2:/ks/ks.cfg initrd=initrd.img devfs=nomount ramdisk_size=9216
《解決方案》

你可以自動load scsi driver嗎?我需要在ks.cfg配置文件中添加一行driverdisk --source=nfs:192.168.1.1:/後面不知道怎麼寫,來達到在安裝過程中自動load scsi driver的功能。
《解決方案》

回復 #5 zwl821022 的帖子

我的可以.
《解決方案》

那你怎麼實現的啊?我的需要通過NFS到伺服器上面去抓driver.img
《解決方案》

回復 #7 zwl821022 的帖子

DHCP,NFS,TFTP使用同一台伺服器,IP為192.168.96.254

一、配置DHCP服務
安裝dhpc
vi /etc/dhcpd.conf
QUOTE:
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
class "pxeclients"{
        match if substring(option vendor-class-identifier,0,9) = "PXEClient";
        filename "pxelinux.0";
        next-server 192.168.96.254;
}
subnet 192.168.96.0 netmask 255.255.255.0 {
        option routers                  192.168.96.254;
        option subnet-mask              255.255.255.0;
        option nis-domain               "linux.5166.info";
        option domain-name              "linux.5166.info";
        option domain-name-servers      202.106.46.151;
        option time-offset              -18000; # Eastern Standard Time
        range dynamic-bootp 192.168.96.100 192.168.96.200;
        default-lease-time 21600;
        max-lease-time 43200;
        host linux {
                hardware ethernet 00:11:43:5A:5D:46;
                fixed-address 192.168.96.254;
        }
}

======================================================================

二、配置TFTP
安裝
chkconfig tftp on
service xinetd restart
====================================================================
三、啟動文件配置
cp /usr/lib/syslinux/pxelinux.0 /tftpboot/
mkdir /tftpboot/pxelinux.cfg
mount -o loop /export/RHEL5dvd.iso /mnt
cp /mnt/isolinux/isolinux.cfg /tftpboot/pxelinux.cfg/default
cp /mnt/images/pxeboot/initrd.img /tftpboot/
cp /mnt/images/pxeboot/vmlinuz /tftpboot/

vi /tftpboot/pxelinux.cfg/default
QUOTE:
default local
prompt 1
timeout 300
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
label local
  localboot 0
label linux install
  kernel vmlinuz
  append initrd=initrd.img
label linux text
  kernel vmlinuz
  append initrd=initrd.img text
label linux ks
  kernel vmlinuz
  append ks initrd=initrd.img
label linux memtest86
  kernel memtest
  append -
label autoinstall
  kernel vmlinuz
  append ks=nfs:192.168.96.254:/export/ks/ks.cfg initrd=initrd.img devfs=nomount ramdisk_size=16384 nofb

cp /mnt/isolinux/*.msg /tftpboot
vi /tftpboot/boot.msg
QUOTE:
^L
^Xsplash.lss
-  To boot Operation System locally, press the ^O01<ENTER>^O07 key.
-  To install or upgrade in graphical mode, type: ^O01linux install<ENTER>^O07 key.
-  To install or upgrade in text mode, type: ^O01linux text <ENTER>^O07.
-  To auto install or upgrade, type: ^O01autoinstall <ENTER>^O07.
-  Use the function keys listed below for more information.
^O0f ^O07

===============================================================
四、配置NFS服務

vi /ec/exports
QUOTE:
/export *(ro,sync)
/export/ks *(rw,sync)

cp *.iso /export/
mkdir /export/ks
cp /root/anaconda-ks.cfg /export/ks/ks.cfg
chmod 644 /export/ks/ks.cfg
===============================================================
五、重啟服務

service dhcpd restart
service xinetd restart
service nfs restart
===============================================================
六、設備客戶端

客戶端設置PXE啟動啟動后輸入autoinstall即可執行全自動安裝。

輸入linux ks=nfs:192.168.96.254:/ks/otherks.cfg即可另指定ks文件。
輸入linux rescue即可進入系統修復模式,以對系統進行修整。
簡單按一下回車,或者等一會,客戶端就從本地硬碟啟動系統。
按F2、F3等鍵也可以進行切換。
《解決方案》

這個我也會,我想問的是下面driverdisk --source=nfs:192.168.1.1:/pxe/rhel52.img這部分怎麼配置。
rhel52.img位於伺服器的/pxe/rhel52.img,我的client PC需要到伺服器去抓SAS controller的driver.
#platform=x86, AMD64, or Intel EM64T
# System authorization information
auth  --useshadow  --enablemd5
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Use graphical install
graphical
# Firewall configuration
firewall --disabled
# Run the Setup Agent on first boot
firstboot --disable
key 2515dd4e215225dd
# System keyboard
keyboard us
# System language
lang en_US
# Installation logging level
logging --level=info
# Use NFS installation media
nfs --server=192.168.1.1 --dir=/pxe/rhel52
# Network information
network --bootproto=dhcp --device=eth0 --onboot=on
# Reboot after installation
#reboot
#Root password
rootpw ies+123

driverdisk --source=nfs:192.168.1.1:/pxe/rhel52.img這一小快該怎麼配置。

# SELinux configuration
selinux --disabled
# System timezone
timezone  America/New_York
# Install OS instead of upgrade
install
# X Window System configuration information
xconfig  --defaultdesktop=GNOME --depth=32 --resolution=800x600
# Disk partitioning information
part swap --bytes-per-inode=4096 --fstype="swap" --size=1024
part / --bytes-per-inode=4096 --fstype="ext3" --grow --size=1

%packages
@office
@development-libs
@editors
@gnome-software-development
@text-internet
@x-software-development
@gnome-desktop
@dialup
@core
@base
@games
@java
@base-x
@graphics
@printing
@sound-and-video
@admin-tools
@development-tools
@graphical-internet
mesa-libGLU-devel
kexec-tools
device-mapper-multipath
xorg-x11-utils
xorg-x11-server-Xnest
xorg-x11-server-Xvfb
libsane-hpaio
imake
-sysreport
《解決方案》

路徑對就可以了

[火星人 ] driverdisk --source=nfs:host:/path/to/img已經有791次圍觀

http://coctec.com/docs/service/show-post-24984.html