[Vserver] Cloning a vserver

2006-06-27 Thread Odile Bénassy
Hello,

I hope not to disturb with a low-level question, I still hope will be
useful to others.

I'm very happy with my vservers in general, I must say, and the users
too, of course.

I want to copy a vserver into a second one, because the second one will
run the same software.

So I had an IP .xxx and a name old

And I want a new IP .yyy and a new name new

1) I copied all the /vservers/old to /vservers/new

2) I copied all the /etc/vservers/old to /etc/vservers/new and also
/etc/vservers/old.conf to /etc/vservers/new.conf

3) I went into /etc/vservers/new.conf, into /etc/vservers/new, into
/vservers/new/etc and change there every string .xxx into .yyy, and
old into new

4) I fixed the /etc/vservers/new symlink

Now both vservers can start and stop. I can ping both IPs.

But if I enter new I am in old.

What do I have left behind?

-- 
Odile Bénassy, ingénieure informaticienne
Service de la Recherche et des Études Doctorales
Faculté Jean Monnet, Université Paris Sud 11
54 bd Desgranges, 92331 Sceaux Cedex
Tél : +33 (0)1 40 91 18 77 - Fax : +33 (0)1 40 91 18 56

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


Re: [Vserver] Cloning a vserver

2006-06-27 Thread Youri LACAN-BARTLEY

Hi Odile,

you might have missed out on the vserver hostname.
You should specify new in /etc/vservers/new/uts/nodename

All the rest seems fine to me but I might also be missing something obvious,

Good luck to you,

Youri

Odile Bénassy wrote:

Hello,

I hope not to disturb with a low-level question, I still hope will be
useful to others.

I'm very happy with my vservers in general, I must say, and the users
too, of course.

I want to copy a vserver into a second one, because the second one will
run the same software.

So I had an IP .xxx and a name old

And I want a new IP .yyy and a new name new

1) I copied all the /vservers/old to /vservers/new

2) I copied all the /etc/vservers/old to /etc/vservers/new and also
/etc/vservers/old.conf to /etc/vservers/new.conf

3) I went into /etc/vservers/new.conf, into /etc/vservers/new, into
/vservers/new/etc and change there every string .xxx into .yyy, and
old into new

4) I fixed the /etc/vservers/new symlink

Now both vservers can start and stop. I can ping both IPs.

But if I enter new I am in old.

What do I have left behind?

  

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


Re: [Vserver] Cloning a vserver

2006-06-27 Thread Christian Knauber
Did you change the context id of the new vserver ?
It is defined in the file /etc/vservers/new/context.

Have a nice day,

Christian

- Original Message -
From: Odile Bénassy [EMAIL PROTECTED]
To: vserver@list.linux-vserver.org
Sent: Tuesday, June 27, 2006 9:18:27 AM GMT+0100
Subject: [Vserver] Cloning a vserver

Hello,

I hope not to disturb with a low-level question, I still hope will be
useful to others.

I'm very happy with my vservers in general, I must say, and the users
too, of course.

I want to copy a vserver into a second one, because the second one will
run the same software.

So I had an IP .xxx and a name old

And I want a new IP .yyy and a new name new

1) I copied all the /vservers/old to /vservers/new

2) I copied all the /etc/vservers/old to /etc/vservers/new and also
/etc/vservers/old.conf to /etc/vservers/new.conf

3) I went into /etc/vservers/new.conf, into /etc/vservers/new, into
/vservers/new/etc and change there every string .xxx into .yyy, and
old into new

4) I fixed the /etc/vservers/new symlink

Now both vservers can start and stop. I can ping both IPs.

But if I enter new I am in old.

What do I have left behind?

-- 
Odile Bénassy, ingénieure informaticienne
Service de la Recherche et des Études Doctorales
Faculté Jean Monnet, Université Paris Sud 11
54 bd Desgranges, 92331 Sceaux Cedex
Tél : +33 (0)1 40 91 18 77 - Fax : +33 (0)1 40 91 18 56

___
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


Re: [Vserver] Cloning a vserver

2006-06-27 Thread Youri LACAN-BARTLEY

IIRC, there is no need to manually specify the context ID ...

Christian Knauber wrote:

Did you change the context id of the new vserver ?
It is defined in the file /etc/vservers/new/context.

Have a nice day,

Christian

- Original Message -
From: Odile Bénassy [EMAIL PROTECTED]
To: vserver@list.linux-vserver.org
Sent: Tuesday, June 27, 2006 9:18:27 AM GMT+0100
Subject: [Vserver] Cloning a vserver

Hello,

I hope not to disturb with a low-level question, I still hope will be
useful to others.

I'm very happy with my vservers in general, I must say, and the users
too, of course.

I want to copy a vserver into a second one, because the second one will
run the same software.

So I had an IP .xxx and a name old

And I want a new IP .yyy and a new name new

1) I copied all the /vservers/old to /vservers/new

2) I copied all the /etc/vservers/old to /etc/vservers/new and also
/etc/vservers/old.conf to /etc/vservers/new.conf

3) I went into /etc/vservers/new.conf, into /etc/vservers/new, into
/vservers/new/etc and change there every string .xxx into .yyy, and
old into new

4) I fixed the /etc/vservers/new symlink

Now both vservers can start and stop. I can ping both IPs.

But if I enter new I am in old.

What do I have left behind?

  

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


Re: [Vserver] Cloning a vserver

2006-06-27 Thread Mehdi Bennani
Hi,Have you changed the context numberin /etc/vservers/new/context?As I had lots of trouble changing config stuff when copying, I have a personal way for copy/duplicate:-make a new vserver skeleton named new with right ip, context, etc that way:
vserver [name] build -m skeleton --hostname [hostname] --interface eth0:[ip] --context [context number]-Copy old to new:cp -a /vservers/old/* /vservers/new/-make the dummy interface in /etc/vservers/new/interfaces to have 
127.0.0.1-change config files in /vservers/new/etc/ to fit new ip and hostnameThese steps can be handled by scripts...I am making a report about vserver (in french, with details about installation and management) and should be able to put it online soon, I'll let the list know.
Salutations,Mehdi Bennani2006/6/27, Odile Bénassy [EMAIL PROTECTED]: Hello,  I hope not to disturb with a low-level question, I still hope will be
 useful to others.  I'm very happy with my vservers in general, I must say, and the users too, of course.  I want to copy a vserver into a second one, because the second one will
 run the same software.  So I had an IP .xxx and a name old  And I want a new IP .yyy and a new name new  1) I copied all the /vservers/old to /vservers/new
  2) I copied all the /etc/vservers/old to /etc/vservers/new and also /etc/vservers/old.conf to /etc/vservers/new.conf  3) I went into /etc/vservers/new.conf, into /etc/vservers/new, into
 /vservers/new/etc and change there every string .xxx into .yyy, and old into new  4) I fixed the /etc/vservers/new symlink  Now both vservers can start and stop. I can ping both IPs.
  But if I enter new I am in old.  What do I have left behind?  -- Odile Bénassy, ingénieure informaticienne Service de la Recherche et des Études Doctorales
 Faculté Jean Monnet, Université Paris Sud 11 54 bd Desgranges, 92331 Sceaux Cedex Tél : +33 (0)1 40 91 18 77 - Fax : +33 (0)1 40 91 18 56  ___
 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


Re: [Vserver] Cloning a vserver

2006-06-27 Thread Christian Knauber
Yes you can leave it without, but in this case if you defined it in the old 
vserver you would have to change it in the new vserver.

Also, I do not know if this is really the case, but I felt that having fixed 
context IDs is much more stable than having dynamic ones.

- Original Message -
From: Youri LACAN-BARTLEY [EMAIL PROTECTED]
To: vserver@list.linux-vserver.org
Sent: Tuesday, June 27, 2006 10:15:43 AM GMT+0100
Subject: Re: [Vserver] Cloning a vserver

IIRC, there is no need to manually specify the context ID ...

Christian Knauber wrote:
 Did you change the context id of the new vserver ?
 It is defined in the file /etc/vservers/new/context.

 Have a nice day,

 Christian

 - Original Message -
 From: Odile Bénassy [EMAIL PROTECTED]
 To: vserver@list.linux-vserver.org
 Sent: Tuesday, June 27, 2006 9:18:27 AM GMT+0100
 Subject: [Vserver] Cloning a vserver

 Hello,

 I hope not to disturb with a low-level question, I still hope will be
 useful to others.

 I'm very happy with my vservers in general, I must say, and the users
 too, of course.

 I want to copy a vserver into a second one, because the second one will
 run the same software.

 So I had an IP .xxx and a name old

 And I want a new IP .yyy and a new name new

 1) I copied all the /vservers/old to /vservers/new

 2) I copied all the /etc/vservers/old to /etc/vservers/new and also
 /etc/vservers/old.conf to /etc/vservers/new.conf

 3) I went into /etc/vservers/new.conf, into /etc/vservers/new, into
 /vservers/new/etc and change there every string .xxx into .yyy, and
 old into new

 4) I fixed the /etc/vservers/new symlink

 Now both vservers can start and stop. I can ping both IPs.

 But if I enter new I am in old.

 What do I have left behind?

   
___
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


Re: [Vserver] Cloning a vserver

2006-06-27 Thread Odile Bénassy
Youri LACAN-BARTLEY a écrit :

 Hi Odile,

 you might have missed out on the vserver hostname.
 You should specify new in /etc/vservers/new/uts/nodename

 All the rest seems fine to me but I might also be missing something
 obvious,

 Good luck to you,

 Youri

Thanks, it works!!

 Odile Bénassy wrote:

 Hello,

 I hope not to disturb with a low-level question, I still hope will be
 useful to others.

 I'm very happy with my vservers in general, I must say, and the users
 too, of course.

 I want to copy a vserver into a second one, because the second one will
 run the same software.

 So I had an IP .xxx and a name old

 And I want a new IP .yyy and a new name new

 1) I copied all the /vservers/old to /vservers/new

 2) I copied all the /etc/vservers/old to /etc/vservers/new and also
 /etc/vservers/old.conf to /etc/vservers/new.conf

 3) I went into /etc/vservers/new.conf, into /etc/vservers/new, into
 /vservers/new/etc and change there every string .xxx into .yyy, and
 old into new

 4) I fixed the /etc/vservers/new symlink

 Now both vservers can start and stop. I can ping both IPs.

 But if I enter new I am in old.

 What do I have left behind?

   

 ___
 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


Re: [Vserver] Cloning a vserver

2006-06-27 Thread Herbert Poetzl
On Tue, Jun 27, 2006 at 10:34:52AM +0200, Christian Knauber wrote:
 Yes you can leave it without, but in this case if you defined it in
 the old vserver you would have to change it in the new vserver.

 Also, I do not know if this is really the case, but I felt that having
 fixed context IDs is much more stable than having dynamic ones.

more important, dynamic contexts are deprecated for
some time now (as they cause nothing but troubles)
and will go away in the (near) future ...

so please, handle the context assignment in userspace
by either assigning them explicitely or extending
the tools to handle that properly

best,
Herbert


 - Original Message -
 From: Youri LACAN-BARTLEY [EMAIL PROTECTED]
 To: vserver@list.linux-vserver.org
 Sent: Tuesday, June 27, 2006 10:15:43 AM GMT+0100
 Subject: Re: [Vserver] Cloning a vserver
 
 IIRC, there is no need to manually specify the context ID ...
 
 Christian Knauber wrote:
  Did you change the context id of the new vserver ?
  It is defined in the file /etc/vservers/new/context.
 
  Have a nice day,
 
  Christian
 
  - Original Message -
  From: Odile Bénassy [EMAIL PROTECTED]
  To: vserver@list.linux-vserver.org
  Sent: Tuesday, June 27, 2006 9:18:27 AM GMT+0100
  Subject: [Vserver] Cloning a vserver
 
  Hello,
 
  I hope not to disturb with a low-level question, I still hope will be
  useful to others.
 
  I'm very happy with my vservers in general, I must say, and the users
  too, of course.
 
  I want to copy a vserver into a second one, because the second one will
  run the same software.
 
  So I had an IP .xxx and a name old
 
  And I want a new IP .yyy and a new name new
 
  1) I copied all the /vservers/old to /vservers/new
 
  2) I copied all the /etc/vservers/old to /etc/vservers/new and also
  /etc/vservers/old.conf to /etc/vservers/new.conf
 
  3) I went into /etc/vservers/new.conf, into /etc/vservers/new, into
  /vservers/new/etc and change there every string .xxx into .yyy, and
  old into new
 
  4) I fixed the /etc/vservers/new symlink
 
  Now both vservers can start and stop. I can ping both IPs.
 
  But if I enter new I am in old.
 
  What do I have left behind?
 

 ___
 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
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] vlogin error

2006-06-27 Thread Daniel Hokka Zakrisson

Roderick A. Anderson wrote:
After making several copies/clones of a vserver I am getting the 
following message when I try to install yum ( for internal pkgmgmt ) 
using vyum.


# vyum demo -- install yum
vlogin: execvp(): No such file or directory


You should probably internalize package management prior to cloning the 
guest.


The guest I'm using to make copies from ( test )  was created using the 
steps described in my previous messages.


The copy was created by:

  1. vserver demo build -m skeleton -context 666 
--hostname=yadayada.example.com --interface demo=eth0:192.168.13.13/24


  2. cp -a /vservers/test/* /vservers/demo

There were several entrys in the /dev directory that I left alone during 
the copy.


I'm thinking there is something missing in the second step above. 
Pointers/suggestions?


If you want to use external package management, even if it's just to 
internalize it, you'll have to copy /vservers/.pkg/test to 
/vservers/.pkg/demo, and quite possibly create a symlink 
(/etc/vservers/name/apps/pkgmgmt/base, according to my cursory 
investigation).


--
Daniel Hokka Zakrisson
GPG id: 06723412
GPG fingerprint: A455 4DF3 990A 431F FECA  7947 6136 DDA2 0672 3412
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] vlogin error

2006-06-27 Thread Roderick A. Anderson

Daniel Hokka Zakrisson wrote:

Roderick A. Anderson wrote:

After making several copies/clones of a vserver I am getting the 
following message when I try to install yum ( for internal pkgmgmt ) 
using vyum.


# vyum demo -- install yum
vlogin: execvp(): No such file or directory



You should probably internalize package management prior to cloning the 
guest.


Once again thanks Daniel.

Further fiddling makes me think for our purposes that internalizing 
package management isn't a good idea at this time.




The guest I'm using to make copies from ( test )  was created using 
the steps described in my previous messages.


The copy was created by:

  1. vserver demo build -m skeleton -context 666 
--hostname=yadayada.example.com --interface demo=eth0:192.168.13.13/24


  2. cp -a /vservers/test/* /vservers/demo

There were several entrys in the /dev directory that I left alone 
during the copy.


I'm thinking there is something missing in the second step above. 
Pointers/suggestions?



If you want to use external package management, even if it's just to 
internalize it, you'll have to copy /vservers/.pkg/test to 
/vservers/.pkg/demo, and quite possibly create a symlink 
(/etc/vservers/name/apps/pkgmgmt/base, according to my cursory 
investigation).


I'll look at this.  I was thinking I was missing somethink like this.  I 
just couldn't track it down.






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