Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Installation on Debian/old

92 bytes removed, 14:05, 10 November 2007
removed excessive pre's, splitted into subections, reworded kernel config subsection or build your own kernel-image (debian way)
# apt-get install <linux-image>
=== or build Build your own kernel-image (debian way) === ==== Installing sources ====
To install the kernel-source and the OpenVZ kernel patch, run:
<pre>
# apt-get install kernel-package linux-source-2.6.18 kernel-patch-openvz libncurses5-dev
</pre>
==== Unpacking ====
Unpack the kernel source:
</pre>
==== Kernel config ====
You need a kernel config.
You can use the config of the debian-kernel:
<pre>
# cp /boot/config-2.6.18-5-686 .config
</pre>
'''Or''' get a 2.6.18 kernel configuration from http://download.openvz.org/kernel/branches/2.6.18/current/configs/ (depending on your architecture; the below example is for i686):
# wget http://download.openvz.org/kernel/branches/2.6.18/current/configs/kernel-2.6.18-i686.config.ovz -O .config
<b>Or</b> get a 2.6.18 kernel config from http://download.openvz.org/kernel/devel/current/configs/<pre> # wget http://download.openvz.org/kernel/devel/current/configs/kernel-2.6.18-028test010-i686.config.ovz -O .config</pre> <b>Or</b> get a 2.6.18 kernel config from http://download.openvz.org/kernel/branches/2.6.18/current/configs/ (2007/11/09)<pre> # wget http://download.openvz.org/kernel/branches/2.6.18/current/configs/kernel-2.6.18-i686.config.ovz -O .config</pre>==== Patching and configuring ====
Now you can apply the openvz kernel patch and modify your kernel-config:
<pre>
# ../kernel-patches/all/apply/openvz
# make menuconfig
</pre>
 
You need the following OpenVZ kernel config settings:
</pre>
{{Note|better to build the kernel-headers as well, so afterward other kernel-modules can
be built without whole kernel tree (e.g. drbd -> drbd0.7-module-source)}}
INFO: Better to build the kernel-headers as well, so afterward other kernel-modules can
be built without whole kernel tree (e.g. drbd -> drbd0.7-module-source)
See also : "make-kpkg --targets"
==== Compiling ====
Compile your Kernel kernel (as user root, or you need the --rootcmd!)<pre>
# make-kpkg --append_to_version=-1-openvz --added_patches=openvz --revision=1 --initrd binary-arch
or all above with one step  
# make-kpkg --append_to_version=-1-openvz --added_patches=openvz --revision=1 --initrd --config menuconfig binary-arch
</pre>
==== Installing ====
Install the kernel and update initramfs:
Install the kernel and update initramfs:
<pre>
# dpkg -i ../linux-image-2.6.18-1-openvz_1_i386.deb
# update-initramfs -c -k 2.6.18-1-openvz
</pre>
<pre> INFO: {{Note|update-initramfs is done, when make-kpkg is use with --initrd option}}  INFO: {{Note|update-grub can be configured by /etc/kernel-img.conf}} </pre>==== Bootloader ====
Update the bootloader (when if not done abovebefore)
GRUB :
# /usr/sbin/update-grub
INFO: {{Note|since the Debian ETCH-Etch release the location of update-grub is moved from /sbin/update-grub to /usr/sbin/update-grub !}}
== Install the toolset ==