[Vserver] Vserver copy. The saga continues!
The builds using rsync are going well but this has created a bit of a problem. Typically I build using yum as the method. This creates all the necessary files in /etc/vservers/guest/apps. Using rsync doesn't. Is there a command/incantation to convert a vserver guest to another package-management system like yum, apt-get, etc? I suspect the pieces to do this are in the vserver script but if the method is just undocumented it would be quicker. TIA, Rod -- ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver copy. The saga continues!
On Thursday 12 July 2007 13:55, Roderick A. Anderson wrote: when i copy a template for a new server i find the easiest thing is simply copy an existing vserver in /etc over to the new name and edit a couple files and its done The builds using rsync are going well but this has created a bit of a problem. Typically I build using yum as the method. This creates all the necessary files in /etc/vservers/guest/apps. Using rsync doesn't. Is there a command/incantation to convert a vserver guest to another package-management system like yum, apt-get, etc? I suspect the pieces to do this are in the vserver script but if the method is just undocumented it would be quicker. TIA, Rod -- ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver -- Chuck ...and the hordes of M$*ft users descended upon me in their anger, and asked 'Why do you not get the viruses or the BlueScreensOfDeath or insecure system troubles and slowness or pay through the nose for an OS as *we* do?!!', and I answered...'I use Linux'. The Book of John, chapter 1, page 1, and end of book ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver copy. The saga continues!
On Thursday 12 July 2007 13:55, Roderick A. Anderson wrote: if i use vserver build with its rsync options it makes the /etc/vserver/guest directory for me just like any other build using vserver. are you using rsync by itself? maybe thats why. the vserver application automatically makes the /etc/vserver/guest areas for anything as far as i know. i noticed you mention /etc/vserver/guest/apps you use other files besides style and mark? i many times use mtab for certain things but i just copy a 'template' mtab file in. since most of my guests are not cookie-cutter i usually have to modify the settings in the /etc/vserver config area anyway so its no big deal to copy/modify capability files, mtab,add name to interfaces etc. i have never gotten into different pkg mgt systems and have never used them to build a guest, only to update its own files internally. i suppose i am 'far behind the times', but i treat each guest as its own server and run the updates internally etc. (doesn't get me in trouble that way :) ). The builds using rsync are going well but this has created a bit of a problem. Typically I build using yum as the method. This creates all the necessary files in /etc/vservers/guest/apps. Using rsync doesn't. Is there a command/incantation to convert a vserver guest to another package-management system like yum, apt-get, etc? I suspect the pieces to do this are in the vserver script but if the method is just undocumented it would be quicker. TIA, Rod -- ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver -- Chuck ...and the hordes of M$*ft users descended upon me in their anger, and asked 'Why do you not get the viruses or the BlueScreensOfDeath or insecure system troubles and slowness or pay through the nose for an OS as *we* do?!!', and I answered...'I use Linux'. The Book of John, chapter 1, page 1, and end of book ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver copy. The saga continues!
Chuck wrote: On Thursday 12 July 2007 13:55, Roderick A. Anderson wrote: if i use vserver build with its rsync options it makes the /etc/vserver/guest directory for me just like any other build using vserver. are you using rsync by itself? maybe thats why. the vserver application automatically makes the /etc/vserver/guest areas for anything as far as i know. Nope. vserver guest build -m rsync ... i noticed you mention /etc/vserver/guest/apps you use other files besides style and mark? i many times use mtab for certain things but i just copy a 'template' mtab file in. since most of my guests are not cookie-cutter i usually have to modify the settings in the /etc/vserver config area anyway so its no big deal to copy/modify capability files, mtab,add name to interfaces etc. Yeah, apps/pkgmgmt/* is not created. I've done the copy and edit route as you said in your other post but it is such a candidate for scripting I figured it might have been. But then how often does one change the package management system they are using? Well beside me. 8-( i have never gotten into different pkg mgt systems and have never used them to build a guest, only to update its own files internally. i suppose i am 'far behind the times', but i treat each guest as its own server and run the updates internally etc. (doesn't get me in trouble that way :) ). Here is the problem. vyum complains with vcontext: execvp(yum): No such file or directory Which is only one of the missing files. So I'll be looking in to building yet-another-script to do this or add it to the existing vserver script. I think it's bash/shell and not python. Thanks for the thoughts, Rod -- The builds using rsync are going well but this has created a bit of a problem. Typically I build using yum as the method. This creates all the necessary files in /etc/vservers/guest/apps. Using rsync doesn't. Is there a command/incantation to convert a vserver guest to another package-management system like yum, apt-get, etc? I suspect the pieces to do this are in the vserver script but if the method is just undocumented it would be quicker. TIA, Rod -- ___ 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] Vserver copy. The saga continues!
On Thursday 12 July 2007 14:50, Roderick A. Anderson wrote: ahh ok. heh i know enough about yum to be dangerous so i only use it in the few centos guests we have and then just do yum update :) everything else we have is gentoo based. as soon as the package we use that requires centos/rh/debian has a gentoo version we will be switching out to that anyway. Chuck wrote: On Thursday 12 July 2007 13:55, Roderick A. Anderson wrote: if i use vserver build with its rsync options it makes the /etc/vserver/guest directory for me just like any other build using vserver. are you using rsync by itself? maybe thats why. the vserver application automatically makes the /etc/vserver/guest areas for anything as far as i know. Nope. vserver guest build -m rsync ... i noticed you mention /etc/vserver/guest/apps you use other files besides style and mark? i many times use mtab for certain things but i just copy a 'template' mtab file in. since most of my guests are not cookie-cutter i usually have to modify the settings in the /etc/vserver config area anyway so its no big deal to copy/modify capability files, mtab,add name to interfaces etc. Yeah, apps/pkgmgmt/* is not created. I've done the copy and edit route as you said in your other post but it is such a candidate for scripting I figured it might have been. But then how often does one change the package management system they are using? Well beside me. 8-( i have never gotten into different pkg mgt systems and have never used them to build a guest, only to update its own files internally. i suppose i am 'far behind the times', but i treat each guest as its own server and run the updates internally etc. (doesn't get me in trouble that way :) ). Here is the problem. vyum complains with vcontext: execvp(yum): No such file or directory Which is only one of the missing files. So I'll be looking in to building yet-another-script to do this or add it to the existing vserver script. I think it's bash/shell and not python. Thanks for the thoughts, Rod -- The builds using rsync are going well but this has created a bit of a problem. Typically I build using yum as the method. This creates all the necessary files in /etc/vservers/guest/apps. Using rsync doesn't. Is there a command/incantation to convert a vserver guest to another package-management system like yum, apt-get, etc? I suspect the pieces to do this are in the vserver script but if the method is just undocumented it would be quicker. TIA, Rod -- ___ 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 -- Chuck ...and the hordes of M$*ft users descended upon me in their anger, and asked 'Why do you not get the viruses or the BlueScreensOfDeath or insecure system troubles and slowness or pay through the nose for an OS as *we* do?!!', and I answered...'I use Linux'. The Book of John, chapter 1, page 1, and end of book ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Vserver copy. The saga continues!
Roderick A. Anderson wrote: The builds using rsync are going well but this has created a bit of a problem. Typically I build using yum as the method. This creates all the necessary files in /etc/vservers/guest/apps. Using rsync doesn't. Is there a command/incantation to convert a vserver guest to another package-management system like yum, apt-get, etc? I suspect the pieces to do this are in the vserver script but if the method is just undocumented it would be quicker. Oh, you're using external package management? To ease the migration, you probably should've internalized that before the move, and then externalized it again once you got to the destination server. Now, I think you should be able to just copy /vservers/.pkg/guest to /vservers/.pkg on the destination host, and just make sure you have all of the necessary symlinks and files in apps/pkgmgmt. For reference, the commands to internalize/externalize package management are: vserver guest pkgmgmt internalize (possibly with --force since you don't seem to have yum installed in the guest) move the guest, and then run... vserver guest pkgmgmt externalize -- Daniel Hokka Zakrisson ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] The $64,000 dollar question
So the big question is which (preferably YUM-able) distribution should I use for the host? I'm currently thinking CentOS 5 as it has an end-of-life in about 5 years. I hope to be retired by then. :-) Plus I believe I read that it is actually supported in Daniel's repository. Well I was thinking of the Fedora series. But I'm liking CentOD more and more. Hi Rod - I am using CentOS. Originally I used the FC RPM's provided by Daniel - they worked really well, except I was getting memory errors when trying to run wine. Other than that it was running great. In the meantime however I tried creating a vanilla (with vserver patch) kernel rpm, which is working fantastic (as soon as i get time i'm making it available to the public). This RPM will NOT have any of the centos specific patches (el5 patches). It will also be an updated kernel, not the original provided by centos. What I'm saying is if you use the kernel, and want support from centos, you probably wont get it if you use the modified kernel. But for me I'm happy so far with the tests. I'll keep the list posted when I make them public. Then people can use them if they wish. But back to the original question - whatever distro you use (for host) doesn't really matter, as long as it suits your purpose. You dont NEED to have a FC host to run FC guests, and you dont need to run FC guests under a FC host. As long as the guest support the running kernel of the host, afaik you can can use whatever guests you want. There are distribution files available for lots of different guests and you can even create your own! Hope this has been useful. Matt. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver