OpenVZ Forum


Home » General » Support » Can't start networking on a fedora-9-i386-default-20080913 VE
Can't start networking on a fedora-9-i386-default-20080913 VE [message #33019] Wed, 17 September 2008 19:41 Go to next message
kwessel is currently offline  kwessel
Messages: 4
Registered: September 2008
Junior Member
Hello,

I'm fairly new to openvz and love it so far. I've got a Fedora 9 HN and am using the2.6.24-ovz005.1 kernel. I've successfully set up FC4 and Fedora 8 VEs that work great.

Problem is when I've tried Fedora 9 VEs. I've tried several that I've found in the contrib section and elsewhere on the net, and the most common problem is that I can't make networking start inside the VE. Works fine under the FC4 and Fedora 8 systems.

I decided to focus on the fedora-9-i386-default-20080913 template from the contrib folder on the OpenVZ FTP server.

When I enter the VE, networking isn't running:

[root@wolverine /]# ifconfig lo
lo Link encap:Local Loopback
LOOPBACK MTU:16436 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)

[root@wolverine /]# ifconfig venet0
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
-00
BROADCAST POINTOPOINT 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)

So, I try to start networking manually:

[root@wolverine /]# service network start
Bringing up loopback interface: Error, some other host already uses address 127
.0.0.1.
[FAILED]
Bringing up interface venet0: Error, some other host already uses address 127.0
.0.1.
[FAILED]
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists

I saw some similar problems in other forum posts, but they all came down to /proc being mounted incorrectly or other device files not actually existing or being device files. I checked all of that to the best of my ability, and it all looks sane to me.

Any suggestions? I'd much prefer to go with Fedora 9 than Fedora 8.

Thanks,
Keith
Re: Can't start networking on a fedora-9-i386-default-20080913 VE [message #33033 is a reply to message #33019] Thu, 18 September 2008 14:30 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

this issue should be fixed already.
If it's convenient for you you can get 2.6.24 kernel sources from our git repository
http://git.openvz.org/.

To download sources use the command:
git clone (http|git)://git.openvz.org/pub/linux-2.6.24-openvz <destination dir>
Re: Can't start networking on a fedora-9-i386-default-20080913 VE [message #33034 is a reply to message #33033] Thu, 18 September 2008 16:15 Go to previous messageGo to next message
kwessel is currently offline  kwessel
Messages: 4
Registered: September 2008
Junior Member
Thanks. So, do I understand correctly that the problem is the 2.6.24-ovz005.1 kernel that I installed using yum from http://download.openvz.org? And that the version of the kernel in the git repository will fix the problem? Just making sure I'm reading your reply correctly.

Thanks again, and I appreciate the speedy response!

Keith
Re: Can't start networking on a fedora-9-i386-default-20080913 VE [message #33039 is a reply to message #33034] Thu, 18 September 2008 19:11 Go to previous messageGo to next message
kwessel is currently offline  kwessel
Messages: 4
Registered: September 2008
Junior Member
So, the kernel I grabbed from git doesn't seem to boot.

yum install git ('cause it didn't have it on the HN)
cd /usr/src
git clone git://git.openvz.org/pub/linux-2.6.24-openvz
cd linux-2.6.24-openvz
zcat /proc/config.gz >.config
make oldconfig (because I'm paranoid)
make -j2
(was successful
make modules_install

Backed up the old kernel

cd /boot
mv vmlinuz-2.6.24-ovz005.1 vmlinuz-2.6.24-ovz005.1.old
mv vmlinux-2.6.24-ovz005.1 vmlinux-2.6.24-ovz005.1.old
mv System.map-ovz005.1 System.map-ovz005.1.old

Then installed the new kernel:

cp /usr/src/linux-2.6.24-openvz/arch/i386/boot/bzImage vmlinuz-2.6.24-ovz005.1
cp /usr/src/linux-2.6.24-openvz/System.map System.map-ovz005.1

I didn't move or replace the initrd. Note that I moved the vmlinux (not vmlinuz), but didn't replace it.

Kernel seems to panic and won't boot (though I can't tell any details as it's in the datacenter and I'm half way across the country from it. Wink )

Did I not compile this baby correctly?

Thanks,
Keith
Re: Can't start networking on a fedora-9-i386-default-20080913 VE [message #33042 is a reply to message #33039] Fri, 19 September 2008 07:16 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Quote:


I didn't move or replace the initrd.


But you have to create the new one.
Old initrd contains the modules that are matched to the real ovz005.1 kernel (the kernel you've got from appropriate rpm) not your self compiled one. So modprobe could fail to probe the modules that are not matched your kernel during the boot time.

It's a little bit misleading to do the following
Quote:


cp /usr/src/linux-2.6.24-openvz/arch/i386/boot/bzImage vmlinuz-2.6.24-ovz005.1


cause your kernel is not ovz005.1. it differs.

By the way, why don't you use "make install" command after "make modules_install"?

Hope this helps.
Re: Can't start networking on a fedora-9-i386-default-20080913 VE [message #33045 is a reply to message #33042] Fri, 19 September 2008 15:06 Go to previous message
kwessel is currently offline  kwessel
Messages: 4
Registered: September 2008
Junior Member
Alright, I feel silly. I've always been a little hesitant to do make install on my kernel tree... I prefer to manage my own /boot contents. But when it comes to creating initrd images, it's crazy to try and do it by hand.

New kernel compiled, booted, and... Network working on my Fedora 9 VE!

Thank you SO much! This is fantastic.

Take care,
Keith
Previous Topic: Strange networking problem
Next Topic: VE IP address stops working after several hours
Goto Forum:
  


Current Time: Fri Aug 16 19:32:21 GMT 2024

Total time taken to generate the page: 0.02916 seconds