feiyang10086 发表于 2011-05-21 17:54

rhel6下pxe网络引导安装的问题

rhel6下pxe网络引导安装的问题


请高手看看我这里配置哪里出错了,我开虚拟机测试安装的时候一直出现
tftp://0.0.0.0/...........connection timed out (Ox4c126035)
could not load tftp://0.0.0.0/: connection timed out (Ox4c126035)
No more network device
No bootable device这个错误,我在dhcp配置文件里加了next-server 192.168.1.100
求高人指点 谢谢

# cat /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
#    protocol.The tftp protocol is often used to boot diskless \
#    workstations, download configuration files to network-aware printers, \
#    and to start the installation process for some operating systems.
service tftp
{
    disable    = no
    socket_type      = dgram
    protocol      = udp
    wait            = yes
    user            = root
    server            = /usr/sbin/in.tftpd
    server_args      = -s /tftpboot
    per_source      = 11
    cps            = 100 2
    flags            = IPv4
}

dhcp配置:



ddns-update-style none;
ignore client-updates;
allow booting;
allow bootp;
subnet 192.168.1.0 netmask 255.255.255.0 {

    option routers             192.168.1.1;   #我用的路由器上网,路由的IP是192.168.1.1
    next-server             192.168.1.100; #这个是我本机的IP 192.168.1.100
    option subnet-mask         255.255.255.0;
    filename "pxelinux.0";
    option domain-name-servers    192.168.1.1;
    option time-offset -18000;
    range dynamic-bootp 192.168.1.12 192.168.1.254;
}




# ll /tftpboot/
total 33088
-rwxr-xr-x. 1 root root 30063052 May 21 14:51 initrd.img
-rw-r--r--. 1 root root    16794 May 21 14:51 pxelinux.0
drwxr-xr-x. 2 root root   4096 May 21 14:53 pxelinux.cfg
-rwxr-xr-x. 1 root root3791744 May 21 14:52 vmlinuz



# cat /tftpboot/pxelinux.cfg/default
default vesamenu.c32
#prompt 1
timeout 600

display boot.msg

menu background splash.jpg
menu title Welcome to Red Hat Enterprise Linux 6.0!
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffffff #ff000000
menu color title 0 #ffffffff #00000000
menu color tabmsg 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color hotsel 0 #ff000000 #ffffffff
menu color hotkey 7 #ffffffff #ff000000
menu color scrollbar 0 #ffffffff #00000000

label linux
menu label ^Install or upgrade an existing system
menu default
kernel vmlinuz
append initrd=initrd.img ks=ftp://192.168.1.100/pub/ks.cfg
label vesa
menu label Install system with ^basic video driver
kernel vmlinuz
append initrd=initrd.img xdriver=vesa nomodeset
label rescue
menu label ^Rescue installed system
kernel vmlinuz
append initrd=initrd.img rescue
label local
menu label Boot from ^local drive
localboot 0xffff
label memtest86
menu label ^Memory test
kernel memtest
append -

凝望长空 发表于 2011-05-21 17:56

在ftp配置文件加上 试一试
server_args             = -t -s -v /tftpboot《---
      disable               = no   《---

booduklee 发表于 2011-05-25 10:42

LZ---------default文件写的好乱,我看的有点乱,--------:sleepy:
页: [1]
查看完整版本: rhel6下pxe网络引导安装的问题