RE: [Vserver] Re: I would like to know how to build a FC4 template

From: <>
Date: Wed 19 Oct 2005 - 18:37:38 BST
Message-ID: <>

# 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 --interface --netdev eth0 --netmask --initstyle plain
# 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)
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 --interface --netdev eth0 --netmask --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.

-----Original Message-----
From: []On Behalf Of Steven Truong
Sent: Wednesday, October 19, 2005 11:23 AM
To: Steven Truong;
Subject: Re: [Vserver] Re: I would like to know how to build a FC4 template

Hi, Mr. Poetzl. Thanks for answering my question.

Regarding the user-space command, ah, maybe I did not think it through when I wrote that. But my concern is that once you hard copy a guest server, then you still need to copy/create /etc/vservers/newtest, where newtest is the name of the newly copied server /vservers/newtest.
Basically, by copying by hand, users have to take of these steps???

Or should you suggest to use vserver-copy, then delete /vservers/newtest, then hard-copy. Because my guess is that vserver-copy would take care some of the works regarding configuration files.

I have troubles carrying out some of the steps because I just don't know which of which is legacy or new. I have tried to absord as much infor as possible but I am sure I might forget some of the readings.

Could you suggest or point to document(s) that describe(s) correct ways of doing these things?

Thanks for sharing your knowledge.

On 10/19/05, Herbert Poetzl <> wrote:

On Tue, Oct 18, 2005 at 04:55:24PM -0700, Steven Truong wrote:
> Hi, all. Thanks for your answers. Thank *smagnuson and* Mr. Poetzl . As Mr.
> Poetzl suggested by those two commands, then we just build one guest server
> and then (hard) copy by: 'cp -va' the whole guest server to the new one. Is
> it possible that we bypass the user-space commands/utilities to clone a
> guest this way? If so, then wonderful.

what do you mean by bypass user-space commands?

> Btw, is it the best possible and portable way?

please elaborate!


> Thanks.
> On 10/18/05, Steven Truong < <> > wrote:
> >
> > Hi, all. It is a good idea to build a guest server with basic all around
> > apps and then clone this basic server to other guest of the same
> > distribution, in my case FC4. Then for each clone, I would be able to add
> > specific apps to it.
> >
> > For this matter, I could not find enough information to try. It seems like
> > for Gentoo distribution that you can tar the whole guest server and then reuse this tarball.
> >
> > I also found vserver-copy and read the man page and tried this on my
> > configured guest server. I got the following error trying to copy my lanweb
> > FC4 guest server to a newtest guest server:
> >
> > vserver-copy -v lanweb/ newtest
> > I: vserver-copy: called on abc-25 at Tue Oct 18 12:28:25 PDT 2005
> > newtest
> > E: vserver-copy: Vserver file "/etc/vservers/lanweb/.conf" does not exist
> >
> > Coudl somebody tell me what .conf file and where/how to configure/find it?
> > Is it the same file with /etc/vservers/lanweb/lanweb.conf file. Currently, I
> > disabled/do not have this lanweb.conf file.
> > In the man page, it also mention about /etc/vservers/vserver.conf and with
> > my current settings, I don't have this file either.
> >
> > Could someone give me some information regarding all of these .conf files?
> >
> >
> > Thank you in advance for all your helps.
> > Steven.
> >

> _______________________________________________
> Vserver mailing list

Vserver mailing list
Received on Wed Oct 19 18:38:10 2005

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 19 Oct 2005 - 18:38:15 BST by hypermail 2.1.8