<?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=Mherath</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=Mherath"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Mherath"/>
	<updated>2026-05-15T16:23:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Running_Xen_and_OpenVZ_in_the_same_host&amp;diff=6260</id>
		<title>Running Xen and OpenVZ in the same host</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Running_Xen_and_OpenVZ_in_the_same_host&amp;diff=6260"/>
		<updated>2008-08-01T03:41:44Z</updated>

		<summary type="html">&lt;p&gt;Mherath: New page: I was able to get Xen and OpenVZ running on the same host with the same kernel in CentOS 5.2 64-bit. This is most likely be possible on other OS as well. I thought other people would also ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I was able to get Xen and OpenVZ running on the same host with the same kernel in CentOS 5.2 64-bit. This is most likely be possible on other OS as well. I thought other people would also be interested in knowing how to do this. So here goes.&lt;br /&gt;
&lt;br /&gt;
If you already have your OS installed skip Steps 1 to 7&lt;br /&gt;
&lt;br /&gt;
1. Install the OS (Centos) via DVD/Internet/Kickstart etc.&lt;br /&gt;
2. Update your system &lt;br /&gt;
  yum install yum-fastestmirror   &amp;lt;=== This is installed by default if you use CentOS5.2 native install. &lt;br /&gt;
  yum update -y&lt;br /&gt;
&lt;br /&gt;
3. Set your Local timezone properly. &lt;br /&gt;
 &lt;br /&gt;
 rm -rf /etc/localtime&lt;br /&gt;
 ln -s /usr/share/zoneinfo/{Your Zone here} /etc/localtime&lt;br /&gt;
 yum install ntp -y&lt;br /&gt;
 &lt;br /&gt;
 touch  /etc/cron.daily/updatetime&lt;br /&gt;
 echo &amp;quot;/usr/sbin/ntpdate -u {Your NTP Server here}&amp;quot; &amp;gt; /etc/cron.daily/updatetime&lt;br /&gt;
 &lt;br /&gt;
 /usr/sbin/ntpdate -u {Your NTP Server here}&lt;br /&gt;
&lt;br /&gt;
4. Install OpenVZ Repo&lt;br /&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;
&lt;br /&gt;
5. Download the Latest OpenVZ-XEN Kernel and install (DO NOT update)&lt;br /&gt;
&lt;br /&gt;
 wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028stab053.14/ovzkernel-xen-2.6.18-53.1.19.el5.028stab053.14.x86_64.rpm&lt;br /&gt;
 rpm -ivh ovzkernel-xen-2.6.18-53.1.19.el5.028stab053.14.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
6. Reboot the server/workstation after making sure the DEFAULT kernel is this one.&lt;br /&gt;
&lt;br /&gt;
7. Install OpenVz tools and x86_64 templates&lt;br /&gt;
&lt;br /&gt;
 yum install vzctl vzquota -y &lt;br /&gt;
 &lt;br /&gt;
 cd /tmp&lt;br /&gt;
 wget http://dag.wieers.com/rpm/packages/python-elementtree/python-elementtree-1.2.6-7.el4.rf.x86_64.rpm&lt;br /&gt;
 rpm -ivh python-elementtree-1.2.6-7.el4.rf.x86_64.rpm&lt;br /&gt;
 rm python-elementtree-1.2.6-7.el4.rf.x86_64.rpm&lt;br /&gt;
 &lt;br /&gt;
 yum install vzpkg vzyum vzrpm43-python vzrpm44-python vzctl-lib -y &lt;br /&gt;
 &lt;br /&gt;
 cd /tmp&lt;br /&gt;
 wget http://linux.carreira.com.pt/ovzutils/setx86_64-0.3.tar.gz&lt;br /&gt;
 tar -zxvf setx86_64-0.3.tar.gz&lt;br /&gt;
 sh setx86_64&lt;br /&gt;
 vzpkgls&lt;br /&gt;
&lt;br /&gt;
8.install the Xen tools&lt;br /&gt;
  &lt;br /&gt;
 yum install xen.x86_64&lt;br /&gt;
&lt;br /&gt;
9. Now you will be able to create XEN as well as OpenVZ guests on your system&lt;br /&gt;
&lt;br /&gt;
10. To list the Xen instances running use &amp;quot;xen list&amp;quot; and to list OpenVZ containers use &amp;quot;vzlist&amp;quot;&lt;br /&gt;
&lt;br /&gt;
** you should be able to simply cut and paste these commands in CentOS. **&lt;br /&gt;
&lt;br /&gt;
NOTEs: Xen tools will not let you create a Xen Guest if your available RAM is low. But OpenVZ you can pretty much create anything as long as you know the proper resource allocations.&lt;/div&gt;</summary>
		<author><name>Mherath</name></author>
		
	</entry>
</feed>