<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MikhailGusarov</id>
	<title>OpenVZ Virtuozzo Containers Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MikhailGusarov"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/MikhailGusarov"/>
	<updated>2026-05-15T19:46:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Compiling_the_OpenVZ_kernel_(the_Debian_way)&amp;diff=6641</id>
		<title>Compiling the OpenVZ kernel (the Debian way)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Compiling_the_OpenVZ_kernel_(the_Debian_way)&amp;diff=6641"/>
		<updated>2008-11-07T07:16:07Z</updated>

		<summary type="html">&lt;p&gt;MikhailGusarov: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Lenny and above ==&lt;br /&gt;
&lt;br /&gt;
Debian Lenny and Sid already include the openvz kernel (linux-image-${version}-openvz-${arch}), so the manual compilation is not necessary in many cases.&lt;br /&gt;
&lt;br /&gt;
== Installing sources ==&lt;br /&gt;
&lt;br /&gt;
To install the kernel-source and the OpenVZ kernel patch, run:&lt;br /&gt;
 # apt-get install kernel-package linux-source-2.6.18 kernel-patch-openvz libncurses5-dev&lt;br /&gt;
&lt;br /&gt;
For Debian version lenny and later you run the following instead:&lt;br /&gt;
 # apt-get install kernel-package linux-source-2.6.18 linux-patch-openvz libncurses5-dev&lt;br /&gt;
or&lt;br /&gt;
 # apt-get install kernel-package linux-source-2.6.24 linux-patch-openvz libncurses5-dev&lt;br /&gt;
&lt;br /&gt;
== Unpacking ==&lt;br /&gt;
&lt;br /&gt;
Unpack the kernel source:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # cd /usr/src&lt;br /&gt;
 # tar xjf linux-source-2.6.18.tar.bz2&lt;br /&gt;
 # cd linux-source-2.6.18&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Kernel config ==&lt;br /&gt;
&lt;br /&gt;
You need a kernel config.&lt;br /&gt;
You can use the config of the debian-kernel:&lt;br /&gt;
 # cp /boot/config-2.6.18-5-686 .config&lt;br /&gt;
&lt;br /&gt;
'''Or''' get a 2.6.18 kernel configuration from  &lt;br /&gt;
http://download.openvz.org/kernel/branches/2.6.18/current/configs/ (depending on your architecture; the below example is for i686):&lt;br /&gt;
 # wget http://download.openvz.org/kernel/branches/2.6.18/current/configs/kernel-2.6.18-i686.config.ovz -O .config&lt;br /&gt;
&lt;br /&gt;
== Patching and configuring ==&lt;br /&gt;
&lt;br /&gt;
Now you can apply the openvz kernel patch and modify your kernel-config:&lt;br /&gt;
 # ../kernel-patches/all/apply/openvz&lt;br /&gt;
 # make menuconfig&lt;br /&gt;
&lt;br /&gt;
You need the following OpenVZ kernel config settings:&lt;br /&gt;
(taken from OpenVZ Kernel 2.6.18-028test010.1 on 686)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Filesystem&lt;br /&gt;
\_ [*] Second extended fs support (CONFIG_EXT2_FS)&lt;br /&gt;
\_ [*] Ext3 journalling file system support (CONFIG_EXT3_FS)&lt;br /&gt;
\_ [M] Quota Support (CONFIG_QUOTA)&lt;br /&gt;
	\_ [*] Compatibility with older quotactl interface (CONFIG_QUOTA_COMPAT)&lt;br /&gt;
	\_ [*]Quota format v2 support (CONFIG_QFMT_V2)&lt;br /&gt;
\_ [*] VPS filesystem (CONFIG_SIM_FS)&lt;br /&gt;
\_ [M] Virtuozzo Disk Quota support	(CONFIG_VZ_QUOTA)&lt;br /&gt;
	\-&amp;gt; [*] Per-user and per-group quota in Virtuozzo quota partitions (VZ_QUOTA_UGID)&lt;br /&gt;
&lt;br /&gt;
Security&lt;br /&gt;
	\-&amp;gt;[ ] Enable different security models&lt;br /&gt;
&lt;br /&gt;
OpenVZ ... (what else :-)&lt;br /&gt;
\_[*] Virtual Environment support (CONFIG_VE)&lt;br /&gt;
	\_ &amp;lt;M&amp;gt; VE calls interface (CONFIG_VE_CALLS)&lt;br /&gt;
	\_ &amp;lt;M&amp;gt; VE networking (CONFIG_VE_NETDEV)&lt;br /&gt;
	\_ &amp;lt;M&amp;gt; Virtual ethernet device (CONFIG_VE_ETHDEV)&lt;br /&gt;
	\_ &amp;lt;M&amp;gt; VE device (CONFIG_VZ_DEV)&lt;br /&gt;
	\_ [*] VE netfiltering (CONFIG_VE_IPTABLES)&lt;br /&gt;
	\_ &amp;lt;M&amp;gt; VE watchdog module (CONFIG_VZ_WDOG)&lt;br /&gt;
	\_ &amp;lt;M&amp;gt; Checkpointing &amp;amp; restoring Virtual Environments (CONFIG_VZ_CHECKPOINT)&lt;br /&gt;
&lt;br /&gt;
User resources ... (User Beancounters)&lt;br /&gt;
\_ [*] Enable user resource accounting (CONFIG_USER_RESOURCE)&lt;br /&gt;
\_ [*] Account physical memory usage ( CONFIG_USER_RSS_ACCOUNTING)&lt;br /&gt;
\_ [*] Account disk IO (CONFIG_UBC_IO_ACCT)&lt;br /&gt;
\_ [*] Account swap usage (CONFIG_USER_SWAP_ACCOUNTING)&lt;br /&gt;
\_ [*] Report resource usage in /proc (CONFIG_USER_RESOURCE_PROC)&lt;br /&gt;
\_ [*] User resources debug features (CONFIG_UBC_DEBUG)&lt;br /&gt;
\_ [*] Debug kmemsize with cache counters (CONFIG_UBC_DEBUG_KMEM)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|better to build the kernel-headers as well, so afterward other kernel-modules can &lt;br /&gt;
be built without whole kernel tree (e.g.  drbd -&amp;gt; drbd0.7-module-source)}}&lt;br /&gt;
&lt;br /&gt;
See also : &amp;quot;make-kpkg --targets&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Compiling ==&lt;br /&gt;
&lt;br /&gt;
Compile your kernel (as user root, or you need the --rootcmd!)&lt;br /&gt;
 # make-kpkg --append_to_version=-1-openvz --added_patches=openvz --revision=1 --initrd binary-arch&lt;br /&gt;
 or all above with one step &lt;br /&gt;
 # make-kpkg --append_to_version=-1-openvz --added_patches=openvz --revision=1 --initrd --config menuconfig binary-arch&lt;br /&gt;
&lt;br /&gt;
== Installing ==&lt;br /&gt;
Install the kernel and update initramfs:&lt;br /&gt;
&lt;br /&gt;
 # dpkg -i ../linux-image-2.6.18-1-openvz_1_i386.deb&lt;br /&gt;
 # update-initramfs -c -k 2.6.18-1-openvz&lt;br /&gt;
&lt;br /&gt;
{{Note|update-initramfs is done, when make-kpkg is use with --initrd option}}&lt;br /&gt;
http://wiki.openvz.org/Installation_on_Debian_%28etch%29#Install_the_toolset&lt;br /&gt;
{{Note|update-grub can be configured by /etc/kernel-img.conf}}&lt;br /&gt;
&lt;br /&gt;
== Bootloader ==&lt;br /&gt;
&lt;br /&gt;
Update the bootloader (if not done before)&lt;br /&gt;
&lt;br /&gt;
GRUB :&lt;br /&gt;
&lt;br /&gt;
 # /usr/sbin/update-grub&lt;br /&gt;
&lt;br /&gt;
{{Note|since the Debian Etch release the location of update-grub is moved from /sbin/update-grub to /usr/sbin/update-grub}}&lt;br /&gt;
&lt;br /&gt;
LILO:&lt;br /&gt;
&lt;br /&gt;
 # lilo&lt;br /&gt;
&lt;br /&gt;
== Installing the Tools and Configuring ==&lt;br /&gt;
&lt;br /&gt;
Continue with [[Installation on Debian#Installing the user-level tools]]&lt;br /&gt;
&lt;br /&gt;
[[Category: Debian]]&lt;br /&gt;
[[Category: Installation]]&lt;br /&gt;
[[Category: Kernel]]&lt;/div&gt;</summary>
		<author><name>MikhailGusarov</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Package_managers&amp;diff=3590</id>
		<title>Package managers</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Package_managers&amp;diff=3590"/>
		<updated>2007-11-13T21:30:49Z</updated>

		<summary type="html">&lt;p&gt;MikhailGusarov: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;With OpenVZ, you can run many different Linux distributions on a single box. One particular thing in which distributions differ is package management. This article summarizes how to perform various common package management tasks on a different distributions.&lt;br /&gt;
&lt;br /&gt;
'''Feel free to add the missing pieces'''&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! align=&amp;quot;center&amp;quot; | Action&lt;br /&gt;
! RPM&amp;lt;br/&amp;gt;&amp;lt;small&amp;gt;RHEL, Fedora, CentOS, Mandrake, ...&amp;lt;/small&amp;gt;&lt;br /&gt;
! DEB&amp;lt;br/&amp;gt;&amp;lt;small&amp;gt;Debian, Ubuntu&amp;lt;/small&amp;gt;&lt;br /&gt;
! Ebuild&amp;lt;br/&amp;gt;&amp;lt;small&amp;gt;Gentoo, Sabayon&amp;lt;/small&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; align=&amp;quot;center&amp;quot; | '''Basic queries'''&lt;br /&gt;
|-&lt;br /&gt;
! List of all installed packages&lt;br /&gt;
|| &amp;lt;code&amp;gt;rpm -qa&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;dpkg -l&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;equery list&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! List of installing packages matching ''substr''&lt;br /&gt;
|| &amp;lt;code&amp;gt;rpm -qa ''\*substr\*''&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;dpkg -l ''\*substr\*''&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;equery list ''substr''&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Basic information about an installed ''package''&lt;br /&gt;
|| &amp;lt;code&amp;gt;rpm -qi ''package''&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;dpkg -p ''package''&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;-???-&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! List of files in a given ''package''&lt;br /&gt;
|| &amp;lt;code&amp;gt;rpm -ql ''package''&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;dpkg -L ''package''&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;equery files ''package''&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Which package a ''file'' belongs to?&lt;br /&gt;
|| &amp;lt;code&amp;gt;rpm -qf ''file''&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;dpkg -S ''file''&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;equery belongs ''file''&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;4&amp;quot; align=&amp;quot;center&amp;quot; | '''Package installation/upgrade/removal'''&lt;br /&gt;
|-&lt;br /&gt;
! Install a package from local ''package_file''&lt;br /&gt;
|| &amp;lt;code&amp;gt;rpm -ihv ''package_file*.rpm''&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;dpkg -i ''package_file*.deb'' &amp;lt;ref name=&amp;quot;apt&amp;quot;&amp;gt;Usually it is not necessary to download packages manually and install them. Use apt-cache search ''name'' to search for package in configured repositories and apt-get install ''package'' to install package and all it's dependencies&amp;lt;/ref&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;-???-&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Upgrade a package from local ''package_file''&lt;br /&gt;
|| &amp;lt;code&amp;gt;rpm -Uhv ''package_file*.rpm''&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;dpkg -i ''package_file*.deb'' &amp;lt;ref name=&amp;quot;apt&amp;quot;/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;-???-&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Remove an installed ''package''&lt;br /&gt;
|| &amp;lt;code&amp;gt;rpm -e ''package''&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;dpkg -r ''package''&amp;lt;/code&amp;gt;&lt;br /&gt;
|| &amp;lt;code&amp;gt;emerge --unmerge ''package''&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;emerge --prune ''package''&amp;lt;/code&amp;gt;&lt;br /&gt;
|-|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>MikhailGusarov</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Kernel_configuration&amp;diff=2784</id>
		<title>Kernel configuration</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Kernel_configuration&amp;diff=2784"/>
		<updated>2007-02-21T16:37:54Z</updated>

		<summary type="html">&lt;p&gt;MikhailGusarov: New page: == ACPI sleep ==  It is a bit tricky to make ACPI sleep and OpenVZ work together.  ACPI sleep is enabled by &amp;lt;code&amp;gt;ACPI_SLEEP&amp;lt;/code&amp;gt; kernel option. The following dependencies are declared i...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== ACPI sleep ==&lt;br /&gt;
&lt;br /&gt;
It is a bit tricky to make ACPI sleep and OpenVZ work together.&lt;br /&gt;
&lt;br /&gt;
ACPI sleep is enabled by &amp;lt;code&amp;gt;ACPI_SLEEP&amp;lt;/code&amp;gt; kernel option. The following dependencies are declared in kernel configs:&lt;br /&gt;
&lt;br /&gt;
 ACPI_SLEEP depends on X86 &amp;amp;&amp;amp; (!SMP || SUSPEND_SMP)&lt;br /&gt;
 SUSPEND_SMP depends on HOTPLUG_CPU &amp;amp;&amp;amp; X86 &amp;amp;&amp;amp; PM&lt;br /&gt;
 FAIRSCHED depends on SCHED_VCPU&lt;br /&gt;
&lt;br /&gt;
And &amp;lt;code&amp;gt;SCHED_VCPU&amp;lt;/code&amp;gt; is incompatible with &amp;lt;code&amp;gt;HOTPLUG_CPU&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
 ./kernel/cpu.c:#error &amp;quot;CONFIG_HOTPLUG_CPU isn't supported with CONFIG_SCHED_VCPU&amp;quot;&lt;br /&gt;
&lt;br /&gt;
On non-SMP machine, you may disable &amp;lt;code&amp;gt;SMP&amp;lt;/code&amp;gt;, this will resolve the conflict.&lt;br /&gt;
&lt;br /&gt;
If you have SMP machine, you can only disable &amp;lt;code&amp;gt;FAIRSCHED&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;SCHED_VCPU&amp;lt;/code&amp;gt;. This will loose isolation between VEs (scheduling will be performed per-task, not per-VE), but it is acceptable solution if your VEs are trusted (and it's hard to imagine untrusted VEs on notebook ;)&lt;br /&gt;
&lt;br /&gt;
[[Category:Kernel]]&lt;/div&gt;</summary>
		<author><name>MikhailGusarov</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Talk:Installation_on_Debian/old&amp;diff=2739</id>
		<title>Talk:Installation on Debian/old</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Talk:Installation_on_Debian/old&amp;diff=2739"/>
		<updated>2007-02-09T13:19:42Z</updated>

		<summary type="html">&lt;p&gt;MikhailGusarov: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;info about needed modules in kernel-config&lt;br /&gt;
&lt;br /&gt;
info about &amp;quot;Yet Another mkInitRD&amp;quot; yaid tools creating initrd-files&lt;br /&gt;
&lt;br /&gt;
== ip_forward setup ==&lt;br /&gt;
&lt;br /&gt;
 If you want network access for the virtual server then you need to enable IP forwarding.&lt;br /&gt;
 Set &amp;quot;ip_forward&amp;quot; to yes in /etc/network option.&lt;br /&gt;
 # editor /etc/network/options&lt;br /&gt;
&lt;br /&gt;
: /etc/network/options is deprecated. ip_forward may be enabled in /etc/sysctl.conf by adding the line &amp;quot;net.ipv4.ip_forward=1&amp;quot;&lt;/div&gt;</summary>
		<author><name>MikhailGusarov</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Talk:Installation_on_Debian/old&amp;diff=2738</id>
		<title>Talk:Installation on Debian/old</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Talk:Installation_on_Debian/old&amp;diff=2738"/>
		<updated>2007-02-09T13:19:01Z</updated>

		<summary type="html">&lt;p&gt;MikhailGusarov: ip_forward setup&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;info about needed modules in kernel-config&lt;br /&gt;
&lt;br /&gt;
info about &amp;quot;Yet Another mkInitRD&amp;quot; yaid tools creating initrd-files&lt;br /&gt;
&lt;br /&gt;
== ip_forward setup ==&lt;br /&gt;
&lt;br /&gt;
If you want network access for the virtual server then you need to enable IP forwarding. Set &amp;quot;ip_forward&amp;quot; to yes in /etc/network/option. &lt;br /&gt;
# editor /etc/network/options&lt;br /&gt;
&lt;br /&gt;
: /etc/network/options is deprecated. ip_forward may be enabled in /etc/sysctl.conf by adding the line &amp;quot;net.ipv4.ip_forward=1&amp;quot;&lt;/div&gt;</summary>
		<author><name>MikhailGusarov</name></author>
		
	</entry>
</feed>