OpenVZ Forum


Home » General » Support » Create a Template from Existing Container (Don't want to run OpenVZ Web Panel)
Re: Create a Template from Existing Container [message #44478 is a reply to message #44422] Fri, 09 December 2011 20:44 Go to previous messageGo to previous message
Ales is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: speed problem with CentOS 5
Next Topic: Starting container crashes host
Goto Forum:
  


Current Time: Tue Oct 01 08:45:15 GMT 2024

Total time taken to generate the page: 0.02430 seconds