Editing Creating OpenVZ LiveCD
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 89: | Line 89: | ||
</pre> | </pre> | ||
− | Now we should set up OpenVZ environment in obtained tree: kernel, vzctl, vzquota, template. For vzctl and vzquota we can use precompiled packages from http://debian.systs.org. But at the moment we have to create kernel Debian package by self, because we need additional patches in order all to work smoothly (but it will be unnecessary soon, when patches will be included in main OpenVZ patch). This is important to use KNOPPIX default kernel config! The creators of LiveCD take a lot of care about customizing config file in such manner, that CD will suite as many users as possible. We shouldn't throw away such great job. We do `make oldconfig` and press enter all the time. Additionally | + | Now we should set up OpenVZ environment in obtained tree: kernel, vzctl, vzquota, template. For vzctl and vzquota we can use precompiled packages from http://debian.systs.org. But at the moment we have to create kernel Debian package by self, because we need additional patches in order all to work smoothly (but it will be unnecessary soon, when patches will be included in main OpenVZ patch). This is important to use KNOPPIX default kernel config! The creators of LiveCD take a lot of care about customizing config file in such manner, that CD will suite as many users as possible. We shouldn't throw away such great job. We do `make oldconfig` and press enter all the time. Additionally CONFIG_MATH_EMULATION should be turn off at the moment. (http://bugzilla.openvz.org/show_bug.cgi?id=433) |
I created a Debian VE on my machine and install there kernel-package package, that allows to create Debian kernel packages easily. After that the creation of package is something like that: | I created a Debian VE on my machine and install there kernel-package package, that allows to create Debian kernel packages easily. After that the creation of package is something like that: | ||
<pre> | <pre> | ||
Line 106: | Line 106: | ||
cd linux-2.6.18-8.el5-028test027 | cd linux-2.6.18-8.el5-028test027 | ||
make oldconfig # pressing enter here | make oldconfig # pressing enter here | ||
− | vim .config # switching off | + | vim .config # switching off CONFIG_MATH_EMULATION |
make-kpkg --revision=.1 kernel_image | make-kpkg --revision=.1 kernel_image | ||
cd .. | cd .. | ||
Line 257: | Line 257: | ||
</pre> | </pre> | ||
− | Now you have aufs.ko file in current directory. Next we need to add these modules to the disc: | + | Now you have an aufs.ko file in current directory. Next we need to add these modules to the disc: |
<pre> | <pre> | ||
cp aufs.ko cloop.ko cd-contents/KNOPPIX/modules/ | cp aufs.ko cloop.ko cd-contents/KNOPPIX/modules/ | ||
Line 277: | Line 277: | ||
The modules directory on initrd contents kernel modules. Now we should replace these modules by | The modules directory on initrd contents kernel modules. Now we should replace these modules by | ||
− | equivalents from OpenVZ kernel. Note, that some modules | + | equivalents from OpenVZ kernel. Note, that some modules are already build in OpenVZ kernel, |
− | + | so they are missing. After this operation is done copy new minirt.gz to the appropriate place: | |
<pre> | <pre> | ||
umount mnt | umount mnt | ||
Line 286: | Line 286: | ||
</pre> | </pre> | ||
− | The last | + | The last step is to copy vmlinuz to isolinux directory: |
<pre> | <pre> | ||
cp vmlinuz-2.6.18-8.el5-028stab027 cd-contents/boot/isolinux/linux | cp vmlinuz-2.6.18-8.el5-028stab027 cd-contents/boot/isolinux/linux | ||
</pre> | </pre> | ||
− | + | Wow! We're ready to create is with KNOPPIX OpenVZ CD: | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | with | ||
− | |||
− | |||
− | |||
− | |||
− | |||
<pre> | <pre> | ||
chmod -R u+w cd-contents | chmod -R u+w cd-contents | ||
rm cd-contents/boot/isolinux/boot.cat | rm cd-contents/boot/isolinux/boot.cat | ||
− | mkisofs -b boot/isolinux/isolinux.bin -o KNOPPIX_V5.1.1-OPENVZ-CD-2007-01-04-EN.iso -no-emul-boot | + | mkisofs -b boot/isolinux/isolinux.bin -o KNOPPIX_V5.1.1-OPENVZ-CD-2007-01-04-EN.iso -no-emul-boot -l -J -r -boot-load-size 4 -boot-info-table KNOPPIX_V5.1.1CD-2007-01-04-EN.iso-content |
− | |||
</pre> | </pre> | ||
Line 334: | Line 305: | ||
# http://www.knoppix.net/wiki/Knoppix_Remastering_Howto | # http://www.knoppix.net/wiki/Knoppix_Remastering_Howto | ||
# http://debian.systs.org/ | # http://debian.systs.org/ | ||
− | |||
− | |||
− | |||
− |