OpenVZ Forum


Home » General » Support » ifup-aliases : No such file or directory
ifup-aliases : No such file or directory [message #38769] Mon, 25 January 2010 16:53 Go to next message
dvazart is currently offline  dvazart
Messages: 37
Registered: October 2008
Location: France
Member
Hi !

I'm trying to change the IP address for a CT made with vzdump.

This is what I got :

vzctl set 101 --ipdel all --save

...
Adding IP address(es): 
bash: line 575: ./ifup-aliases: No such file or directory
Saved parameters for VE 101

vzlist

      VEID      NPROC STATUS  IP_ADDR         HOSTNAME                        
       101         26 running -               xxxx.xxxxxxx.com


Then, i do :

vzctl set 101 --ipadd 193.37.145.79 --save

Adding IP address(es): 193.37.145.79
bash: line 575: ./ifup-aliases: No such file or directory
Saved parameters for VE 101

vzlist

      VEID      NPROC STATUS  IP_ADDR         HOSTNAME                        
       101         26 running 193.37.145.79   xxxxx.xxxxxxxx.com


Inside the CT, the IP address seems to be changed in the /etc/hosts (for example), but if i do a ifconfig the CT has the old IP address :

cat /etc/hosts

...
# Auto-generated hostname. Please do not remove this comment.
193.37.145.79 xxx.xxxxx.com xxxx

ifconfig

...
venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:193.37.145.27  P-t-P:193.37.145.27  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1


I'm using Debian Lenny 64 :
2.6.18-20-ovz-amd64


Thanks for your help !


----------- Daniel Vazart ------------
"Knowledge is power, Sharing is human"
------- http://www.vazart.net --------
Re: ifup-aliases : No such file or directory [message #38772 is a reply to message #38769] Tue, 26 January 2010 08:38 Go to previous messageGo to next message
dvazart is currently offline  dvazart
Messages: 37
Registered: October 2008
Location: France
Member
I solved this problem editing by hand /etc/network/interfaces

That seems to works fine... Confused


----------- Daniel Vazart ------------
"Knowledge is power, Sharing is human"
------- http://www.vazart.net --------
Re: ifup-aliases : No such file or directory [message #38777 is a reply to message #38769] Wed, 27 January 2010 07:07 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

can you please post you ct config. esp. the OSTEMPLATE
the ct seems be a Debian related distro, but ip-aliases should be only on redhat related distro.

Have you restore the ct config as well or only the ct-private dir ?

Bye,
Thorsten



Re: ifup-aliases : No such file or directory [message #38833 is a reply to message #38769] Mon, 08 February 2010 16:41 Go to previous message
dvazart is currently offline  dvazart
Messages: 37
Registered: October 2008
Location: France
Member
Hello!

I think I found the problem, its maybe a bug ...

I made my own template named my_template.tar.gz so when I create a CT using my template, the OSTEMPLATE variable is : OSTEMPLATE="my_template" and is there when doesn't works.

Then rename my template by my-template.tar.gz and and that seems to work well.

I think the problem is with the _ charter in to the OSTEMPLATE variable.

Thanks.


----------- Daniel Vazart ------------
"Knowledge is power, Sharing is human"
------- http://www.vazart.net --------
Previous Topic: Windows XP Delayed Write Failed
Next Topic: Network Problem
Goto Forum:
  


Current Time: Thu Mar 28 16:08:55 GMT 2024

Total time taken to generate the page: 0.01732 seconds