View Full Version : OpenVZ for debian how-to problem
blueice
20th March 2006, 09:17
Hi,
i have do the how-to but i have receive this error:
**********************
websrv2:~# vzctl set 101 --onboot yes --save
Unable to open /usr/lib/libopcodes-2.15.so: /usr/lib/libopcodes-2.15.so: undefined symbol: bfd_get_arch
Unable to open /usr/lib/libpthread.so: /usr/lib/libpthread.so: invalid ELF header
Unable to open /usr/lib/libc.so: /usr/lib/libc.so: invalid ELF header
Unable to open /usr/lib/librt.so: /usr/lib/librt.so: symbol __librt_disable_asynccancel, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
Unable to open /usr/lib/libthread_db.so: /usr/lib/libthread_db.so: undefined symbol: ps_pglobal_lookup
Saved parameters for VPS 101
***********************
How i can fix this?
Thanks
till
20th March 2006, 09:29
Is this a 32Bit or 64Bit DEBIAN linux installation?
Please post also the output of:
uname -m
blueice
20th March 2006, 20:18
Is this a 32Bit or 64Bit DEBIAN linux installation?
Please post also the output of:
uname -m
Hi,
it is 32 bit.
Here is the info:
server:~# uname -m
i686
server:~# uname -a
Linux server 2.6.8-022stab064-up #1 Wed Mar 8 11:53:09 CET 2006 i686 GNU/Linux
Thanks for your help.
Guido64
20th March 2006, 21:08
I have the same problems.
I changed the sources.list from:
"deb http://debian.systs.org/ stable main"
to
"deb http://debian.systs.org/ stable openvz"
Then "apt-get update && apt-get upgrade"
From then on when i do vzctl stop 101
I get this result:
-----------------------
dmz-srv3:~# vzctl stop 101
Unable to open /usr/lib/libopcodes-2.15.so: /usr/lib/libopcodes-2.15.so: undefined symbol: bfd_get_arch
Unable to open /usr/lib/libpthread.so: /usr/lib/libpthread.so: invalid ELF header
Unable to open /usr/lib/libc.so: /usr/lib/libc.so: invalid ELF header
Unable to open /usr/lib/librt.so: /usr/lib/librt.so: symbol __librt_disable_asynccancel, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
Unable to open /usr/lib/libthread_db.so: /usr/lib/libthread_db.so: undefined symbol: ps_pglobal_lookup
Stopping VPS ...
VPS was stopped
VPS is unmounted
dmz-srv3:~#
-----------------------
when i start i get this
-----------------------
dmz-srv3:~# vzctl start 101
Unable to open /usr/lib/libopcodes-2.15.so: /usr/lib/libopcodes-2.15.so: undefin ed symbol: bfd_get_arch
Unable to open /usr/lib/libpthread.so: /usr/lib/libpthread.so: invalid ELF heade r
Unable to open /usr/lib/libc.so: /usr/lib/libc.so: invalid ELF header
Unable to open /usr/lib/librt.so: /usr/lib/librt.so: symbol __librt_disable_asyn ccancel, version GLIBC_PRIVATE not defined in file libc.so.6 with link time refe rence
Unable to open /usr/lib/libthread_db.so: /usr/lib/libthread_db.so: undefined sym bol: ps_pglobal_lookup
Starting VPS ...
VPS is mounted
Adding IP address(es): 192.168.166.5
Setting CPU units: 500
Set hostname: vps101.********.lan
File resolv.conf was modified
VPS start in progress...
dmz-srv3:~#
-----------------------
uname -m
i686
uname -a
Linux dmz-srv3.*******.lan 2.6.8-022stab064-up #1 Thu Mar 9 21:14:32 CET 2006 i686 GNU/Linux
till
20th March 2006, 22:03
You got these problems first after you changed the sources list to "deb http://debian.systs.org/ stable openvz" and updated the scripts? Before the update the vzctl scripts are working fine?
blueice
20th March 2006, 22:07
You got these problems first after you changed the sources list to "deb http://debian.systs.org/ stable openvz" and updated the scripts? Before the update the vzctl scripts are working fine?
Me have change the main to openvz because with the main the apt-get update give me errors.
If you check and this page:
http://debian.systs.org/doku.php?id=download
you can see that the right is with openvz
till
20th March 2006, 22:10
Me have change the main to openvz because with the main the apt-get update give me errors.
If you check and this page:
http://debian.systs.org/doku.php?id=download
you can see that the right is with openvz
I tested the howto a few days ago with the settings described in the howto and everything worked fine.
Either the guys at debian.systs.org reorganized their pacakges or they uploaded broken packages.
till
20th March 2006, 22:14
Update:
It seems that debian.systs.org has updated their packages today. It looks like that the new vzctl scripts needs the latest kernel patch. Please try to recompile your openvz kernel with the latest patch:
http://download.openvz.org/kernel/022stab072.2/patches/patch-022stab072-combined.gz
Guido64
20th March 2006, 22:19
I tested the howto a few days ago with the settings described in the howto and everything worked fine.
Either the guys at debian.systs.org reorganized their pacakges or they uploaded broken packages.
For me openvz worked very well also for hmm 2 weeks or so.
Now i wanted to "apt-get update && apt-get upgrade" because wel you should do that once a while right :)
There was a sources.list error so i started looking what it was. I needed to change the sources.list just like blueice wrote.
After i updated the sources.list and again run "apt-get update && apt-get upgrade" vzctl got updated and after that the problems started.
so yes, your probably right, they sended broken packages.
till
20th March 2006, 22:22
With me openvz worked very well also for hmm 2 weeks or so.
Now i wanted to "apt-get update && apt-get upgrade" because wel you should do that once a while right :)
There was a sources.list error so i started looking what it was. I needed to change the sources.list just like blueice wrote.
After i updated the sources.list and again run "apt-get update && apt-get upgrade" vzctl got updated and after that the problems started.
so yes, your probably right, they sended broken packages.
Ok, thanks for reporting that. I will try to find out if the packages are broken or if a newer kernel patch is needed and update the howto... :(
Guido64
20th March 2006, 22:23
Update:
It seems that debian.systs.org has updated their packages today. It looks like that the new vzctl scripts needs the latest kernel patch. Please try to recompile your openvz kernel with the latest patch:
http://download.openvz.org/kernel/022stab072.2/patches/patch-022stab072-combined.gz
Cool, thanks.
How do i recompile the kernel with the latest patch? :o
till
20th March 2006, 22:37
Cool, thanks.
How do i recompile the kernel with the latest patch? :o
I'am just trying it, maybe it does not help if the packages are really broken. I will post the instructions as soon as i finished my tests.
till
21st March 2006, 15:15
The problem is solved now. New packages are available in the debian.systs.org repository. To update your installation, run:
apt-get update
apt-get -u upgrade
Thanks to Thorsten from debian.systs.org for his help and patching the packages so fast!
blueice
21st March 2006, 15:28
The problem is solved now. New packages are available in the debian.systs.org repository. To update your installation, run:
apt-get update
apt-get -u upgrade
Thanks to Thorsten from debian.systs.org for his help and patching the packages so fast!
yea, now works.
Thanks a lot for the help.
Guido64
21st March 2006, 19:53
This open source world is soooooooo great!
Thank you Till for your help
walterharms
25th March 2006, 01:37
I've followed the procedure on two systems. Here is what I get on both when I try to start the virtual session:
linus:/vz/template/cache# vzctl start 101
Starting VPS ...
VPS is mounted
Adding IP address(es): 192.168.1.188
arpsend: can't get iface 'eth0:' address : Cannot assign requested address
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.1.188 eth0: FAILED
arpsend: can't get iface 'eth0:' address : Cannot assign requested address
vps-net_add WARNING: arpsend -c 1 -w 1 -U -i 192.168.1.188 -e 192.168.1.188 eth0: FAILED
Setting CPU units: 1000
Set hostname: test101.xxxxxx.ca
File resolv.conf was modified
VPS start in progress...
linus:/vz/template/cache#
I can SSH into the virtual session but the routing is all screwed up. I can ping other machines on the segment, but it won't route anywhere.
test101:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
191.255.255.1 * 255.255.255.255 UH 0 0 0 venet0
default 191.255.255.1 0.0.0.0 UG 0 0 0 venet0
test101:~#
I hope it isn't really obvious so I don't feel stupid, but the solution escapes me. Any suggestions?
Walter
till
25th March 2006, 12:27
Do you have an eth0 network card configured? Please post the output of:
ifconfig
walterharms
26th March 2006, 08:49
Being the impatient guy I am, I re-installed by test box to check out other projects. I followed my notes to put the OpenVZ back in and this time it worked. Since I'm just cutting and pasting from my notes (a cut down version of what's on line) the only difference I can see is that I may have previously chosen to enter a different domain then the host computer. This time I chose the same domain, and it worked. I can ping external sites. :)
FYI, my ifconfig is
testbox:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0A:E6:71:3C:5C
inet addr:192.168.0.9 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31444 errors:0 dropped:0 overruns:0 frame:0
TX packets:16258 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:46342543 (44.1 MiB) TX bytes:1146931 (1.0 MiB)
Interrupt:5 Base address:0xd400
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
venet0 Link encap:UNSPEC HWaddr 00-00-FF-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Thanks for your offer to help. Some times things just work on thier own!
Walter
m_jay
14th April 2006, 18:24
Hello everyone,
firstly, thank you very much for this how-to
i follow the steps and obtain the same error msg as the previous post :
vzctl start 102
Starting VPS ...
VPS is mounted
Adding IP address(es): 192.168.253.52
arpsend: can't get iface 'eth0:' address : Cannot assign requested address
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.253.52 eth0: FAILED
arpsend: can't get iface 'eth0:' address : Cannot assign requested address
vps-net_add WARNING: arpsend -c 1 -w 1 -U -i 192.168.253.52 -e 192.168.253.52 eth0: FAILED
Setting CPU units: 1000
Set hostname: vps102.xxxxxx.com
File resolv.conf was modified
VPS start in progress...
then i can only ping/ssh/... etc from the debian host and not from another computer
the ifconfig from the host machine :
eth0 Lien encap:Ethernet HWaddr 00:11:09:89:AE:9D
inet adr:192.168.253.22 Bcast:192.168.253.255 Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:662268 errors:0 dropped:0 overruns:0 frame:0
TX packets:208678 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:473108294 (451.1 MiB) TX bytes:19679743 (18.7 MiB)
Interruption:23 Adresse de base:0xc000
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:1232 (1.2 KiB) TX bytes:1232 (1.2 KiB)
venet0 Lien encap:UNSPEC HWaddr 00-00-FF-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:183 errors:0 dropped:0 overruns:0 frame:0
TX packets:245 errors:0 dropped:32 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:21317 (20.8 KiB) TX bytes:18495 (18.0 KiB)
can u help plaese ?
thanks in advance
falko
15th April 2006, 16:13
Make sure 192.168.253.52 isn't already in use by another system.
Did you follow the tutorial as close as possible? Can you rule out that you made types somewhere?
m_jay
19th April 2006, 17:31
Hi falko,
of course 192.168.253.52 is free in my entwork
i typed exactly the commands found in the how-to
Can you rule out that you made types somewhere?
i don't understand what you mean (execuse me, i'm not fluent in english) :)
i tried several templates (debian, centos, fedora ..) but i still get the same problem as describe before.
I can give you more details if needed.
Thanks in advance.
till
19th April 2006, 20:31
Which error do you get, if you execute this command on the shell:
arpsend -c 1 -w 1 -D -e 192.168.253.52 eth0
m_jay
20th April 2006, 18:12
Hello,
i tried the command
arpsend -c 1 -w 1 -D -e 192.168.253.51 eth0
but nothing append when i do this !
spiraledebian:~# vzctl stop 102
Stopping VPS ...
VPS was stopped
VPS is unmounted
spiraledebian:~# arpsend -c 1 -w 1 -D -e 192.168.253.52 eth0
spiraledebian:~# vzctl start 102
Starting VPS ...
VPS is mounted
Adding IP address(es): 192.168.253.52
arpsend: can't get iface 'eth0:' address : Cannot assign requested address
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.253.52 eth0: FAILED
arpsend: can't get iface 'eth0:' address : Cannot assign requested address
vps-net_add WARNING: arpsend -c 1 -w 1 -U -i 192.168.253.52 -e 192.168.253.52 eth0: FAILED
Setting CPU units: 1000
Set hostname: vps102.*
File resolv.conf was modified
VPS start in progress...
spiraledebian:~# vzlist -a
VPSID NPROC STATUS IP_ADDR HOSTNAME
102 16 running 192.168.253.52 vps102.*
Do i need a special configuration on the machine specified as "name server" during the configuration ? Bind, Windows AD or anything else ?
Thanks in advance for your help
falko
20th April 2006, 18:38
Adding IP address(es): 192.168.253.52
arpsend: can't get iface 'eth0:' address : Cannot assign requested address
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.253.52 eth0: FAILED
arpsend: can't get iface 'eth0:' address : Cannot assign requested address
vps-net_add WARNING: arpsend -c 1 -w 1 -U -i 192.168.253.52 -e 192.168.253.52 eth0: FAILED
Are you absolutely sure that 192.168.253.52 isn't already in use?
m_jay
20th April 2006, 19:03
yes, it is 100% sure
that's why this problem looks strange to me :mad:
falko
21st April 2006, 12:59
What's the output of ifconfig on the main machine? What's the output of
ping -c4 192.168.253.52 on the main machine?
m_jay
21st April 2006, 13:41
spiraledebian:~# ping -c4 192.168.253.52
PING 192.168.253.52 (192.168.253.52) 56(84) bytes of data.
64 bytes from 192.168.253.52: icmp_seq=1 ttl=64 time=0.076 ms
64 bytes from 192.168.253.52: icmp_seq=2 ttl=64 time=0.050 ms
64 bytes from 192.168.253.52: icmp_seq=3 ttl=64 time=0.045 ms
64 bytes from 192.168.253.52: icmp_seq=4 ttl=64 time=0.051 ms
--- 192.168.253.52 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.045/0.055/0.076/0.014 ms
spiraledebian:~# ifconfig
eth0 Lien encap:Ethernet HWaddr 00:11:09:89:AE:9D
inet adr:192.168.253.22 Bcast:192.168.253.255 Masque:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1722569 errors:0 dropped:0 overruns:0 frame:0
TX packets:215528 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:543024763 (517.8 MiB) TX bytes:21348982 (20.3 MiB)
Interruption:23 Adresse de base:0xc000
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:1232 (1.2 KiB) TX bytes:1232 (1.2 KiB)
venet0 Lien encap:UNSPEC HWaddr 00-00-FF-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:4857 errors:0 dropped:0 overruns:0 frame:0
TX packets:4130 errors:0 dropped:32 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:558584 (545.4 KiB) TX bytes:247087 (241.2 KiB)
falko
21st April 2006, 18:45
spiraledebian:~# ping -c4 192.168.253.52
PING 192.168.253.52 (192.168.253.52) 56(84) bytes of data.
64 bytes from 192.168.253.52: icmp_seq=1 ttl=64 time=0.076 ms
64 bytes from 192.168.253.52: icmp_seq=2 ttl=64 time=0.050 ms
64 bytes from 192.168.253.52: icmp_seq=3 ttl=64 time=0.045 ms
64 bytes from 192.168.253.52: icmp_seq=4 ttl=64 time=0.051 ms
This means that 192.168.253.52 is already in use in your network.
pmenier
24th April 2006, 12:32
Hello,
i get exactly the same problem in a vmware. But i've already configured one in the same way and it works fine.
arpsend: can't get iface 'eth0:' address : Cannot assign requested address
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.1.44 eth0: FAILED
etc....
The ip 192.168.1.44 is free (i'm sure) .
The command arpsend -c 1 -w 1 -D -e 192.168.1.44 eth0 return no errors.
Patrick
falko
24th April 2006, 21:38
What's the output of ping -c4 192.168.1.44?
pmenier
25th April 2006, 10:54
vmpat4:~# ping -c4 192.168.1.44
PING 192.168.1.44 (192.168.1.44) 56(84) bytes of data.
From 192.168.1.24 icmp_seq=2 Destination Host Unreachable
From 192.168.1.24 icmp_seq=3 Destination Host Unreachable
From 192.168.1.24 icmp_seq=4 Destination Host Unreachable
--- 192.168.1.44 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2998ms
, pipe 3
vmpat4:~# ifconfig
eth0 Lien encap:Ethernet HWaddr 00:0C:29:4C:1A:2D
inet adr:192.168.1.24 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::20c:29ff:fe4c:1a2d/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:30318 errors:0 dropped:0 overruns:0 frame:0
TX packets:19748 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:37337734 (35.6 MiB) TX bytes:1664984 (1.5 MiB)
Interruption:177 Adresse de base:0x1080
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:336 (336.0 b) TX bytes:336 (336.0 b)
venet0 Lien encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
vmpat4:~#
falko
25th April 2006, 16:56
eth0 is already in use (with the IP address 192.168.1.24)... :confused:
pmenier
25th April 2006, 19:19
Yes of course. It's the ip of the "master" .
master => 192.168.1.24
vserver1 => 192.168.1.44
etc...
And i repeat : this config works perfectly on another vmware with the same distrib (debian-3.1 stable).
pmenier
27th April 2006, 10:50
Hello,
I've put here http://xoopmenier.dynalias.net/xoops/docext/vservers/details.htm
a config which run perfects.
We see this :
on the master ifconfig outputs :
.....
venet0 Lien encap:UNSPEC HWaddr 00-00-FF-00-00-00-00-00-00-00-00-00-00-00-00-00
....
in the vps ifconfig outputs :
...
venet0 Link encap:UNSPEC HWaddr FF-BF-A8-F6-FF-BF-38-93-00-00-00-00-00-00-00-00
...
venet0:0 Link encap:UNSPEC HWaddr FF-BF-A8-F6-FF-BF-1C-F7-00-00-00-00-00-00-00-00
....
Now on a machine which fails to start the vps :
ifconfig on the master :
...
venet0 Lien encap:UNSPEC HWaddr 00-00-FF-00-00-00-00-00-00-00-00-00-00-00-00-00
....
ifconfig in the vps :
...
venet0 Link encap:UNSPEC HWaddr 00-00-FF-00-00-00-00-00-00-00-00-00-00-00-00-00
....
venet0:0 Link encap:UNSPEC HWaddr 00-00-FF-FF-FF-FF-00-00-00-00-00-00-00-00-00-00
....
We see that HWaddr of venet0 is the same (master/vps) on the broken config. Hope this helps network's gurus to solve our problem...
pmenier
7th June 2008, 10:56
Finally i destroy the virtual machine and reinstall it and that works but i didn't like this behavior and i migrate to linux-vserver.
Thanks for your help.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.