OpenVZ Forum


Home » General » Support » how do I create an OS template from a running VE?
how do I create an OS template from a running VE? [message #14538] Sun, 01 July 2007 10:31 Go to next message
jpastore is currently offline  jpastore
Messages: 21
Registered: July 2007
Location: South Florida
Junior Member
I got OpenVZ running and setup my first VE.

Now I'd like to know if there is a way to create a template from that VE to avoid downloading and updating a bunch of RPMs.

I apologize if this is a dup of another post. I couldn't find the answer search google/the forum.

Thanks

-Jon
Re: how do I create an OS template from a running VE? [message #14545 is a reply to message #14538] Mon, 02 July 2007 05:49 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
It is very easy. Let <veid> is upgraded VE, which you want use as a template.

1) clean network setting and other VE-specific information
2) stop VE
3) tar.gz VEs private area and place the archive in /vz/templates/cache/
4) now you can create VEs based on your template.

HTH,
Vasily.
Re: how do I create an OS template from a running VE? [message #14611 is a reply to message #14545] Tue, 03 July 2007 12:49 Go to previous message
jpastore is currently offline  jpastore
Messages: 21
Registered: July 2007
Location: South Florida
Junior Member
Thank you for the response!

Any ideas on how to keep it up to date other than scripting the shut down of the VE and following the procedure you just described?

I was looking at vzdump and I was thinking a great feature would be to have a template option. Then I just dump nightly and keep my templates current.

It's either that or just deal with a massive amount of updates after creating a VE.

Any ideas would be appreciated.

-Jon
Previous Topic: Can not suspend VE
Next Topic: *SOLVED* Hardware compatibility list?
Goto Forum:
  


Current Time: Mon Sep 16 16:12:32 GMT 2024

Total time taken to generate the page: 0.04776 seconds