<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title>Parallels knowledgebase (KB)</title>
<link>http://kb.parallels.com/</link>
<description>Parallels knowledgebase (KB)</description>
<language>en</language>
<copyright>Copyright 2008 Parallels</copyright>
<pubDate>Wed, 10 Sep 2008 00:00:00 +0600</pubDate>
<lastBuildDate>Wed, 10 Sep 2008 00:00:00 +0600</lastBuildDate>
<webMaster>rt-team@parallels.com</webMaster>

<item>
<title><![CDATA[How do I (re)create Service Container?]]></title>
<link>http://kb.parallels.com/en/1089</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">How do I (re)create Service Container?</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 1089&nbsp;</div>
					<div>Last Review: Oct,24 2009</div>
					<tr>
						<td>Author: </td>
						<td>Maxim Sudyin</td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>Maxim Sudyin</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Virtuozzo for Linux 3.x</li>
							<li>Virtuozzo Containers for Linux 4.0</li>
						</ul>
					</div>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

			<div class="article-internal-flag"></div>

			<div id="article-content">
				<div class="article-part">
					<h2>Resolution</h2>
					In case you are using <strong>Parallels Infrastructure Manager (PIM)</strong> please make sure that you have the recent backup of your PIM infrastructure, as described in the article <a href="http://kb.parallels.comhttp://kb.parallels.com/en/5431">How to backup and restore Parallels Infrastructure Manager.</a><br /><br />You may create Service Container on a Parallels&nbsp;Virtuozzo Containers hardware node using <span style="font-family: Courier New;">'vzsveinstall' </span>utility: <div class="commandline"><code># vzsveinstall -D DISTRIB_DIR -s SERVICE_CT_IP </code></div><br />where<br />- DISTRIB_DIR - path to Virtuozzo distribution directory hierarchy on a server. F.e. if you have the Virtuozzo distributive on your server in the directory /root/Rel400 then DISTRIB_DIR should be /root/Rel400/;<br />- SERVICE_CT_IP - IP address to be assigned to Service Container;<br /><br />In case you have downloaded Virtuozzo distributive already (example for 64-bit PVC 4.0) as file &quot;virtuozzo-4.0.0-${build_version}-x86_64.sfx&quot;, please extract it in the following way:<br /><div class="commandline"><code># mkdir -p /vz/full_distr<br /># bash /path/to/virtuozzo-4.0.0-${build_version}-x86_64.sfx -d /vz/full_distr --extract</code></div><br />You may create Service Container then using this command&nbsp; (make sure old Service Container #1 does not exist):<br /><div class="commandline"><code># vzsveinstall -v -D /vz/full_distr -s SERVICE_CT_IP</code></div><br />Please refer to man page on '<span style="font-family: Courier New;">vzsveinstall</span>' utility for additional information.<br /><br /><strong>Please note</strong> - OS template 'redhat-as3-minimal' must be installed on a hardware node and cached before Service Container may be created. If you have no that template on a node please do the following:<br />- install OS template 'redhat-as3-minimal', corresponding RPM package is located in the folder 'virtuozzo/SVE' inside Virtuozzo distrib (in Virtuozzo 3.x it is the folder 'HW/SVE');<br />- create OS template cache using '<span style="font-family: Courier New;">vzpkgcache</span>' command on a node.<br /><br />Please make sure you have the <strong>latest version</strong> of OS template 'redhat-as3-minimal' &nbsp;installed on hardware node before Service Container re-creation. The latest versions of the 'minimal' OS template are the following:<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'>Virtuozzo 3.0: <strong>20050622</strong><br />Parallels Virtuozzo Containers 4.0: <strong>20080630</strong></span><br /><br />You may run 'vzup2date', and update your node. For manual update please find 'minimal' template in /vz/vzup2date directory and install it using '<span style="font-family: Courier New;">rpm -Uhv path_to_minimal_template_rpm_package</span>' command, e.g. for 64-bit PVC 4.0:<br /><div class="commandline"><code># rpm -Uhv /vz/vzup2date/4.0.0/TU-4.0.0-438/redhat-as3-minimal-x86_64-p5nfs-tmpl-4.0.1-3.swsoft.x86_64.rpm<br /># vzpkgcache</code></div><br />If Virtuozzo server has been updated since the very first release (using <span style="font-family: Courier New;">'vzup2date'</span> utility or manually) then you need to apply all needed updates to the Service Container as well. Updates downloaded by '<span style="font-family: Courier New;">vzup2date</span>' utility are usually located under /vz/vzup2date/3.0.0/TU-3.0.0-* dirs on a Virtuozzo server. You may apply them to the Service Container using '<span style="font-family: Courier New;">vzsveupgrade</span>' utility using this simple script:<br /><div class="commandline"><code># find /vz/vzup2date -path &quot;*/$(awk '{print $NF}' /etc/virtuozzo-release)/*/virtuozzo-tools*$(uname -i)*&quot; -printf &quot;%h\n&quot; |sort -u |xargs -rn1 vzsveupgrade -d</code></div><br />If you need to re-create Service Container then you may destroy the existing one using '<span style="font-family: Courier New;">vzctl destroy 1</span>' command (container must be stopped first), then create it from the scratches and apply available updates as it is described above.
				</div>
				<div class="keywords"><strong>Keywords:</strong> Service container, create, recreate, vzsveinstall, vzsveupgrade, redhat-as3-minimal svps sve serviceve servicevps</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=1089&ArticleLanguage=en&Product=&Category="><img src="http://kb.parallels.com/images/mail.png" width="15" height="15" alt="Subscription for changes to this article"></a>
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=1089&ArticleLanguage=en&Product=&Category=">Subscription for changes to this article</a>

<script type="text/javascript">

$(document).ready(function() {
	$('#SubscriptionLink24Article a').each(function(){
		$(this).click(function(event) {
			event.preventDefault();
			MainPageContentHide();
			$('#subscription').html('');
			$.get('/Stuff/Subscription', {
													'Type' : 'Article',
													'ArticleID' : '1089',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





	</div><!-- kb -->

</div><!-- article -->


]]></description>
<author>Maxim Sudyin</author>
<guid isPermaLink="false">734 LastUpdated: 2009-10-24 03:31:03</guid>
<pubDate>2008-10-06 09:11:02</pubDate>
</item>
</channel>
</rss>



