question about copying container [message #48750] |
Fri, 16 November 2012 00:43 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
Viacob
Messages: 7 Registered: November 2012
|
Junior Member |
|
|
is there any way to copy a container into say 300 new containers? Or do they have to all be set up individually?
Thanks
Vlad
|
|
|
|
|
|
|
Re: question about copying container [message #48755 is a reply to message #48750] |
Sat, 17 November 2012 01:03 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
Ales
Messages: 330 Registered: May 2009
|
Senior Member |
|
|
What amissus explained is basically this - you can use an existing precreated OS template to make the first container, start it up, make all needed modifications (if you need to) and than save it as an OS template again. And than use it for the next 299, of course.
OpenVZ has an extensive wiki and this is explained here:
http://wiki.openvz.org/Fedora_template_update
http://wiki.openvz.org/Updating_Debian_template
Besides the OS template, all a container needs is a textual configuration file. If you want to generate containers and later modify all 299 or 300 of them automatically, a little bash scripting (or python, perl, whatever floats your boat) will do the job just nicely, directly or by using vzctl in your script.
[Updated on: Sat, 17 November 2012 01:06] Report message to a moderator
|
|
|
|
|
|