<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://linux-vserver.at/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://linux-vserver.at/index.php?action=history&amp;feed=atom&amp;title=Migrating_from_OpenVZ_to_Linux-Vserver</id>
		<title>Migrating from OpenVZ to Linux-Vserver - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://linux-vserver.at/index.php?action=history&amp;feed=atom&amp;title=Migrating_from_OpenVZ_to_Linux-Vserver"/>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=Migrating_from_OpenVZ_to_Linux-Vserver&amp;action=history"/>
		<updated>2026-04-10T01:00:31Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://linux-vserver.at/index.php?title=Migrating_from_OpenVZ_to_Linux-Vserver&amp;diff=5033&amp;oldid=prev</id>
		<title>Glenn: catchg</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=Migrating_from_OpenVZ_to_Linux-Vserver&amp;diff=5033&amp;oldid=prev"/>
				<updated>2011-10-21T21:22:15Z</updated>
		
		<summary type="html">&lt;p&gt;catchg&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:22, 21 October 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 66:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 66:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Welcome back!&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Welcome back!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Documentation&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Migration&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Glenn</name></author>	</entry>

	<entry>
		<id>http://linux-vserver.at/index.php?title=Migrating_from_OpenVZ_to_Linux-Vserver&amp;diff=4880&amp;oldid=prev</id>
		<title>Glenn: +cat</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=Migrating_from_OpenVZ_to_Linux-Vserver&amp;diff=4880&amp;oldid=prev"/>
				<updated>2011-10-21T19:19:31Z</updated>
		
		<summary type="html">&lt;p&gt;+cat&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:19, 21 October 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 65:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 65:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Welcome back!&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Welcome back!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Documentation]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Glenn</name></author>	</entry>

	<entry>
		<id>http://linux-vserver.at/index.php?title=Migrating_from_OpenVZ_to_Linux-Vserver&amp;diff=3223&amp;oldid=prev</id>
		<title>Fluor: quick transcript of an openvz to linux-vserver migration</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/index.php?title=Migrating_from_OpenVZ_to_Linux-Vserver&amp;diff=3223&amp;oldid=prev"/>
				<updated>2008-08-12T13:19:01Z</updated>
		
		<summary type="html">&lt;p&gt;quick transcript of an openvz to linux-vserver migration&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;So, you've repeatedely heard that [http://openvz.org/ OpenVZ] was hip, better than [http://linux-vserver.org/ Linux-Vserver] even, and thought you'd give it a try? So did we! However, you weren't as pleased as you were supposed to be, and kept thinking back about how Linux-Vserver was cool for you? Well, if that's your case too, here's how we moved back to Linux-Vserver in a few simple keystrokes.&lt;br /&gt;
&lt;br /&gt;
== System info ==&lt;br /&gt;
&lt;br /&gt;
=== Kernels ===&lt;br /&gt;
&lt;br /&gt;
We are running [http://debian.org/ Debian GNU/Linux], in its testing flavour (pre-release Lenny, frozen package base). For OpenVZ, we were using [http://packages.debian.org/sid/linux-image-2.6.26-1-openvz-686 Debian kernel 2.6.26 with OpenVZ patches]. For Linux-Vserver, we are using [http://packages.debian.org/lenny/linux-image-2.6.25-2-vserver-686 Debian kernel 2.6.25 with Linux-Vserver patches].&lt;br /&gt;
&lt;br /&gt;
=== Paths ===&lt;br /&gt;
&lt;br /&gt;
We created our OpenVZ CTs under ''/srv/vps/$VEID/{private,root}/'', and our vservers under ''/srv/vservers/''.&lt;br /&gt;
&lt;br /&gt;
== Migrating ==&lt;br /&gt;
&lt;br /&gt;
=== Copying data ===&lt;br /&gt;
&lt;br /&gt;
After rebooting under the -vserver kernel, here's how we migrated each VPS, using the 'rsync method':&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[sudo] vserver $vname build -m rsync \&lt;br /&gt;
               --hostname $vhostname \&lt;br /&gt;
               --interface $interface:$ip \&lt;br /&gt;
               --context $ctx -- \&lt;br /&gt;
               --source /srv/vps/$veid/private/ -o -va&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, for migrating an OpenVZ CT named [http://en.wikipedia.org/wiki/Seitan 'seitan'] using '192.168.66.6' on 'eth0', in context '666', the command would look like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo vserver seitan build -m rsync \&lt;br /&gt;
             --hostname seitan \ &lt;br /&gt;
             --interface eth0:192.168.66.6/24 \&lt;br /&gt;
             --context 666 -- \&lt;br /&gt;
             --source /srv/vps/seitan/private/ -o -va&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note the trailing ''-o -va'', which allows us to follow rsync as it goes.&lt;br /&gt;
&lt;br /&gt;
=== Fix daemons ===&lt;br /&gt;
&lt;br /&gt;
When rsync is done, we can't start our vservers yet, because some of the system daemons that OpenVZ allows are not compatible with a Vserver environment. Let's remove their startup links, then!&lt;br /&gt;
&lt;br /&gt;
To do so, let's chroot into our freshly migrated vserver:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo chroot /srv/vservers/seitan/&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once inside, let's unlink all the undesired daemons:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for undesired in klogd hwclock.sh setserial urandom networking umountfs halt reboot ; &lt;br /&gt;
    do update-rc.d -f $undesired remove ;&lt;br /&gt;
done&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Enjoy ===&lt;br /&gt;
&lt;br /&gt;
Let's log out of the chroot, and start our vserver!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
exit&lt;br /&gt;
sudo vserver seitan start&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It should work fine, provided some of your daemons don't depend upon bind mounts from host, which then need to be integrated into the fstab for each of your vservers.&lt;br /&gt;
&lt;br /&gt;
Welcome back!&lt;/div&gt;</summary>
		<author><name>Fluor</name></author>	</entry>

	</feed>