From owner-freebsd-hackers Sat Nov 4 12:40: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from alpo.whistle.com (s206m1.whistle.com [207.76.206.1]) by hub.freebsd.org (Postfix) with ESMTP id 6A24A37B66E; Sat, 4 Nov 2000 12:40:02 -0800 (PST) Received: from whistle.com (crab.whistle.com [207.76.205.112]) by alpo.whistle.com (8.9.1a/8.9.1) with ESMTP id MAA91131; Sat, 4 Nov 2000 12:37:22 -0800 (PST) Received: (from ambrisko@localhost) by whistle.com (8.9.3/8.9.1) id MAA63521; Sat, 4 Nov 2000 12:37:16 -0800 (PST) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200011042037.MAA63521@whistle.com> Subject: Re: dhcp boot was: Re: diskless workstation In-Reply-To: <200011041948.eA4Jm0R70463@zibbi.icomtek.csir.co.za> from John Hay at "Nov 4, 2000 09:47:59 pm" To: John Hay Date: Sat, 4 Nov 2000 12:37:16 -0800 (PST) Cc: Doug Ambrisko , Mike Smith , Danny Braniss , freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Hay writes: | > | > You don't, it is done via the bootp or dhcp record option 128 for example | > | > option option-128 "192.168.2.254:/usr/work/netboot"; | > | > You then have to make the swap file in that directory of format | > | > swap. | > | > Use dd to create the file by copying /dev/zero for the size you want. | > | > | > | > Note during boot up the kernel will tell you what it is using for | > | > swap via this request. | > | | > | The option-128 confuse the pxeboot program. If I put | > | | > | option root-path "/export/diskless"; | > | option option-128 "10.1.2.3:/export/shark"; | > | | > | in the dhcpd.conf file, pxeboot tries to mount /export/sharkM-^[^B-i? | > | as the root filesystem. Removing the option-128 line at least get me to | > | boot albeit without swap. | > | > Root path should have the IP address of the server such as: | > option root-path "192.168.2.254:/usr/home/ambrisko/netboot"; | > | > Then in boot messages you should see: | > rootfs is 192.168.2.254:/usr/home/ambrisko/netboot | > swapfs is 192.168.2.254:/usr/work/netboot | > | | Yes, you are right. Putting the ip number in the root-path cures the | pxeboot failure. But is still only configure the NFS ROOT according | to the kernel's output. I had a look at the pxe code in | /sys/boot/i386/libi386/pxe.c where pxeboot is built from and in | /sys/i386/i386/autoconf.c which is the kernel side and it looks like | they don't do anything about swap. There is a /* XXX set up swap? */ | placeholder though. :-) Yep looks like you're right, I just tried it on 4.2-BETA it worked in 4.1.1. Swap is now broken ... sigh this is going to be a problem. I guess the only thing you might be able to do in the interim is to do a vnconfig of a file and then mount that as swap. I think the vnconfig man pages describes this. Hopefully it works over NFS. Doug A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message