OpenVZ Forum


Home » General » Support » Error message creating when creating VPS.
Error message creating when creating VPS. [message #14660] Wed, 04 July 2007 19:24 Go to next message
joelee is currently offline  joelee
Messages: 63
Registered: April 2006
Member
Hi All, I have OVZ installed and creating VPS using the procedure below:
vzctl create 101 --ostemplate debian-4.0-i386-minimal.tar.gz --config vps.basic
vzctl set 101 --onboot yes --save
vzctl set 101 --hostname hostname.com --save
vzctl set 101 --ipadd 192.168.1.1 --save
vzctl set 101 --numothersock 120 --save


After entering command:
vzctl set 101 --hostname hostname.com --save


I get this error msg below:
[B]Warning: distribution not specified default used /etc/vz/dists/default[/B]
Saved parameters for VPS 101


Any idea why I get this and how I can fix this - Thanks!
-Joe
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 next 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
Re: Error message creating when creating VPS. [message #14682 is a reply to message #14670] Thu, 05 July 2007 15:03 Go to previous message
joelee is currently offline  joelee
Messages: 63
Registered: April 2006
Member
Vasily, thanks for your input! I think I have found the problem. When I was creating the OStemplate process I entered a command incorrectly.


I enterede cmd:
vzctl create 101 --ostemplate debian-4.0-i386-minimal.tar.gz --config vps.basic

And, should be:
vzctl create 101 --ostemplate debian-4.0-i386-minimal --config vps.basic

Note: One should leave out the tar.gz from the dist file downloaded!!!

Joe
Previous Topic: strange problem: moving file failes
Next Topic: Multicast between VEs
Goto Forum:
  


Current Time: Mon Aug 25 09:27:43 GMT 2025

Total time taken to generate the page: 0.07308 seconds