OpenVZ Forum


Home » General » Support » Customizing templates
Re: Customizing templates [message #22973 is a reply to message #22942] Thu, 08 November 2007 18:33 Go to previous messageGo to previous message
tauren is currently offline  tauren
Messages: 7
Registered: November 2007
Junior Member
alticon-brian wrote on Wed, 07 November 2007 13:16

You could always make your own version of {fedora,centos,redhat}-release which adds an additional line to the /etc/issue file. You could also package a separate RPM (which should be simple enough) which provides /etc/ve_issue where ve_issue contains the template name, then simply act on what the name is in ve_issue.

--Brian


Good ideas. Thanks!

I was chatting in IRC about this topic and it was suggested that I simply create a VE based on a minimal template, start it and enter it, then add packages and perform all configuration changes I need to do. Once it is working, I exit and stop the VE. Then I tarball up the /vz/private/veid folder and put the tarball into /vz/template/cache. Then I can create new VEs from that template.

That sounds like a very simple way to accomplish what I need to do. But are there any drawbacks to that method? Are there advantages to creating a custom.list file and adding commands to install-post? Does one method make updating VEs and/or templates easier?

Thanks again!
Tauren
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* Live-Migration and SYSV message queues
Next Topic: Howto build a template whith anaconda insted of rpmstrap
Goto Forum:
  


Current Time: Thu Jul 03 18:31:47 GMT 2025

Total time taken to generate the page: 0.02223 seconds