http://wiki.linux-vserver.org/api.php?action=feedcontributions&user=Fluor&feedformat=atomLinux-VServer - User contributions [en]2024-03-29T06:57:55ZUser contributionsMediaWiki 1.20.2http://wiki.linux-vserver.org/DocumentationDocumentation2008-08-12T13:20:55Z<p>Fluor: /* Guides and Howtos */</p>
<hr />
<div><div style="margin: 2em auto 2em auto; padding: 10px; background-color: #F9ECCD; border: 1px solid #004433; text-align: center;"><br />
[[Image:Icon-Caution.png|left]]<br />
We are currently migrating to MediaWiki from our old system, but not all content has been migrated yet. Take a look at the [[Wiki Team]] page for instructions how to help or look at the [http://oldwiki.linux-vserver.org old wiki] to find the information not migrated yet.<br />
<br />
'''To ease migration we created a [[List of old Documentation pages]].'''<br />
</div><br />
<br />
== Introduction ==<br />
<br />
* [[Overview|Virtualization Overview]]<br />
* [[Usage Scenarios]]<br />
* [[Feature Matrix]]<br />
<br />
== Installation ==<br />
<br />
* [[Installation Considerations]]<br />
* [[Installation on Linux 2.6]]<br />
* [[Installation on ArchLinux]]<br />
* [[Installation on CentOS]]<br />
* [[Installation on Debian]]<br />
* [[Installation on Fedora]]<br />
* [[Installation on Gentoo]]<br />
* [[Installation on Mandrake]]<br />
* [http://pld-linux.org/Vserver Installation on PLD-Linux]<br />
* [[Installation on Redhat]]<br />
* [[Installation on Slackware]]<br />
* [[Installation on SuSE/OpenSUSE]]<br />
* [[Installation on Ubuntu]]<br />
<br />
== Configuration ==<br />
<br />
* [[util-vserver:Documentation|util-vserver Documentation]]<br />
* [[vcd:Documentation|VServer Control Daemon Documentation]]<br />
* [[Share a directory among multiple guests]]<br />
<br />
== Guides and Howtos ==<br />
<br />
* [[Building Guest Systems]]<br />
* [[util-vserver:Howto virtualize an exisiting Linux server|Howto virtualize an existing Linux server]]<br />
* [[VCMD HowTo]]<br />
* [[Howto make bsd-style init sysv-compatible|Howto make Bsd-style init sysv-compatible (archlinux guest system)]]<br />
* [[Installing 32-bit Fedora on 64-bit Debian]]<br />
* [[Installing Ubuntu on Debian]]<br />
* [[Installing an openSUSE vserver guest]]<br />
* [[Networking vserver guests]]<br />
* [[Howto HostAuth]]<br />
* [[Fuse_GlusterFS| Fuse and GlusterFS]]<br />
* [[yum-patch|How to patch vyum]]<br />
* [[yum-upgrade-3.2.4|Upgrading existing installations to yum-3.2.4]]<br />
* [[Migrating from OpenVZ to Linux-Vserver]]<br />
<br />
== Lists &amp; Theory ==<br />
<br />
* Basic configuration<br />
** [[Capabilities and Flags]]<br />
** [[CPU Scheduler]]<br />
** [[Disk Limits and Quota]]<br />
** [[Resource Limits]]<br />
*** [[Memory Limits]]<br />
** [[Virtual System Information]]<br />
** [[Unification]]<br />
<br />
* Security Considerations<br />
** [[Secure Capabilities]]<br />
** [[Secure chroot Barrier]]<br />
** [[Secure Device Nodes]]<br />
** [[Secure ProcFS Entries]]<br />
<br />
* Performance and Stability<br />
** [[Virtualization Overhead]]<br />
<br />
* Implementation Details<br />
** [[Context Accounting]]<br />
** [[Filesystem Attributes]]<br />
** [[Filesystem Tagging]]<br />
** [[Filesystem Namespaces]]<br />
** [[Kernel Userspace Helper]]<br />
** [[Mainline Kernel Virtualization]]<br />
** [[ProcFS]]<br />
** [[Syscall Command Switch]]<br />
<br />
== External Resources ==</div>Fluorhttp://wiki.linux-vserver.org/Migrating_from_OpenVZ_to_Linux-VserverMigrating from OpenVZ to Linux-Vserver2008-08-12T13:19:01Z<p>Fluor: quick transcript of an openvz to linux-vserver migration</p>
<hr />
<div>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.<br />
<br />
== System info ==<br />
<br />
=== Kernels ===<br />
<br />
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].<br />
<br />
=== Paths ===<br />
<br />
We created our OpenVZ CTs under ''/srv/vps/$VEID/{private,root}/'', and our vservers under ''/srv/vservers/''.<br />
<br />
== Migrating ==<br />
<br />
=== Copying data ===<br />
<br />
After rebooting under the -vserver kernel, here's how we migrated each VPS, using the 'rsync method':<br />
<br />
<pre><br />
[sudo] vserver $vname build -m rsync \<br />
--hostname $vhostname \<br />
--interface $interface:$ip \<br />
--context $ctx -- \<br />
--source /srv/vps/$veid/private/ -o -va<br />
</pre><br />
<br />
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:<br />
<br />
<pre><br />
sudo vserver seitan build -m rsync \<br />
--hostname seitan \ <br />
--interface eth0:192.168.66.6/24 \<br />
--context 666 -- \<br />
--source /srv/vps/seitan/private/ -o -va<br />
</pre><br />
<br />
Note the trailing ''-o -va'', which allows us to follow rsync as it goes.<br />
<br />
=== Fix daemons ===<br />
<br />
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!<br />
<br />
To do so, let's chroot into our freshly migrated vserver:<br />
<br />
<pre>sudo chroot /srv/vservers/seitan/</pre><br />
<br />
Once inside, let's unlink all the undesired daemons:<br />
<br />
<pre><br />
for undesired in klogd hwclock.sh setserial urandom networking umountfs halt reboot ; <br />
do update-rc.d -f $undesired remove ;<br />
done<br />
</pre><br />
<br />
=== Enjoy ===<br />
<br />
Let's log out of the chroot, and start our vserver!<br />
<br />
<pre><br />
exit<br />
sudo vserver seitan start<br />
</pre><br />
<br />
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.<br />
<br />
Welcome back!</div>Fluor