RE: [Vserver] Copy VServer

From: <smagnuson_at_forzani.com>
Date: Tue 29 Nov 2005 - 18:41:54 GMT
Message-ID: <511A30B014A7DF42902B680EA85C07DC0BAD4A7C@CALMAIL01.fglcorporate.net>

Lars,
see the included post dated Oct 19, 2005

later
sig

-----Original Message-----
Sent: Wednesday, October 19, 2005 11:38 AM
Subject: RE: [Vserver] Re: I would like to know how to build a FC4 template

# This command creates the config dirs/files (/etc/vservers/vserver-name/) and base vserver home /vservers/vserver-name/)
sudo vserver vcrux02 build -m skeleton -n vcrux02 --context 200 --hostname vcrux02.corporate.net --interface 192.168.xxx.xxx --netdev eth0 --netmask 255.255.255.0 --initstyle plain
# Notes: other options would be to copy a existing vserver config to the new vserver and modify by hand using your fav text editor (vi, etc)

# Copy vserver vcrux01 to vserver vcrux02
sudo cp -rp /etc/vservers/vcrux01 /etc/vservers/vcrux02

# Here is a complete example:
sudo vserver vcrux02 build -m skeleton -n vcrux02 --context 200 --hostname vcrux02.corporate.net --interface xxx.xxx.xxx.xxx --netdev eth0 --netmask 255.255.255.0 --initstyle plain

sudo rm -rf /vservers/vcrux02

sudo cp -va /vservers/vcrux01 /vservers/vcrux02

# Here's another way
sudo cp -rp /etc/vservers/vcrux01 /etc/vservers/vcrux02
# edit/confirm config files (sudo vi /etc/vservers/vcrux02/..)
sudo cp -va /vservers/vcrux01 /vservers/vcrux02

Give the above examples a try. Replace the paths/dirs to match your situation.

later
sig

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Nov 29 18:42:24 2005

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 29 Nov 2005 - 18:42:25 GMT by hypermail 2.1.8