[opensuse] nfsroot with Leap?
Hello, Did anyone configure a system to use a nfs root? If yes, how? I tried to build a initrd for nfsroot with dracut, but it alwys searches for a local root device at startup. Regards Daniel -- Daniel Spannbauer Systemadministration marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11 Rechbergstr. 4-6, D 87727 Babenhausen Mobil +49 171 4033220 http://www.marco.de/ Email ds@marco.de Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Daniel Spannbauer wrote:
Hello,
Did anyone configure a system to use a nfs root?
Yep, quite a few. More than 10.
If yes, how?
I tried to build a initrd for nfsroot with dracut, but it alwys searches for a local root device at startup.
You can either specify the root device as /dev/nfs (I think), or you can actually boot the system from nfsroot manually and then build the initrd. (the nfs root is then automagically picked up). -- Per Jessen, Zürich (6.6°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
Daniel Spannbauer wrote:
Hello,
Did anyone configure a system to use a nfs root?
Yep, quite a few. More than 10.
If yes, how?
I tried to build a initrd for nfsroot with dracut, but it alwys searches for a local root device at startup.
You can either specify the root device as /dev/nfs (I think), or you can actually boot the system from nfsroot manually and then build the initrd. (the nfs root is then automagically picked up).
I should explain - boot a system with the installation vmlinuz, initrd. Once up, mount your NFS root manually on /mnt. Then - mount -o bind /proc /mnt/proc mount -o bind /dev /mnt/dec mount -o bind /sys /mnt/szs chroot /mnt And now build your initrd. -- Per Jessen, Zürich (6.4°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
You can either specify the root device as /dev/nfs (I think), or you can actually boot the system from nfsroot manually and then build the initrd. (the nfs root is then automagically picked up). I should explain -
boot a system with the installation vmlinuz, initrd. Once up, mount your NFS root manually on /mnt. Then -
mount -o bind /proc /mnt/proc mount -o bind /dev /mnt/dec mount -o bind /sys /mnt/szs chroot /mnt
And now build your initrd.
Ok, thanks for the answer. Seems to work. I have to specify ip=dhcp on the pxe command line. But now, it seems to work. Regards Daniel -- Daniel Spannbauer Systemadministration marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11 Rechbergstr. 4-6, D 87727 Babenhausen Mobil +49 171 4033220 http://www.marco.de/ Email ds@marco.de Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Daniel Spannbauer
-
Per Jessen