Re: FreeBSD-6.2, 7.0-BETA1 on X60
Hello All, After I follow below instruction it boot kernel, but then give me error says /etc/fstab not found etc., I will attach it next email. Balgaa - Original Message - From: Alexandre Sunny Kovalenko [EMAIL PROTECTED] To: Balgansuren Batsukh [EMAIL PROTECTED] Cc: freebsd-stable@freebsd.org Sent: Tuesday, December 04, 2007 12:19 PM Subject: Re: FreeBSD-6.2, 7.0-BETA1 on X60 On Mon, 2007-12-03 at 21:31 +0800, Balgansuren Batsukh wrote: Hello All, I tried to install FreeBSD on X60 using PXE boot, but unsuccessfully finish my attempt. When it start PXE boot it get IP address from DHCP, download PXE boot file from TFTP server, then trying to load kernel image from TFTP server. After 10-20 minutes it give me error message can't load kernel, I tried many times load boot/kernel/kernel, but same result. I guess PXE boot read much longer time to load kernel file and suddenly give me error message. I followed instruction on http://www.hack.org/mc/freebsd-x60.html I made X60LAN switchTFTP/DHCP/NFS server and even tried X60---cross-over cableTFTP/DHCP/NFS server. Is there any suggestion? I have built my X60 from such a setup and then used it as the FixIt environment more then a few times. Here are relevant bits from the server (watch out for the line wrapping): === /usr/local/etc/dhcpd.conf (I am using isc-dhcp3-server-3.0.5_2) option domain-name rabbitslawn.verizon.net; option domain-name-servers rabbitslawn.verizon.net; default-lease-time 600; max-lease-time 7200; authoritative; ddns-update-style none; log-facility local7; server-name twinhead; server-identifier 10.0.3.236; next-server 10.0.3.236; subnet 10.0.3.0 netmask 255.255.255.0 { range 10.0.3.33 10.0.3.64; option routers 10.0.3.242; option domain-name-servers 10.0.3.242; option root-path /SHARED/tftpboot; filename boot/pxeboot; } === /etc/exports (excerpt) /SHARED -alldirs === /etc/inetd.conf (excerpt) tftpdgram udp waitroot/usr/libexec/tftpd tftpd -u sunny -l -s /SHARED/tftpboot === /etc/rc.conf (excerpt) nfs_server_enable=YES rpcbind_enable=YES === /SHARED/tftpboot Contains fairly old (February 2007) snapshot of then 7-CURRENT with two modifications === /SHARED/tftpboot/boot/loader.rc echo Loading Kernel... load /boot/kernel/kernel echo Loading mfsroot... load -t mfs_root /mfsroot echo booting... echo \007\007 echo initializing h0h0magic... set vfs.root.mountfrom=ufs:/dev/md0c boot === /SHARED/tftpboot/mfsroot Is the decompressed version of /SHARED/tftpboot/boot/mfsroot.gz. I can confirm that stopping NFS on the server will give the symptoms roughly corresponding to the ones you are describing, so the first thing I would recommend checking is the ability to mount your equivalent of the /SHARED/tftpboot above. Hopefully this is all I have done to get this to work -- I have picked most of it from someone's web page, but I could not find original URL ATM. Regards, Balgaa ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] -- Alexandre Sunny Kovalenko [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.16.13/1165 - Release Date: 12/2/2007 8:34 PM ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD-6.2, 7.0-BETA1 on X60
try monitoring the traffic (tcpdump/wireshark), this should give you a good starting point. danny ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD-6.2, 7.0-BETA1 on X60
On Mon, Dec 03, 2007 at 09:31:55PM +0800, Balgansuren Batsukh wrote: Hello All, I tried to install FreeBSD on X60 using PXE boot, but unsuccessfully finish my attempt. When it start PXE boot it get IP address from DHCP, download PXE boot file from TFTP server, then trying to load kernel image from TFTP server. After 10-20 minutes it give me error message can't load kernel, I tried many times load boot/kernel/kernel, but same result. I guess PXE boot read much longer time to load kernel file and suddenly give me error message. I followed instruction on http://www.hack.org/mc/freebsd-x60.html I made X60LAN switchTFTP/DHCP/NFS server and even tried X60---cross-over cableTFTP/DHCP/NFS server. Is there any suggestion? First, there's a manpage for all this: diskless(8). I've tried this before myself (on all sorts of different hardware), and I've never gotten it to work on RELENG_6 or RELENG_7 -- I reach the same point and receive the same error you do. It appears to me that that an NFS server is *absolutely* necessary for all of this to work; TFTP by itself doesn't suffice, it appears. I've tried setting LOADER_TFTP_SUPPORT=yes in make.conf (forcing the entire process to avoid using NFS), but believe it or not, a part of the booting process still continues to use NFS-related code (or at least the debugging messages state it's trying to do NFS). I was able to get some pxeboot-related debugging output (to see the aforementioned) by setting PXE_DEBUG=true in make.conf (see src/sys/boot/i386/libi386/pxe.c for details on that). -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD-6.2, 7.0-BETA1 on X60
On Mon, 3 Dec 2007 21:31:55 +0800 Balgansuren Batsukh wrote: I tried to install FreeBSD on X60 using PXE boot, but unsuccessfully finish my attempt. When it start PXE boot it get IP address from DHCP, download PXE boot file from TFTP server, then trying to load kernel image from TFTP server. Did you look at /var/log/xferlog? Is there something interesting? After 10-20 minutes it give me error message can't load kernel, I tried many times load boot/kernel/kernel, but same result. You may try tcpdump/wireshark at the server side (as someone has already suggested). I guess PXE boot read much longer time to load kernel file and suddenly give me error message. I followed instruction on http://www.hack.org/mc/freebsd-x60.html There are many ways to run diskless. I found FreeBSD docs very useful: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-diskless.html diskless(8), /usr/share/examples/diskless/clone_root I made X60LAN switchTFTP/DHCP/NFS server and even tried X60---cross-over cableTFTP/DHCP/NFS server. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD-6.2, 7.0-BETA1 on X60
On Mon, 3 Dec 2007 07:41:49 -0800 Jeremy Chadwick wrote: I've tried this before myself (on all sorts of different hardware), and I've never gotten it to work on RELENG_6 or RELENG_7 -- I reach the same point and receive the same error you do. We use diskless setup in production. It works just fine. Even with pxelinux to select an OS and it's version to boot (the default is to load memtest86). I found very useful /var/log/xferlog to debug errors while booting a diskless station. It appears to me that that an NFS server is *absolutely* necessary for all of this to work; TFTP by itself doesn't suffice, it appears. Yes. I've tried setting LOADER_TFTP_SUPPORT=yes in make.conf (forcing the entire process to avoid using NFS), but believe it or not, a part of the booting process still continues to use NFS-related code (or at least the debugging messages state it's trying to do NFS). I was able to get some pxeboot-related debugging output (to see the aforementioned) by setting PXE_DEBUG=true in make.conf (see src/sys/boot/i386/libi386/pxe.c for details on that). Seems that you slightly misunderstood the meaning of the LOADER_TFTP_SUPPORT option. It is used only to boot a custom kernel (when at stage 2, diskless(8)). Without this option your diskless station should load your servers' kernel. The stage 3 always uses NFS to mount the root directory. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD-6.2, 7.0-BETA1 on X60
On Mon, 2007-12-03 at 21:31 +0800, Balgansuren Batsukh wrote: Hello All, I tried to install FreeBSD on X60 using PXE boot, but unsuccessfully finish my attempt. When it start PXE boot it get IP address from DHCP, download PXE boot file from TFTP server, then trying to load kernel image from TFTP server. After 10-20 minutes it give me error message can't load kernel, I tried many times load boot/kernel/kernel, but same result. I guess PXE boot read much longer time to load kernel file and suddenly give me error message. I followed instruction on http://www.hack.org/mc/freebsd-x60.html I made X60LAN switchTFTP/DHCP/NFS server and even tried X60---cross-over cableTFTP/DHCP/NFS server. Is there any suggestion? I have built my X60 from such a setup and then used it as the FixIt environment more then a few times. Here are relevant bits from the server (watch out for the line wrapping): === /usr/local/etc/dhcpd.conf (I am using isc-dhcp3-server-3.0.5_2) option domain-name rabbitslawn.verizon.net; option domain-name-servers rabbitslawn.verizon.net; default-lease-time 600; max-lease-time 7200; authoritative; ddns-update-style none; log-facility local7; server-name twinhead; server-identifier 10.0.3.236; next-server 10.0.3.236; subnet 10.0.3.0 netmask 255.255.255.0 { range 10.0.3.33 10.0.3.64; option routers 10.0.3.242; option domain-name-servers 10.0.3.242; option root-path /SHARED/tftpboot; filename boot/pxeboot; } === /etc/exports (excerpt) /SHARED -alldirs === /etc/inetd.conf (excerpt) tftpdgram udp waitroot/usr/libexec/tftpd tftpd -u sunny -l -s /SHARED/tftpboot === /etc/rc.conf (excerpt) nfs_server_enable=YES rpcbind_enable=YES === /SHARED/tftpboot Contains fairly old (February 2007) snapshot of then 7-CURRENT with two modifications === /SHARED/tftpboot/boot/loader.rc echo Loading Kernel... load /boot/kernel/kernel echo Loading mfsroot... load -t mfs_root /mfsroot echo booting... echo \007\007 echo initializing h0h0magic... set vfs.root.mountfrom=ufs:/dev/md0c boot === /SHARED/tftpboot/mfsroot Is the decompressed version of /SHARED/tftpboot/boot/mfsroot.gz. I can confirm that stopping NFS on the server will give the symptoms roughly corresponding to the ones you are describing, so the first thing I would recommend checking is the ability to mount your equivalent of the /SHARED/tftpboot above. Hopefully this is all I have done to get this to work -- I have picked most of it from someone's web page, but I could not find original URL ATM. Regards, Balgaa ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] -- Alexandre Sunny Kovalenko [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]