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). | + | 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). 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> | ||
mkdir ovz-kernel | mkdir ovz-kernel | ||
Line 103: | Line 102: | ||
mv linux-2.6.18 linux-2.6.18-8.el5-028test027 | mv linux-2.6.18 linux-2.6.18-8.el5-028test027 | ||
vim linux-2.6.18-8.el5-028test027/Makefile # here we add right extraversion: -8.el5-028test027 | vim linux-2.6.18-8.el5-028test027/Makefile # here we add right extraversion: -8.el5-028test027 | ||
− | cp | + | cp kernel-2.6.18-i686.config.ovz linux-2.6.18/.config |
− | |||
− | |||
− | |||
make-kpkg --revision=.1 kernel_image | make-kpkg --revision=.1 kernel_image | ||
− | |||
cd .. | cd .. | ||
</pre> | </pre> | ||
Line 173: | Line 168: | ||
That's great, now we have all the tree ready, | That's great, now we have all the tree ready, | ||
− | let's compress it in the new image using create_compressed_fs tool | + | let's compress it in the new image using create_compressed_fs tool: |
− | |||
<pre> | <pre> | ||
mkisofs -R -iso-level 4 -force-rr -J ./KNOPPIX-content-modif/ > KNOPPIX-modif.img | mkisofs -R -iso-level 4 -force-rr -J ./KNOPPIX-content-modif/ > KNOPPIX-modif.img | ||
./cloop-2.05/create_compressed_fs KNOPPIX-modif.img 65536 > KNOPPIX-modif | ./cloop-2.05/create_compressed_fs KNOPPIX-modif.img 65536 > KNOPPIX-modif | ||
− | |||
</pre> | </pre> | ||
Line 257: | Line 250: | ||
</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. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Result == | == Result == | ||
− | |||
== Links == | == Links == | ||
Line 334: | Line 259: | ||
# http://www.knoppix.net/wiki/Knoppix_Remastering_Howto | # http://www.knoppix.net/wiki/Knoppix_Remastering_Howto | ||
# http://debian.systs.org/ | # http://debian.systs.org/ | ||
− | |||
− | |||
− | |||
− |