Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Creating OpenVZ LiveCD based on Centos 4.4

478 bytes removed, 13:10, 29 June 2007
Install all these finally: this part is added
=== Install all these finally ===
TODOWe have all components that will be on '''booted''' LiveCD ready. Let's install themrpmsin <tt>chrooted</tt> environment. But before uninstall <tt>lsctp-tools</tt> package,because these tools need kernel version prior to 2.6.10. Then update <tt>sqlite</tt>package. Also we need to remove some other packages in order to free some disk space:rpmsI've removed <tt>openoffice.org</kerneltt> and related packages:<pre>rpms# cp -r to_booted_livecd/ root/tmp/toolsrpms# chroot root/update
Uninstall <tt>lsctp# rpm -e lksctp-tools<-1.0.2-6.4E.1.i386# rpm -e openoffice.org-libs-1.1.5-4.6.0.EL4 openoffice.org-1.1.5-4.6.0.EL4 # cd /tmp/to_booted_livecd/ # rpm -Uvh updates/sqlite-3.3.6-2.i386.rpm # rpm -ivh kernels/tt> package, because these tools they need kernel version prior to -smp-2.6.1018-ovz028stab035.1.i686.rpm # rpm -ivh tools/*.rpm# rpm -ivh template-metadatas/*.rpm</pre> Copy precreated templates to appropriate place:
<pre>
rpm -e lksctp-tools-1.0.2-6.4E.1.i386# cp precreated/* /vz/template/cache/
</pre>
Uninstall Add <tt>unionfs.ko</tt> to other kernel-module-xfs package, because these modules are compiled against original :
<pre>
rpm # mkdir /lib/modules/2.6.18-ovz028stab035.1-e smp/kernel/fs/unionfs# cp unionfs-module-xfs-modules/2.6.9-4218/unionfs.livecdko /lib/modules/2.c46.18-0ovz028stab035.1-3.i686smp/kernel/fs/unionfs/# exitexit
</pre>
 cd /tmp/rpms/kernelrpm -ivh kernel-smp-2.6.18-ovz028stab033.1.i686.rpmrpm -e kernel-2.6.9-42.livecd.c4 cd /tmp/rpms/updatesrpm -Uvh sqlite-3.3.6-2.i386.rpm <tt># rpm -ivh vz*Preparing... ########################################### [100%] 1:vzrpm44 ########################################### [ 8%] 2:vzrpm44-python ########################################### [ 15%] 3:vzrpm43-python ########################################### [ 23%] 4:vzrpm43 ########################################### [ 31%] 5:vzyum ########################################### [ 38%] 6:vzquota ########################################### [ 46%] 7:vzctl-lib ########################################### [ 54%] 8:vzctl ########################################### [ 62%] 9:vzpkg ########################################### [ 69%] 10:vztmpl-centos-4 ########################################### [ 77%] 11:vztmpl-fedora-core-3 ########################################### [ 85%] 12:vztmpl-fedora-core-4 ########################################### [ 92%] 13:vztmpl-fedora-core-5 ########################################### [100%]</tt>'''Booted''' LiveCD filesystem is ready, congratulations!
== External Links ==
172
edits