OpenVZ Forum


Home » General » Support » Error message creating when creating VPS.
Re: Error message creating when creating VPS. [message #14670 is a reply to message #14660] Thu, 05 July 2007 08:38 Go to previous messageGo to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

As you know, different distributions use different methods to set and store the node hostname. Consequently, when vzctl sets hostname to VE it uses information about distribution on which the VE in question is based.

There is a parameter OSTEMPLATE in the VE config file. For example for debian-3.1 VEs:
$ cat /etc/vz/conf/101.conf | grep OSTEMPLATE
OSTEMPLATE="debian-3.1-i386-minimal"

Having information about distribution, vzctl searches in /etc/vz/dists/ for appropiate file for this ostemplate. In case of debian-3.1 distribution it is /etc/vz/dists/debian-3.1.conf file:
[vass@white ~]$ cat /etc/vz/dists/debian-3.1.conf
ADD_IP=debian-add_ip.sh
DEL_IP=debian-del_ip.sh
SET_HOSTNAME=debian-set_hostname.sh
SET_DNS=set_dns.sh
SET_USERPASS=set_userpass.sh
SET_UGID_QUOTA=set_ugid_quota.sh
POST_CREATE=postcreate.sh
As you can see SET_HOSTNAME variable determines which script vzctl should use to set hostname for VE in question.

In your case "distribution not specified". So, try to specify it in VE's config. Actually it is strange, that this parameter haven't appeared automatically after vzctl create... BTW, what vzctl version do you use?

Vasily
 
Read Message
Read Message
Read Message
Previous Topic: strange problem: moving file failes
Next Topic: Multicast between VEs
Goto Forum:
  


Current Time: Thu Oct 09 16:19:08 GMT 2025

Total time taken to generate the page: 0.14998 seconds