<?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=Dowdle</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=Dowdle"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Dowdle"/>
	<updated>2026-06-10T04:40:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=IRC&amp;diff=23417</id>
		<title>IRC</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=IRC&amp;diff=23417"/>
		<updated>2022-02-24T15:09:49Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;translate&amp;gt;&lt;br /&gt;
&amp;lt;!--T:1--&amp;gt;&lt;br /&gt;
If you want to talk to the OpenVZ users and sometimes developers live, we can usually be found on the #openvz channel on irc.freenode.net.&lt;br /&gt;
&lt;br /&gt;
== Some simple rules == &amp;lt;!--T:2--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:3--&amp;gt;&lt;br /&gt;
* Please note that this is a volunteer service, so be polite - you won't get much help if being rude.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:4--&amp;gt;&lt;br /&gt;
* Please do a research before asking questions. Search this wiki, the [[mailing lists]] and [[forum:|forum]] for questions that were asked in the past.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:5--&amp;gt;&lt;br /&gt;
* Also remember that the level of activity varies, so if you don't get help at once, stay online for a while. People will answer if they can, or ask for more details if they need it. Repeating the same question again and again won't help.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:6--&amp;gt;&lt;br /&gt;
* Don't send private messages to people unless they have asked you to — it's considered rude.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:7--&amp;gt;&lt;br /&gt;
* Chances are that people had the same challenges as you at one time — so following the above points will ensure a good experience, both for you and for us.&lt;br /&gt;
&lt;br /&gt;
== Connecting == &amp;lt;!--T:8--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:9--&amp;gt;&lt;br /&gt;
[irc://irc.freenode.net/openvz Click here] to connect with an IRC client (requires IRC client installed).&lt;br /&gt;
&lt;br /&gt;
Many users of the freenode IRC network have since moved to the libra.chat network, so see #openvz there also.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:10--&amp;gt;&lt;br /&gt;
To connect with an IRC client, you need one installed. Here are our IRC client recommendations:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:11--&amp;gt;&lt;br /&gt;
* Via web browser: [https://webchat.freenode.net/?channels=#openvz Freenode webchat] or [https://kiwiirc.com/client/irc.freenode.net/#openvz Kiwi IRC client] or [https://web.libera.chat/#openvz Libra.chat webchat]&lt;br /&gt;
* For Linux: [http://www.xchat.org/ XChat]&lt;br /&gt;
* For Mac OS X: [http://www.colloquy.info/ Colloquy]&lt;br /&gt;
* For Windows: [http://www.mirc.com/ mIRC]&lt;br /&gt;
&lt;br /&gt;
== IRC logs == &amp;lt;!--T:12--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:13--&amp;gt;&lt;br /&gt;
It is possible to find all conversation in the past. IRC logs are saved using [https://botbot.me/freenode/openvz/ botbot.me].&lt;br /&gt;
You will never miss an interesting discussion :)&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Communication]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Success_stories&amp;diff=17891</id>
		<title>Success stories</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Success_stories&amp;diff=17891"/>
		<updated>2015-10-26T16:57:57Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: /* MontanaLinux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Atlassian ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- https://design.atlassian.com/2.0/brand/logo/ --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Atlassian-logo.png|right|250px]]&lt;br /&gt;
&lt;br /&gt;
Atlassian is an Australian enterprise software company that develops products geared towards software developers and project managers. It is best known for its issue tracking application, JIRA, and its team collaboration product, Confluence. Atlassian serves over 35,000 customers globally, including 85 of the Fortune 100.&lt;br /&gt;
&lt;br /&gt;
* Atlassian Summit 2012, San Francisco - &amp;quot;[http://www.slideshare.net/GoAtlassian/inside-the-atlassian-ondemand-private-cloud Inside the Atlassian OnDemand Private Cloud]&amp;quot;&lt;br /&gt;
* Puppet Camp Tokyo 2014 - &amp;quot;[http://www.slideshare.net/PuppetLabs/1-m-pluginspuppetcamptokyo2014 Fireballs, ice bats and 1,000,000 plugins: a story of continuous delivery]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
''George Barnett, Atlassian''&lt;br /&gt;
&lt;br /&gt;
== FastVPS ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Fastvps logotype.png|right|255px]]&lt;br /&gt;
&lt;br /&gt;
Our company has been using OpenVZ to provide services for customers for nearly 9 years. We are very pleased with it, as it enables us to provide maximum computing capabilities to our customers with almost no overhead. Compared with other solutions, OpenVZ has a number of competitive advantages, including the ploop file system and live migration of containers. We are truly grateful to the OpenVZ team for continuous support and wish the project further success! -- ''Pavel Odintsov, CTO, FastVPS Eesti OU''&lt;br /&gt;
&lt;br /&gt;
* Moscow Virtualization Meetup, Moscow - &amp;quot;[http://www.youtube.com/watch?v=yu6Wih_znSM Использование контейнеризации в среде массового хостинга]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== MontanaLinux ==&lt;br /&gt;
&lt;br /&gt;
[http://www.montanalinux.org/ MontanaLinux.org] is a hub for Montana area Linux User Groups and has been using OpenVZ since 2005.  MontanaLinux.org is primarily maintained by Scott Dowdle and a handful of other Montana area LUG members.&lt;br /&gt;
&lt;br /&gt;
Scott's day job is Systems Administrator for the [http://www.cs.montana.edu/ Computer Science Department] at Montana State University Bozeman in Bozeman, Montana.  The CS Dept. has been using OpenVZ for a handful of infrastructure servers for close to 10 years.  Especially appreciated is the SAN-less live migration feature.&lt;br /&gt;
&lt;br /&gt;
OpenVZ is also used in the CSCI 351 Systems Administration class where every student is given an OpenVZ container to manage and do their assignments in.  Giving each student a system they can be &amp;quot;root&amp;quot; of provides them with valuable hands-on experience.  OpenVZ works very well in educational environments.&lt;br /&gt;
&lt;br /&gt;
== Parallels ==&lt;br /&gt;
&amp;lt;!-- http://www.parallels.com/ru/about/brand-assets/ --&amp;gt;&lt;br /&gt;
&amp;lt;!-- http://www.odin.com/hcap/logosandartwork/ --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Parallels-logo.png|right|250px]]&lt;br /&gt;
&lt;br /&gt;
We, at Parallels IT services, maintain the entire company infrastructure and actively use Linux containers for all provided services. We have chosen Virtuozzo containers for the high container density per server and for ease of administration. -- ''Pavel Gashev, System Administrator, Parallels Inc.''&lt;br /&gt;
&lt;br /&gt;
[http://parallels.com/about/ Parallels], a global leader in cross-platform solutions, makes it simple for customers to use and access the applications and files they need on any device or operating system. We help both businesses and individuals take advantage of the best technology out there, whether it’s Mac, Windows, iOS, Android, or the cloud.&lt;br /&gt;
&lt;br /&gt;
== Pixar Animation Studios ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Pixar logo.svg|right|250px]]&lt;br /&gt;
&lt;br /&gt;
[http://www.pixar.com/about Pixar Animation Studios] located in Emeryville, California. Pixar Animation Studios has created&lt;br /&gt;
acclaimed animated feature and short films for over 25 years. Pixar is also home to the RenderMan line of software products.&lt;br /&gt;
&lt;br /&gt;
== Travis CI ==&lt;br /&gt;
&amp;lt;!-- https://travis-ci.com/logo --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:TravisCI-logo.png|right|180px]]&lt;br /&gt;
&lt;br /&gt;
&amp;quot;We’re booting 120,000 containers per day on OpenVZ, it’s okay I guess.&amp;quot; -- [https://twitter.com/roidrage/status/517776484342452226 Mathias Meyer, CEO] of Travis CI&lt;br /&gt;
&lt;br /&gt;
== Yandex ==&lt;br /&gt;
&amp;lt;!-- https://company.yandex.ru/about/logotype/ --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Yandex eng logo.png|right|140px]]&lt;br /&gt;
&lt;br /&gt;
[https://company.yandex.com/ Yandex] is one of the largest internet companies in Europe, operating Russia’s most popular search engine and its most visited website.&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;[http://www.slideshare.net/profyclub/ss-5815331 Танки в Лунапарке: нагрузочное тестирование в Яндексе]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== WarGaming.Net ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Wargaming.net logo.png|right|180px]]&lt;br /&gt;
&lt;br /&gt;
Wargaming Public Co Ltd is an international game developer and publisher. Primarily focused on TBS and RTS games, Wargaming switched to developing free-to-play online action games in 2009, and has since become one of the leaders in the market. The company's critical and commercial success came after the launch of its first online project, the military-themed team-based game World of Tanks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Partners]]&lt;br /&gt;
* [[Use cases]]&lt;br /&gt;
* [[Testimonials]]&lt;br /&gt;
* [[Hosting providers]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Success_stories&amp;diff=17890</id>
		<title>Success stories</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Success_stories&amp;diff=17890"/>
		<updated>2015-10-26T16:07:10Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Added sentence about hands-on experience for students&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Atlassian ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- https://design.atlassian.com/2.0/brand/logo/ --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Atlassian-logo.png|right|250px]]&lt;br /&gt;
&lt;br /&gt;
Atlassian is an Australian enterprise software company that develops products geared towards software developers and project managers. It is best known for its issue tracking application, JIRA, and its team collaboration product, Confluence. Atlassian serves over 35,000 customers globally, including 85 of the Fortune 100.&lt;br /&gt;
&lt;br /&gt;
* Atlassian Summit 2012, San Francisco - &amp;quot;[http://www.slideshare.net/GoAtlassian/inside-the-atlassian-ondemand-private-cloud Inside the Atlassian OnDemand Private Cloud]&amp;quot;&lt;br /&gt;
* Puppet Camp Tokyo 2014 - &amp;quot;[http://www.slideshare.net/PuppetLabs/1-m-pluginspuppetcamptokyo2014 Fireballs, ice bats and 1,000,000 plugins: a story of continuous delivery]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
''George Barnett, Atlassian''&lt;br /&gt;
&lt;br /&gt;
== FastVPS ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Fastvps logotype.png|right|255px]]&lt;br /&gt;
&lt;br /&gt;
Our company has been using OpenVZ to provide services for customers for nearly 9 years. We are very pleased with it, as it enables us to provide maximum computing capabilities to our customers with almost no overhead. Compared with other solutions, OpenVZ has a number of competitive advantages, including the ploop file system and live migration of containers. We are truly grateful to the OpenVZ team for continuous support and wish the project further success! -- ''Pavel Odintsov, CTO, FastVPS Eesti OU''&lt;br /&gt;
&lt;br /&gt;
* Moscow Virtualization Meetup, Moscow - &amp;quot;[http://www.youtube.com/watch?v=yu6Wih_znSM Использование контейнеризации в среде массового хостинга]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== MontanaLinux ==&lt;br /&gt;
&lt;br /&gt;
[http://www.montanalinux.org/ MontanaLinux.org] is a hub for Montana area Linux User Groups and has been using OpenVZ since 2005.  MontanaLinux.org is primarily maintained by Scott Dowdle and a handful of other Montana area LUG members.&lt;br /&gt;
&lt;br /&gt;
Scott's day job is Systems Administrator for the [http://www.cs.montana.edu/ Computer Science Department] at Montana State University Bozeman in Bozeman, Montana.  The CS Dept. has been using OpenVZ for a handful of infrastructure servers for close to 10 years.  OpenVZ is also used in the CSCI 351 Systems Administration class where every student is given an OpenVZ container to manage and do their assignments in.  Giving each student a system they can be &amp;quot;root&amp;quot; of provides them with valuable hands-on experience.  OpenVZ works very well in educational environments.&lt;br /&gt;
&lt;br /&gt;
== Parallels ==&lt;br /&gt;
&amp;lt;!-- http://www.parallels.com/ru/about/brand-assets/ --&amp;gt;&lt;br /&gt;
&amp;lt;!-- http://www.odin.com/hcap/logosandartwork/ --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Parallels-logo.png|right|250px]]&lt;br /&gt;
&lt;br /&gt;
We, at Parallels IT services, maintain the entire company infrastructure and actively use Linux containers for all provided services. We have chosen Virtuozzo containers for the high container density per server and for ease of administration. -- ''Pavel Gashev, System Administrator, Parallels Inc.''&lt;br /&gt;
&lt;br /&gt;
[http://parallels.com/about/ Parallels], a global leader in cross-platform solutions, makes it simple for customers to use and access the applications and files they need on any device or operating system. We help both businesses and individuals take advantage of the best technology out there, whether it’s Mac, Windows, iOS, Android, or the cloud.&lt;br /&gt;
&lt;br /&gt;
== Pixar Animation Studios ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Pixar logo.svg|right|250px]]&lt;br /&gt;
&lt;br /&gt;
[http://www.pixar.com/about Pixar Animation Studios] located in Emeryville, California. Pixar Animation Studios has created&lt;br /&gt;
acclaimed animated feature and short films for over 25 years. Pixar is also home to the RenderMan line of software products.&lt;br /&gt;
&lt;br /&gt;
== Travis CI ==&lt;br /&gt;
&amp;lt;!-- https://travis-ci.com/logo --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:TravisCI-logo.png|right|180px]]&lt;br /&gt;
&lt;br /&gt;
&amp;quot;We’re booting 120,000 containers per day on OpenVZ, it’s okay I guess.&amp;quot; -- [https://twitter.com/roidrage/status/517776484342452226 Mathias Meyer, CEO] of Travis CI&lt;br /&gt;
&lt;br /&gt;
== Yandex ==&lt;br /&gt;
&amp;lt;!-- https://company.yandex.ru/about/logotype/ --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Yandex eng logo.png|right|140px]]&lt;br /&gt;
&lt;br /&gt;
[https://company.yandex.com/ Yandex] is one of the largest internet companies in Europe, operating Russia’s most popular search engine and its most visited website.&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;[http://www.slideshare.net/profyclub/ss-5815331 Танки в Лунапарке: нагрузочное тестирование в Яндексе]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== WarGaming.Net ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Wargaming.net logo.png|right|180px]]&lt;br /&gt;
&lt;br /&gt;
Wargaming Public Co Ltd is an international game developer and publisher. Primarily focused on TBS and RTS games, Wargaming switched to developing free-to-play online action games in 2009, and has since become one of the leaders in the market. The company's critical and commercial success came after the launch of its first online project, the military-themed team-based game World of Tanks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Partners]]&lt;br /&gt;
* [[Use cases]]&lt;br /&gt;
* [[Testimonials]]&lt;br /&gt;
* [[Hosting providers]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Success_stories&amp;diff=17889</id>
		<title>Success stories</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Success_stories&amp;diff=17889"/>
		<updated>2015-10-26T16:03:18Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Added MontanaLinux&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Atlassian ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- https://design.atlassian.com/2.0/brand/logo/ --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Atlassian-logo.png|right|250px]]&lt;br /&gt;
&lt;br /&gt;
Atlassian is an Australian enterprise software company that develops products geared towards software developers and project managers. It is best known for its issue tracking application, JIRA, and its team collaboration product, Confluence. Atlassian serves over 35,000 customers globally, including 85 of the Fortune 100.&lt;br /&gt;
&lt;br /&gt;
* Atlassian Summit 2012, San Francisco - &amp;quot;[http://www.slideshare.net/GoAtlassian/inside-the-atlassian-ondemand-private-cloud Inside the Atlassian OnDemand Private Cloud]&amp;quot;&lt;br /&gt;
* Puppet Camp Tokyo 2014 - &amp;quot;[http://www.slideshare.net/PuppetLabs/1-m-pluginspuppetcamptokyo2014 Fireballs, ice bats and 1,000,000 plugins: a story of continuous delivery]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
''George Barnett, Atlassian''&lt;br /&gt;
&lt;br /&gt;
== FastVPS ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Fastvps logotype.png|right|255px]]&lt;br /&gt;
&lt;br /&gt;
Our company has been using OpenVZ to provide services for customers for nearly 9 years. We are very pleased with it, as it enables us to provide maximum computing capabilities to our customers with almost no overhead. Compared with other solutions, OpenVZ has a number of competitive advantages, including the ploop file system and live migration of containers. We are truly grateful to the OpenVZ team for continuous support and wish the project further success! -- ''Pavel Odintsov, CTO, FastVPS Eesti OU''&lt;br /&gt;
&lt;br /&gt;
* Moscow Virtualization Meetup, Moscow - &amp;quot;[http://www.youtube.com/watch?v=yu6Wih_znSM Использование контейнеризации в среде массового хостинга]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== MontanaLinux ==&lt;br /&gt;
&lt;br /&gt;
[http://www.montanalinux.org/ MontanaLinux.org] is a hub for Montana area Linux User Groups and has been using OpenVZ since 2005.  MontanaLinux.org is primarily maintained by Scott Dowdle and a handful of other Montana area LUG members.&lt;br /&gt;
&lt;br /&gt;
Scott's day job is Systems Administrator for the [http://www.cs.montana.edu/ Computer Science Department] at Montana State University Bozeman in Bozeman, Montana.  The CS Dept. has been using OpenVZ for a handful of infrastructure servers for close to 10 years.  OpenVZ is also used in the CSCI 351 Systems Administration class where every student is given an OpenVZ container to manage and do their assignments in.  OpenVZ works very well in educational environments.&lt;br /&gt;
&lt;br /&gt;
== Parallels ==&lt;br /&gt;
&amp;lt;!-- http://www.parallels.com/ru/about/brand-assets/ --&amp;gt;&lt;br /&gt;
&amp;lt;!-- http://www.odin.com/hcap/logosandartwork/ --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Parallels-logo.png|right|250px]]&lt;br /&gt;
&lt;br /&gt;
We, at Parallels IT services, maintain the entire company infrastructure and actively use Linux containers for all provided services. We have chosen Virtuozzo containers for the high container density per server and for ease of administration. -- ''Pavel Gashev, System Administrator, Parallels Inc.''&lt;br /&gt;
&lt;br /&gt;
[http://parallels.com/about/ Parallels], a global leader in cross-platform solutions, makes it simple for customers to use and access the applications and files they need on any device or operating system. We help both businesses and individuals take advantage of the best technology out there, whether it’s Mac, Windows, iOS, Android, or the cloud.&lt;br /&gt;
&lt;br /&gt;
== Pixar Animation Studios ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Pixar logo.svg|right|250px]]&lt;br /&gt;
&lt;br /&gt;
[http://www.pixar.com/about Pixar Animation Studios] located in Emeryville, California. Pixar Animation Studios has created&lt;br /&gt;
acclaimed animated feature and short films for over 25 years. Pixar is also home to the RenderMan line of software products.&lt;br /&gt;
&lt;br /&gt;
== Travis CI ==&lt;br /&gt;
&amp;lt;!-- https://travis-ci.com/logo --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:TravisCI-logo.png|right|180px]]&lt;br /&gt;
&lt;br /&gt;
&amp;quot;We’re booting 120,000 containers per day on OpenVZ, it’s okay I guess.&amp;quot; -- [https://twitter.com/roidrage/status/517776484342452226 Mathias Meyer, CEO] of Travis CI&lt;br /&gt;
&lt;br /&gt;
== Yandex ==&lt;br /&gt;
&amp;lt;!-- https://company.yandex.ru/about/logotype/ --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Yandex eng logo.png|right|140px]]&lt;br /&gt;
&lt;br /&gt;
[https://company.yandex.com/ Yandex] is one of the largest internet companies in Europe, operating Russia’s most popular search engine and its most visited website.&lt;br /&gt;
&lt;br /&gt;
* &amp;quot;[http://www.slideshare.net/profyclub/ss-5815331 Танки в Лунапарке: нагрузочное тестирование в Яндексе]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== WarGaming.Net ==&lt;br /&gt;
&lt;br /&gt;
[[Image:Wargaming.net logo.png|right|180px]]&lt;br /&gt;
&lt;br /&gt;
Wargaming Public Co Ltd is an international game developer and publisher. Primarily focused on TBS and RTS games, Wargaming switched to developing free-to-play online action games in 2009, and has since become one of the leaders in the market. The company's critical and commercial success came after the launch of its first online project, the military-themed team-based game World of Tanks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Partners]]&lt;br /&gt;
* [[Use cases]]&lt;br /&gt;
* [[Testimonials]]&lt;br /&gt;
* [[Hosting providers]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=QA_Team_hardware&amp;diff=15965</id>
		<title>QA Team hardware</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=QA_Team_hardware&amp;diff=15965"/>
		<updated>2015-03-12T15:58:10Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Changed from User: to just name&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Why? ==&lt;br /&gt;
&lt;br /&gt;
When developers receive testing results, look at bug reports, or discuss technical issues, they may ask you to submit the detailed information about configuration of your computer. This report includes things such as the type of CPU, the kind of memory, and other important hardware specifications. Adding your 'quick link' from here reduces the time which would be wasted if they need ask you to post up additional information, then you getting it and posting it up. It is much faster if you include your link in the bug report/discussion at the beginning. If they do not need it, they need not click on the link.&lt;br /&gt;
&lt;br /&gt;
== How to add new configuration? ==&lt;br /&gt;
&lt;br /&gt;
* Install this application:&lt;br /&gt;
&lt;br /&gt;
  rpm -Uvh http://mirror.symnds.com/distributions/gf/el/6/gf/x86_64/gf-release-6-6.gf.el6.noarch.rpm&lt;br /&gt;
  yum install -y hwinfo.x86_64&lt;br /&gt;
&lt;br /&gt;
* Run the command:&lt;br /&gt;
&lt;br /&gt;
  hwinfo &amp;gt; openvz_report.txt&lt;br /&gt;
&lt;br /&gt;
* Add the output to http://pastebin.org service or create a [https://gist.github.com gist] and add a link to it at the '''top''' of the below table. This [https://raw.githubusercontent.com/chilicuil/learn/master/python/pastebin Python script] may be helpful.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!Vendor&lt;br /&gt;
!Model&lt;br /&gt;
!Type&lt;br /&gt;
!Full specification&lt;br /&gt;
!Person&lt;br /&gt;
|-&lt;br /&gt;
|Supermicro&lt;br /&gt;
|na&lt;br /&gt;
|Server&lt;br /&gt;
|[https://gist.github.com/ligurio/7654ce5e3714f604c32e Specification]&lt;br /&gt;
|[[User:Sergey Bronnikov]]&lt;br /&gt;
|-&lt;br /&gt;
|Intel&lt;br /&gt;
|na&lt;br /&gt;
|Desktop&lt;br /&gt;
|na&lt;br /&gt;
|[[User:Sergey Bronnikov]]&lt;br /&gt;
|-&lt;br /&gt;
|Depo&lt;br /&gt;
|na&lt;br /&gt;
|Desktop&lt;br /&gt;
|na&lt;br /&gt;
|[[User:Sergey Bronnikov]]&lt;br /&gt;
|-&lt;br /&gt;
|Dell&lt;br /&gt;
|PowerEdge R510&lt;br /&gt;
|Rackmount Server&lt;br /&gt;
|[http://www.montanalinux.org/files/specs-openvz3-cs-montana-edu.txt dmidecode output]&lt;br /&gt;
|Scott Dowdle&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: QA]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=QA_Team_hardware&amp;diff=15964</id>
		<title>QA Team hardware</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=QA_Team_hardware&amp;diff=15964"/>
		<updated>2015-03-12T15:57:16Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Why? ==&lt;br /&gt;
&lt;br /&gt;
When developers receive testing results, look at bug reports, or discuss technical issues, they may ask you to submit the detailed information about configuration of your computer. This report includes things such as the type of CPU, the kind of memory, and other important hardware specifications. Adding your 'quick link' from here reduces the time which would be wasted if they need ask you to post up additional information, then you getting it and posting it up. It is much faster if you include your link in the bug report/discussion at the beginning. If they do not need it, they need not click on the link.&lt;br /&gt;
&lt;br /&gt;
== How to add new configuration? ==&lt;br /&gt;
&lt;br /&gt;
* Install this application:&lt;br /&gt;
&lt;br /&gt;
  rpm -Uvh http://mirror.symnds.com/distributions/gf/el/6/gf/x86_64/gf-release-6-6.gf.el6.noarch.rpm&lt;br /&gt;
  yum install -y hwinfo.x86_64&lt;br /&gt;
&lt;br /&gt;
* Run the command:&lt;br /&gt;
&lt;br /&gt;
  hwinfo &amp;gt; openvz_report.txt&lt;br /&gt;
&lt;br /&gt;
* Add the output to http://pastebin.org service or create a [https://gist.github.com gist] and add a link to it at the '''top''' of the below table. This [https://raw.githubusercontent.com/chilicuil/learn/master/python/pastebin Python script] may be helpful.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!Vendor&lt;br /&gt;
!Model&lt;br /&gt;
!Type&lt;br /&gt;
!Full specification&lt;br /&gt;
!Person&lt;br /&gt;
|-&lt;br /&gt;
|Supermicro&lt;br /&gt;
|na&lt;br /&gt;
|Server&lt;br /&gt;
|[https://gist.github.com/ligurio/7654ce5e3714f604c32e Specification]&lt;br /&gt;
|[[User:Sergey Bronnikov]]&lt;br /&gt;
|-&lt;br /&gt;
|Intel&lt;br /&gt;
|na&lt;br /&gt;
|Desktop&lt;br /&gt;
|na&lt;br /&gt;
|[[User:Sergey Bronnikov]]&lt;br /&gt;
|-&lt;br /&gt;
|Depo&lt;br /&gt;
|na&lt;br /&gt;
|Desktop&lt;br /&gt;
|na&lt;br /&gt;
|[[User:Sergey Bronnikov]]&lt;br /&gt;
|-&lt;br /&gt;
|Dell&lt;br /&gt;
|PowerEdge R510&lt;br /&gt;
|Rackmount Server&lt;br /&gt;
|[http://www.montanalinux.org/files/specs-openvz3-cs-montana-edu.txt dmidecode output]&lt;br /&gt;
|[[User:dowdle]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: QA]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=QA_Team_hardware&amp;diff=15963</id>
		<title>QA Team hardware</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=QA_Team_hardware&amp;diff=15963"/>
		<updated>2015-03-12T15:56:05Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Added my system&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Why? ==&lt;br /&gt;
&lt;br /&gt;
When developers receive testing results, look at bug reports, or discuss technical issues, they may ask you to submit the detailed information about configuration of your computer. This report includes things such as the type of CPU, the kind of memory, and other important hardware specifications. Adding your 'quick link' from here reduces the time which would be wasted if they need ask you to post up additional information, then you getting it and posting it up. It is much faster if you include your link in the bug report/discussion at the beginning. If they do not need it, they need not click on the link.&lt;br /&gt;
&lt;br /&gt;
== How to add new configuration? ==&lt;br /&gt;
&lt;br /&gt;
* Install this application:&lt;br /&gt;
&lt;br /&gt;
  rpm -Uvh http://mirror.symnds.com/distributions/gf/el/6/gf/x86_64/gf-release-6-6.gf.el6.noarch.rpm&lt;br /&gt;
  yum install -y hwinfo.x86_64&lt;br /&gt;
&lt;br /&gt;
* Run the command:&lt;br /&gt;
&lt;br /&gt;
  hwinfo &amp;gt; openvz_report.txt&lt;br /&gt;
&lt;br /&gt;
* Add the output to http://pastebin.org service or create a [https://gist.github.com gist] and add a link to it at the '''top''' of the below table. This [https://raw.githubusercontent.com/chilicuil/learn/master/python/pastebin Python script] may be helpful.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!Vendor&lt;br /&gt;
!Model&lt;br /&gt;
!Type&lt;br /&gt;
!Full specification&lt;br /&gt;
!Person&lt;br /&gt;
|-&lt;br /&gt;
|Supermicro&lt;br /&gt;
|na&lt;br /&gt;
|Server&lt;br /&gt;
|[https://gist.github.com/ligurio/7654ce5e3714f604c32e Specification]&lt;br /&gt;
|[[User:Sergey Bronnikov]]&lt;br /&gt;
|-&lt;br /&gt;
|Intel&lt;br /&gt;
|na&lt;br /&gt;
|Desktop&lt;br /&gt;
|na&lt;br /&gt;
|[[User:Sergey Bronnikov]]&lt;br /&gt;
|-&lt;br /&gt;
|Depo&lt;br /&gt;
|na&lt;br /&gt;
|Desktop&lt;br /&gt;
|na&lt;br /&gt;
|[[User:Sergey Bronnikov]]&lt;br /&gt;
|-&lt;br /&gt;
|Dell&lt;br /&gt;
|PowerEdge R510&lt;br /&gt;
|Rackmount Server&lt;br /&gt;
|[http://www.montanalinux.org/files/specs-openvz3-cs-montana-edu.txt dmidecode output]&lt;br /&gt;
|[[User:dowdle]]&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: QA]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=QA_Team_members&amp;diff=15961</id>
		<title>QA Team members</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=QA_Team_members&amp;diff=15961"/>
		<updated>2015-03-12T15:34:00Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Corrected my URL&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please add configuration of your hardware to [[QA_Team_hardware|QA Team hardware]] once you have added yourself to the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!TZ&lt;br /&gt;
!Real name&lt;br /&gt;
!IRC name&lt;br /&gt;
!Involvement&lt;br /&gt;
!Native languages&lt;br /&gt;
!Website&lt;br /&gt;
|-&lt;br /&gt;
|UTC+4&lt;br /&gt;
|Sergey Bronnikov&lt;br /&gt;
|sergeyb&lt;br /&gt;
|vzkernel regression, new features testing&lt;br /&gt;
|Russian, English&lt;br /&gt;
![http://bronevichok.ru bronevichok.ru]&lt;br /&gt;
|-&lt;br /&gt;
|na&lt;br /&gt;
|Pavel Odintsov&lt;br /&gt;
|na&lt;br /&gt;
|new features testing&lt;br /&gt;
|Russian, English&lt;br /&gt;
![http://fastvps.ru fastvps.ru]&lt;br /&gt;
|-&lt;br /&gt;
|MDT&lt;br /&gt;
|Scott Dowdle&lt;br /&gt;
|dowdle&lt;br /&gt;
|vzkernel testing&lt;br /&gt;
|English&lt;br /&gt;
![http://www.montanalinux.org/ www.montanalinux.org]&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: QA]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=QA_Team_members&amp;diff=15960</id>
		<title>QA Team members</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=QA_Team_members&amp;diff=15960"/>
		<updated>2015-03-12T15:33:23Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Added myself to the list&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please add configuration of your hardware to [[QA_Team_hardware|QA Team hardware]] once you have added yourself to the table below.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!TZ&lt;br /&gt;
!Real name&lt;br /&gt;
!IRC name&lt;br /&gt;
!Involvement&lt;br /&gt;
!Native languages&lt;br /&gt;
!Website&lt;br /&gt;
|-&lt;br /&gt;
|UTC+4&lt;br /&gt;
|Sergey Bronnikov&lt;br /&gt;
|sergeyb&lt;br /&gt;
|vzkernel regression, new features testing&lt;br /&gt;
|Russian, English&lt;br /&gt;
![http://bronevichok.ru bronevichok.ru]&lt;br /&gt;
|-&lt;br /&gt;
|na&lt;br /&gt;
|Pavel Odintsov&lt;br /&gt;
|na&lt;br /&gt;
|new features testing&lt;br /&gt;
|Russian, English&lt;br /&gt;
![http://fastvps.ru fastvps.ru]&lt;br /&gt;
|-&lt;br /&gt;
|MDT&lt;br /&gt;
|Scott Dowdle&lt;br /&gt;
|dowdle&lt;br /&gt;
|vzkernel testing&lt;br /&gt;
|English&lt;br /&gt;
![http://www.montanalinux.org/]&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: QA]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Ploop/Backup&amp;diff=15577</id>
		<title>Ploop/Backup</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Ploop/Backup&amp;diff=15577"/>
		<updated>2014-10-01T18:00:23Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: /* File-based backup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Ploop-backup.png|300px|right|thumb|How backup via snapshot is done]]&lt;br /&gt;
This article explains how to do consistent backups for [[ploop]] containers, using ploop snapshot feature.&lt;br /&gt;
&lt;br /&gt;
== Backup types ==&lt;br /&gt;
There are two ways of doing backups, both have their pros and cons.&lt;br /&gt;
&lt;br /&gt;
* When doing an '''image backup''', one copies ploop image files directly. There can be only one big file, or maybe a few relatively big files. Copying a few big files (rather than a lot of small files) is faster because there's not too much metadata (file info) to be copied). Also, filesystem properties are fully preserving (since images containing the filesystem are copied).&lt;br /&gt;
&lt;br /&gt;
* When doing a '''file backup''', one copies individual container' files. This is more suitable if you want selective backups (such as only some directories/files).&lt;br /&gt;
&lt;br /&gt;
The following table summarizes pros and cons of both approaches.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Characteristic&lt;br /&gt;
! Image&lt;br /&gt;
! File&lt;br /&gt;
|-&lt;br /&gt;
|| Incremental backups&lt;br /&gt;
| {{Yes}} || {{Yes-No}}{{H:title|Requires tools such as rsnapshot|&amp;lt;sup&amp;gt;*&amp;lt;/sup&amp;gt;}}&lt;br /&gt;
|-&lt;br /&gt;
|| Selective backups&lt;br /&gt;
| {{No}} || {{Yes}}&lt;br /&gt;
|-&lt;br /&gt;
|| Faster full backup and restore&lt;br /&gt;
| {{Yes}} || {{No}}&lt;br /&gt;
|-&lt;br /&gt;
| Preserve filesystem properties&lt;br /&gt;
| {{Yes}} || {{No}}&lt;br /&gt;
|-&lt;br /&gt;
|| Compatible with pre-ploop backups&lt;br /&gt;
| {{No}} || {{Yes}}&lt;br /&gt;
|-&lt;br /&gt;
|| Restore individual files&lt;br /&gt;
| {{Yes}} || {{Yes}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Image-based backup ==&lt;br /&gt;
&lt;br /&gt;
Assuming you have a running container identified by &amp;lt;code&amp;gt;$CTID&amp;lt;/code&amp;gt;. The following needs to be done:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Known snapshot ID&lt;br /&gt;
ID=$(uuidgen)&lt;br /&gt;
VE_PRIVATE=$(vzlist -H -o private $CTID)&lt;br /&gt;
&lt;br /&gt;
# Take a snapshot without suspending a CT and saving its config&lt;br /&gt;
vzctl snapshot $CTID --id $ID --skip-suspend --skip-config&lt;br /&gt;
&lt;br /&gt;
# Perform a backup using your favorite backup tool&lt;br /&gt;
# (cp is just an example)&lt;br /&gt;
cp $VE_PRIVATE/root.hdd/* /backup/destination&lt;br /&gt;
&lt;br /&gt;
# Delete (merge) the snapshot&lt;br /&gt;
vzctl snapshot-delete $CTID --id $ID&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following script implements the commands above and allows - when stored as &amp;lt;code&amp;gt;vzbackup&amp;lt;/code&amp;gt; - to backup your container by executing the script in the following way:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;./vzbackup 101 /backup/destination/&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script removes older backups and keeps only the latest four backups. You can change the number of backups kept by changing the four in &amp;lt;code&amp;gt;head -n-4&amp;lt;/code&amp;gt; to the number of backups you would like to keep.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
if [ -z $1 -o -z $2 ]&lt;br /&gt;
then&lt;br /&gt;
	echo &amp;quot;Usage: vzbackup CTID BACKUP-PATH&amp;quot;&lt;br /&gt;
	exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
CTID=$1&lt;br /&gt;
FOLDER=$2&lt;br /&gt;
BACKUPPATH=$FOLDER/$CTID-$( date +%F_%H_%M )&lt;br /&gt;
&lt;br /&gt;
#create BACKUP-PATH&lt;br /&gt;
mkdir -p $BACKUPPATH&lt;br /&gt;
&lt;br /&gt;
# Known snapshot ID&lt;br /&gt;
ID=$(uuidgen)&lt;br /&gt;
VE_PRIVATE=$(vzlist -H -o private $CTID)&lt;br /&gt;
 &lt;br /&gt;
# Take a snapshot without suspending a CT and saving its config&lt;br /&gt;
vzctl snapshot $CTID --id $ID --skip-suspend --skip-config&lt;br /&gt;
 &lt;br /&gt;
# Perform a backup using your favorite backup tool&lt;br /&gt;
# (cp is just an example)&lt;br /&gt;
cp $VE_PRIVATE/root.hdd/* $BACKUPPATH/&lt;br /&gt;
 &lt;br /&gt;
# Delete (merge) the snapshot&lt;br /&gt;
vzctl snapshot-delete $CTID --id $ID&lt;br /&gt;
&lt;br /&gt;
# remove old backups&lt;br /&gt;
rm -rf $( find $FOLDER -type d -name &amp;quot;$CTID*&amp;quot; -exec ls -d1rt &amp;quot;{}&amp;quot; + | head -n-4  )&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;BACKUP FINISHED.&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== File-based backup ==&lt;br /&gt;
&lt;br /&gt;
Assuming you have a running container identified by &amp;lt;code&amp;gt;$CTID&amp;lt;/code&amp;gt;. The following needs to be done:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Known snapshot ID&lt;br /&gt;
ID=$(uuidgen)&lt;br /&gt;
&lt;br /&gt;
# Directory used to mount a snapshot&lt;br /&gt;
MNTDIR=./mnt&lt;br /&gt;
mkdir $MNTDIR&lt;br /&gt;
&lt;br /&gt;
# Take a snapshot without suspending a CT and saving its config&lt;br /&gt;
vzctl snapshot $CTID --id $ID --skip-suspend --skip-config&lt;br /&gt;
&lt;br /&gt;
# Mount the snapshot taken&lt;br /&gt;
vzctl snapshot-mount $CTID --id $ID --target $MNTDIR&lt;br /&gt;
&lt;br /&gt;
# Perform a backup using your favorite backup tool&lt;br /&gt;
# (tar is just an example)&lt;br /&gt;
tar cf backup.tar $MNTDIR&lt;br /&gt;
&lt;br /&gt;
# tar with compression examples, see man page of tar for more options&lt;br /&gt;
# tar cfJ backup.tar.xz $MNTDIR&lt;br /&gt;
# tar cfz backup.tar.gz $MNTDIR&lt;br /&gt;
&lt;br /&gt;
# Unmount the snapshot&lt;br /&gt;
vzctl snapshot-umount $CTID --id $ID&lt;br /&gt;
&lt;br /&gt;
# Delete (merge) the snapshot&lt;br /&gt;
vzctl snapshot-delete $CTID --id $ID&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Ploop]]&lt;br /&gt;
* [[Man/vzctl.8#Snapshotting|vzctl(8), section Snapshotting]].&lt;br /&gt;
&lt;br /&gt;
[[Category: Storage]]&lt;br /&gt;
[[Category: HOWTO]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=NX_inside_VE&amp;diff=14938</id>
		<title>NX inside VE</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=NX_inside_VE&amp;diff=14938"/>
		<updated>2014-01-02T22:19:13Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You can run full graphical remote desktop inside container using [http://en.wikipedia.org/wiki/NX_technology NX technology]. This is handy for when you work from home and you wish to run a web browser on your work's internal network to access local resources. You can use NX client to connect to remote NX server.&lt;br /&gt;
&lt;br /&gt;
[http://www.x2go.org/ x2go] is a related project that uses a fork of the NX3 GPL'ed libraries and works fairly well and doesn't have the limitations that the free (gratis) version of NX from NoMachine has.  x2goserver and x2goclient packages are available as stock packages in several distros including Fedora 19 and 20, as well as being available for RHEL6/clones via the EPEL repository.  If you can't find x2go packages in your distro's stock repository, check the x2go website for packages.  x2go is actually easier to setup.  Just install the desired GUI desktop inside of your container, install x2goserver, enable the x2gocleansessions service, make sure sshd is enabled... and connect as a user account over ssh via the x2goclient from the desired remote machine making sure to select the appropriate settings in the client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora =&lt;br /&gt;
&lt;br /&gt;
[[File:NX server on Fedora 12.png|thumb|300px|Connecting remotely with NX Client to Fedora inside OpenVZ container.]]&lt;br /&gt;
&lt;br /&gt;
* Use fedora template to create new container and install desktop of your choice:&lt;br /&gt;
&lt;br /&gt;
GNOME:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;GNOME Desktop Environment&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
KDE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;KDE (K Desktop Environment)&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
XFce:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;yum groupinstall &amp;quot;XFCE&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* You may need to install additional package audiofile:&lt;br /&gt;
&amp;lt;pre&amp;gt;yum install audiofile&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Download installation RPM packages for server from site [http://www.nomachine.com/select-package.php?os=linux&amp;amp;id=1 www.nomachine.com]. Choose right architecture i386 or x86_64.&lt;br /&gt;
&lt;br /&gt;
Example: &lt;br /&gt;
&amp;lt;pre&amp;gt;wget http://64.34.161.181/download/3.4.0/Linux/nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
wget http://64.34.161.181/download/3.4.0/Linux/nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
wget http://64.34.161.181/download/3.4.0/Linux/FE/nxserver-3.4.0-8.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Do simple manual installation of RPM packages.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rpm -ivh nxclient-3.4.0-5.i386.rpm&lt;br /&gt;
rpm -ivh nxnode-3.4.0-6.i386.rpm&lt;br /&gt;
rpm -ivh nxserver-3.4.0-8.i386.rpm&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Done. You can now connect from NX client to your server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Ubuntu =&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Create a new container using the gutsy template. Edit /etc/apt/sources.list and enable the &amp;quot;multiverse&amp;quot; repository.&lt;br /&gt;
Install X and XDM&lt;br /&gt;
&amp;lt;pre&amp;gt;apt-get install xorg xdm&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then add this 3rd party repo to sources.list.  (Warning: the datakeylive.com repository below is obsolete!  No ubuntu repository offers freenx at the moment)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;deb &amp;lt;s&amp;gt;http://www.datakeylive.com/ubuntu&amp;lt;/s&amp;gt; gutsy main&amp;lt;br&amp;gt;&lt;br /&gt;
deb-src &amp;lt;s&amp;gt;http://www.datakeylive.com/ubuntu&amp;lt;/s&amp;gt; gutsy main&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
Install the repo keys and update:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
wget &amp;lt;s&amp;gt;http://www.datakeylive.com/ubuntu/dists/gutsy/wjeremy.key&amp;lt;/s&amp;gt; -O - | apt-key add -&amp;lt;br&amp;gt;&lt;br /&gt;
wget &amp;lt;s&amp;gt;http://www.datakeylive.com/ubuntu/dists/gutsy/alivesoftware.key&amp;lt;/s&amp;gt; -O - | apt-key add -&amp;lt;br&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
Install FreeNX (*)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install expect openssh-server tcl8.4 libxcomp2 libxcompext2 libxcompshad nxlibs nxagent nxproxy nxclient freenx openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For Ubuntu 8.04 :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install expect openssh-server tcl8.4 libxcomp3 libxcompext3 libxcompshad nxlibs nxagent nxproxy nxclient freenx-server openssl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally install XFCE&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install xfce4&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Configuring X ===&lt;br /&gt;
In /etc/X11/xdm/xdm-config, comment out the line where it says '''DisplayManager.requestPort: 0'''&lt;br /&gt;
&lt;br /&gt;
In /etc/X11/xdm/Xservers, comment out the line ''':0 local /usr/bin/X :0 vt7''' (this starts a local X server, which will fail)&lt;br /&gt;
&lt;br /&gt;
In /etc/X11/xdm/Xaccess, uncomment the line with '''* #any host can get a login window''' (Please keep in mind the security implications by the above line. Read the comments found in the file and set it appropriately)&lt;br /&gt;
&lt;br /&gt;
=== Configure NX Server ===&lt;br /&gt;
&lt;br /&gt;
Edit /etc/X11/xorg.conf. Ensure that the files section looks similar to this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;Files&amp;quot;&lt;br /&gt;
&lt;br /&gt;
        # path to defoma fonts&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/misc&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/100dpi/:unscaled&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/75dpi/:unscaled&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/Type1&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/100dpi&amp;quot;&lt;br /&gt;
        FontPath     &amp;quot;/usr/share/fonts/X11/75dpi&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now create a local user account:&lt;br /&gt;
&amp;lt;pre&amp;gt;useradd -m &amp;lt;username&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now add this user to nxserver:&lt;br /&gt;
&amp;lt;pre&amp;gt;nxserver --adduser &amp;lt;username&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Configure NX client ===&lt;br /&gt;
&lt;br /&gt;
Setup the Host/Port. &lt;br /&gt;
In the desktop section select Unix and Custom. In Settings, select &amp;quot;Run the default X client script on server&amp;quot; and select &amp;quot;New virtual Desktop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now try to connect. You should get the XFCE desktop.&lt;br /&gt;
&lt;br /&gt;
Thanks to dantalizing for the feedback.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
(*)&lt;br /&gt;
If you get any errors like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
dpkg: error processing /var/cache/apt/archives/libxcomp3_3.1.0-6-2_i386.deb (--unpack):&lt;br /&gt;
trying to overwrite `/usr/lib/libXcomp.so.3.1.0', which is also in package libxcomp2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
while installing the libxcomp package, just force-install the libxcomp package:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /var/cache/apt/archives&lt;br /&gt;
# dpkg --force-all -i libxcomp3_3.1.0-6-2_i386.deb&lt;br /&gt;
# apt-get -f install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You '''can't print from VE''' to client PC easily because printing in NX is realized via samba-mount of shared client's printer and CIFS isn't virtualized yet.&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;br /&gt;
[[Category: X]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Automatically_setting_quotaugidlimit&amp;diff=13387</id>
		<title>Automatically setting quotaugidlimit</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Automatically_setting_quotaugidlimit&amp;diff=13387"/>
		<updated>2013-02-12T22:40:28Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Initial placeholder for page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Place holder for user MaddinXx to share their shell script.&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Creating_a_CentOS_6_Template&amp;diff=13060</id>
		<title>Creating a CentOS 6 Template</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Creating_a_CentOS_6_Template&amp;diff=13060"/>
		<updated>2012-10-23T20:05:52Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Created page with &amp;quot;DRAFT - still in the works  This guide requires that you already have a CentOS 6 (Having 5 might also work) - If you do not have CentOS 6 installed, do it in KVM or VirtualBox...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;DRAFT - still in the works&lt;br /&gt;
&lt;br /&gt;
This guide requires that you already have a CentOS 6 (Having 5 might also work) - If you do not have CentOS 6 installed, do it in KVM or VirtualBox or whatever you want.&lt;br /&gt;
&lt;br /&gt;
At a CentOS 6 host do:&lt;br /&gt;
&lt;br /&gt;
yum install yum-utils&lt;br /&gt;
yumdownloader centos-release.x86_64&lt;br /&gt;
&lt;br /&gt;
mkdir -p /newroot/var/lib/&lt;br /&gt;
touch /newroot/var/lib/random-seed #without it, the initscript installation script will fail&lt;br /&gt;
&lt;br /&gt;
  rpm --rebuilddb --root=/newroot&lt;br /&gt;
  rpm -i --root=/newroot --nodeps centos-release-6-3.el6.centos.9.x86_64.rpm&lt;br /&gt;
  yum --installroot=/newroot install -y openssh-clients openssh-server yum yum-utils man wget sudo tar passwd&lt;br /&gt;
  # if you want a extremely minimal installation only install yum&lt;br /&gt;
&lt;br /&gt;
  yum --installroot=/newroot clean all   # not sure if that is really needed&lt;br /&gt;
&lt;br /&gt;
  ln -s /proc/mounts /newroot/etc/mtab&lt;br /&gt;
&lt;br /&gt;
/newroot/etc/fstab should look like this:&lt;br /&gt;
  none /dev/pts devpts rw,gid=5,mode=620 0 0&lt;br /&gt;
  none /dev/shm tmpfs defaults 0 0&lt;br /&gt;
&lt;br /&gt;
  rm -f /newroot/dev/null&lt;br /&gt;
  mknod -m 600 /newroot/dev/console c 5 1&lt;br /&gt;
&lt;br /&gt;
#if you want (not sure about this. If they are there, mingettys will run. On the other hand, if you upgrade your CentOS VPS in OpenVZ they would probably be recreated)&lt;br /&gt;
&lt;br /&gt;
  rm /newroot/etc/init/start-ttys.conf /newroot/etc/init/tty.conf&lt;br /&gt;
  tar zcf /vz/template/cache/centos-6-x86_64.tar.gz .&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=VSwap&amp;diff=11769</id>
		<title>VSwap</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=VSwap&amp;diff=11769"/>
		<updated>2011-12-28T16:32:47Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Updated to reflect recent blog post by Kir that kmemsize, dcachesize, and locked pages can be set to unlimited for kernel 042stable042 and later&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;New [[Download/kernel/rhel6|RHEL6-based OpenVZ]] kernel has a new memory management model, which supersedes [[UBC|User beancounters]]. It is called '''VSwap'''.&lt;br /&gt;
&lt;br /&gt;
Now you can set two primary parameters: &amp;lt;code&amp;gt;physpages&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;swappages&amp;lt;/code&amp;gt;, while all the other beancounters become secondary.&lt;br /&gt;
&lt;br /&gt;
* '''physpages'''&lt;br /&gt;
: This parameter limits the physical memory (RAM) available to processes inside a container.&lt;br /&gt;
: The &amp;lt;code&amp;gt;barrier&amp;lt;/code&amp;gt; is ignored, and the &amp;lt;code&amp;gt;limit&amp;lt;/code&amp;gt; sets the limit.&lt;br /&gt;
: Currently the user memory and the page cache are accounted into &amp;lt;code&amp;gt;physpages&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
* '''swappages'''&lt;br /&gt;
: This parameter limits the amount of swap space which can be used for processes inside a container.&lt;br /&gt;
: The &amp;lt;code&amp;gt;barrier&amp;lt;/code&amp;gt; is ignored, and the &amp;lt;code&amp;gt;limit&amp;lt;/code&amp;gt; sets the limit.&lt;br /&gt;
&lt;br /&gt;
The sum of &amp;lt;code&amp;gt;physpages.limit&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;swappages.limit&amp;lt;/code&amp;gt; limits the maximum amount&lt;br /&gt;
of allocated memory which can be used by a container. When physpages limit&lt;br /&gt;
is reached, memory pages belonging to the container are pushed out to&lt;br /&gt;
so called virtual swap (''vswap''). The difference between normal swap&lt;br /&gt;
and vswap is that with vswap no actual disk I/O usually occurs. Instead,&lt;br /&gt;
a container is artificially slowed down, to emulate the effect of the real&lt;br /&gt;
swapping. Actual swap out occurs only if there is a global memory shortage&lt;br /&gt;
on the system.&lt;br /&gt;
&lt;br /&gt;
=== Secondary parameters ===&lt;br /&gt;
'''Even though these settings are classed as secondary, they are still important settings!'''&lt;br /&gt;
&lt;br /&gt;
In addition to &amp;lt;code&amp;gt;physpages&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;swappages&amp;lt;/code&amp;gt; being set, it is ''currently'' recommended to:&lt;br /&gt;
&lt;br /&gt;
* Set &amp;lt;code&amp;gt;kmemsize&amp;lt;/code&amp;gt; to no more than 1/2 of &amp;lt;code&amp;gt;physpages&amp;lt;/code&amp;gt;&lt;br /&gt;
* Set &amp;lt;code&amp;gt;dcachesize&amp;lt;/code&amp;gt; to no more than 1/2 of &amp;lt;code&amp;gt;kmemsize&amp;lt;/code&amp;gt;&lt;br /&gt;
* Set &amp;lt;code&amp;gt;lockedpages&amp;lt;/code&amp;gt; to no more than 1/2 of &amp;lt;code&amp;gt;physpages&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VSwap CT config samples (like [http://git.openvz.org/?p=vzctl;a=blob;f=etc/conf/ve-vswap-256m.conf-sample ve-vswap-256m.conf-sample] that come with vzctl are currently implementing these recommendations.&lt;br /&gt;
&lt;br /&gt;
{{Note|VSwap feature is still being worked on, so these recommendation might change in the future.}}&lt;br /&gt;
&lt;br /&gt;
{{Note|As of 042stab042 and later kernels, you are not required to set kmemsize, dcachesize and lockedpages resources, so you can set those to unlimited.  For more information, see Kir's blog post on the subject [http://openvz.livejournal.com/39765.html].}}&lt;br /&gt;
&lt;br /&gt;
[[Category: UBC]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Setting_up_an_iptables_firewall&amp;diff=7882</id>
		<title>Setting up an iptables firewall</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Setting_up_an_iptables_firewall&amp;diff=7882"/>
		<updated>2009-11-03T17:57:16Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Added section on Shorewall&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document consists of two parts. The first is setting up a firewall (using iptables) on the HN, which will restrict traffic to the containers. The effect would emulate, as far as the containers and their customers are concerned, an external hardware firewall controlled by the sysadmin. The second is setting up a firewall that protects the [[HN]] itself but still allows traffic to the containers, thus allowing individual containers to define their own iptables.&lt;br /&gt;
&lt;br /&gt;
While the firewalls shown here can be accomplished using iptables manually (or using Fedora core's iptables service), the methods presented here are especially modular and easy to modify. This is important when you have 20+ containers and a lot of other things to be doing...&lt;br /&gt;
&lt;br /&gt;
The scripts and pathnames given here are for Fedora Core 6, though they can probably be applied to most similar SysV-like systems with little modification.&lt;br /&gt;
&lt;br /&gt;
== A little background ==&lt;br /&gt;
&lt;br /&gt;
On our systems, we use the HN to provide privileged services which are not appropriate for access by the containers. For example, the HN acts as a backup server, runs Nagios for health monitoring, has a webserver for managing the 3ware RAID controller, etc. The containers are leased to customers, who can't entirely be trusted, especially if they get hacked. As such, our scenario is one in which the HN must be protected from all access (even from the containers) except for a few trusted hosts (e.g. my home-office).&lt;br /&gt;
&lt;br /&gt;
The exception to this is the nameserver, which we want open to the world. We use it as a caching nameserver for our containers and also to host DNS for a few customer domain.&lt;br /&gt;
&lt;br /&gt;
== An alternative from the author of Shorewall ==&lt;br /&gt;
&lt;br /&gt;
For those who might find the solution provided in this wiki article unsatisfactory (for whatever reason), the creator of Shorewall (Tom Eastep) has written a nice article explaining how to use Shorewall on an OpenVZ host node to manage the host node, containers, and more... with quite a complex setup as an example.  The article IS NOT an introduction to Shorewall for beginners, so some pre-existing knowledge and understanding of Shorewall may be required.&lt;br /&gt;
&lt;br /&gt;
Shorewall and OpenVZ by Tom Eastep - http://www.shorewall.net/OpenVZ.html&lt;br /&gt;
&lt;br /&gt;
See also this OpenVZ Forum posting - http://forum.openvz.org/index.php?t=msg&amp;amp;goto=16406&amp;amp;&lt;br /&gt;
&lt;br /&gt;
== Setting up a HN-based firewall ==&lt;br /&gt;
&lt;br /&gt;
This setup emulates (to the containers anyway) an external hardware firewall. It protects the HN from any access and then defines what services and ports are allowed/banned for individual containers. This leaves the firewall controlled by the site administrator, not be individual containers and the hackers who've gotten into them. ;)&lt;br /&gt;
&lt;br /&gt;
First off, let's disable Fedora's existing &amp;lt;code&amp;gt;iptables&amp;lt;/code&amp;gt; service:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service iptables stop&lt;br /&gt;
chkconfig iptables off&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now create the new &amp;lt;code&amp;gt;firewall&amp;lt;/code&amp;gt; service. This code should be &amp;lt;code&amp;gt;/etc/init.d/firewall&amp;lt;/code&amp;gt; and then should be chmod'd 755.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# firewall      Start iptables firewall&lt;br /&gt;
# chkconfig: 2345 08 92&lt;br /&gt;
# description:  Starts, stops and saves iptables firewall&lt;br /&gt;
# This script sets up the firewall for the INPUT chain (which is for&lt;br /&gt;
# the HN itself) and then processes the config files under&lt;br /&gt;
# /etc/firewall.d to set up additional rules in the FORWARD chain&lt;br /&gt;
# to allow access to containers' services.&lt;br /&gt;
&lt;br /&gt;
. /etc/init.d/functions&lt;br /&gt;
&lt;br /&gt;
# the IP block allocated to this server&lt;br /&gt;
SEGMENT=&amp;quot;192.168.0.0/24&amp;quot;&lt;br /&gt;
# the IP used by the hosting server itself&lt;br /&gt;
THISHOST=&amp;quot;192.168.0.1&amp;quot;&lt;br /&gt;
# services that should be allowed to the HN;&lt;br /&gt;
# services for containers are configured in /etc/firewall.d/*&lt;br /&gt;
OKPORTS=&amp;quot;53&amp;quot;&lt;br /&gt;
# hosts allowed full access through the firewall,&lt;br /&gt;
# to all containers and to this server&lt;br /&gt;
DMZS=&amp;quot;12.34.56.78 90.123.45.67&amp;quot;&lt;br /&gt;
&lt;br /&gt;
purge() {&lt;br /&gt;
  echo -n &amp;quot;Firewall: Purging and allowing all traffic&amp;quot;&lt;br /&gt;
  iptables -P OUTPUT ACCEPT&lt;br /&gt;
  iptables -P FORWARD ACCEPT&lt;br /&gt;
  iptables -P INPUT ACCEPT&lt;br /&gt;
  iptables -F&lt;br /&gt;
  success ; echo&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
setup() {&lt;br /&gt;
  echo -n &amp;quot;Firewall: Setting default policies to DROP&amp;quot;&lt;br /&gt;
  iptables -P INPUT DROP&lt;br /&gt;
  iptables -P FORWARD DROP&lt;br /&gt;
  iptables -I INPUT   -j ACCEPT -m state --state ESTABLISHED,RELATED&lt;br /&gt;
  iptables -I FORWARD -j ACCEPT -m state --state ESTABLISHED,RELATED&lt;br /&gt;
  iptables -I INPUT -j ACCEPT -i lo&lt;br /&gt;
  iptables -I FORWARD -j ACCEPT --source $SEGMENT&lt;br /&gt;
  success ; echo&lt;br /&gt;
&lt;br /&gt;
  echo &amp;quot;Firewall: Allowing access to HN&amp;quot;&lt;br /&gt;
  for port in $OKPORTS ; do&lt;br /&gt;
    echo -n &amp;quot;          port $port&amp;quot;&lt;br /&gt;
    iptables -I INPUT -j ACCEPT -s $SEGMENT -d $THISHOST --protocol tcp --destination-port $port&lt;br /&gt;
    iptables -I INPUT -j ACCEPT -s $SEGMENT -d $THISHOST --protocol udp --destination-port $port&lt;br /&gt;
    success ; echo&lt;br /&gt;
  done&lt;br /&gt;
  for ip in $DMZS ; do&lt;br /&gt;
    echo -n &amp;quot;          DMZ $ip&amp;quot;&lt;br /&gt;
    iptables -I INPUT   -i eth0 -j ACCEPT -s $ip&lt;br /&gt;
    iptables -I FORWARD -i eth0 -j ACCEPT -s $ip&lt;br /&gt;
    success ; echo&lt;br /&gt;
  done&lt;br /&gt;
&lt;br /&gt;
  CTSETUPS=`echo /etc/firewall.d/*`&lt;br /&gt;
  if [ &amp;quot;$CTSETUPS&amp;quot; != &amp;quot;/etc/firewall.d/*&amp;quot; ] ; then&lt;br /&gt;
  echo &amp;quot;Firewall: Setting up container firewalls&amp;quot;&lt;br /&gt;
  for i in $CTSETUPS ; do&lt;br /&gt;
    . $i&lt;br /&gt;
    echo -n &amp;quot;          $CTNAME CT$CTID&amp;quot;&lt;br /&gt;
    if [ -n &amp;quot;$BANNED&amp;quot; ]; then&lt;br /&gt;
      for source in $BANNED ;  do iptables -I FORWARD -j DROP --destination $CTIP --source $source ; done&lt;br /&gt;
    fi&lt;br /&gt;
    if [ -n &amp;quot;$OPENPORTS&amp;quot; ]; then&lt;br /&gt;
      for port in $OPENPORTS ; do iptables -I FORWARD -j ACCEPT --protocol tcp --destination $CTIP --destination-port $port ; done&lt;br /&gt;
      for port in $OPENPORTS ; do iptables -I FORWARD -j ACCEPT --protocol udp --destination $CTIP --destination-port $port ; done&lt;br /&gt;
    fi&lt;br /&gt;
    if [ -n &amp;quot;$DMZS&amp;quot; ]; then&lt;br /&gt;
      for source in $DMZS ; do iptables -I FORWARD -j ACCEPT --protocol tcp --destination $CTIP --source $source ; done&lt;br /&gt;
      for source in $DMZS ; do iptables -I FORWARD -j ACCEPT --protocol udp --destination $CTIP --source $source ; done&lt;br /&gt;
    fi&lt;br /&gt;
    [ $? -eq 0 ] &amp;amp;&amp;amp; success || failure&lt;br /&gt;
    echo&lt;br /&gt;
  done&lt;br /&gt;
  fi&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
  start)&lt;br /&gt;
    echo &amp;quot;Starting firewall...&amp;quot;&lt;br /&gt;
    purge&lt;br /&gt;
    setup&lt;br /&gt;
    ;;&lt;br /&gt;
  stop)&lt;br /&gt;
    echo &amp;quot;Stopping firewall...&amp;quot;&lt;br /&gt;
    purge&lt;br /&gt;
    ;;&lt;br /&gt;
  restart)&lt;br /&gt;
    $0 stop&lt;br /&gt;
    $0 start&lt;br /&gt;
    ;;&lt;br /&gt;
  status)&lt;br /&gt;
    iptables -n -L&lt;br /&gt;
    ;;&lt;br /&gt;
  *)&lt;br /&gt;
    echo &amp;quot;Usage: $0 &amp;lt;start|stop|restart|status&amp;gt;&amp;quot;&lt;br /&gt;
    ;;&lt;br /&gt;
esac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above script can be called like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service firewall start&lt;br /&gt;
service firewall stop&lt;br /&gt;
service firewall restart&lt;br /&gt;
service firewall status&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It will set up the firewall for the HN according to the parameters you specified for OKPORTS, DMZs, etc. and then it will call each file under /etc/firewall.d and process  its configuration.&lt;br /&gt;
&lt;br /&gt;
So create a file under /etc/firewall.d The exact filename isn't important, as long as it's meaningful to you, e.g. &amp;lt;code&amp;gt;ExampleCompany&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ve12&amp;lt;/code&amp;gt; and give it content like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# This file is processed by /etc/init.d/firewall&lt;br /&gt;
CTID=&amp;quot;1&amp;quot;			# the container's ID#&lt;br /&gt;
CTNAME=&amp;quot;Customer1&amp;quot;		# A human-friendly label for the container&lt;br /&gt;
CTIP=&amp;quot;192.168.1.34&amp;quot;		# the IP address for this container &lt;br /&gt;
OPENPORTS=&amp;quot;80 443&amp;quot;		# ports that should be universally opened&lt;br /&gt;
				# to the entire Internet&lt;br /&gt;
DMZS=&amp;quot;1.2.3.0/24 5.6.7.8/32&amp;quot;	# IPs and blocks that should have full access&lt;br /&gt;
				# to the container's services&lt;br /&gt;
BANNED=&amp;quot;&amp;quot;			# IPs and blocks that should be entirely&lt;br /&gt;
				# blocked from the container's services&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And there you go. Go ahead and start the firewall and check its status:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service firewall restart&lt;br /&gt;
service firewall status&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As you can see, you can now add and edit the configurations for individual containers very easily. This method proves a lot easier to manage than Fedora's iptables-config mechamism!&lt;br /&gt;
&lt;br /&gt;
=== Debian Notes ===&lt;br /&gt;
&lt;br /&gt;
The setup above works fine for Debian as well, however /etc/init.d/functions is missing. Here is a very simple version that you can use:&lt;br /&gt;
&lt;br /&gt;
  # /etc/init.d/functions&lt;br /&gt;
  &lt;br /&gt;
  success() {&lt;br /&gt;
    echo -n &amp;quot;...success&amp;quot;&lt;br /&gt;
  } &lt;br /&gt;
  failure() {&lt;br /&gt;
    echo -n &amp;quot;...failure&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
== Setting up a firewall that allows per-container configuration ==&lt;br /&gt;
&lt;br /&gt;
This setup configures iptables on the HN to disallow access to all hosts, including the containers. However, it allows all traffic into the containers so they may define their own iptables rules and therefore manage their own firewall.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iptables -P FORWARD ACCEPT&lt;br /&gt;
iptables -F FORWARD&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will remove all rules for the FORWARD chain so all packets can pass back and forth between containers and the outside world.&lt;br /&gt;
&lt;br /&gt;
If you want to use a firewall inside a container, please load these modules BEFORE starting the container:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
modprobe xt_tcpudp&lt;br /&gt;
modprobe ip_conntrack&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you do not, you will get an error like this: &amp;quot;iptables: No chain/target/match by that name&amp;quot;&lt;br /&gt;
&lt;br /&gt;
If you want to use stateful firewall rules (and you should!) you will also need to make sure that 'ipt_state' is in the 'IPTABLES' option in your vz.conf file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
IPTABLES=&amp;quot;ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Also make sure the 'xt_state' module is loaded on the host:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
modprobe xt_state&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Traffic accounting with iptables]]&lt;br /&gt;
&lt;br /&gt;
[[Category: Networking]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Traffic_accounting_through_proc&amp;diff=7032</id>
		<title>Traffic accounting through proc</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Traffic_accounting_through_proc&amp;diff=7032"/>
		<updated>2009-02-03T23:03:23Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: The installing to crontab wasn't quite right.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Traffic Accounting through /proc/net/dev&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Traffic accounting in OpenVZ can be done through data collection against&lt;br /&gt;
&amp;lt;code&amp;gt;/proc/net/dev&amp;lt;/code&amp;gt; in the individual containers on a [[HN]].&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
* OpenVZ&lt;br /&gt;
* RRDTool&lt;br /&gt;
* GNU AWK&lt;br /&gt;
&lt;br /&gt;
== Script ==&lt;br /&gt;
First create a directory to store your RRD files:&lt;br /&gt;
&lt;br /&gt;
 # mkdir /var/lib/rrd/&lt;br /&gt;
&lt;br /&gt;
Then install this script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# Script Name:  vz_direct_traffic_log&lt;br /&gt;
# Author:       &amp;quot;Brian Harrington, Alticon Inc&amp;quot; &amp;lt;bharrington@alticon.net&amp;gt;&lt;br /&gt;
# Website:      htty://www.alticon.net&lt;br /&gt;
&lt;br /&gt;
# Time to do the data collection.&lt;br /&gt;
for veid in `/usr/sbin/vzlist -o veid -H | sed 's/ //g'`; do&lt;br /&gt;
&lt;br /&gt;
               RRDFILE=&amp;quot;/var/lib/rrd/$veid.rrd&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
               if ! test -e $RRDFILE; then&lt;br /&gt;
                       echo $RRDFILE does not exist, creating.&lt;br /&gt;
                       # Place your preferred RRD Creation command here&lt;br /&gt;
               fi&lt;br /&gt;
 &lt;br /&gt;
               # Parse out the inbound/outbound traffic and assign them to the corresponding variables&lt;br /&gt;
               eval `/usr/sbin/vzctl exec $veid &amp;quot;grep venet0 /proc/net/dev&amp;quot;  |  \&lt;br /&gt;
                       awk -F: '{print $2}' | awk '{printf&amp;quot;CTIN=%-15d\nCTOUT=%-15d\n&amp;quot;, $1, $9}'`&lt;br /&gt;
 &lt;br /&gt;
               # Send the data to the corresponding RRD time with (N)now as the update time&lt;br /&gt;
               /usr/bin/rrdtool update $RRDFILE N:$CTIN:$CTOUT&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
Add this to cron to run every 5 minutes:&lt;br /&gt;
&lt;br /&gt;
 # echo &amp;quot;*/5 * * * * root /path/to/script/vz_direct_traffic_log &amp;quot; &amp;gt;&amp;gt; \&lt;br /&gt;
   /etc/crontab &amp;amp;&amp;amp; /etc/init.d/crontab restart&lt;br /&gt;
&lt;br /&gt;
To check the output of this later run:&lt;br /&gt;
&lt;br /&gt;
 # rrdtool fetch /var/lib/rrd/&amp;lt;veid&amp;gt;.rrd AVERAGE -s -3600&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Traffic accounting with iptables]]&lt;br /&gt;
&lt;br /&gt;
[[Category: Monitoring]]&lt;br /&gt;
[[Category: Networking]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Using_vzpkg_and_vzyum_on_x86_64&amp;diff=6817</id>
		<title>Using vzpkg and vzyum on x86 64</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Using_vzpkg_and_vzyum_on_x86_64&amp;diff=6817"/>
		<updated>2008-12-19T18:13:38Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Added warning about missing vzquota.x86_64&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document describes a way to install OpenVZ in a x86_64 computer, so that it can create cache templates, use vzyum and vzrpm.&lt;br /&gt;
This is intended to work in a host with Centos-4, Centos-5, Fedora Core 5, Fedora Core 6, RHEL 4 or any other RPM based based system with python 2.2, 2.3 or 2.4 version.&lt;br /&gt;
&lt;br /&gt;
Last Revision: 08:10, 3 March 2008 (EST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== THE PROBLEM ==&lt;br /&gt;
&lt;br /&gt;
There is a known problem with &amp;lt;b&amp;gt;vzpkg-2.7.0&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;vzyum-2.4.0&amp;lt;/b&amp;gt; in x86_64 computers:&lt;br /&gt;
Vzyum, vzpkgcache and vzrpm are broken in 64 bit systems, so we are unable to create new cache templates in a x86_64 computer or update each [[container]] using vzyum or vzrpm.&lt;br /&gt;
This text describes a work around and a few hacks to get it work flawless.&lt;br /&gt;
&lt;br /&gt;
{{Note| The basic idea is to change the code in such a way that vzyum and vzrpm use the real yum and rpm to do the job, and also create new x86_64 paths required by the system.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== REQUIREMENTS ==&lt;br /&gt;
&lt;br /&gt;
* - A x86_64 computer&lt;br /&gt;
* - A host with x86_64 Centos, Fedora Core or RHEL, or other Redhat based systems with python 2.2, 2.3 or 2.4 version (vzrpm is unable to run with python 2.5 version)&lt;br /&gt;
* - Yum package installed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== TESTED HOSTS ==&lt;br /&gt;
&lt;br /&gt;
* - Centos 4&lt;br /&gt;
* - Centos 5&lt;br /&gt;
* - Fedora Core 5&lt;br /&gt;
* - Fedora Core 6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== HOSTS PROBABLY WORKING (not tested) ==&lt;br /&gt;
&lt;br /&gt;
* - RHEL 4&lt;br /&gt;
* - RHEL 5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== HOSTS NOT WORKING ==&lt;br /&gt;
&lt;br /&gt;
* - Older distros with yum version less then 2.4, python version less then 2.2, rpm version less then 4.3&lt;br /&gt;
* - Fedora 7&lt;br /&gt;
* - Fedora 8&lt;br /&gt;
* - Or any other system with python 2.5 or above.&lt;br /&gt;
&lt;br /&gt;
== SIDE EFFECTS ==&lt;br /&gt;
&lt;br /&gt;
Until now there is only one &amp;lt;i&amp;gt;side effect&amp;lt;/i&amp;gt; detected in this solution:&lt;br /&gt;
* The yum cache is not common to all [[container]]s. Instead, each [[container]] has it's own yum cache in the directory &amp;lt;code&amp;gt;/var/cache/yum-cache&amp;lt;/code&amp;gt;.&lt;br /&gt;
This is a consequence from using the modified vzyum.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== INSTALL Openvz ==&lt;br /&gt;
&lt;br /&gt;
There are two ways to install it:&lt;br /&gt;
&lt;br /&gt;
* A - AUTOMATIC INSTALL (FASTEST)&lt;br /&gt;
* B - MANUAL INSTALL - STEP BY STEP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== A - AUTOMATIC INSTALL (FASTEST) ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;General considerations&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* This is a fastest way to install openvz utilities, and template utilities, ready to use in a x86_64 system.&lt;br /&gt;
* You can only use the automatic install IF YOU HAVE &amp;lt;b&amp;gt;YUM&amp;lt;/b&amp;gt; AND &amp;lt;b&amp;gt;RPM&amp;lt;/b&amp;gt; PACKAGES INSTALLED IN YOUR SYSTEM.&lt;br /&gt;
* This process uses a bash script which automates all the hard work made by hand in the manual install. It was successfully tested in several systems.&lt;br /&gt;
* If something goes wrong, or if you want to understand the way it works to install a diferent distribution, it's better to do the manual install, and try to adapt it to your needs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;u&amp;gt;Procedure&amp;lt;/u&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Read carefully the [[Quick installation]] page and install the openvz kernel, configure the bootloader, change sysctl.conf, and finally reboot your system the way it is described there.&lt;br /&gt;
* Download the file [http://linux.carreira.com.pt/ovzutils/setx86_64-0.3.tar.gz setx86_64-0.3] and then untar and run the script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tar xzvf setx86_64-0.3.tar.gz&lt;br /&gt;
sh setx86_64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Warning|Please note that the setx86_64 script currently may not install the vzquota.x86_64 package and only include the vzquota.i386... which has been noted to cause disk quota issues when creating containers.  To avoid this issue it is recommended you manually install the vzquota.x86_64 package until the script is updated:&lt;br /&gt;
yum install vzquota.x86_64}}&lt;br /&gt;
&lt;br /&gt;
Press Enter and some tests are made to know if you can go on with the installation.&lt;br /&gt;
If you choose to go on with it, the script will download and patch everything for you.&lt;br /&gt;
All the vztemplates metadata available in openvz.org site are also installed and fixed for x86_64 system.&lt;br /&gt;
&lt;br /&gt;
When it finishes with the message &amp;quot;END INSTALL&amp;quot;, you can go on reading this document jumping to the undermentioned &amp;lt;b&amp;gt;[[#STEP_11|STEP 11]]&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== B - MANUAL INSTALL -STEP BY STEP ===&lt;br /&gt;
&lt;br /&gt;
If for any reason you prefer manual installation, you may start your install process the same way as described in [[Quick installation]].&lt;br /&gt;
In x86_64, the packages vzpkg, vzyum and vztmpl-* are broken. So, let's install them this way, to avoid problems:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 yum install vzrpm*&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We can't &amp;quot;yum install vzyum&amp;quot; because it breaks with an error:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Error: Missing Dependency: cElementTree.so is needed by package vzyum&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So we must download it first and then install it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 wget -c http://download.openvz.org/template/utils/vzyum/2.4.0-11/vzyum-2.4.0-11.noarch.rpm&lt;br /&gt;
 rpm --nodeps -Uvh vzyum*.rpm&lt;br /&gt;
 yum install vzpkg*&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== TWEAKING THE CODE ====&lt;br /&gt;
&lt;br /&gt;
Now let's tweak the code doing it step by step.&lt;br /&gt;
You can do a copy-paste from the next command lines to your system.&lt;br /&gt;
The example is using &amp;lt;b&amp;gt;Centos-4&amp;lt;/b&amp;gt; distribution, but &amp;lt;b&amp;gt;Fedora&amp;lt;/b&amp;gt; or other distribution with yum, rpm and python (version 2.2, 2.3 or 2.4) installed, may be tried. You only have to change the reference name and version in STEPS 1 to 4.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== STEP 1 =====&lt;br /&gt;
&lt;br /&gt;
Install &amp;quot;vztmpl-centos-4&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 yum install vztmpl-centos-4&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: In setx86-0.3 script, all the vztemplates available in openvz.org site are downloaded and used to build x86_64 templates, ready to be used.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== STEP 2 =====&lt;br /&gt;
&lt;br /&gt;
The template installed is a i386 template. So, we need to create a x86_64 template from the i386.&lt;br /&gt;
We only have to replace i386 references with x86_64 in all files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 cd /vz/template/centos/4/&lt;br /&gt;
 cp -a i386 x86_64&lt;br /&gt;
 cd /vz/template/centos/4/x86_64/config&lt;br /&gt;
 sed -i.tmp 's/i386/x86_64/g' yum.conf&lt;br /&gt;
 rm -f yum.conf.tmp&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we have a x86_64 centos template installed.&amp;lt;br&amp;gt;&lt;br /&gt;
You can do the same procedure to other distro templates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== STEP 3 =====&lt;br /&gt;
&lt;br /&gt;
Edit the file &amp;lt;code&amp;gt;/vz/template/centos/4/x86_64/config/yum.conf&amp;lt;/code&amp;gt; with your editor.&lt;br /&gt;
Change the line:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;cachedir=/vz/template/centos/4/x86_64/yum-cache&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:to&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;cachedir=/var/cache/yum-cache&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note| With this changes, vzyum is not going to be able to use a common cache directory to all [[container]]s as it was used to do. Each [[container]] will have it's own cache directory.&lt;br /&gt;
To avoid to have a directory named /vz/template/centos/4/x86_64/yum-cache in each [[container]], it is preferable to use the correct cache directory /var/cache/yum-cache.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== STEP 4 =====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Verify the host rpm version:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;code&amp;gt;rpm --version&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Centos-4 rpm is version 4.3.&lt;br /&gt;
&lt;br /&gt;
Edit this file /vz/template/centos/4/x86_64/config/rpm, and&lt;br /&gt;
you will see the number 43.&lt;br /&gt;
&lt;br /&gt;
When the host distro is the same of the template guest, everything would be correct, and we don't need doing anything.&amp;lt;br&amp;gt;&lt;br /&gt;
But if we have a different guest template, we might have to correct the values.&lt;br /&gt;
&lt;br /&gt;
We have to change the number inside /vz/template/&amp;lt;i&amp;gt;distro&amp;lt;/i&amp;gt;/&amp;lt;i&amp;gt;version&amp;lt;/i&amp;gt;/x86_64/config/rpm&lt;br /&gt;
according to the rpm version of the host system.&amp;lt;br&amp;gt;&lt;br /&gt;
If rpm version is 4.4 the number would be 44.&amp;lt;br&amp;gt;&lt;br /&gt;
If rpm version is 4.3 the number would be 43.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== STEP 5 =====&lt;br /&gt;
&lt;br /&gt;
If you list the directory vz-addons like this:&lt;br /&gt;
&lt;br /&gt;
 ls -l /vz/template/centos/4/x86_64/vz-addons&lt;br /&gt;
&lt;br /&gt;
probably you will see the file MAKEDEV-3.3.13-1.3.swsoft.i386.rpm.&lt;br /&gt;
This &amp;quot;ls&amp;quot; allows us to confirm which MAKEDEV version we need to use in this step.&lt;br /&gt;
&lt;br /&gt;
Edit the files &amp;lt;b&amp;gt;minimal.list&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;default.list&amp;lt;/b&amp;gt; in /vz/template/centos/4/x86_64/config directory, and change the line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MAKEDEV&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
MAKEDEV-3.3.13 (or the version you saw in the &amp;quot;ls&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This avoids the undesirable update of special MAKEDEV-swsoft to the real MAKEDEV from the distro yum repository during a vzyum action.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== STEP 6 =====&lt;br /&gt;
&lt;br /&gt;
Verify if you have &amp;lt;b&amp;gt;rpm-python&amp;lt;/b&amp;gt; installed in your system, because it has 64 bit module needed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rpm -q rpm-python&lt;br /&gt;
rpm-python-4.3.3-18_nonptl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install it if you didn't do it already:&lt;br /&gt;
 yum install rpm-python&lt;br /&gt;
&lt;br /&gt;
In Centos-4 version python is 2.3. So, we must replace rpmmodule.so from vzrpm43-python to the 64 bit module that rpm-python-x86_64 provides.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
cd /usr/share/vzpkgtools/vzrpm43/lib/python2.3/site-packages/&lt;br /&gt;
cp /usr/lib64/python2.3/site-packages/rpmmodule.so .&lt;br /&gt;
cp: overwrite `./rpmmodule.so'? y&lt;br /&gt;
cd /usr/share/vzpkgtools/vzrpm43/lib/python2.3/site-packages/rpmdb&lt;br /&gt;
cp /usr/lib64/python2.3/site-packages/rpmdb/_rpmdb.so .&lt;br /&gt;
cp: overwrite `./_rpmdb.so'? y&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In other Operating Systems or other versions, you must verify which python version is installed in the host system. &lt;br /&gt;
Depending on that, the 32 bit files to be replaced are different (read the setx86_64-0.3 script, line 320 to line 345, to understand how it is done).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid rgb(153, 153, 153); padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Note:&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Someone reported the note below, but the tests I made, &amp;lt;u&amp;gt;didn't confirm&amp;lt;/u&amp;gt; it was really needed. Everything worked flawless without it.&amp;lt;br&amp;gt;&lt;br /&gt;
Nevertheless, if you find some problems, try the workaround described below:&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;For CentOS-5, you will need to do something a bit different. &amp;quot;rpmmodule.so&amp;quot; is provided in your sitewide python distribution, so instead of copying it across, you need to:&lt;br /&gt;
:rm /usr/share/vzpkgtools/vzrpm43/lib/python2.4/site-packages/rpmmodule.so&lt;br /&gt;
&amp;lt;/i&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we must edit and change these 3 files described in the next steps:&lt;br /&gt;
&lt;br /&gt;
/usr/share/vzpkg/&amp;lt;b&amp;gt;cache-os&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/usr/share/vzpkg/&amp;lt;b&amp;gt;functions&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/usr/bin/&amp;lt;b&amp;gt;vzyum&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== STEP 7 =====&lt;br /&gt;
&lt;br /&gt;
Edit the file /usr/share/vzpkg/&amp;lt;b&amp;gt;cache-os&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Change the next lines:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; -Line 136:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
change: --vps=$VEID check-update&lt;br /&gt;
to: check-update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; -Line 185:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
change: YUM_CMD=&amp;quot;--installroot=$VE_ROOT --vps=$VEID $YUM_CONF_FILE -y $YUM_CMD&amp;quot;&lt;br /&gt;
to: YUM_CMD=&amp;quot;--installroot=$VE_ROOT $YUM_CONF_FILE -y $YUM_CMD&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== STEP 8 =====&lt;br /&gt;
&lt;br /&gt;
Edit the file /usr/share/vzpkg/&amp;lt;b&amp;gt;functions&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Change the next lines:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; -Line 21:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
change: YUM=/usr/share/vzyum/bin/yum&lt;br /&gt;
to: YUM=`which yum`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; -Line 22:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
change: ARCHES=&amp;quot;x86 i386 x86_64 ia64&amp;quot;&lt;br /&gt;
to: ARCHES=&amp;quot;i386 x86_64 ia64 x86&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; -Line 111:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
change: export RPM=`get_rpm $tdir`&lt;br /&gt;
to: export RPM=`which rpm`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; -Line 450:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
change: rpm=`get_rpm $tdir`&lt;br /&gt;
to: rpm=`which rpm`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== STEP 9 =====&lt;br /&gt;
&lt;br /&gt;
Edit the file /usr/bin/&amp;lt;b&amp;gt;vzyum&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Change the next line:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; -Line 51:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
change: YUM_ARGS=&amp;quot;$YUM_ARGS --installroot $VE_ROOT --vps=$VEID&amp;quot;&lt;br /&gt;
to: YUM_ARGS=&amp;quot;$YUM_ARGS --installroot $VE_ROOT&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next piece of code fixed the vzyum bug described in [http://bugzilla.openvz.org/show_bug.cgi?id=488#c0 bugzilla #488].&amp;lt;br&amp;gt;&lt;br /&gt;
It was impossible to install a package group with spaces in his name.&amp;lt;br&amp;gt;&lt;br /&gt;
Now we can use e.g. &amp;lt;b&amp;gt;vzyum groupinstall \&amp;quot;GNOME Desktop Environment\&amp;quot;&amp;lt;/b&amp;gt;, &lt;br /&gt;
or other group name listed in vzyum grouplist.&amp;lt;br&amp;gt;&lt;br /&gt;
(Don't forget the backslash before each doublequote)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; -Line 56:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
comment the line 56:&lt;br /&gt;
#exec $YUM $YUM_ARGS $USER_ARGS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; -Last Line (57):&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
add this code:&lt;br /&gt;
&lt;br /&gt;
TMPVZY=/tmp/tmpvzy.$$&lt;br /&gt;
echo $YUM $YUM_ARGS $USER_ARGS &amp;gt; $TMPVZY&lt;br /&gt;
sh $TMPVZY&lt;br /&gt;
exec rm -f $TMPVZY&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== STEP 10 =====&lt;br /&gt;
&lt;br /&gt;
Edit file /usr/bin/&amp;lt;b&amp;gt;vzrpm&amp;lt;/b&amp;gt;&lt;br /&gt;
Change next line:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; -Line 40:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
change: RPM_ARGS=&amp;quot;--root $VE_ROOT --veid $VEID&amp;quot;&lt;br /&gt;
to: RPM_ARGS=&amp;quot;--root $VE_ROOT&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt; -Line 52:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
change: RPM=`get_rpm $TDIR`&lt;br /&gt;
to: RPM=`which rpm`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== STEP 11 =====&lt;br /&gt;
&lt;br /&gt;
If you want your [[container]]s to have other country locales&lt;br /&gt;
edit &amp;lt;code&amp;gt;/vz/template/centos/4/x86_64/config/.rpmmacros&amp;lt;/code&amp;gt; and change the line &amp;lt;b&amp;gt;%_install_langs C&amp;lt;/b&amp;gt;&lt;br /&gt;
to the language you want, for example:&lt;br /&gt;
&lt;br /&gt;
%_install_langs C:pt_PT:pt_PT.UTF-8:en_US:en_US.UTF-8&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== TESTING THE NEW CODE ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now you can create your own template caches from your own templates.&lt;br /&gt;
Let's test it!&lt;br /&gt;
&lt;br /&gt;
List all x86_64 templates available:&lt;br /&gt;
&lt;br /&gt;
 vzpkgls | grep x86_64&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Choose one of them to create the first cache template (this can be time consuming):&lt;br /&gt;
&lt;br /&gt;
 vzpkgcache -f centos-4-x86_64-minimal&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It finishes with complaints about &amp;lt;i&amp;gt;cron.daily&amp;lt;/i&amp;gt;, but don't worry about it.&lt;br /&gt;
Now &amp;lt;b&amp;gt;minimal&amp;lt;/b&amp;gt; cache is created. Confirm if they were created:&lt;br /&gt;
&lt;br /&gt;
 vzpkgls -c&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you see it in the cache list, then you can create your first [[container]]:&lt;br /&gt;
&lt;br /&gt;
 vzctl create 200 --ostemplate centos-4-x86_64-minimal&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To change the &amp;lt;i&amp;gt;locales&amp;lt;/i&amp;gt;, copy &amp;lt;code&amp;gt;/etc/sysconfig/i18n&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;/vz/private/200/etc/sysconfig&amp;lt;/code&amp;gt;, if you wish to use another language and have done STEP 10 previously.&lt;br /&gt;
&lt;br /&gt;
Now start [[container]] 200 previously created:&lt;br /&gt;
&lt;br /&gt;
 vzctl start 200&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then test also &amp;quot;vzyum&amp;quot; and see if it works. Try to install &amp;quot;nano editor&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
 vzyum 200 install nano&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Try to use vzrpm, to list all rpm's installed in [[container]] 200:&lt;br /&gt;
&lt;br /&gt;
 vzrpm 200 -qa&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you didn't have any errors, the changes are fine.&lt;br /&gt;
&lt;br /&gt;
If something went wrong, probably you made a mistake in those previous steps. &lt;br /&gt;
Carefully verify if you did it well, step by step.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Templates]]&lt;br /&gt;
[[Category: HOWTO]]&lt;br /&gt;
[[Category: Troubleshooting]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Quick_installation_(legacy)&amp;diff=6816</id>
		<title>Quick installation (legacy)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Quick_installation_(legacy)&amp;diff=6816"/>
		<updated>2008-12-19T16:50:04Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Just added a mention of the .x86_64 arch specific packages to avoid 64-bit users getting the 32-bit packages by mistake.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document briefly describes the steps needed to install OpenVZ on your (RPM based) machine. For '''Debian''' based systems see [[Installation on Debian]].&lt;br /&gt;
&lt;br /&gt;
This document is also available in the following languages: [http://forum.openvz.org/index.php?t=tree&amp;amp;amp;goto=35&amp;amp;amp;#msg_35 French],  [http://forum.openvz.org/index.php?t=tree&amp;amp;amp;goto=1805&amp;amp;amp;#msg_1805 German],&lt;br /&gt;
[http://wiki.openvz.jp Japanese],&lt;br /&gt;
[[Quick_installation_(Spanish)|Spanish]].&lt;br /&gt;
&lt;br /&gt;
OpenVZ consists of a kernel, user-level tools, and container templates. This guide tells how to install the kernel and the tools.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
This guide assumes you are running recent release of Fedora Core (like FC5) or RHEL/CentOS 4. Currently, OpenVZ kernel tries to support the same hardware that Red Hat kernels support. For full hardware compatibility list, see [http://www.swsoft.com/en/products/virtuozzo/hcl/ Virtuozzo HCL].&lt;br /&gt;
&lt;br /&gt;
=== Filesystems ===&lt;br /&gt;
It is recommended to use a separate partition for container's private directories (by default /vz/private/&amp;lt;veid&amp;gt;). The reason why you should do so is that if you wish to use OpenVZ per-container disk quota, you won't be able to use usual Linux disk quotas on the same partition. Bear in mind, that per-container quota in this context includes not only pure per-container quota, but also usual Linux disk quota used in containers, not on [[HN]].&lt;br /&gt;
&lt;br /&gt;
At least try to avoid using the root partition for containers, because the root user of a container will be able to overcome the 5% disk space barrier in some situations. This way the HN root partition can be completely filled and it will break the system.&lt;br /&gt;
&lt;br /&gt;
OpenVZ per-container disk quota is supported only for ext2/ext3 filesystems. So use one of these filesystems (ext3 is recommended) if you need per-container disk quota.&lt;br /&gt;
&lt;br /&gt;
=== rpm or yum? ===&lt;br /&gt;
&lt;br /&gt;
In case you have yum utility available on your system, you may want to use it effectively to install and update OpenVZ packages. In case you don't have yum, or don't want to use it, you can use plain old rpm. Instructions for both rpm and yum are provided below.&lt;br /&gt;
&lt;br /&gt;
=== yum pre-setup ===&lt;br /&gt;
If you want to use yum, you should set up OpenVZ yum repository first.&lt;br /&gt;
&lt;br /&gt;
Download [http://download.openvz.org/openvz.repo openvz.repo] file and put it to your &amp;lt;code&amp;gt;/etc/yum.repos.d/&amp;lt;/code&amp;gt; repository. This can be achieved by the following commands, as root:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /etc/yum.repos.d&lt;br /&gt;
# wget http://download.openvz.org/openvz.repo&lt;br /&gt;
# rpm --import  http://download.openvz.org/RPM-GPG-Key-OpenVZ&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In case you can not cd to /etc/yum.repos.d, it means either yum is not installed on your system, or yum version is too old. In that case, just stick to rpm installation method.&lt;br /&gt;
&lt;br /&gt;
== Kernel installation ==&lt;br /&gt;
&lt;br /&gt;
{{Note|In case you want to recompile the kernel yourself rather than use the one provided by OpenVZ, see [[kernel build]].}}&lt;br /&gt;
&lt;br /&gt;
First, you need to choose what “flavor” of the kernel you want to install. Please refer to [[Kernel flavors]] for more information.&lt;br /&gt;
&lt;br /&gt;
=== Using yum ===&lt;br /&gt;
Run the following command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install ovzkernel[-flavor]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here &amp;lt;code&amp;gt;[-flavor]&amp;lt;/code&amp;gt; is optional, and can be &amp;lt;code&amp;gt;-smp&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;-enterprise&amp;lt;/code&amp;gt;. Refer to [[kernel flavors]] for more info.&lt;br /&gt;
&lt;br /&gt;
{{Note|if you need to install &amp;lt;code&amp;gt;x86_64&amp;lt;/code&amp;gt; kernel and yum offers to install both &amp;lt;code&amp;gt;x86_64&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;i686&amp;lt;/code&amp;gt; kernels, answer &amp;lt;code&amp;gt;No&amp;lt;/code&amp;gt; and specify architecture manually, like this: &amp;lt;code&amp;gt;yum install ovzkernel[-flavor].x86_64&amp;lt;/code&amp;gt;. This is fixed in newer yum versions.}}&lt;br /&gt;
&lt;br /&gt;
=== Using rpm ===&lt;br /&gt;
Get the kernel binary RPM from the [[Download/kernel]] page. You only need one kernel RPM so please [[Kernel flavors|choose the appropriate one]] depending on your hardware.&lt;br /&gt;
&lt;br /&gt;
Next, install the kernel RPM you chose:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# rpm -ihv ovzkernel[-flavor]*.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here &amp;lt;code&amp;gt;[-flavor]&amp;lt;/code&amp;gt; is optional, and can be &amp;lt;code&amp;gt;-smp&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;-enterprise&amp;lt;/code&amp;gt;. Refer to [[kernel flavors]] for more info.&lt;br /&gt;
&lt;br /&gt;
{{Note|&amp;lt;tt&amp;gt;rpm -U&amp;lt;/tt&amp;gt; (where &amp;lt;tt&amp;gt;-U&amp;lt;/tt&amp;gt; stands for ''upgrade'') should '''not''' be used, otherwise all currently installed kernels will be uninstalled.}}&lt;br /&gt;
&lt;br /&gt;
== Configuring the bootloader ==&lt;br /&gt;
&lt;br /&gt;
In case GRUB is used as the boot loader, it will be configured automatically: lines similar to these will be added to the &amp;lt;tt&amp;gt;/boot/grub/grub.conf&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
title Fedora Core (2.6.8-022stab029.1)&lt;br /&gt;
       root (hd0,0)&lt;br /&gt;
       kernel /vmlinuz-2.6.8-022stab029.1 ro root=/dev/sda5 quiet rhgb vga=0x31B&lt;br /&gt;
       initrd /initrd-2.6.8-022stab029.1.img&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Change &amp;lt;tt&amp;gt;Fedora Core&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;OpenVZ&amp;lt;/tt&amp;gt; (just for clarity reasons, so the OpenVZ kernels will not be mixed up with non-OpenVZ ones). Remove extra arguments from the kernel line, leaving only the &amp;lt;tt&amp;gt;root=...&amp;lt;/tt&amp;gt; parameter. The modifed portion of &amp;lt;tt&amp;gt;/etc/grub.conf&amp;lt;/tt&amp;gt; should look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
title OpenVZ (2.6.8-022stab029.1)&lt;br /&gt;
        root (hd0,0)&lt;br /&gt;
        kernel /vmlinuz-2.6.8-022stab029.1 ro root=/dev/sda5&lt;br /&gt;
        initrd /initrd-2.6.8-022stab029.1.img&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Configuring ==&lt;br /&gt;
&lt;br /&gt;
Please make sure the following steps are performed before rebooting into OpenVZ kernel.&lt;br /&gt;
&lt;br /&gt;
=== sysctl ===&lt;br /&gt;
&lt;br /&gt;
There are a number of kernel parameters that should be set for OpenVZ to work correctly. These parameters are stored in &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; file. Here are the relevant portions of the file; please edit accordingly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# On Hardware Node we generally need&lt;br /&gt;
# packet forwarding enabled and proxy arp disabled&lt;br /&gt;
net.ipv4.ip_forward = 1&lt;br /&gt;
net.ipv4.conf.default.proxy_arp = 0&lt;br /&gt;
&lt;br /&gt;
# Enables source route verification&lt;br /&gt;
net.ipv4.conf.all.rp_filter = 1&lt;br /&gt;
&lt;br /&gt;
# Enables the magic-sysrq key&lt;br /&gt;
kernel.sysrq = 1&lt;br /&gt;
&lt;br /&gt;
# We do not want all our interfaces to send redirects&lt;br /&gt;
net.ipv4.conf.default.send_redirects = 1&lt;br /&gt;
net.ipv4.conf.all.send_redirects = 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SELinux ===&lt;br /&gt;
&lt;br /&gt;
SELinux should be disabled. To that effect, put the following line to &amp;lt;code&amp;gt;/etc/sysconfig/selinux&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELINUX=disabled&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Conntracks ===&lt;br /&gt;
&lt;br /&gt;
In the stable OpenVZ kernels (those that are 2.6.8-based) netfilter connection tracking for [[CT0]] is disabled by default. If you have a stateful firewall enabled on the host node (it is there by default) you should either disable it, or enable connection tracking for [[CT0]].&lt;br /&gt;
&lt;br /&gt;
To enable conntracks for CT0, add the following line to &amp;lt;code&amp;gt;/etc/modprobe.conf&amp;lt;/code&amp;gt; file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
options ip_conntrack ip_conntrack_enable_ve0=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|In kernels later than 2.6.8, connection tracking is enabled by default.}}&lt;br /&gt;
&lt;br /&gt;
== Rebooting into OpenVZ kernel ==&lt;br /&gt;
&lt;br /&gt;
Now reboot the machine and choose &amp;quot;OpenVZ&amp;quot; on the boot loader menu. If the OpenVZ kernel has been booted successfully, proceed to installing the user-level tools for OpenVZ. If you are installing on x86_64 CentOS or Fedora system, you may want to continue the setup process using the [[Install_OpenVZ_on_a_x86_64_system_Centos-Fedora|x86_64 guide]].&lt;br /&gt;
&lt;br /&gt;
== Installing the utilities ==&lt;br /&gt;
&lt;br /&gt;
OpenVZ needs some user-level tools installed. Those are:&lt;br /&gt;
&lt;br /&gt;
; vzctl&lt;br /&gt;
:    A utility to control OpenVZ containers (create, destroy, start, stop, set parameters etc.)&lt;br /&gt;
; vzquota&lt;br /&gt;
:    A utility to manage quotas for containers. Mostly used indirectly (by vzctl).&lt;br /&gt;
&lt;br /&gt;
=== Using yum ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install vzctl vzquota&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If on the x86_64 platform you would probably want to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# yum install vzctl.x86_64 vzquota.x86_64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Using rpm ===&lt;br /&gt;
&lt;br /&gt;
Download the binary RPMs of these utilities from [[Download/utils]]. Install them:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# rpm -Uhv vzctl*.rpm vzquota*.rpm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If rpm complains about unresolved dependencies, you'll have to satisfy them first, then repeat the installation.&lt;br /&gt;
&lt;br /&gt;
When all the tools are installed, start the OpenVZ subsystem.&lt;br /&gt;
&lt;br /&gt;
== Starting OpenVZ ==&lt;br /&gt;
&lt;br /&gt;
As root, execute the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# /sbin/service vz start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will load all the needed OpenVZ kernel modules. This script should also start all the containers marked to be auto-started on machine boot (there aren't any yet).&lt;br /&gt;
&lt;br /&gt;
During the next reboot, this script should be executed automatically.&lt;br /&gt;
&lt;br /&gt;
== Next steps ==&lt;br /&gt;
&lt;br /&gt;
OpenVZ is now set up on your machine. To load OpenVZ kernel by default, edit the default line in the /boot/grub/grub.conf file to point to the OpenVZ kernel. For example, if the OpenVZ kernel is the first kernel mentioned in the file, put it as default 0. See man grub.conf for more details.&lt;br /&gt;
&lt;br /&gt;
The next step is to prepare the [[OS template]]: please continue to [[OS template cache preparation]] document.&lt;br /&gt;
&lt;br /&gt;
[[Category: Installation]]&lt;br /&gt;
[[Category: HOWTO]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Download/template/precreated&amp;diff=6802</id>
		<title>Download/template/precreated</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Download/template/precreated&amp;diff=6802"/>
		<updated>2008-12-16T20:49:11Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Added warning with direct links to the download directories for official and contributed pre-created OS Templates.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Precreated templates info}}&lt;br /&gt;
&lt;br /&gt;
{{Warning|The Debian templates below still contain insecure [http://www.debian.org/security/2008/dsa-1571 OpenSSL packages]. Make sure to install security updates and [http://www.debian.org/security/key-rollover/ recreate keys]!}}&lt;br /&gt;
{{Warning|This problem most likely also applies to the Ubuntu images.}}&lt;br /&gt;
{{Warning|This page is not always current so be sure and check out the direct links to the [http://download.openvz.org/template/precreated/ official] and the [http://download.openvz.org/template/precreated/contrib/ contributed] pre-created OS Templates.}}&lt;br /&gt;
&lt;br /&gt;
{{DownloadTableHead}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=asianux-2.0-SP1-minimal-x86.tar.gz|size=125&amp;amp;nbsp;Mb|sig=asianux-2.0-SP1-minimal-x86.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=centos-4-i386-default.tar.gz|size=107&amp;amp;nbsp;Mb|sig=centos-4-i386-default.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=centos-4-i386-minimal.tar.gz|size=33&amp;amp;nbsp;Mb|sig=centos-4-i386-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=centos-4-x86_64-default.tar.gz|size=139&amp;amp;nbsp;Mb|sig=centos-4-x86_64-default.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=centos-4-x86_64-minimal.tar.gz|size=60&amp;amp;nbsp;Mb|sig=centos-4-x86_64-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=debian-3.1-i386-minimal.tar.gz|size=42&amp;amp;nbsp;Mb|sig=debian-3.1-i386-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=debian-3.1-ia64-minimal.tar.gz|size=50&amp;amp;nbsp;Mb|sig=debian-3.1-ia64-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=debian-3.1-powerpc-minimal.tar.gz|size=43&amp;amp;nbsp;Mb|sig=debian-3.1-powerpc-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=debian-3.1-sparc-minimal.tar.gz|size=43&amp;amp;nbsp;Mb|sig=debian-3.1-sparc-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=debian-3.1-x86_64-minimal.tar.gz|size=41&amp;amp;nbsp;Mb|sig=debian-3.1-x86_64-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=debian-4.0-i386-minimal.tar.gz|size=53&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=debian-4.0-sparc-minimal.tar.gz|size=49&amp;amp;nbsp;Mb|sig=debian-4.0-sparc-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=debian-etch-powerpc-minimal.tar.gz|size=54&amp;amp;nbsp;Mb|sig=debian-etch-powerpc-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=fedora-7-ppc-minimal.tar.gz|size=144&amp;amp;nbsp;Mb|sig=fedora-7-ppc-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=fedora-core-3-i386-default.tar.gz|size=105&amp;amp;nbsp;Mb|sig=fedora-core-3-i386-default.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=fedora-core-3-i386-minimal.tar.gz|size=33&amp;amp;nbsp;Mb|sig=fedora-core-3-i386-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=fedora-core-4-i386-default.tar.gz|size=114&amp;amp;nbsp;Mb|sig=fedora-core-4-i386-default.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=fedora-core-4-i386-minimal.tar.gz|size=45&amp;amp;nbsp;Mb|sig=fedora-core-4-i386-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=fedora-core-5-i386-default.tar.gz|size=125&amp;amp;nbsp;Mb|sig=fedora-core-5-i386-default.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=fedora-core-5-i386-minimal.tar.gz|size=44&amp;amp;nbsp;Mb|sig=fedora-core-5-i386-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=fedora-core-5-ppc-minimal.tar.gz|size=101&amp;amp;nbsp;Mb|sig=fedora-core-5-ppc-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=fedora-core-6-i686-default.tar.gz|size=154&amp;amp;nbsp;Mb|sig=fedora-core-6-i686-default.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=gentoo-20060317-amd64-stage3.tar.gz|size=119&amp;amp;nbsp;Mb|sig=gentoo-20060317-amd64-stage3.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=gentoo-20060317-i686-stage3.tar.gz|size=106&amp;amp;nbsp;Mb|sig=gentoo-20060317-i686-stage3.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=mandriva-2006-i386-minimal.tar.gz|size=28&amp;amp;nbsp;Mb|sig=mandriva-2006-i386-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=opensuse-10-i386-default.tar.gz|size=90&amp;amp;nbsp;Mb|sig=opensuse-10-i386-default.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=opensuse-10-x86_64-default.tar.gz|size=96&amp;amp;nbsp;Mb|sig=opensuse-10-x86_64-default.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=ubuntu-7.10-amd64-minimal.tar.gz|size=51&amp;amp;nbsp;Mb|sig=ubuntu-7.10-amd64-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=ubuntu-7.10-i386-minimal.tar.gz|size=51&amp;amp;nbsp;Mb|sig=ubuntu-7.10-i386-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=ubuntu-8.04-amd64-minimal.tar.gz|size=45&amp;amp;nbsp;Mb|sig=ubuntu-8.04-amd64-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated|file=ubuntu-8.04-i386-minimal.tar.gz|size=46&amp;amp;nbsp;Mb|sig=ubuntu-8.04-i386-minimal.tar.gz.asc}}&lt;br /&gt;
{{DownloadTableTail}}&lt;br /&gt;
{{Contributed templates info}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{DownloadTableHead}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=altlinux-2.4.tar.gz|size=24&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=altlinux-3.0-etcnet07.tar.gz|size=20&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=altlinux-3.0.tar.gz|size=20&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=altlinux-4.0-i586.tar.gz|size=22&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=altlinux-20060914-x86_64.tar.gz|size=21&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=altlinux-20060914.tar.gz|size=20&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=altlinux-20060928-x86_64.tar.gz|size=21&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=arch-0.8-i686-minimal.tar.gz|size=88&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=arch-0.8-x86_64-minimal.tar.gz|size=93&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=centos-5-i386-default.tar.gz|size=124&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=centos-5-i386-minimal.tar.gz|size=46&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=centos-5-x86_64-default.tar.gz|size=143&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=centos-5-x86_64-minimal.tar.gz|size=46&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=cern-4-i386-default.tar.gz|size=123&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=cern-4-i386-minimal.tar.gz|size=46&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=cern-4-x86_64-default.tar.gz|size=134&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=cern-4-x86_64-minimal.tar.gz|size=51&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=debian-4.0-amd64-minimal.tar.gz|size=52&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=debian-4.0-proxmox-mailgateway-2.0.tar.gz|size=117&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=fedora-8-i386-minimal.tar.gz|size=81&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=fedora-9-i386-default.tar.gz|size=152&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=fedora-9-i386-minimal.tar.gz|size=60&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=fedora-9-x86_64-default.tar.gz|size=173&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=fedora-9-x86_64-minimal.tar.gz|size=65&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=fedora-core-7-i386-default.tar.gz|size=109&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=fedora-core-7-i386-minimal.tar.gz|size=61&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=gentoo-amd64-20071018.tar.gz|size=139&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=slackware-10.2-i386-minimal.tar.gz|size=26&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=slackware-11.0-i386-minimal.tar.gz|size=28&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=slackware-12.0-i386-minimal.tar.gz|size=29&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=suse-9.3-x86_64.tar.gz|size=155&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=ubuntu-6.06-i386-minimal.tar.gz|size=60&amp;amp;nbsp;Mb|sig=}}&lt;br /&gt;
{{DownloadTableRow|path=template/precreated/contrib|file=ubuntu-7.10-i386-minimal.tar.gz|size=45&amp;amp;nbsp;Mb|sig=ubuntu-7.10-i386-minimal.tar.gz.md5}}&lt;br /&gt;
{{DownloadTableTail}}&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Install_vzpkg2_and_pkg-cacher&amp;diff=6738</id>
		<title>Install vzpkg2 and pkg-cacher</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Install_vzpkg2_and_pkg-cacher&amp;diff=6738"/>
		<updated>2008-11-26T15:30:54Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Added info on how to build a single OS Template&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Introduction ===&lt;br /&gt;
&lt;br /&gt;
Robert Nelson has created a couple new utilities to make managing and updating templates and containers easier, vzpkg2 pkg-cacher.  So far they will create and update a large range of containers, including both 32bit and 64bit of the following:&lt;br /&gt;
    &lt;br /&gt;
* Centos 4 and 5,&lt;br /&gt;
* Fedora 7, 8 and 9,&lt;br /&gt;
* Debian Sarge and Etch,&lt;br /&gt;
* Ubuntu Feisty, Gutsy and Hardy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Pkg-cacher is a transparent caching proxy daemon optimized for Debian and RPM packages.  In other terms, pkg-cacher is a service that runs on a machine that other machines and containers, or &amp;quot;clients&amp;quot;, use to update themselves instead of each of them directly hitting the package repositories.  Pkg-cacher only downloads a file once and then gives that to all its clients, instead of each of the clients downloading the file from the Internet at large.  It is based on [http://www.nick-andrew.net/projects/apt-cacher/ apt-cacher], available with Debian.  This version has been modified to understand RedHat RPM repositories.  It also adds support for the HTTP Range header and deals correctly with files which have the same name but different content on different distributions or in some cases different versions of the same distribution.  &lt;br /&gt;
&lt;br /&gt;
Robert has setup repositories for Fedora, CentOS and Debian.&lt;br /&gt;
&lt;br /&gt;
====Screencast====&lt;br /&gt;
&lt;br /&gt;
Scott Dowdle has recorded a good screencast overview of vzpkg2 and pkg-cacher at:&lt;br /&gt;
&lt;br /&gt;
 http://www.montanalinux.org/vzpkg2-screencast.html&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Centos &amp;amp; Fedora installs:====&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Remove Old Packages&amp;lt;/u&amp;gt;=====&lt;br /&gt;
If this is an '''existing''' install, uninstall your vzpkg and vztmpl-* packages:&lt;br /&gt;
&lt;br /&gt;
 yum remove vzpkg vztmpl-*&lt;br /&gt;
&lt;br /&gt;
and backup &amp;amp; remove your current template directory:&lt;br /&gt;
&lt;br /&gt;
 tar cjf /some/backup/location/old_templates.tbz /vz/template&lt;br /&gt;
 rm -r /vz/template&lt;br /&gt;
&lt;br /&gt;
If this is a '''new''' install, you should probably review the [http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf OpenVZ User's Guide] and the wiki's [[Quick installation]] page.  The only way you would vary your installation setups is declining to install the default vzpkg package, and instead using vzpkg2 here.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Download the repository file for your OS&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
For CentOS:&lt;br /&gt;
    wget http://repo.opensource-sw.net/centos/ossw.repo -P /etc/yum.repos.d&lt;br /&gt;
&lt;br /&gt;
For Fedora:&lt;br /&gt;
    wget http://repo.opensource-sw.net/fedora/ossw.repo -P /etc/yum.repos.d&lt;br /&gt;
&lt;br /&gt;
You may wish to edit the repository file, perhaps to add a priorities setting.  &lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Install vzpkg2 and pkg-cacher&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Once the repository is added in /etc/yum.repos.d, you can now install the new vzpkg2 and pkg-cacher from it:&lt;br /&gt;
&lt;br /&gt;
 yum install vzpkg2 vztmpl2-centos vztmpl2-fedora vztmpl2-debian vztmpl2-ubuntu&lt;br /&gt;
 yum install pkg-cacher-sa&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure vzpkg2&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Open /etc/vz/vzpkg.conf in an editor.  Replace 'hostname' with the hostname or IP of the machine you are installing this on for VZPKG_CACHE_HOST, make sure not to use 'localhost', because this name is what OpenVZ Containers will use to access the pkg-cacher daemon:&lt;br /&gt;
&lt;br /&gt;
 VZPKG_CACHE_HOST=hostname:3142&lt;br /&gt;
&lt;br /&gt;
While you are here, review this file to ensure it makes sense for your setup.  In particular, you will probably have to update the VZPKG_DNS line with IP addresses of DNS servers you use.&lt;br /&gt;
&lt;br /&gt;
 VZPKG_DNS=192.168.1.2,192.168.1.3&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure pkg-cacher&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Edit /etc/pkg-cacher/pkg-cacher.conf.  You should read the included documentation in the file to ensure it is appropriate for your setup.  Mostly the defaults will work just fine.  By default pkg-cacher will let any system use its cache.  You will probably want to limit it to your own systems on the line:&lt;br /&gt;
&lt;br /&gt;
 allowed_hosts=*&lt;br /&gt;
&lt;br /&gt;
Once you have checked and updated pkg-cacher.conf, simply restart it by running as root:&lt;br /&gt;
&lt;br /&gt;
 service pkg-cacher restart&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Generate the new template cache&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Now everything should be ready to go!  Make sure both the 'vz' service and 'pkg-cacher' service are running.&lt;br /&gt;
&lt;br /&gt;
To build an individual OS Template just run the 'vzpkgcache' command and pass it the name of the OS Template you want to build.  For a list of OS Templates you can build, run the 'vzpkgls' command.  Example:&lt;br /&gt;
&lt;br /&gt;
 vzpkgcache centos-5-i386-default&lt;br /&gt;
&lt;br /&gt;
If you'd like to build all OS Templates available, just run the 'vzpkgcache' command without any parameters.  Example:&lt;br /&gt;
&lt;br /&gt;
  vzpkgcache&lt;br /&gt;
&lt;br /&gt;
vzpkg2 should get to work generating your initial caches.  Now you can run 'vzctl create' and use them.&lt;br /&gt;
&lt;br /&gt;
====Debian Installs:====&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Remove Old Packages&amp;lt;/u&amp;gt;=====&lt;br /&gt;
If this is an '''existing''' install, uninstall your vzpkg and vztmpl-* packages:&lt;br /&gt;
&lt;br /&gt;
 apt-get erase vzpkg vzctl-ostmpl-*&lt;br /&gt;
&lt;br /&gt;
and backup &amp;amp; remove your current template directory:&lt;br /&gt;
&lt;br /&gt;
 tar cjf /some/backup/location/old_templates.tbz /vz/template&lt;br /&gt;
 rm -r /vz/template&lt;br /&gt;
&lt;br /&gt;
If this is a '''new''' install, you should probably review the [http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf OpenVZ User's Guide] and the wiki's [[Installation on Debian]] page.  The only way you would vary your installation setups is declining to install the default vzpkg package, and instead using vzpkg2 here.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Add the deb repositories to your /etc/apt/sources.list:&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Add the following lines to your /etc/apt/sources.list:&lt;br /&gt;
&lt;br /&gt;
Etch:&lt;br /&gt;
    deb http://repo.opensource-sw.net/debian/ etch openvz&lt;br /&gt;
    deb-src http://repo.opensource-sw.net/debian/ etch openvz&lt;br /&gt;
&lt;br /&gt;
Sarge:&lt;br /&gt;
    deb http://repo.opensource-sw.net/debian/ sarge openvz&lt;br /&gt;
    deb-src http://repo.opensource-sw.net/debian/ sarge openvz&lt;br /&gt;
&lt;br /&gt;
Then do:&lt;br /&gt;
    apt-get update&lt;br /&gt;
    apt-get install pkg-cacher-sa vzpkg2&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Adding New Templates:&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Install the desired OS Template Metadata packages:&lt;br /&gt;
&lt;br /&gt;
    apt-get install vztmpl2-centos vztmpl2-fedora vztmpl2-ubuntu vztmpl2-debian&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure vzpkg2&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Open /etc/vz/vzpkg.conf in an editor.  Replace 'hostname' with the hostname or IP of the machine you are installing this on for VZPKG_CACHE_HOST, make sure not to use 'localhost', because this name is what OpenVZ Containers will use to access the pkg-cacher daemon:&lt;br /&gt;
&lt;br /&gt;
 VZPKG_CACHE_HOST=hostname:3142&lt;br /&gt;
&lt;br /&gt;
While you are here, review this file to ensure it makes sense for your setup.  In particular, you will probably have to update the VZPKG_DNS line with IP addresses of DNS servers you use.&lt;br /&gt;
&lt;br /&gt;
 VZPKG_DNS=192.168.1.2,192.168.1.3&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure pkg-cacher&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Edit /etc/pkg-cacher/pkg-cacher.conf.  You should read the included documentation in the file to ensure it is appropriate for your setup.  Mostly the defaults will work just fine.  By default pkg-cacher will let any system use its cache.  You will probably want to limit it to your own systems on the line:&lt;br /&gt;
&lt;br /&gt;
 allowed_hosts=*&lt;br /&gt;
&lt;br /&gt;
Once you have checked and updated pkg-cacher.conf, simply restart it.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Generate the new template cache&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Now everything should be ready to go!  Make sure both the 'vz' service and 'pkg-cacher' service are running&lt;br /&gt;
&lt;br /&gt;
To get a list of what OS Templates you may now use, type the following:&lt;br /&gt;
&lt;br /&gt;
 vzpkgls&lt;br /&gt;
&lt;br /&gt;
That will produce a list of available OS Templates.  Use any name given in the list as a parameter to vzpkgcache to build that OS Template.  Example:&lt;br /&gt;
&lt;br /&gt;
 vzpkgcache centos-5-i386-default&lt;br /&gt;
&lt;br /&gt;
If you want to build all OS Templates you can simply run vzpkgcache without any paramters:&lt;br /&gt;
&lt;br /&gt;
 vzpkgcache&lt;br /&gt;
&lt;br /&gt;
vzpkg2 should get to work generating your initial caches.  Now you can run 'vzctl create' and use them.&lt;br /&gt;
&lt;br /&gt;
===Source===&lt;br /&gt;
&lt;br /&gt;
The source for the new vzpkg2 and templates is available on http://git.opensource-sw.net.  In order to clone the updated source use the command:&lt;br /&gt;
 git clone http://git.opensource-sw.net/git/vzpkg  &lt;br /&gt;
&lt;br /&gt;
The templates are available using:&lt;br /&gt;
 git clone http://git.opensource-sw.net/git/vztmpl&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Install_vzpkg2_and_pkg-cacher&amp;diff=6737</id>
		<title>Install vzpkg2 and pkg-cacher</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Install_vzpkg2_and_pkg-cacher&amp;diff=6737"/>
		<updated>2008-11-26T15:24:25Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Updated to show how to build an individual OS Template rather than just all of them.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Introduction ===&lt;br /&gt;
&lt;br /&gt;
Robert Nelson has created a couple new utilities to make managing and updating templates and containers easier, vzpkg2 pkg-cacher.  So far they will create and update a large range of containers, including both 32bit and 64bit of the following:&lt;br /&gt;
    &lt;br /&gt;
* Centos 4 and 5,&lt;br /&gt;
* Fedora 7, 8 and 9,&lt;br /&gt;
* Debian Sarge and Etch,&lt;br /&gt;
* Ubuntu Feisty, Gutsy and Hardy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Pkg-cacher is a transparent caching proxy daemon optimized for Debian and RPM packages.  In other terms, pkg-cacher is a service that runs on a machine that other machines and containers, or &amp;quot;clients&amp;quot;, use to update themselves instead of each of them directly hitting the package repositories.  Pkg-cacher only downloads a file once and then gives that to all its clients, instead of each of the clients downloading the file from the Internet at large.  It is based on [http://www.nick-andrew.net/projects/apt-cacher/ apt-cacher], available with Debian.  This version has been modified to understand RedHat RPM repositories.  It also adds support for the HTTP Range header and deals correctly with files which have the same name but different content on different distributions or in some cases different versions of the same distribution.  &lt;br /&gt;
&lt;br /&gt;
Robert has setup repositories for Fedora, CentOS and Debian.&lt;br /&gt;
&lt;br /&gt;
====Screencast====&lt;br /&gt;
&lt;br /&gt;
Scott Dowdle has recorded a good screencast overview of vzpkg2 and pkg-cacher at:&lt;br /&gt;
&lt;br /&gt;
 http://www.montanalinux.org/vzpkg2-screencast.html&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Centos &amp;amp; Fedora installs:====&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Remove Old Packages&amp;lt;/u&amp;gt;=====&lt;br /&gt;
If this is an '''existing''' install, uninstall your vzpkg and vztmpl-* packages:&lt;br /&gt;
&lt;br /&gt;
 yum remove vzpkg vztmpl-*&lt;br /&gt;
&lt;br /&gt;
and backup &amp;amp; remove your current template directory:&lt;br /&gt;
&lt;br /&gt;
 tar cjf /some/backup/location/old_templates.tbz /vz/template&lt;br /&gt;
 rm -r /vz/template&lt;br /&gt;
&lt;br /&gt;
If this is a '''new''' install, you should probably review the [http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf OpenVZ User's Guide] and the wiki's [[Quick installation]] page.  The only way you would vary your installation setups is declining to install the default vzpkg package, and instead using vzpkg2 here.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Download the repository file for your OS&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
For CentOS:&lt;br /&gt;
    wget http://repo.opensource-sw.net/centos/ossw.repo -P /etc/yum.repos.d&lt;br /&gt;
&lt;br /&gt;
For Fedora:&lt;br /&gt;
    wget http://repo.opensource-sw.net/fedora/ossw.repo -P /etc/yum.repos.d&lt;br /&gt;
&lt;br /&gt;
You may wish to edit the repository file, perhaps to add a priorities setting.  &lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Install vzpkg2 and pkg-cacher&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Once the repository is added in /etc/yum.repos.d, you can now install the new vzpkg2 and pkg-cacher from it:&lt;br /&gt;
&lt;br /&gt;
 yum install vzpkg2 vztmpl2-centos vztmpl2-fedora vztmpl2-debian vztmpl2-ubuntu&lt;br /&gt;
 yum install pkg-cacher-sa&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure vzpkg2&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Open /etc/vz/vzpkg.conf in an editor.  Replace 'hostname' with the hostname or IP of the machine you are installing this on for VZPKG_CACHE_HOST, make sure not to use 'localhost', because this name is what OpenVZ Containers will use to access the pkg-cacher daemon:&lt;br /&gt;
&lt;br /&gt;
 VZPKG_CACHE_HOST=hostname:3142&lt;br /&gt;
&lt;br /&gt;
While you are here, review this file to ensure it makes sense for your setup.  In particular, you will probably have to update the VZPKG_DNS line with IP addresses of DNS servers you use.&lt;br /&gt;
&lt;br /&gt;
 VZPKG_DNS=192.168.1.2,192.168.1.3&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure pkg-cacher&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Edit /etc/pkg-cacher/pkg-cacher.conf.  You should read the included documentation in the file to ensure it is appropriate for your setup.  Mostly the defaults will work just fine.  By default pkg-cacher will let any system use its cache.  You will probably want to limit it to your own systems on the line:&lt;br /&gt;
&lt;br /&gt;
 allowed_hosts=*&lt;br /&gt;
&lt;br /&gt;
Once you have checked and updated pkg-cacher.conf, simply restart it by running as root:&lt;br /&gt;
&lt;br /&gt;
 service pkg-cacher restart&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Generate the new template cache&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Now everything should be ready to go!  Make sure both the 'vz' service and 'pkg-cacher' service are running, then run as root:&lt;br /&gt;
&lt;br /&gt;
 vzpkgcache&lt;br /&gt;
&lt;br /&gt;
vzpkg2 should get to work generating your initial caches.  Now you can run 'vzctl create' and use them.&lt;br /&gt;
&lt;br /&gt;
====Debian Installs:====&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Remove Old Packages&amp;lt;/u&amp;gt;=====&lt;br /&gt;
If this is an '''existing''' install, uninstall your vzpkg and vztmpl-* packages:&lt;br /&gt;
&lt;br /&gt;
 apt-get erase vzpkg vzctl-ostmpl-*&lt;br /&gt;
&lt;br /&gt;
and backup &amp;amp; remove your current template directory:&lt;br /&gt;
&lt;br /&gt;
 tar cjf /some/backup/location/old_templates.tbz /vz/template&lt;br /&gt;
 rm -r /vz/template&lt;br /&gt;
&lt;br /&gt;
If this is a '''new''' install, you should probably review the [http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf OpenVZ User's Guide] and the wiki's [[Installation on Debian]] page.  The only way you would vary your installation setups is declining to install the default vzpkg package, and instead using vzpkg2 here.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Add the deb repositories to your /etc/apt/sources.list:&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Add the following lines to your /etc/apt/sources.list:&lt;br /&gt;
&lt;br /&gt;
Etch:&lt;br /&gt;
    deb http://repo.opensource-sw.net/debian/ etch openvz&lt;br /&gt;
    deb-src http://repo.opensource-sw.net/debian/ etch openvz&lt;br /&gt;
&lt;br /&gt;
Sarge:&lt;br /&gt;
    deb http://repo.opensource-sw.net/debian/ sarge openvz&lt;br /&gt;
    deb-src http://repo.opensource-sw.net/debian/ sarge openvz&lt;br /&gt;
&lt;br /&gt;
Then do:&lt;br /&gt;
    apt-get update&lt;br /&gt;
    apt-get install pkg-cacher-sa vzpkg2&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Adding New Templates:&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Install the desired OS Template Metadata packages:&lt;br /&gt;
&lt;br /&gt;
    apt-get install vztmpl2-centos vztmpl2-fedora vztmpl2-ubuntu vztmpl2-debian&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure vzpkg2&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Open /etc/vz/vzpkg.conf in an editor.  Replace 'hostname' with the hostname or IP of the machine you are installing this on for VZPKG_CACHE_HOST, make sure not to use 'localhost', because this name is what OpenVZ Containers will use to access the pkg-cacher daemon:&lt;br /&gt;
&lt;br /&gt;
 VZPKG_CACHE_HOST=hostname:3142&lt;br /&gt;
&lt;br /&gt;
While you are here, review this file to ensure it makes sense for your setup.  In particular, you will probably have to update the VZPKG_DNS line with IP addresses of DNS servers you use.&lt;br /&gt;
&lt;br /&gt;
 VZPKG_DNS=192.168.1.2,192.168.1.3&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure pkg-cacher&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Edit /etc/pkg-cacher/pkg-cacher.conf.  You should read the included documentation in the file to ensure it is appropriate for your setup.  Mostly the defaults will work just fine.  By default pkg-cacher will let any system use its cache.  You will probably want to limit it to your own systems on the line:&lt;br /&gt;
&lt;br /&gt;
 allowed_hosts=*&lt;br /&gt;
&lt;br /&gt;
Once you have checked and updated pkg-cacher.conf, simply restart it.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Generate the new template cache&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Now everything should be ready to go!  Make sure both the 'vz' service and 'pkg-cacher' service are running&lt;br /&gt;
&lt;br /&gt;
To get a list of what OS Templates you may now use, type the following:&lt;br /&gt;
&lt;br /&gt;
 vzpkgls&lt;br /&gt;
&lt;br /&gt;
That will produce a list of available OS Templates.  Use any name given in the list as a parameter to vzpkgcache to build that OS Template.  Example:&lt;br /&gt;
&lt;br /&gt;
 vzpkgcache centos-5-i386-default&lt;br /&gt;
&lt;br /&gt;
If you want to build all OS Templates you can simply run vzpkgcache without any paramters:&lt;br /&gt;
&lt;br /&gt;
 vzpkgcache&lt;br /&gt;
&lt;br /&gt;
vzpkg2 should get to work generating your initial caches.  Now you can run 'vzctl create' and use them.&lt;br /&gt;
&lt;br /&gt;
===Source===&lt;br /&gt;
&lt;br /&gt;
The source for the new vzpkg2 and templates is available on http://git.opensource-sw.net.  In order to clone the updated source use the command:&lt;br /&gt;
 git clone http://git.opensource-sw.net/git/vzpkg  &lt;br /&gt;
&lt;br /&gt;
The templates are available using:&lt;br /&gt;
 git clone http://git.opensource-sw.net/git/vztmpl&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Install_vzpkg2_and_pkg-cacher&amp;diff=6736</id>
		<title>Install vzpkg2 and pkg-cacher</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Install_vzpkg2_and_pkg-cacher&amp;diff=6736"/>
		<updated>2008-11-26T15:21:03Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Removed the mis-information that said the metadata packages were only available in rpm format.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Introduction ===&lt;br /&gt;
&lt;br /&gt;
Robert Nelson has created a couple new utilities to make managing and updating templates and containers easier, vzpkg2 pkg-cacher.  So far they will create and update a large range of containers, including both 32bit and 64bit of the following:&lt;br /&gt;
    &lt;br /&gt;
* Centos 4 and 5,&lt;br /&gt;
* Fedora 7, 8 and 9,&lt;br /&gt;
* Debian Sarge and Etch,&lt;br /&gt;
* Ubuntu Feisty, Gutsy and Hardy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Pkg-cacher is a transparent caching proxy daemon optimized for Debian and RPM packages.  In other terms, pkg-cacher is a service that runs on a machine that other machines and containers, or &amp;quot;clients&amp;quot;, use to update themselves instead of each of them directly hitting the package repositories.  Pkg-cacher only downloads a file once and then gives that to all its clients, instead of each of the clients downloading the file from the Internet at large.  It is based on [http://www.nick-andrew.net/projects/apt-cacher/ apt-cacher], available with Debian.  This version has been modified to understand RedHat RPM repositories.  It also adds support for the HTTP Range header and deals correctly with files which have the same name but different content on different distributions or in some cases different versions of the same distribution.  &lt;br /&gt;
&lt;br /&gt;
Robert has setup repositories for Fedora, CentOS and Debian.&lt;br /&gt;
&lt;br /&gt;
====Screencast====&lt;br /&gt;
&lt;br /&gt;
Scott Dowdle has recorded a good screencast overview of vzpkg2 and pkg-cacher at:&lt;br /&gt;
&lt;br /&gt;
 http://www.montanalinux.org/vzpkg2-screencast.html&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Centos &amp;amp; Fedora installs:====&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Remove Old Packages&amp;lt;/u&amp;gt;=====&lt;br /&gt;
If this is an '''existing''' install, uninstall your vzpkg and vztmpl-* packages:&lt;br /&gt;
&lt;br /&gt;
 yum remove vzpkg vztmpl-*&lt;br /&gt;
&lt;br /&gt;
and backup &amp;amp; remove your current template directory:&lt;br /&gt;
&lt;br /&gt;
 tar cjf /some/backup/location/old_templates.tbz /vz/template&lt;br /&gt;
 rm -r /vz/template&lt;br /&gt;
&lt;br /&gt;
If this is a '''new''' install, you should probably review the [http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf OpenVZ User's Guide] and the wiki's [[Quick installation]] page.  The only way you would vary your installation setups is declining to install the default vzpkg package, and instead using vzpkg2 here.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Download the repository file for your OS&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
For CentOS:&lt;br /&gt;
    wget http://repo.opensource-sw.net/centos/ossw.repo -P /etc/yum.repos.d&lt;br /&gt;
&lt;br /&gt;
For Fedora:&lt;br /&gt;
    wget http://repo.opensource-sw.net/fedora/ossw.repo -P /etc/yum.repos.d&lt;br /&gt;
&lt;br /&gt;
You may wish to edit the repository file, perhaps to add a priorities setting.  &lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Install vzpkg2 and pkg-cacher&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Once the repository is added in /etc/yum.repos.d, you can now install the new vzpkg2 and pkg-cacher from it:&lt;br /&gt;
&lt;br /&gt;
 yum install vzpkg2 vztmpl2-centos vztmpl2-fedora vztmpl2-debian vztmpl2-ubuntu&lt;br /&gt;
 yum install pkg-cacher-sa&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure vzpkg2&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Open /etc/vz/vzpkg.conf in an editor.  Replace 'hostname' with the hostname or IP of the machine you are installing this on for VZPKG_CACHE_HOST, make sure not to use 'localhost', because this name is what OpenVZ Containers will use to access the pkg-cacher daemon:&lt;br /&gt;
&lt;br /&gt;
 VZPKG_CACHE_HOST=hostname:3142&lt;br /&gt;
&lt;br /&gt;
While you are here, review this file to ensure it makes sense for your setup.  In particular, you will probably have to update the VZPKG_DNS line with IP addresses of DNS servers you use.&lt;br /&gt;
&lt;br /&gt;
 VZPKG_DNS=192.168.1.2,192.168.1.3&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure pkg-cacher&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Edit /etc/pkg-cacher/pkg-cacher.conf.  You should read the included documentation in the file to ensure it is appropriate for your setup.  Mostly the defaults will work just fine.  By default pkg-cacher will let any system use its cache.  You will probably want to limit it to your own systems on the line:&lt;br /&gt;
&lt;br /&gt;
 allowed_hosts=*&lt;br /&gt;
&lt;br /&gt;
Once you have checked and updated pkg-cacher.conf, simply restart it by running as root:&lt;br /&gt;
&lt;br /&gt;
 service pkg-cacher restart&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Generate the new template cache&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Now everything should be ready to go!  Make sure both the 'vz' service and 'pkg-cacher' service are running, then run as root:&lt;br /&gt;
&lt;br /&gt;
 vzpkgcache&lt;br /&gt;
&lt;br /&gt;
vzpkg2 should get to work generating your initial caches.  Now you can run 'vzctl create' and use them.&lt;br /&gt;
&lt;br /&gt;
====Debian Installs:====&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Remove Old Packages&amp;lt;/u&amp;gt;=====&lt;br /&gt;
If this is an '''existing''' install, uninstall your vzpkg and vztmpl-* packages:&lt;br /&gt;
&lt;br /&gt;
 apt-get erase vzpkg vzctl-ostmpl-*&lt;br /&gt;
&lt;br /&gt;
and backup &amp;amp; remove your current template directory:&lt;br /&gt;
&lt;br /&gt;
 tar cjf /some/backup/location/old_templates.tbz /vz/template&lt;br /&gt;
 rm -r /vz/template&lt;br /&gt;
&lt;br /&gt;
If this is a '''new''' install, you should probably review the [http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf OpenVZ User's Guide] and the wiki's [[Installation on Debian]] page.  The only way you would vary your installation setups is declining to install the default vzpkg package, and instead using vzpkg2 here.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Add the deb repositories to your /etc/apt/sources.list:&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Add the following lines to your /etc/apt/sources.list:&lt;br /&gt;
&lt;br /&gt;
Etch:&lt;br /&gt;
    deb http://repo.opensource-sw.net/debian/ etch openvz&lt;br /&gt;
    deb-src http://repo.opensource-sw.net/debian/ etch openvz&lt;br /&gt;
&lt;br /&gt;
Sarge:&lt;br /&gt;
    deb http://repo.opensource-sw.net/debian/ sarge openvz&lt;br /&gt;
    deb-src http://repo.opensource-sw.net/debian/ sarge openvz&lt;br /&gt;
&lt;br /&gt;
Then do:&lt;br /&gt;
    apt-get update&lt;br /&gt;
    apt-get install pkg-cacher-sa vzpkg2&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Adding New Templates:&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Install the desired OS Template Metadata packages:&lt;br /&gt;
&lt;br /&gt;
    apt-get install vztmpl2-centos vztmpl2-fedora vztmpl2-ubuntu vztmpl2-debian&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure vzpkg2&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Open /etc/vz/vzpkg.conf in an editor.  Replace 'hostname' with the hostname or IP of the machine you are installing this on for VZPKG_CACHE_HOST, make sure not to use 'localhost', because this name is what OpenVZ Containers will use to access the pkg-cacher daemon:&lt;br /&gt;
&lt;br /&gt;
 VZPKG_CACHE_HOST=hostname:3142&lt;br /&gt;
&lt;br /&gt;
While you are here, review this file to ensure it makes sense for your setup.  In particular, you will probably have to update the VZPKG_DNS line with IP addresses of DNS servers you use.&lt;br /&gt;
&lt;br /&gt;
 VZPKG_DNS=192.168.1.2,192.168.1.3&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure pkg-cacher&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Edit /etc/pkg-cacher/pkg-cacher.conf.  You should read the included documentation in the file to ensure it is appropriate for your setup.  Mostly the defaults will work just fine.  By default pkg-cacher will let any system use its cache.  You will probably want to limit it to your own systems on the line:&lt;br /&gt;
&lt;br /&gt;
 allowed_hosts=*&lt;br /&gt;
&lt;br /&gt;
Once you have checked and updated pkg-cacher.conf, simply restart it.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Generate the new template cache&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Now everything should be ready to go!  Make sure both the 'vz' service and 'pkg-cacher' service are running, then run as root:&lt;br /&gt;
&lt;br /&gt;
 vzpkgcache&lt;br /&gt;
&lt;br /&gt;
vzpkg2 should get to work generating your initial caches.  Now you can run 'vzctl create' and use them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Source===&lt;br /&gt;
&lt;br /&gt;
The source for the new vzpkg2 and templates is available on http://git.opensource-sw.net.  In order to clone the updated source use the command:&lt;br /&gt;
 git clone http://git.opensource-sw.net/git/vzpkg  &lt;br /&gt;
&lt;br /&gt;
The templates are available using:&lt;br /&gt;
 git clone http://git.opensource-sw.net/git/vztmpl&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Install_vzpkg2_and_pkg-cacher&amp;diff=6735</id>
		<title>Install vzpkg2 and pkg-cacher</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Install_vzpkg2_and_pkg-cacher&amp;diff=6735"/>
		<updated>2008-11-26T15:20:08Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: /* Adding New Templates: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Introduction ===&lt;br /&gt;
&lt;br /&gt;
Robert Nelson has created a couple new utilities to make managing and updating templates and containers easier, vzpkg2 pkg-cacher.  So far they will create and update a large range of containers, including both 32bit and 64bit of the following:&lt;br /&gt;
    &lt;br /&gt;
* Centos 4 and 5,&lt;br /&gt;
* Fedora 7, 8 and 9,&lt;br /&gt;
* Debian Sarge and Etch,&lt;br /&gt;
* Ubuntu Feisty, Gutsy and Hardy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Pkg-cacher is a transparent caching proxy daemon optimized for Debian and RPM packages.  In other terms, pkg-cacher is a service that runs on a machine that other machines and containers, or &amp;quot;clients&amp;quot;, use to update themselves instead of each of them directly hitting the package repositories.  Pkg-cacher only downloads a file once and then gives that to all its clients, instead of each of the clients downloading the file from the Internet at large.  It is based on [http://www.nick-andrew.net/projects/apt-cacher/ apt-cacher], available with Debian.  This version has been modified to understand RedHat RPM repositories.  It also adds support for the HTTP Range header and deals correctly with files which have the same name but different content on different distributions or in some cases different versions of the same distribution.  &lt;br /&gt;
&lt;br /&gt;
Robert has setup repositories for Fedora, CentOS and Debian.&lt;br /&gt;
&lt;br /&gt;
====Screencast====&lt;br /&gt;
&lt;br /&gt;
Scott Dowdle has recorded a good screencast overview of vzpkg2 and pkg-cacher at:&lt;br /&gt;
&lt;br /&gt;
 http://www.montanalinux.org/vzpkg2-screencast.html&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Centos &amp;amp; Fedora installs:====&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Remove Old Packages&amp;lt;/u&amp;gt;=====&lt;br /&gt;
If this is an '''existing''' install, uninstall your vzpkg and vztmpl-* packages:&lt;br /&gt;
&lt;br /&gt;
 yum remove vzpkg vztmpl-*&lt;br /&gt;
&lt;br /&gt;
and backup &amp;amp; remove your current template directory:&lt;br /&gt;
&lt;br /&gt;
 tar cjf /some/backup/location/old_templates.tbz /vz/template&lt;br /&gt;
 rm -r /vz/template&lt;br /&gt;
&lt;br /&gt;
If this is a '''new''' install, you should probably review the [http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf OpenVZ User's Guide] and the wiki's [[Quick installation]] page.  The only way you would vary your installation setups is declining to install the default vzpkg package, and instead using vzpkg2 here.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Download the repository file for your OS&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
For CentOS:&lt;br /&gt;
    wget http://repo.opensource-sw.net/centos/ossw.repo -P /etc/yum.repos.d&lt;br /&gt;
&lt;br /&gt;
For Fedora:&lt;br /&gt;
    wget http://repo.opensource-sw.net/fedora/ossw.repo -P /etc/yum.repos.d&lt;br /&gt;
&lt;br /&gt;
You may wish to edit the repository file, perhaps to add a priorities setting.  &lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Install vzpkg2 and pkg-cacher&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Once the repository is added in /etc/yum.repos.d, you can now install the new vzpkg2 and pkg-cacher from it:&lt;br /&gt;
&lt;br /&gt;
 yum install vzpkg2 vztmpl2-centos vztmpl2-fedora vztmpl2-debian vztmpl2-ubuntu&lt;br /&gt;
 yum install pkg-cacher-sa&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure vzpkg2&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Open /etc/vz/vzpkg.conf in an editor.  Replace 'hostname' with the hostname or IP of the machine you are installing this on for VZPKG_CACHE_HOST, make sure not to use 'localhost', because this name is what OpenVZ Containers will use to access the pkg-cacher daemon:&lt;br /&gt;
&lt;br /&gt;
 VZPKG_CACHE_HOST=hostname:3142&lt;br /&gt;
&lt;br /&gt;
While you are here, review this file to ensure it makes sense for your setup.  In particular, you will probably have to update the VZPKG_DNS line with IP addresses of DNS servers you use.&lt;br /&gt;
&lt;br /&gt;
 VZPKG_DNS=192.168.1.2,192.168.1.3&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure pkg-cacher&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Edit /etc/pkg-cacher/pkg-cacher.conf.  You should read the included documentation in the file to ensure it is appropriate for your setup.  Mostly the defaults will work just fine.  By default pkg-cacher will let any system use its cache.  You will probably want to limit it to your own systems on the line:&lt;br /&gt;
&lt;br /&gt;
 allowed_hosts=*&lt;br /&gt;
&lt;br /&gt;
Once you have checked and updated pkg-cacher.conf, simply restart it by running as root:&lt;br /&gt;
&lt;br /&gt;
 service pkg-cacher restart&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Generate the new template cache&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Now everything should be ready to go!  Make sure both the 'vz' service and 'pkg-cacher' service are running, then run as root:&lt;br /&gt;
&lt;br /&gt;
 vzpkgcache&lt;br /&gt;
&lt;br /&gt;
vzpkg2 should get to work generating your initial caches.  Now you can run 'vzctl create' and use them.&lt;br /&gt;
&lt;br /&gt;
====Debian Installs:====&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Remove Old Packages&amp;lt;/u&amp;gt;=====&lt;br /&gt;
If this is an '''existing''' install, uninstall your vzpkg and vztmpl-* packages:&lt;br /&gt;
&lt;br /&gt;
 apt-get erase vzpkg vzctl-ostmpl-*&lt;br /&gt;
&lt;br /&gt;
and backup &amp;amp; remove your current template directory:&lt;br /&gt;
&lt;br /&gt;
 tar cjf /some/backup/location/old_templates.tbz /vz/template&lt;br /&gt;
 rm -r /vz/template&lt;br /&gt;
&lt;br /&gt;
If this is a '''new''' install, you should probably review the [http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf OpenVZ User's Guide] and the wiki's [[Installation on Debian]] page.  The only way you would vary your installation setups is declining to install the default vzpkg package, and instead using vzpkg2 here.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Add the deb repositories to your /etc/apt/sources.list:&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Add the following lines to your /etc/apt/sources.list:&lt;br /&gt;
&lt;br /&gt;
Etch:&lt;br /&gt;
    deb http://repo.opensource-sw.net/debian/ etch openvz&lt;br /&gt;
    deb-src http://repo.opensource-sw.net/debian/ etch openvz&lt;br /&gt;
&lt;br /&gt;
Sarge:&lt;br /&gt;
    deb http://repo.opensource-sw.net/debian/ sarge openvz&lt;br /&gt;
    deb-src http://repo.opensource-sw.net/debian/ sarge openvz&lt;br /&gt;
&lt;br /&gt;
Then do:&lt;br /&gt;
    apt-get update&lt;br /&gt;
    apt-get install pkg-cacher-sa vzpkg2&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Adding New Templates:&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Install the desired OS Template Metadata packages:&lt;br /&gt;
&lt;br /&gt;
    apt-get install vztmpl2-centos vztmpl2-fedora vztmpl2-ubuntu vztmpl2-debian&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
Then move the templates to where Debian expects them:&lt;br /&gt;
&lt;br /&gt;
    mv /vz/template/* /var/lib/vz/template/&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure vzpkg2&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Open /etc/vz/vzpkg.conf in an editor.  Replace 'hostname' with the hostname or IP of the machine you are installing this on for VZPKG_CACHE_HOST, make sure not to use 'localhost', because this name is what OpenVZ Containers will use to access the pkg-cacher daemon:&lt;br /&gt;
&lt;br /&gt;
 VZPKG_CACHE_HOST=hostname:3142&lt;br /&gt;
&lt;br /&gt;
While you are here, review this file to ensure it makes sense for your setup.  In particular, you will probably have to update the VZPKG_DNS line with IP addresses of DNS servers you use.&lt;br /&gt;
&lt;br /&gt;
 VZPKG_DNS=192.168.1.2,192.168.1.3&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Configure pkg-cacher&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Edit /etc/pkg-cacher/pkg-cacher.conf.  You should read the included documentation in the file to ensure it is appropriate for your setup.  Mostly the defaults will work just fine.  By default pkg-cacher will let any system use its cache.  You will probably want to limit it to your own systems on the line:&lt;br /&gt;
&lt;br /&gt;
 allowed_hosts=*&lt;br /&gt;
&lt;br /&gt;
Once you have checked and updated pkg-cacher.conf, simply restart it.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;u&amp;gt;Generate the new template cache&amp;lt;/u&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Now everything should be ready to go!  Make sure both the 'vz' service and 'pkg-cacher' service are running, then run as root:&lt;br /&gt;
&lt;br /&gt;
 vzpkgcache&lt;br /&gt;
&lt;br /&gt;
vzpkg2 should get to work generating your initial caches.  Now you can run 'vzctl create' and use them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Source===&lt;br /&gt;
&lt;br /&gt;
The source for the new vzpkg2 and templates is available on http://git.opensource-sw.net.  In order to clone the updated source use the command:&lt;br /&gt;
 git clone http://git.opensource-sw.net/git/vzpkg  &lt;br /&gt;
&lt;br /&gt;
The templates are available using:&lt;br /&gt;
 git clone http://git.opensource-sw.net/git/vztmpl&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Install_vzpkg2_and_pkg-cacher&amp;diff=6702</id>
		<title>Install vzpkg2 and pkg-cacher</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Install_vzpkg2_and_pkg-cacher&amp;diff=6702"/>
		<updated>2008-11-19T18:12:33Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Initial place holder entry&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a place holder for the page BurnMage is going to update with instructions culled from the OpenVZ Users mailing list... from emails by Robert Nelson on how to install vzpkg2 and pkg-cacher.&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Differences_between_venet_and_veth&amp;diff=6097</id>
		<title>Differences between venet and veth</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Differences_between_venet_and_veth&amp;diff=6097"/>
		<updated>2008-06-17T20:56:13Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: There were a few typos... and I changed veth to venet with regards to speed and the host node admin config.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenVZ provides you to use either  [[veth]] (Virtual eTHernet) or [[venet]] (Virtual NETwork) devices (or both) for in-[[CT]] networking. Here we describe the differences between those devices.&lt;br /&gt;
&lt;br /&gt;
* ''veth'' allows broadcasts in CT, so you can use even a DHCP server inside a CT, or a samba server with domain broadcasts or other such stuff.&lt;br /&gt;
* ''veth'' has some security implications, so is not recommended in untrusted environments like HSP. This is due to broadcasts, traffic sniffing, possible IP collisions etc. i.e. CT's user can actually ruin your ethernet network with such direct access to ethernet layer.&lt;br /&gt;
* With ''venet'' device, only OpenVZ host node administrator can assign an IP to a CT. With ''veth'' device, network settings can be fully done on CT side by the CT administrator. CT should setup correct gateway, IP/netmask etc. and then a [[HN|node]] admin can only choose where your traffic goes.&lt;br /&gt;
* ''veth'' devices can be bridged together and/or with other devices. For example, in host system admin can bridge ''veth'' from 2 CTs with some VLAN eth0.X. In this case, these 2 CTs will be connected to this VLAN.&lt;br /&gt;
* ''venet'' device is a bit faster and more efficient.&lt;br /&gt;
* With ''veth'' devices, IPv6 auto generates an address from MAC.&lt;br /&gt;
&lt;br /&gt;
The brief summary:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
|+ '''Differences between veth and venet'''&lt;br /&gt;
! Feature !! [[veth]] !! [[venet]]&lt;br /&gt;
|-&lt;br /&gt;
! MAC address&lt;br /&gt;
| {{yes}} || {{no}}&lt;br /&gt;
|-&lt;br /&gt;
! Broadcasts inside CT&lt;br /&gt;
| {{yes}} || {{no}}&lt;br /&gt;
|-&lt;br /&gt;
! Traffic sniffing&lt;br /&gt;
| {{yes}} || {{no}}&lt;br /&gt;
|-&lt;br /&gt;
! Network security&lt;br /&gt;
| style=&amp;quot;background: #ffdddd&amp;quot; | Low &amp;lt;ref&amp;gt;Due to broadcasts, sniffing and possible IP collisions etc.&amp;lt;/ref&amp;gt;&lt;br /&gt;
| style=&amp;quot;background: #ddffdd&amp;quot; | High&lt;br /&gt;
|-                         &lt;br /&gt;
! Can be used in bridges&lt;br /&gt;
| {{yes}} || {{no}}&lt;br /&gt;
|-&lt;br /&gt;
! Performance&lt;br /&gt;
| style=&amp;quot;background: #ffdddd&amp;quot; | Fast&lt;br /&gt;
| style=&amp;quot;background: #ddffdd&amp;quot; | Fastest&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Networking]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Installation_on_Debian/old&amp;diff=4251</id>
		<title>Installation on Debian/old</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Installation_on_Debian/old&amp;diff=4251"/>
		<updated>2008-03-07T22:18:09Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Added net.ipv4.ip_forward=1 as instructed by a Debian user who said it was needed.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenVZ consists of a kernel, user-level tools, and VE templates.&lt;br /&gt;
&lt;br /&gt;
This guide tells how to install the kernel and the tools on [http://www.debian.org Debian] Stable. &lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
=== Filesystems ===&lt;br /&gt;
It is recommended to use a separate partition for VEs private directories (by default /var/lib/vz/private/&amp;lt;veid&amp;gt;). The reason why you should do so is that if you wish to use OpenVZ per-VE disk quota, you won't be able to use usual Linux disk quotas on the same partition. Bear in mind, that per-VE quota in this context includes not only pure per-VE quota, but also usual Linux disk quota used in VE, not on [[HN]].&lt;br /&gt;
&lt;br /&gt;
At least try to avoid using root partition for VEs, because the root user of VE will be able to overcome 5% disk space barrier in some situations. This way HN root partition can be completely filled and it will break the system.&lt;br /&gt;
&lt;br /&gt;
OpenVZ per-VE disk quota is supported only for ext2/ext3 filesystems. So use one of these filesystems (ext3 is recommended) if you need per-VE disk quota.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Repository setup ===&lt;br /&gt;
&lt;br /&gt;
At the moment two different repositories are online at http://download.openvz.org  :&lt;br /&gt;
&lt;br /&gt;
* by Ola Lundqvist &amp;lt;opal@debian.org&amp;gt;&lt;br /&gt;
: (OpenVZ Kernels only)&lt;br /&gt;
: apt-uri http://download.openvz.org/debian&lt;br /&gt;
&lt;br /&gt;
* by Thorsten Schifferdecker &amp;lt;tsd@debian.systs.org&amp;gt;&lt;br /&gt;
: apt-uri http://download.openvz.org/debian-systs&lt;br /&gt;
: (Mirror of OpenVZ Repository from http://debian.systs.org/)&lt;br /&gt;
&lt;br /&gt;
{{Note|The next steps used the Repository at http://download.openvz.org/debian-systs, the actually OpenVZ Tools for Debian are exist only in unstable, see http://packages.debian.org/vzctl}}&lt;br /&gt;
&lt;br /&gt;
{{Note|per default on Ubuntu system, root task are done with [https://help.ubuntu.com/community/RootSudo sudo]}}&lt;br /&gt;
&lt;br /&gt;
This can be achieved by the following commands, as root or as privileged &amp;quot;sudo&amp;quot; user&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# [sudo] echo &amp;quot;deb http://download.openvz.org/debian-systs etch openvz&amp;quot; &amp;gt;&amp;gt; /etc/apt/sources.list&lt;br /&gt;
# wget http://download.openvz.org/debian-systs/dso_archiv_signing_key.asc&lt;br /&gt;
# [sudo] apt-key add dso_archiv_signing_key.asc&lt;br /&gt;
# [sudo] apt-get update&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Kernel installation ==&lt;br /&gt;
&lt;br /&gt;
{{Note|In case you want to recompile the OpenVZ kernel yourself on Debian, see [[Compiling the OpenVZ Kernel (the debian way)]].}}&lt;br /&gt;
&lt;br /&gt;
First, you need to choose what kernel you want to install.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+'''OpenVZ Kernel list built with kernel config from http://download.openvz.org'''&lt;br /&gt;
! kernel !! Description !! Hardware !! Debian Architektur&lt;br /&gt;
|-&lt;br /&gt;
! ovzkernel-2.6.18&lt;br /&gt;
| uniprocessor&lt;br /&gt;
| up to 4GB of RAM&lt;br /&gt;
| i386 and amd64&lt;br /&gt;
|-&lt;br /&gt;
! ovzkernel-2.6.18-smp&lt;br /&gt;
| symmetric multiprocessor&lt;br /&gt;
| up to 4 GB of RAM&lt;br /&gt;
| i386 and amd64&lt;br /&gt;
|-&lt;br /&gt;
! ovzkernel-2.6.18-enterprise&lt;br /&gt;
| SMP + PAE support + 4/4GB split&lt;br /&gt;
| up to 64 GB of RAM&lt;br /&gt;
| i386 only&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+'''OpenVZ Kernel list built with official Debian kernel config and OpenVZ Settings'''&lt;br /&gt;
! kernel !! Description !! Hardware !! Debian Architektur&lt;br /&gt;
|-&lt;br /&gt;
! fzakernel-2.6.18-686&lt;br /&gt;
| uni- and multiprocessor&lt;br /&gt;
| up to 4GB of RAM&lt;br /&gt;
| i386&lt;br /&gt;
|-&lt;br /&gt;
! fzakernel-2.6.18-686-bigmem&lt;br /&gt;
| symmetric multiprocessor&lt;br /&gt;
| up to 64 GB of RAM&lt;br /&gt;
| i386&lt;br /&gt;
|-&lt;br /&gt;
! fzakernel-2.6.18-amd64&lt;br /&gt;
| uni- and multiprocessor&lt;br /&gt;
| &lt;br /&gt;
| amd64&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # apt-get install &amp;lt;kernel&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Configuring the bootloader ===&lt;br /&gt;
&lt;br /&gt;
In case GRUB is used as the boot loader, it will be configured automatically, or execute update-grub; lines similar to these will be added to the &amp;lt;tt&amp;gt;/boot/grub/menu.lst&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[...]&lt;br /&gt;
  title           Debian GNU/Linux, kernel 2.6.18-ovz-028stab051.1-686&lt;br /&gt;
  root            (hd0,1)&lt;br /&gt;
  kernel          /vmlinuz-2.6.18-ovz-028stab051.1-686 root=/dev/sda5 ro vga=791&lt;br /&gt;
  initrd          /initrd.img-2.6.18-ovz-028stab051.1-686&lt;br /&gt;
  savedefault&lt;br /&gt;
[...]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|per default on debian/ubuntu, a 2.6.22 kernel will boot before a 2.6.18, please check manually the grub boot order. See man update-grub for more details}}&lt;br /&gt;
&lt;br /&gt;
=== Rebooting into OpenVZ kernel ===&lt;br /&gt;
&lt;br /&gt;
{{Warning|Before you restart your Server, keep in mind, that your system has all needed modules enabled; booting from your harddisk (e.g. hardware modules, raid system(s), lvm2 etc). May you need a INITRD (initramdisk) or compile needed kernel modules statically in.}}&lt;br /&gt;
&lt;br /&gt;
Now reboot the machine and choose the OpenVZ Linux Kernel on the boot loader menu. If the OpenVZ kernel has been booted successfully, proceed to installing the user-level tools for OpenVZ.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing the user-level tools ==&lt;br /&gt;
&lt;br /&gt;
OpenVZ needs some user-level tools installed. Those are:&lt;br /&gt;
&lt;br /&gt;
; vzctl&lt;br /&gt;
:    A utility to control OpenVZ VPSs (create, destroy, start, stop, set parameters etc.)&lt;br /&gt;
; vzquota&lt;br /&gt;
:    A utility to manage quotas for VPSs. Mostly used indirectly (by vzctl).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 # [sudo] apt-get install vzctl vzquota&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring ==&lt;br /&gt;
&lt;br /&gt;
=== sysctl ===&lt;br /&gt;
&lt;br /&gt;
There are a number of kernel parameters that should be set for OpenVZ to work correctly. These parameters are stored in &amp;lt;tt&amp;gt;/etc/sysctl.conf&amp;lt;/tt&amp;gt; file. Here is the relevant part of the file; please edit it accordingly.&lt;br /&gt;
&lt;br /&gt;
{{Note|vzctl version from debian-systs, automate changing sysctl options for openvz}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[...]&lt;br /&gt;
&lt;br /&gt;
# On Hardware Node we generally need&lt;br /&gt;
# packet forwarding enabled and proxy arp disabled&lt;br /&gt;
&lt;br /&gt;
net.ipv4.conf.default.forwarding=1&lt;br /&gt;
net.ipv4.conf.default.proxy_arp = 0&lt;br /&gt;
net.ipv4.ip_forward=1&lt;br /&gt;
&lt;br /&gt;
# Enables source route verification&lt;br /&gt;
net.ipv4.conf.all.rp_filter = 1&lt;br /&gt;
&lt;br /&gt;
# Enables the magic-sysrq key&lt;br /&gt;
kernel.sysrq = 1&lt;br /&gt;
&lt;br /&gt;
# TCP Explict Congestion Notification&lt;br /&gt;
#net.ipv4.tcp_ecn = 0&lt;br /&gt;
&lt;br /&gt;
# we do not want all our interfaces to send redirects&lt;br /&gt;
net.ipv4.conf.default.send_redirects = 1&lt;br /&gt;
net.ipv4.conf.all.send_redirects = 0&lt;br /&gt;
&lt;br /&gt;
[...]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|You can make a symlink from /var/lib/vz to /vz as backward compability to Main OpenVZ&lt;br /&gt;
 (Debian vz root directory is installed FHS-like to /var/lib/vz}}&lt;br /&gt;
&lt;br /&gt;
  # [sudo] ln -s /var/lib/vz /vz &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== VE OS Templates ===&lt;br /&gt;
&lt;br /&gt;
To install a VE, you need VE OS Template(s), precreated can be found [http://download.openvz.org/contrib/template/precreated/ here] or create it : [http://wiki.openvz.org/Debian_template_creation Debian] , [http://wiki.openvz.org/Ubuntu_Gutsy_template_creation ubuntu] and all infos about [http://wiki.openvz.org/Category:Templates Templates]&lt;br /&gt;
&lt;br /&gt;
{{Note|Setup your prefered standard OS Template : edit the /etc/vz/vz.conf}}&lt;br /&gt;
&lt;br /&gt;
  # [sudo] apt-get install vzctl-ostmpl-debian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Additial user tools ==&lt;br /&gt;
&lt;br /&gt;
; vzprocps&lt;br /&gt;
:    A set of utilities to provide system information (vzps and vztop)&lt;br /&gt;
:&lt;br /&gt;
; [http://wiki.openvz.org/Backup_of_a_running_VE_with_vzdump vzdump]&lt;br /&gt;
:    A utility to backup and restore VE. &lt;br /&gt;
&lt;br /&gt;
  # [sudo] apt-get install vzprocps vzdump&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Use it! ==&lt;br /&gt;
&lt;br /&gt;
After installing the OpenVZ kernel, user tools and a Minimal VE OS Template create a first VE and &lt;br /&gt;
do some [[Basic operations in OpenVZ environment]] and read the [[download:doc/OpenVZ-Users-Guide.pdf|doc/OpenVZ-Users-Guide.pdf]] and browse this wiki.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: HOWTO]]&lt;br /&gt;
[[Category: Installation]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Migration_from_one_HN_to_another&amp;diff=3443</id>
		<title>Migration from one HN to another</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Migration_from_one_HN_to_another&amp;diff=3443"/>
		<updated>2007-09-09T02:51:45Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I just wanted to get the content out there.  Could someone pretty this thing up?&lt;br /&gt;
&lt;br /&gt;
The vzmigrate script is used to migrate a Virutal Environment from one Hardware Node to another.&lt;br /&gt;
&lt;br /&gt;
You first have to setup SSH to permit the old HN to be able to login to the new HN without a password prompt.  Run the following on the old HN.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;[root@OpenVZ ~]# ssh-keygen -t rsa&lt;br /&gt;
Generating public/private rsa key pair.&lt;br /&gt;
Enter file in which to save the key (/root/.ssh/id_rsa):&lt;br /&gt;
Created directory '/root/.ssh'.&lt;br /&gt;
Enter passphrase (empty for no passphrase):&lt;br /&gt;
Enter same passphrase again:&lt;br /&gt;
Your identification has been saved in /root/.ssh/id_rsa.&lt;br /&gt;
Your public key has been saved in /root/.ssh/id_rsa.pub.&lt;br /&gt;
The key fingerprint is:&lt;br /&gt;
74:7a:3e:7f:27:2f:42:bb:52:4c:ad:55:31:6f:79:f2 root@OpenVZ.ics.local&lt;br /&gt;
[root@OpenVZ ~]# cd .ssh/&lt;br /&gt;
[root@OpenVZ .ssh]# ls -al&lt;br /&gt;
total 20&lt;br /&gt;
drwx------  2 root root 4096 Aug 11 09:41 .&lt;br /&gt;
drwxr-x---  5 root root 4096 Aug 11 09:40 ..&lt;br /&gt;
-rw-------  1 root root  887 Aug 11 09:41 id_rsa&lt;br /&gt;
-rw-r--r--  1 root root  231 Aug 11 09:41 id_rsa.pub&lt;br /&gt;
[root@OpenVZ .ssh]# scp id_rsa.pub root@10.1.5.6:./id_rsa.pub&lt;br /&gt;
The authenticity of host '10.1.5.6 (10.1.5.6)' can't be established.&lt;br /&gt;
RSA key fingerprint is 3f:2a:26:15:e4:37:e2:06:b8:4d:20:ee:3a:dc:c1:69.&lt;br /&gt;
Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;
Warning: Permanently added '10.1.5.6' (RSA) to the list of known hosts.&lt;br /&gt;
root@10.1.5.6's password:&lt;br /&gt;
id_rsa.pub               100%  231     0.2KB/s   00:00&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the following on the new HN.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;[root@Char ~]# cd .ssh/&lt;br /&gt;
[root@Char .ssh]# touch authorized_keys2&lt;br /&gt;
[root@Char .ssh]# chmod 600 authorized_keys2&lt;br /&gt;
[root@Char .ssh]# cat ../id_rsa.pub &amp;gt;&amp;gt; authorized_keys2&lt;br /&gt;
[root@Char .ssh]# rm ../id_rsa.pub&lt;br /&gt;
rm: remove regular file `../id_rsa.pub'? y&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the following on the old HN.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;[root@OpenVZ .ssh]# ssh -2 -v root@10.1.5.6&lt;br /&gt;
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003&lt;br /&gt;
debug1: Reading configuration data /etc/ssh/ssh_config&lt;br /&gt;
debug1: Applying options for *&lt;br /&gt;
debug1: Connecting to 10.1.5.6 [10.1.5.6] port 22.&lt;br /&gt;
debug1: Connection established.&lt;br /&gt;
debug1: permanently_set_uid: 0/0&lt;br /&gt;
debug1: identity file /root/.ssh/id_rsa type 1&lt;br /&gt;
debug1: identity file /root/.ssh/id_dsa type -1&lt;br /&gt;
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3&lt;br /&gt;
debug1: match: OpenSSH_4.3 pat OpenSSH*&lt;br /&gt;
debug1: Enabling compatibility mode for protocol 2.0&lt;br /&gt;
debug1: Local version string SSH-2.0-OpenSSH_3.9p1&lt;br /&gt;
debug1: SSH2_MSG_KEXINIT sent&lt;br /&gt;
debug1: SSH2_MSG_KEXINIT received&lt;br /&gt;
debug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&lt;br /&gt;
debug1: kex: client-&amp;gt;server aes128-cbc hmac-md5 none&lt;br /&gt;
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&amp;lt;1024&amp;lt;8192) sent&lt;br /&gt;
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP&lt;br /&gt;
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent&lt;br /&gt;
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY&lt;br /&gt;
debug1: Host '10.1.5.6' is known and matches the RSA host key.&lt;br /&gt;
debug1: Found key in /root/.ssh/known_hosts:1&lt;br /&gt;
debug1: ssh_rsa_verify: signature correct&lt;br /&gt;
debug1: SSH2_MSG_NEWKEYS sent&lt;br /&gt;
debug1: expecting SSH2_MSG_NEWKEYS&lt;br /&gt;
debug1: SSH2_MSG_NEWKEYS received&lt;br /&gt;
debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;br /&gt;
debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;br /&gt;
debug1: Authentications that can continue: publickey,gssapi-with-mic,password&lt;br /&gt;
debug1: Next authentication method: gssapi-with-mic&lt;br /&gt;
debug1: An invalid name was supplied&lt;br /&gt;
Cannot determine realm for numeric host address&lt;br /&gt;
&lt;br /&gt;
debug1: An invalid name was supplied&lt;br /&gt;
Cannot determine realm for numeric host address&lt;br /&gt;
&lt;br /&gt;
debug1: Next authentication method: publickey&lt;br /&gt;
debug1: Offering public key: /root/.ssh/id_rsa&lt;br /&gt;
debug1: Authentications that can continue: publickey,gssapi-with-mic,password&lt;br /&gt;
debug1: Offering public key: /root/.ssh/id_rsa&lt;br /&gt;
debug1: Server accepts key: pkalg ssh-rsa blen 149&lt;br /&gt;
debug1: read PEM private key done: type RSA&lt;br /&gt;
debug1: Authentication succeeded (publickey).&lt;br /&gt;
debug1: channel 0: new [client-session]&lt;br /&gt;
debug1: Entering interactive session.&lt;br /&gt;
Last login: Thu Aug  9 16:41:30 2007 from 10.1.5.20&lt;br /&gt;
[root@Char ~]# exit&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now that the vzmigrate script will function, a little bit on vzmigrate.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;This program is used for VE migration to another node&lt;br /&gt;
Usage:&lt;br /&gt;
vzmigrate [-r yes|no] [--ssh=&amp;lt;options&amp;gt;] [--keep-dst] [--online] [-v]&lt;br /&gt;
        destination_address &amp;lt;VEID&amp;gt;&lt;br /&gt;
Options:&lt;br /&gt;
-r, --remove-area yes|no&lt;br /&gt;
        Whether to remove VE on source HN for successfully migrated VE.&lt;br /&gt;
--ssh=&amp;lt;ssh options&amp;gt;&lt;br /&gt;
        Additional options that will be passed to ssh while establishing&lt;br /&gt;
        connection to destination HN. Please be careful with options&lt;br /&gt;
        passed, DO NOT pass destination hostname.&lt;br /&gt;
--keep-dst&lt;br /&gt;
        Do not clean synced destination VE private area in case of some&lt;br /&gt;
        error. It makes sense to use this option on big VE migration to&lt;br /&gt;
        avoid syncing VE private area again in case some error&lt;br /&gt;
        (on VE stop for example) occurs during first migration attempt.&lt;br /&gt;
--online&lt;br /&gt;
        Perform online (zero-downtime) migration: during the migration the&lt;br /&gt;
        VE hangs for a while and after the migration it continues working&lt;br /&gt;
        as though nothing has happened.&lt;br /&gt;
-v&lt;br /&gt;
        Verbose mode. Causes vzmigrate to print debugging messages about&lt;br /&gt;
        its progress (including some time statistics).&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is an example of migrating VE 101 from the current HN to one at 10.1.5.6:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;[root@OpenVZ .ssh]# vzmigrate 10.1.5.6 101&lt;br /&gt;
OPT:10.1.5.6&lt;br /&gt;
Starting migration of VE 101 on 10.1.5.6&lt;br /&gt;
Preparing remote node&lt;br /&gt;
Initializing remote quota&lt;br /&gt;
Syncing private&lt;br /&gt;
Syncing 2nd level quota&lt;br /&gt;
Turning quota off&lt;br /&gt;
Cleanup&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here's a simple shell script that will migrate each VPS one after another.  Just pass the destination host node as the single argument to the script.  Feel free to add the -v flag to the vzmigrate flags if you'd like to see it execute with the verbose option:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
echo host=$1&lt;br /&gt;
vzlist | tail -n +2 | awk 'BEGIN { } /.*/ { print $1 }' | xargs -n1 echo vzmigrate --remove-area no --keep-dsk $1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:HOWTO]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Basic_operations_in_OpenVZ_environment&amp;diff=3403</id>
		<title>Basic operations in OpenVZ environment</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Basic_operations_in_OpenVZ_environment&amp;diff=3403"/>
		<updated>2007-08-15T02:30:36Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article assumes you have already [[Quick installation|installed OpenVZ]] and prepared the [[OS template cache]](s). If not, follow the links to perform the steps needed.&lt;br /&gt;
&lt;br /&gt;
To create and start a [[VE]], run the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[host-node]# vzctl create VEID --ostemplate osname&lt;br /&gt;
[host-node]# vzctl set VEID --ipadd a.b.c.d --save&lt;br /&gt;
[host-node]# vzctl set VEID --nameserver a.b.c.d --save&lt;br /&gt;
[host-node]# vzctl start VEID&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here &amp;lt;tt&amp;gt;VEID&amp;lt;/tt&amp;gt; is the numeric ID for the VE; &amp;lt;tt&amp;gt;osname&amp;lt;/tt&amp;gt; is the name of the OS template for the VE, and &amp;lt;tt&amp;gt;a.b.c.d&amp;lt;/tt&amp;gt; is the IP address to be assigned to the VE.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[host-node]# vzctl create 101 --ostemplate fedora-core-5-minimal&lt;br /&gt;
[host-node]# vzctl set 101 --ipadd 10.1.2.3 --save&lt;br /&gt;
[host-node]# vzctl set 101 --nameserver 10.0.2.1 --save&lt;br /&gt;
[host-node]# vzctl start 101&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your freshly-created VE should be up and running now; you can see its processes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[host-node]# vzctl exec VEID ps ax&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enter VE give the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[host-node]# vzctl enter VEID&lt;br /&gt;
entered into VPS VEID&lt;br /&gt;
[ve]#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To exit from VE, just type &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt; and press enter:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[ve]# exit&lt;br /&gt;
exited from VPS VEID&lt;br /&gt;
&lt;br /&gt;
[host-node]#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To stop VE:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[host-node]# vzctl stop VEID&lt;br /&gt;
Stopping VPS ...&lt;br /&gt;
VPS was stopped&lt;br /&gt;
VPS is unmounted&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And to destroy VE:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[host-node]# vzctl destroy VEID&lt;br /&gt;
Destroying VPS private area: /vz/private/VEID&lt;br /&gt;
VPS private area was destroyed&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, when you know how to manage your [[VE]], learn about [[Resource management]].&lt;br /&gt;
&lt;br /&gt;
[[Category: Installation]]&lt;br /&gt;
[[Category: HOWTO]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=LinuxWorld2007&amp;diff=3335</id>
		<title>LinuxWorld2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=LinuxWorld2007&amp;diff=3335"/>
		<updated>2007-07-18T17:08:45Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Opps, didn't get it right the first time.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenVZ will have a exhibit space at [http://linuxworldexpo.com/live/12/ LinuxWorld Conference and Expo], which will be held 6 to 9 August 2007 in San Francisco, California.&lt;br /&gt;
&lt;br /&gt;
This page serves as a hub for ideas about what we gonna do at our booth and beyond, as well as a plan.&lt;br /&gt;
&lt;br /&gt;
== Ideas ==&lt;br /&gt;
&lt;br /&gt;
=== Community participation ===&lt;br /&gt;
* Made announces here ([[Template:Main page announce]]), at the mailing lists, forum, [http://community.livejournal.com/openvz/15447.html blog]&lt;br /&gt;
&lt;br /&gt;
=== Hand-outs ===&lt;br /&gt;
* live CDs + install DVDs&lt;br /&gt;
* OpenVZ brochure&lt;br /&gt;
&lt;br /&gt;
=== Timed events ===&lt;br /&gt;
* Quiz with OpenVZ T-shirts for winners (e.g. two times a day at a predefined time)&lt;br /&gt;
&lt;br /&gt;
=== Demos ===&lt;br /&gt;
Either on request or at predefined times&lt;br /&gt;
&lt;br /&gt;
* OpenVZ live demo, including migration (see [[demo scripts]]) -- on a few notebooks/workstations&lt;br /&gt;
* OpenVZ on Xen demo&lt;br /&gt;
* OpenVZ on VMware/Parallels demo&lt;br /&gt;
&lt;br /&gt;
=== Hiring ===&lt;br /&gt;
&lt;br /&gt;
We seek for and hire kernel developers to participate in OpenVZ.&lt;br /&gt;
&lt;br /&gt;
== Crew ==&lt;br /&gt;
&lt;br /&gt;
The following people are gonna be at the booth:&lt;br /&gt;
* [[User:Kir|Kir Kolyshkin]], OpenVZ project manager, t-shirt: '''L'''.&lt;br /&gt;
* Konstantin Khorenko, OpenVZ kernel team member, t-shirt: '''M'''.&lt;br /&gt;
* Scott Dowdle, BozemanLUG (Bozeman, Montana), t-shirt: '''XXL'''.&lt;br /&gt;
* Warren Sanders, BillingsLUG (Billings, Montana), t-shirt: '''XL'''.&lt;br /&gt;
* Marc Perkel&lt;br /&gt;
&lt;br /&gt;
If you wanna join and be a part of OpenVZ crew at the event, it's not too late yet -- email kir-AT-openvz.org.&lt;br /&gt;
&lt;br /&gt;
=== Schedule ===&lt;br /&gt;
&lt;br /&gt;
This table lists who is on-duty for the OpenVZ booth at given times. Those are minimally required times; feel free to spend more time at the booth.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!| When/Who&lt;br /&gt;
!| Kir&lt;br /&gt;
!| Kostya&lt;br /&gt;
!| Scott&lt;br /&gt;
!| Warren&lt;br /&gt;
!| Marc&lt;br /&gt;
|-&lt;br /&gt;
|| Tuesday, 7th, 9am to 1pm&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
|-&lt;br /&gt;
|| Tuesday, 7th, 1pm to 5pm&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yesno}}&lt;br /&gt;
| .&lt;br /&gt;
| .&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|| Wednesday, 8th, 10am to 1:30pm&lt;br /&gt;
| .&lt;br /&gt;
| .&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yesno}}&lt;br /&gt;
|-&lt;br /&gt;
|| Wednesday, 8th, 1:30pm to 5pm&lt;br /&gt;
| .&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yesno}}&lt;br /&gt;
| .&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|| Thursday, 9th, 10am to 1pm&lt;br /&gt;
| {{yesno}}&lt;br /&gt;
| .&lt;br /&gt;
| .&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
|-&lt;br /&gt;
|| Thursday, 9th, 1pm to 4 pm&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yesno}}&lt;br /&gt;
| .&lt;br /&gt;
| .&lt;br /&gt;
| {{yes}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Demo scripts]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=LinuxWorld2007&amp;diff=3334</id>
		<title>LinuxWorld2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=LinuxWorld2007&amp;diff=3334"/>
		<updated>2007-07-18T17:08:15Z</updated>

		<summary type="html">&lt;p&gt;Dowdle: Added tee-shirts sizes for Scott and Warren and updated LUG references&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;OpenVZ will have a exhibit space at [http://linuxworldexpo.com/live/12/ LinuxWorld Conference and Expo], which will be held 6 to 9 August 2007 in San Francisco, California.&lt;br /&gt;
&lt;br /&gt;
This page serves as a hub for ideas about what we gonna do at our booth and beyond, as well as a plan.&lt;br /&gt;
&lt;br /&gt;
== Ideas ==&lt;br /&gt;
&lt;br /&gt;
=== Community participation ===&lt;br /&gt;
* Made announces here ([[Template:Main page announce]]), at the mailing lists, forum, [http://community.livejournal.com/openvz/15447.html blog]&lt;br /&gt;
&lt;br /&gt;
=== Hand-outs ===&lt;br /&gt;
* live CDs + install DVDs&lt;br /&gt;
* OpenVZ brochure&lt;br /&gt;
&lt;br /&gt;
=== Timed events ===&lt;br /&gt;
* Quiz with OpenVZ T-shirts for winners (e.g. two times a day at a predefined time)&lt;br /&gt;
&lt;br /&gt;
=== Demos ===&lt;br /&gt;
Either on request or at predefined times&lt;br /&gt;
&lt;br /&gt;
* OpenVZ live demo, including migration (see [[demo scripts]]) -- on a few notebooks/workstations&lt;br /&gt;
* OpenVZ on Xen demo&lt;br /&gt;
* OpenVZ on VMware/Parallels demo&lt;br /&gt;
&lt;br /&gt;
=== Hiring ===&lt;br /&gt;
&lt;br /&gt;
We seek for and hire kernel developers to participate in OpenVZ.&lt;br /&gt;
&lt;br /&gt;
== Crew ==&lt;br /&gt;
&lt;br /&gt;
The following people are gonna be at the booth:&lt;br /&gt;
* [[User:Kir|Kir Kolyshkin]], OpenVZ project manager, t-shirt: '''L'''.&lt;br /&gt;
* Konstantin Khorenko, OpenVZ kernel team member, t-shirt: '''M'''.&lt;br /&gt;
* Scott Dowdle, BozemanLUG (Bozeman, Montana), t-shirt: '''XL'''.&lt;br /&gt;
* Warren Sanders, BillingsLUG (Billings, Montana), t-shirt: '''XXL'''.&lt;br /&gt;
* Marc Perkel&lt;br /&gt;
&lt;br /&gt;
If you wanna join and be a part of OpenVZ crew at the event, it's not too late yet -- email kir-AT-openvz.org.&lt;br /&gt;
&lt;br /&gt;
=== Schedule ===&lt;br /&gt;
&lt;br /&gt;
This table lists who is on-duty for the OpenVZ booth at given times. Those are minimally required times; feel free to spend more time at the booth.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!| When/Who&lt;br /&gt;
!| Kir&lt;br /&gt;
!| Kostya&lt;br /&gt;
!| Scott&lt;br /&gt;
!| Warren&lt;br /&gt;
!| Marc&lt;br /&gt;
|-&lt;br /&gt;
|| Tuesday, 7th, 9am to 1pm&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
|-&lt;br /&gt;
|| Tuesday, 7th, 1pm to 5pm&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yesno}}&lt;br /&gt;
| .&lt;br /&gt;
| .&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|| Wednesday, 8th, 10am to 1:30pm&lt;br /&gt;
| .&lt;br /&gt;
| .&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yesno}}&lt;br /&gt;
|-&lt;br /&gt;
|| Wednesday, 8th, 1:30pm to 5pm&lt;br /&gt;
| .&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yesno}}&lt;br /&gt;
| .&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
|| Thursday, 9th, 10am to 1pm&lt;br /&gt;
| {{yesno}}&lt;br /&gt;
| .&lt;br /&gt;
| .&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yes}}&lt;br /&gt;
|-&lt;br /&gt;
|| Thursday, 9th, 1pm to 4 pm&lt;br /&gt;
| {{yes}}&lt;br /&gt;
| {{yesno}}&lt;br /&gt;
| .&lt;br /&gt;
| .&lt;br /&gt;
| {{yes}} &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Demo scripts]]&lt;/div&gt;</summary>
		<author><name>Dowdle</name></author>
		
	</entry>
</feed>