Re: Create a Template from Existing Container [message #44478 is a reply to message #44422] |
Fri, 09 December 2011 20:44 |
Ales
Messages: 330 Registered: May 2009
|
Senior Member |
|
|
Quote:I am looking for the exact command(s) to create an actual template from existing container.
A template is nothing more than a targzipped dir of a stopped container.
So, for example, you could start with an existing official template, start it up, add / remove some programs, change settings, etc.. Than you'd want to make your custom template out of it. All you'd need to do is clean up within the VM (logs, users, etc.), stop the VM and targzip it's top directory. That's it.
You'd be looking to get something like somedistro-ver-arch.tar.gz with no additional subdirs inside. You can look at the existing templates to get a better picture how the tar.gz should look like.
Than you'd put your tar.gz within /vz/template/cache dir and use it as you're using any other existing template. It really is that simple.
[Updated on: Fri, 09 December 2011 20:47] Report message to a moderator
|
|
|