Diskless Debian GNU/kFreeBSD HOWTO
It was completely non-obvious; In some cases I had to figure it out by reading kFreeBSD source code; I write it down here so it’s not forgotten ;-)
This is a short guide on how to boot Debian GNU/kFreeBSD via network on a diskless machine, using GRUB as the bootloader.
set timeout=1
set default=0menuentry “Debian GNU/kFreeBSD” {
echo Loading kFreeBSD …
kfreebsd /beastie/boot/kfreebsd-8.1-1-amd64.gz
echo Booting …
boot
}
192.168.1.3:/srv/netboot/beastie / nfs rw 0 0
This, however, will only work if mount_nfs(8) is in your system. And (well, too bad) it hasn’t been packaged yet. So you can copy it from a FreeBSD base tarball, along with its dependencies (/lib/libc.so.7, /libexec and /etc/netconfig).
The tricky part is that as explained in mount_nfs manpage, nolockd will only be honored when performing the initial mount, and it will be silently ignored if used while updating the mount options. So fstab is not an option.
The only way I could find of telling the kernel to use arbitrary options when mounting / is by sending them via DHCP. Use the following options in your dhcpd.conf:
option option-130 code 130 = text;
option option-130 “nolockd”;
Et voilà. A Debian GNU/kFreeBSD system running completely in diskless mode. Enjoy!
This entry was posted on February 4, 2011 at 16:37 and is filed under Sense categoria. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
7 Responses to “Diskless Debian GNU/kFreeBSD HOWTO”
-
Arthur Brouwers Says:
July 20, 2015 at 13:55 | ReplyI gotta favorite this website it seems extremely helpful very useful
-
Debian GNU/kFreeBSD FAQ « AJAXIAN.KR Says:
February 12, 2011 at 13:54 | Reply[…] Q26: 디스크없는( diskless) 시스템은 어떻게 설정하는가? A26: 네트워크부트 지원은 여전히 개발 진행중이다. 몇가지 트윅으로 설정가능하며 여기 HOWTO를 참조하라: https://robertmh.wordpress.com/2011/02/04/diskless-debian-gnukfreebsd-howto/ […]
-
Links 7/2/2011: FOSDEM 2011 Closing, GNOME 3 Test Day | Techrights Says:
February 7, 2011 at 13:47 | Reply[…] Diskless Debian GNU/kFreeBSD HOWTO It was completely non-obvious; In some cases I had to figure it out by reading kFreeBSD source code; I write it down here so it’s not forgotten […]
-
Diskless Debian GNU/kFreeBSD HOWTO | Debian-News.net - Your one stop for news about Debian Says:
February 5, 2011 at 18:30 | Reply[…] This is a short guide on how to boot Debian GNU/kFreeBSD via network on a diskless machine, using GRUB as the bootloader. More here […]
-
Timo Lindfors Says:
February 4, 2011 at 18:52 | ReplyThanks for also adding this to http://wiki.debian.org/Debian_GNU/kFreeBSD_FAQ — I hope the URL to your blog post will be stable.
-
robertmh Says:
February 4, 2011 at 20:34 | ReplyI expect so. The content might get obsolete though.
In any case, feel free to copy / modify as you see fit.
-
robertmh Says:
-
Tweets that mention Diskless Debian GNU/kFreeBSD HOWTO « Robert Millan's blog -- Topsy.com Says:
February 4, 2011 at 17:30 | Reply[…] This post was mentioned on Twitter by Ovidiu Constantin, Planet Debian and Asociatia ProLinux, Devilicus. Devilicus said: Robert Millan: Diskless Debian GNU/kFreeBSD HOWTO: It was completely non-obvious; In some cases I… http://bit.ly/g9y4oT #debian #linux […]