RE: [Vserver] moving a physical server to a virtual server...?

From: <smagnuson_at_forzani.com>
Date: Thu 10 Nov 2005 - 14:58:01 GMT
Message-ID: <511A30B014A7DF42902B680EA85C07DC0BAD49DE@CALMAIL01.fglcorporate.net>

Pretty much. I have included my notes on how I do it.

later
sig


Creating a vserver from a non-vserver host

    * Clone host1 (non-vserver) to host2:vserver1
        calcrs03 --> calvunix02:rhas3template01

ssh calvunix02
sudo /etc/rc.d/rsyncd start
sudo vserver vrhas3template01 build -m skeleton -n vrhas3template01 --context 30 --hostname vrhas3template01.corporate.net --interface 192.168.10.206 --netdev eth0 --netmask 255.255.248.0 --initstyle plain

ssh calcrs03
cat /home/sig/rsync-exclude.txt
/u01/
/u02/
/u03/
/unix_data/
/proc/
/dev/
/boot/

sudo rsync -avz -e ssh --exclude-from=/home/sig/rsync-exclude.txt / calvunix02:/vservers/vrhas3template01

ssh calvunix02
sudo vi /vservers/vrhas3template01/etc/resolv.conf
sudo vi /vservers/vrhas3template01/etc/fstab
sudo vi /vservers/vrhas3template01/etc/hosts
sudo vi /vservers/vrhas3template01/etc/ssh/sshd_config
        X11UseLocalhost no - Needed for vserver x forwarding (ORACLE)
sudo vi /vservers/vrhas3template01/etc/sysconfig/network
        set hostname
sudo vi /vservers/vrhas3template01/etc/rc.sysinit
        remove mtab references
        remove tty references
sudo vi /vservers/vrhas3template01/etc/inittab
        remove tty references
check over /usr/local/etc/vservers/vrhas3template01/..

sudo vserver vrhas3template01 start
sudo vserver-stat
sudo vserver vrhas3template01 enter




-----Original Message-----
From: vserver-bounces@list.linux-vserver.org
[mailto:vserver-bounces@list.linux-vserver.org]On Behalf Of Evert Meulie
Sent: Thursday, November 10, 2005 7:20 AM
To: vserver@list.linux-vserver.org
Subject: [Vserver] moving a physical server to a virtual server...?


Hi all!

I have the following problem. We have a server here that originally was set up as www/mysql/etc/etc server for client A. Later on this server was reconfigured as vserver and client B was set up as
vserver. Now we want to move client A from the 'main server' to a vserver as well.
What is the best way to do this? I have used client B's vserver as template to create a virtual server for client A. Should I now just copy /* (excluding /vservers & /proc /tmp /dev/pts, of course)
from / to /vservers/[client A]

will this do the trick?


   Evert

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu Nov 10 14:58:27 2005

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 10 Nov 2005 - 14:58:30 GMT by hypermail 2.1.8