<?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=Cgb</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=Cgb"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Cgb"/>
	<updated>2026-06-13T22:31:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Virtual_network_device&amp;diff=9768</id>
		<title>Virtual network device</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Virtual_network_device&amp;diff=9768"/>
		<updated>2011-02-10T07:58:11Z</updated>

		<summary type="html">&lt;p&gt;Cgb: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Virtual network device (&amp;lt;code&amp;gt;venet&amp;lt;/code&amp;gt;) is the default network device for a [[container]]. Due to [[w:Network_Layer|Layer 3]] employed by OpenVZ's venet, this network device looks like a point-to-point connection between [[container]] and the [[CT0|host system]]. It does packet switching based on IP header. This is a default network device for container (an alternative is [[veth]] device).&lt;br /&gt;
&lt;br /&gt;
Venet drop ip-packets '''from''' the container with a source address, and '''in''' the container with the destination address, which is not corresponding to an ip-address of the container.&lt;br /&gt;
&lt;br /&gt;
Venet device is created automatically on [[container]] start. Vzctl scripts set up an appropriate IP address and other settings on venet inside a container.&lt;br /&gt;
&lt;br /&gt;
==  Usage ==&lt;br /&gt;
&lt;br /&gt;
== Kernel module ==&lt;br /&gt;
First of all, check that &amp;lt;code&amp;gt;vznetdev&amp;lt;/code&amp;gt; module is loaded:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# lsmod | grep vznetdev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If it is not, load the module:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# modprobe vznetdev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You might want to check /etc/init.d/vz script to make sure the module gets loaded during startup.&lt;br /&gt;
&lt;br /&gt;
=== Adding IP address to a container ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vzctl set &amp;lt;CTID&amp;gt; --ipadd &amp;lt;IP1&amp;gt;[,&amp;lt;IP2&amp;gt;,...] [--save]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|This option is incremental, so IP addresses are added to already existing ones.}}&lt;br /&gt;
&lt;br /&gt;
==== Example ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vzctl set 101 --ipadd 10.0.0.1  --save&lt;br /&gt;
vzctl set 101 --ipadd fd00::101 --save&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
After executing this command IP address 10.0.0.1 will be added to container 101 and IP configuration will be saved to a container configuration file.&lt;br /&gt;
&lt;br /&gt;
=== Removing IP address from a container ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vzctl set &amp;lt;CTID&amp;gt; --ipdel &amp;lt;IP1&amp;gt;[,&amp;lt;IP2&amp;gt;,...] [--save]&lt;br /&gt;
vzctl set &amp;lt;CTID&amp;gt; --ipdel all [--save]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Example ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
vzctl set 101 --ipdel 10.0.0.1&lt;br /&gt;
vzctl set 101 --ipdel fd00::101&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
After executing this command IP address 10.0.0.1 will be removed from container 101, but IP configuration will not be changed in container config file. And after container reboot IP address 10.0.0.1 will be assigned to this container again.&lt;br /&gt;
&lt;br /&gt;
== Specific aspects of venet network device ==&lt;br /&gt;
&lt;br /&gt;
{{Note|If you require a feature which venet is lacking (from the list below), please consider using [[veth]] device (which have [[w:Data_Link_Layer|layer 2]] support.)}}&lt;br /&gt;
&lt;br /&gt;
=== No [[w:Address_Resolution_Protocol|ARP]] protocol support ===&lt;br /&gt;
Venet network device is explicitly NOARP, so there is no MAC address.&lt;br /&gt;
Consequently, it's not possible to make broadcasts inside a [[container]], so software like Samba server or DHCP server will not function (under a container with a venet network device).&lt;br /&gt;
&lt;br /&gt;
=== No [[w:Network_bridge|bridge]] support ===&lt;br /&gt;
Venet network device cannot be bridged together and/or with other devices.&lt;br /&gt;
&lt;br /&gt;
=== No possiblity to assign an IP from the CT ===&lt;br /&gt;
With venet device, only OpenVZ [[hardware node]] administrator can assign an IP address to a [[container]].&lt;br /&gt;
&lt;br /&gt;
=== No full support of IPv6 stack ===&lt;br /&gt;
&lt;br /&gt;
venet devices are not fully IPv6 compliant. They do not properly support MAC addresses and consequently link local addresses and can not play nice with neighbor discovery or router advertisements, router discovery, or auto-conf. They also require additional modifications to the layer 3 forwarding behaviour of the host via sysctl, to get your venet devices working.&lt;br /&gt;
Please have a look at the [[Quick installation#sysctl]] section.&lt;br /&gt;
&lt;br /&gt;
veth devices do require iptables and ip6tables exceptions on the host for each VE address. &lt;br /&gt;
&lt;br /&gt;
You'll need to use the veth bridging device if you want full IPv6 compliance.  See the [[VEs and HNs in same subnets]] article for an example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Veth]]&lt;br /&gt;
* [[Differences between venet and veth]]&lt;br /&gt;
&lt;br /&gt;
[[Category: Networking]]&lt;br /&gt;
[[Category: HOWTO]]&lt;/div&gt;</summary>
		<author><name>Cgb</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=IPv6&amp;diff=9767</id>
		<title>IPv6</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=IPv6&amp;diff=9767"/>
		<updated>2011-02-10T07:40:13Z</updated>

		<summary type="html">&lt;p&gt;Cgb: Documented venet static IPv6 configuration (opening paragraph leads users to think IPv6 won't work with venet)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:HOWTO]]&lt;br /&gt;
[[Category:Networking]]&lt;br /&gt;
IPv6 works best when veth devices are used to bridge VEs to their host.  An IPv6 compliant method of using veth interfaces for VEs can be found in the [[VEs and HNs in same subnets]] article.  &lt;br /&gt;
&lt;br /&gt;
venet devices are not fully IPv6 compliant, but still works if you statically assign IPv6 addresses.  They do not properly support MAC addresses and consequently link local addresses and can not play nice with neighbor discovery or router advertisements, router discovery, or auto-conf.  They also require additional modifications to the layer 3 forwarding behaviour of the host via sysctl.&lt;br /&gt;
&lt;br /&gt;
== venet example ==&lt;br /&gt;
(tests done on CentOS kernel 2.6.18-194.26.1.el5.028stab079.2)&lt;br /&gt;
&lt;br /&gt;
=== Adding an IPv6 address to a container ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl set &amp;lt;id&amp;gt; --ipadd &amp;lt;ipv6_addr&amp;gt; --save&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In my tests, the container had to be restarted before it would respond to ICMP6 echo requests.&lt;br /&gt;
&lt;br /&gt;
=== Removing an IPv6 address to a container ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# vzctl set &amp;lt;id&amp;gt; --ipdel &amp;lt;ipv6_addr&amp;gt; --save&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Removal is effective immediately and the host stops replying to echo requests.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Virtual Ethernet device]]&lt;br /&gt;
* [[Differences between venet and veth]]&lt;br /&gt;
&lt;br /&gt;
== External Links ==&lt;br /&gt;
* A user success story / howto on SixXS wiki [https://www.sixxs.net/wiki/User:JNN2-SIXXS/OpenVZ].&lt;/div&gt;</summary>
		<author><name>Cgb</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=UBC_parameters_table&amp;diff=8785</id>
		<title>UBC parameters table</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=UBC_parameters_table&amp;diff=8785"/>
		<updated>2010-06-26T14:57:07Z</updated>

		<summary type="html">&lt;p&gt;Cgb: Added 'swappages' Aux param&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{UBC toc}}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Name !! Description&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Primary parameters&lt;br /&gt;
|-&lt;br /&gt;
| numproc        || Number of processes and threads.&lt;br /&gt;
|-&lt;br /&gt;
| numtcpsock     || Number of TCP sockets.&lt;br /&gt;
|-&lt;br /&gt;
| numothersock   || Number of sockets other than TCP.&lt;br /&gt;
|-&lt;br /&gt;
| vmguarpages    || Memory allocation guarantee, in pages.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Secondary parameters&lt;br /&gt;
|-&lt;br /&gt;
| kmemsize       || Size of unswappable kernel memory, allocated for processes in this [[container]].&lt;br /&gt;
|-&lt;br /&gt;
| tcpsndbuf      || Total size of TCP send buffers.&lt;br /&gt;
|-&lt;br /&gt;
| tcprcvbuf      || Total size of TCP receive buffers.&lt;br /&gt;
|-&lt;br /&gt;
| othersockbuf   || Total size of UNIX-domain socket buffers, UDP and other datagram protocol send buffers.&lt;br /&gt;
|-&lt;br /&gt;
| dgramrcvbuf    || Receive buffers of UDP and other datagram protocols.&lt;br /&gt;
|-&lt;br /&gt;
| oomguarpages   || The guaranteed amount of memory for the case the memory is “over-booked” (out-of-memory kill guarantee), in pages.&lt;br /&gt;
|-&lt;br /&gt;
| privvmpages    || Memory allocation limit, in pages.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | Auxiliary parameters&lt;br /&gt;
|-&lt;br /&gt;
| lockedpages    || Process pages not allowed to be swapped out (pages locked by &amp;lt;code&amp;gt;mlock(2)&amp;lt;/code&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
| shmpages       || Total size of shared memory (IPC, shared anonymous mappings and &amp;lt;code&amp;gt;tmpfs&amp;lt;/code&amp;gt; objects), in pages.&lt;br /&gt;
|-&lt;br /&gt;
| physpages      || Total number of RAM pages used by processes.&lt;br /&gt;
|-&lt;br /&gt;
| numfile        || Number of open files.&lt;br /&gt;
|-&lt;br /&gt;
| numflock       || Number of file locks.&lt;br /&gt;
|-&lt;br /&gt;
| numpty         || Number of pseudo-terminals.&lt;br /&gt;
|-&lt;br /&gt;
| numsiginfo     || Number of &amp;lt;code&amp;gt;siginfo&amp;lt;/code&amp;gt; structures.&lt;br /&gt;
|-&lt;br /&gt;
| dcachesize     || Total size of &amp;lt;code&amp;gt;dentry&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;inode&amp;lt;/code&amp;gt; structures locked in memory.&lt;br /&gt;
|-&lt;br /&gt;
| numiptent      || Number of NETFILTER (IP packet filtering) entries.&lt;br /&gt;
|-&lt;br /&gt;
| swappages      || Amount of swap space to show in container.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Cgb</name></author>
		
	</entry>
</feed>