OpenVZ Forum


Home » General » Support » *SOLVED* Error about missing config from gentoo templated created by me
*SOLVED* Error about missing config from gentoo templated created by me [message #7807] Thu, 26 October 2006 10:36 Go to next message
steffen.zieger is currently offline  steffen.zieger
Messages: 43
Registered: February 2006
Location: Germany, Stuttgart
Member
Hello,

I've getting this error, if I'm trying to change things for my vps running gentoo based on my own created template.

Warning: configuration file for distribution gentoo_openvz_template-1.0 not found default used

Can anybody tell me, how to get rid of this error?

TIA,
Steffen

[Updated on: Mon, 30 October 2006 06:41] by Moderator

Report message to a moderator

Re: Error about missing config from gentoo templated created by me [message #7808 is a reply to message #7807] Thu, 26 October 2006 10:59 Go to previous messageGo to next message
steffen.zieger is currently offline  steffen.zieger
Messages: 43
Registered: February 2006
Location: Germany, Stuttgart
Member
Well, I've got it fixed by changing OSTEMPLATE in the configuration file to OSTEMPLATE="gentoo".

But how can I make sure, that a new vps created from my template isn't having the same error?


HAND,
Steffen
Re: Error about missing config from gentoo templated created by me [message #7836 is a reply to message #7808] Fri, 27 October 2006 06:25 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Quote:


Warning: configuration file for distribution gentoo_openvz_template-1.0 not found default used



While you create VE from OS template cache:
vzctl create 555 --ostemplate haha

in configuration file for this (555) VE the following line appears:
OSTEMPLATE="haha"

vzctl uses this parameter to find out which actions should be taken to perform different configuration (network, etc.) of VE, based on particular template. How does vzctl perform it? It looks in /etc/vz/distr/haha.conf to get required information. If there is no such file, vzctl outputs warning message, you've seen, and uses default file: /etc/vz/distr/default.

So the thing you should do to get rid of this message is just copy file /etc/vz/distr/gentoo.conf to /etc/vz/distr/gentoo_openvz_template-1.0.conf.

HTH,
vass.
Re: Error about missing config from gentoo templated created by me [message #7882 is a reply to message #7836] Sun, 29 October 2006 18:07 Go to previous message
steffen.zieger is currently offline  steffen.zieger
Messages: 43
Registered: February 2006
Location: Germany, Stuttgart
Member
You're answer is correct, but not the real solution for my problem.

The right way of getting rid of this error is renaming the ostemplate from gentoo_template_name.tar.gz to gentoo-template_name.tar.gz. If there are only underscores in the name, it's not working, as the whole name is used, but if there is a minus (-) sign, the rest will be getting cut from ostemplate. So instead of searching for gentoo_template_name.conf it's searching for gentoo.conf.

I can confirm this, by trying it. If anyone has a link about naming templates, please let me know.
Previous Topic: *SOLVED* OutOfMemoryError
Next Topic: copy of vz directories
Goto Forum:
  


Current Time: Fri Jul 12 12:25:51 GMT 2024

Total time taken to generate the page: 0.02345 seconds