OpenVZ Forum


Home » General » Support » How to download and boot a template
How to download and boot a template [message #32958] Wed, 10 September 2008 14:50 Go to next message
timgerr is currently offline  timgerr
Messages: 11
Registered: September 2008
Junior Member
Hello all,
I am sorry for such an easy question but here I go. I have downloaded the centos-5-i386-default.tar.gz template and untared it. What now, I am used to Xen where I have 1 img file, not sure what to do .

Thanks for helping a newbie out.

timgerr
Re: How to download and boot a template [message #32959 is a reply to message #32958] Wed, 10 September 2008 14:56 Go to previous messageGo to next message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
http://wiki.openvz.org/OS_template_cache_preparation#Alterna tive:_use_precreated_template_cache

If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
Re: How to download and boot a template [message #32992 is a reply to message #32958] Mon, 15 September 2008 20:05 Go to previous message
timgerr is currently offline  timgerr
Messages: 11
Registered: September 2008
Junior Member
OK, So I have been following this document
http://www.trekitt.com/web-experiments/46-linux-virtualisati on-with-openvz-on-centos.html and I am able to run the vztmpl-centos-4.i386 template from the yum repositories. I want to use Centos 5 so I followed this,
You can also download some pre-created OS templates from OpenVZ.org
http://openvz.org/download/template/cache/
and dump the OSname.tar.gz straight into /vz/template/cache/ , but be advised you will have to create your own OS template metadata in order to update it, more discussed later in the article.


6. Using Pre-Created Templates
You can download some pre-created OS templates from OpenVZ.org
http://openvz.org/download/template/cache/
and dump the OSname.tar.gz straight into /vz/template/cache/

Here's an example:
$ cd /vz/template/cache
$wget http://download.openvz.org/template/precreated/contrib/centos-5-i386-minimal.tar.gz

These pre-created OS templates can be used immediately by using --ostemplate parameter to use it.


I am not sure what this is, I did $wget http://download.openvz.org/template/precreated/contrib/cento s-5-i386-minimal.tar.gz and it is sitting in my /vz/template/cache directory. How do I run it with the --ostemplate command, like
vzctl create 1030 --ostemplate centos-5-i386-default ???

And one more question, can I run the quest VM with dhcp?

Thank you,
timgerr
Previous Topic: IPSEC with Bridged network
Next Topic: Setting a netmask
Goto Forum:
  


Current Time: Sun Jul 14 18:17:18 GMT 2024

Total time taken to generate the page: 0.02345 seconds