ifup-aliases : No such file or directory [message #38769] |
Mon, 25 January 2010 16:53 |
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 :
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 #38833 is a reply to message #38769] |
Mon, 08 February 2010 16:41 |
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 --------
|
|
|