Changes

Jump to: navigation, search

Creating OpenVZ LiveCD based on Centos 4.4

96 bytes added, 15:23, 2 July 2007
Vmlinux, initrd and isolinux.cfg: short names in isolinux.cfg
=== Vmlinux, initrd and isolinux.cfg ===
The next step is to force <tt>isolinux</tt> (cdrom boot loader) to boot OpenVZ kernel.
First, copy kernel image to OpenVZ CD:. It is important to give '''short name''' (not greaterthan 8 characters) to kernel image, otherwise <tt>isolinux</tt> will not see it.
<pre>
# cp root/boot/vmlinuz-2.6.18-ovz028stab035.1-smp ovz-livecd/boot/ovz18
</pre>
Modify initrd image. More precisely, we need to add OpenVZ kernel modules there
We inform boot loader, that new kernel was added by introducing the following changes (in diff format):
<pre>
--- ovz-livecd/isolinux.cfg.orig 2006-08-19 08:53:09.000000000 +0400+++ ovz-livecd/isolinux.cfg 2007-0607-29 1802 19:2210:2951.000000000 +0400
@@ -1,5 +1,5 @@
display boot/splash.cfg
-default linux
+default ovz-2.6.18ovz18
prompt 1
timeout 300
kernel boot/vmlinuz
append max_loop=32 vga=791 initrd=boot/initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=40000 root=/dev/ram0 rw rhgb quiet
+label ovz-2.6.18 ovz18 +kernel boot/vmlinuz-2.6.18-ovz028stab035.1-smpovz18
+append max_loop=32 vga=791 initrd=boot/initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=40000 root=/dev/ram0 rw rhgb quiet
+
label memtest
kernel boot/memtest
 
</pre>
172
edits

Navigation menu