My Favorites

Close

Please to see your favorites.


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.

Environment

SUSE Studio Onsite 1.2
SUSE Linux Enterprise Server 11 Service Pack 1

Situation

Customer build a PXE/Netboot image in Suse Studio Onsite.
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.

Resolution

Section "9.4.4 RAM Only Image"
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.

STEP 1:
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
DEFAULT KIWI-Boot

LABEL KIWI-Boot
        kernel boot/linux
        append initrd=boot/initrd vga=normal ramdisk_size=1512000 ramdisk_blocksize=4096
        IPAPPEND 1

LABEL Local-Boot
        localboot 0

STEP 2:
In /srv/tftpboot/KIWI/config.default)
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
DISK=/dev/ram1
IMAGE='/dev/ram1;SLES_11_SP1_JeOS.x86_64;0.0.1;192.168.100.2;4096;compressed'

Results after image is installed on client:
linux-ywcq:~ # df -h /
Filesystem            Size  Used Avail Use% Mounted on
-                     1.5G  290M  1.1G  21% /

Disclaimer

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