RE: [Vserver] Virtualizing a physical server

From: <>
Date: Wed 25 Jan 2006 - 17:02:26 GMT
Message-ID: <>

This is what I did. Modify as required.

Hope it helps.

Creating a vserver from a non-vserver host (The server was redhat AS 3)

    * 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 --interface 172.27.XX.XX --netdev eth0 --netmask --initstyle plain

ssh calcrs03
cat /home/sig/rsync-exclude.txt

sudo rsync -avz -e ssh --exclude-from=/home/sig/rsync-exclude.txt / 172.27.XX.XX:/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
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-----
[]On Behalf Of Ehab Heikal
Sent: Tuesday, January 24, 2006 6:13 PM
Subject: [Vserver] Virtualizing a physical server

I need to setup a development or staging server of an existing running
server. Is there a tool to do so?

Vserver mailing list
Vserver mailing list
Received on Wed Jan 25 17:02:57 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 25 Jan 2006 - 17:02:59 GMT by hypermail 2.1.8