<?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=Alien</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=Alien"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Alien"/>
	<updated>2026-05-02T14:10:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Disk_quota&amp;diff=7457</id>
		<title>Disk quota</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Disk_quota&amp;diff=7457"/>
		<updated>2009-08-06T15:17:34Z</updated>

		<summary type="html">&lt;p&gt;Alien: /* Filesystem dependency */  reiserfs is also broken (user: alien)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Basic disk quota management:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To set disk space, run the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  vzctl set CTID --diskspace $SoftLimit$:$HardLimit$ --save&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[host-node]# vzctl set 101 --diskspace 6G:7G --save&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You could verify the space available with this command (ie : CTID =101)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[host-node]# vzctl exec 101 df -h&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want remove disk quota:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DISK_QUOTA=no&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Filesystem dependency ==&lt;br /&gt;
If your host filesystem is not ext2/3 (like ''XFS'' or ''reiserfs'') the disk quotas will not work inside containers.&lt;br /&gt;
&lt;br /&gt;
[[Category: Disk quota]]&lt;/div&gt;</summary>
		<author><name>Alien</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Porting_the_kernel&amp;diff=6795</id>
		<title>Porting the kernel</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Porting_the_kernel&amp;diff=6795"/>
		<updated>2008-12-14T23:16:54Z</updated>

		<summary type="html">&lt;p&gt;Alien: added a link about kir's arm port&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenVZ kernel supports x86, x86_64, IA64, power64, [http://community.livejournal.com/openvz/24651.html arm] and [[sparc]] architectures as of now. Below are the quick and dirty information about how to port the  kernel to yet another architecture.&lt;br /&gt;
&lt;br /&gt;
* UBC: need to account any platform specific VMAs created by hand in arch specific code. i.e. if there are calls of &amp;lt;code&amp;gt;insert_vm_struct()&amp;lt;/code&amp;gt; this should be accounted with &amp;lt;code&amp;gt;ub_memory_charge()&amp;lt;/code&amp;gt;. Didn't find such thing on sparc64.&lt;br /&gt;
&lt;br /&gt;
* If there are user triggerable &amp;lt;code&amp;gt;printk()&amp;lt;/code&amp;gt;'s (related to the user, not the system as a whole) better replace them with &amp;lt;code&amp;gt;ve_printk()&amp;lt;/code&amp;gt;. Otherwise user can flood (DoS). minor actually.&lt;br /&gt;
&lt;br /&gt;
* Call to functions &amp;lt;code&amp;gt;find_task_by_pid()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;for_each_process()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;do_each_thread()&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;while_each_thread()&amp;lt;/code&amp;gt; should be replaced with it's counterparts - &amp;lt;code&amp;gt;find_task_by_pid_XXX()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;for_each_process_XXX()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;do_each_thread_XXX()&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;while_each_thread_XXX()&amp;lt;/code&amp;gt;, where &amp;lt;code&amp;gt;XXX&amp;lt;/code&amp;gt; is either &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ve&amp;lt;/code&amp;gt;. Here &amp;lt;code&amp;gt;all&amp;lt;/code&amp;gt; means that all system processes in the system will be scanned, while &amp;lt;code&amp;gt;ve&amp;lt;/code&amp;gt; means that only the [[container]] accessible from this task (current context - &amp;lt;code&amp;gt;get_exec_env()&amp;lt;/code&amp;gt;) will be visible. So you need to decide whether the code in question is about system or user context.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;task-&amp;gt;pid&amp;lt;/code&amp;gt; should be changed with &amp;lt;code&amp;gt;virt_pid(task)&amp;lt;/code&amp;gt; in some places. The rule is simple: user should see only virtual pids, while kernel operate on global pids. e.g. in signals, virtual pid should be delivered to app.&lt;br /&gt;
&lt;br /&gt;
* In interrupt handlers one need to set global host ([[CT0]]) context. i.e. &amp;lt;code&amp;gt;set_exec_env()&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;set_exec_ub()&amp;lt;/code&amp;gt;. i.e. interrupt handlers are running in CT0 context.&lt;br /&gt;
&lt;br /&gt;
* In &amp;lt;code&amp;gt;kernel_thread()&amp;lt;/code&amp;gt; one needs to prohibit kernel threads in container. Mostly security related...&lt;br /&gt;
&lt;br /&gt;
* Extend &amp;lt;code&amp;gt;show_registers()&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;show_regs()&amp;lt;/code&amp;gt;) to show current container.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;utsname&amp;lt;/code&amp;gt; should be virtualized. This mostly means that &amp;lt;code&amp;gt;system_utsnames&amp;lt;/code&amp;gt; should be replaced with &amp;lt;code&amp;gt;ve_utsname&amp;lt;/code&amp;gt;. See any arch code for this.&lt;br /&gt;
&lt;br /&gt;
* Some exports will be required. e.g. &amp;lt;code&amp;gt;show_mem()&amp;lt;/code&amp;gt; and probably &amp;lt;code&amp;gt;cpu_khz&amp;lt;/code&amp;gt;. Easy.&lt;br /&gt;
&lt;br /&gt;
* Everything else are bugfixes.&lt;br /&gt;
&lt;br /&gt;
All these are straightforward and really simple, so it should take a few hours to do.&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* [http://forum.openvz.org/index.php?t=msg&amp;amp;goto=3338&amp;amp;&amp;amp;srch=sparc#msg_num_5 Original forum post]&lt;br /&gt;
&lt;br /&gt;
[[Category: Kernel internals]]&lt;br /&gt;
[[Category: Development]]&lt;/div&gt;</summary>
		<author><name>Alien</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Template_talk:Contributed_templates_info&amp;diff=6740</id>
		<title>Template talk:Contributed templates info</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Template_talk:Contributed_templates_info&amp;diff=6740"/>
		<updated>2008-11-26T20:10:01Z</updated>

		<summary type="html">&lt;p&gt;Alien: provided an up-to-date Centos4 with yum template&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* Up-to-date (built every 2x/week from a current Portage tree) Gentoo Linux OpenVZ templates for 32-bit and 64-bit are available at [http://www.funtoo.org/linux/openvz/].&lt;br /&gt;
&lt;br /&gt;
* I have modified the default CentOS 4 template to include yum and then I updated to the latest version (as of November 26th 2008) using yum update. You can fetch it from http://users.utcluj.ro/~mcristi/centos-4-i386-yum.tar.gz (Cristi Măgherușan - cristi.magherusan at net.utcluj.ro)&lt;/div&gt;</summary>
		<author><name>Alien</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Talk:Install_yum&amp;diff=6739</id>
		<title>Talk:Install yum</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Talk:Install_yum&amp;diff=6739"/>
		<updated>2008-11-26T19:44:39Z</updated>

		<summary type="html">&lt;p&gt;Alien: New page: ==On centos 4== gmp,readline and expat are already installed, and elfutils-0.97.1-5.i386 needs elfutils-libelf-0.97.1-5 to be installed&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==On centos 4==&lt;br /&gt;
gmp,readline and expat are already installed, and elfutils-0.97.1-5.i386 needs elfutils-libelf-0.97.1-5 to be installed&lt;/div&gt;</summary>
		<author><name>Alien</name></author>
		
	</entry>
</feed>