*SOLVED* Easy way to create templates from iso packages [message #14441] |
Thu, 28 June 2007 03:44 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
mdes
Messages: 9 Registered: June 2007
|
Junior Member |
|
|
I am trying to install liveCD based packages into VEs. Simplest
solution seems to be to create a template use the iso pacakge
but there does not seem to a standard way to do it. I could always
create a VE using the OS template corresponding to the liveCD but
the problem is the package in question is a little flaky when installed via the component RPMs.
So I trying to figure out if I can create a template with the OS
and application package metadata. This seems a common enough requirement if someone wants to virtualize an appliance for openVZ.
Would be glad to work with someone if an utility needs to be written. I have been hacking UNIX and BSD for about 22 years now ! But I am a openVZ newbie, so I do need help there (Back in the 80s we only had chroot).
Thanks
Mdes
[Updated on: Mon, 02 July 2007 05:27] by Moderator Report message to a moderator
|
|
|
|
|
|
|
Re: Easy way to create templates from iso packages [message #14500 is a reply to message #14465] |
Fri, 29 June 2007 11:56 ![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) |
rickb
Messages: 368 Registered: October 2006
|
Senior Member |
|
|
Hi. The easiest way to achieve this, from my experience, is to simply boot into the OS you want to create a template of, stop all the software you can, and create a tar file of the entire OS. You now have a precreated template image which you can use on 'vzctl create'. This method will not get you a nice rpm by rpm installation procedure for upgrading a single package later, but just a huge collection of files which make up your OS. Depending on your situation, this may be easier or less convenient. If you need to change the OS template, such as update a package, what I do is deploy it, enter it, update it, stop it, and tar it back up.
-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions
UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
|
|
|
|
|
|
|
Re: *SOLVED* Easy way to create templates from iso packages [message #22941 is a reply to message #22930] |
Wed, 07 November 2007 18:02 ![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) |
DreamVPS_Joe
Messages: 1 Registered: November 2007
|
Junior Member |
|
|
SoftDux wrote on Wed, 07 November 2007 07:30 |
So, if I have all the CD's / DVD's that I want to make templates from, but I don't want to format the HDD every time to "make a new template", how do I install directly off the DVD / CD?
|
Use VMware and install each OS as a VM. From there, you can tar up the entire root fs and make your image like that. Put it on your ovz node, and then you will have to do some additional steps, such as disabling some services, fixing mtab and fstab. If you look through the openvz wiki, you'll find more info on this, like the centos guide: http://wiki.openvz.org/Creating_a_CentOS_5.0_Template
Joe
|
|
|
|