Re: network booting
thank you very much for your response. (sorry, my english isnt very
good).I try to specify the problem.
What is in the instructions I run OK, I tried to, there is a problem. It
is to me but to the whole system started from a file, such as a
rootfs.gz. And that was the root from /dev/ram0 and not dependent on the
running of the server where the NFS. And throughout the / (rootfs) would
be in memory, instead of NFS, as it is in the instructions, or with you.
My procedure was as follows.
1) i create 400M file
dd if=/dev/zero of=ext.img bs=1024k count=400
2) and ext2 on this file
mkfs -t ext2 ext.img
3) mount this file as loop to /mnt
mount ext.img /mnt/ -o loop
3) to this file i copy rootfs
(a) deboostrap + setup kernel ; b) copy running system (cp -ax) )
4) modify fstab in "new" system:
/dev/ram0 / auto defaults 0 0
5) umount /mnt/ and gzip: gzip -c ext.img > rootfs.gz
6) config tftp on router:
router:/var/lib/tftpboot/pxelinux.cfg# cat default
append vga=normal init=/sbin/init initrd=rootfs.gz ramdisk_size=750000
root=/dev/ram0 rw --
when i start diskless pc, system start booting ok, get ip ok, get
rootfs.gz ok (screen here:
booting kernel is ok, but this go down with this message:
this is doing on debian etch, in lenny is dont write "list of partitions".
thank you very much, nice day.
Steve Kemp napsal(a):
On Sat Mar 21, 2009 at 13:22:31 +0100, michal krajcirovic wrote:
Appreciate any idea to solve, or even pay for some help (paypal, ...),
but a lot of me to burn it and you do not know advice.
You don't say what part failed. In general you'll receive no
help unless you explain what you've tried, which part failed,
and what error messages you received.
The basic stuff, getting a PXE network setup for installation,
is described here:
If you can get that part working then you're almost there, you
only have to use debootstrap/similar to create a filesystem
exported by NFS and then pass that via your PXE setup.
My PXE file contains this:
APPEND root=/dev/nfs initrd=netboot/initrd.img-22.214.171.124 nfsroot=192.168.1.10:/nfs/netboot ip=dhcp rw
The kernel I copied from my host system. The initrd I generated after
changing /etc/initramfs-tools/initramfs.conf to have "root = NFS" and
In terms of the actual NFS root I export it like this:
There's nothing special in the root, just a simple filesystem
with NFS root, and simple /etc/network/interfaces to default to