Ram only image is not using the entire size given to the ramdisk in a PXE boot environment
This document (7001993) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 11 Service Pack 1
They will PXE boot the clients to download the image via PXE.
The default PXE/Netboot image is written to go to a physical disk and not a RAM only image, so this needs to be changed. Also they would like the ramdisk to use the complete size of the specified ramdisk and not the default of about 30% larger than the image.
Documentation on how to do this is installed on the Suse Studio Onsite server in
/usr/share/doc/packages/kiwi/kiwi.pdf from the kiwi4-doc RPM.
States that you only need the IMAGE portion, this is true if you accept the default size of the ramdisk, to get the full size of the ramdisk you specify "DISK=/dev/ram1" also needs to be added.
Change the default file to have a larger ramdisk: from ramdisk_size=151200 to ramdisk_size=1512000
pxe-server:/srv/tftpboot/pxelinux.cfg # cat default
append initrd=boot/initrd vga=normal ramdisk_size=1512000 ramdisk_blocksize=4096
Change the DISK from /dev/sda to /dev/ram1
Removed the PART line
IMAGE line now uses /dev/ram1 instead /dev/sda
pxe-server:/srv/tftpboot/KIWI # cat config.default
Results after image is installed on client:
linux-ywcq:~ # df -h /
Filesystem Size Used Avail Use% Mounted on
- 1.5G 290M 1.1G 21% /
This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7001993
- Creation Date:29-MAR-12
- Modified Date:26-APR-12
- SUSESUSE Studio
Did this document solve your problem? Provide Feedback