<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/index.php?action=history&amp;feed=atom&amp;title=Basic_operations_in_OpenVZ_environment%2Fen</id>
	<title>Basic operations in OpenVZ environment/en - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/index.php?action=history&amp;feed=atom&amp;title=Basic_operations_in_OpenVZ_environment%2Fen"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Basic_operations_in_OpenVZ_environment/en&amp;action=history"/>
	<updated>2026-06-13T19:30:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Basic_operations_in_OpenVZ_environment/en&amp;diff=19254&amp;oldid=prev</id>
		<title>FuzzyBot: Importing a new version from external source</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Basic_operations_in_OpenVZ_environment/en&amp;diff=19254&amp;oldid=prev"/>
		<updated>2016-02-13T13:02:34Z</updated>

		<summary type="html">&lt;p&gt;Importing a new version from external source&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This article assumes you have already [[Quick installation|installed OpenVZ]]. If not, follow the link to perform the steps needed.&lt;br /&gt;
&lt;br /&gt;
== Create and start a container ==&lt;br /&gt;
&lt;br /&gt;
To create and start a [[container]], run the following commands:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[host-node]# vzctl create CTID --ostemplate osname&lt;br /&gt;
[host-node]# vzctl set CTID --ipadd a.b.c.d --save&lt;br /&gt;
[host-node]# vzctl set CTID --nameserver a.b.c.d --save&lt;br /&gt;
[host-node]# vzctl start CTID&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here &amp;lt;tt&amp;gt;CTID&amp;lt;/tt&amp;gt; is the numeric ID for the [[container]]; &amp;lt;tt&amp;gt;osname&amp;lt;/tt&amp;gt; is the name of the OS template for the [[container]], and &amp;lt;tt&amp;gt;a.b.c.d&amp;lt;/tt&amp;gt; is the IP address to be assigned to the [[container]].&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 [[container]] 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 CTID ps ax&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Enter to and exit from the container ==&lt;br /&gt;
&lt;br /&gt;
To enter [[container]] give the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[host-node]# vzctl enter CTID&lt;br /&gt;
entered into container CTID&lt;br /&gt;
[container]#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To exit from [[container]], 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;
[container]# exit&lt;br /&gt;
exited from container VEID&lt;br /&gt;
[host-node]#&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Stop and destroy the container ==&lt;br /&gt;
&lt;br /&gt;
To stop [[container]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[host-node]# vzctl stop CTID&lt;br /&gt;
Stopping container ...&lt;br /&gt;
Container was stopped&lt;br /&gt;
Container is unmounted&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And to destroy [[container]]:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[host-node]# vzctl destroy CTID&lt;br /&gt;
Destroying container private area: /vz/private/CTID&lt;br /&gt;
Container 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 [[container]], learn about [[Resource management]].&lt;br /&gt;
&lt;br /&gt;
[[Category: Installation]]&lt;br /&gt;
[[Category: HOWTO]]&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
		
	</entry>
</feed>