This is what I did. Modify as required.
Hope it helps.
sig
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 vrhas3template01.corporate.net --interface 172.27.XX.XX --netdev eth0 --netmask 255.255.248.0 --initstyle plain
ssh calcrs03
cat /home/sig/rsync-exclude.txt
/u01/
/u02/
/u03/
/u04/
/u05/
/u06/
/u07/
/u08/
/u09/
/u10/
/u11/
/u99/
/unix_data/
/proc/
/dev/
/boot/
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-----
From: vserver-bounces@list.linux-vserver.org
[mailto:vserver-bounces@list.linux-vserver.org]On Behalf Of Ehab Heikal
Sent: Tuesday, January 24, 2006 6:13 PM
To: vserver@list.linux-vserver.org
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@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 Wed Jan 25 17:02:57 2006