OpenVZ Forum


Home » General » Support » OpenVZ on CentOS 4.2
OpenVZ on CentOS 4.2 [message #2055] Fri, 17 March 2006 12:53 Go to next message
czaveri is currently offline  czaveri
Messages: 7
Registered: March 2006
Junior Member
On a fresh install of CentOS 4.2, I tried to install OpenVZ using three different methods and encountered failure in some way:

Method 1. Source RPM. This is the source rpm that I used:
http://download.openvz.org/kernel/022stab070.1/ovzkernel-2.6 .8-022stab070.1.src.rpm
Result: Some error regarding Intel Microcode on boot and that MAC address is not as expected, finally, on checking /sbin/ifconfig I noticed that the interface for which I receive the MAC address error was missing .... please see result of dmesg below.
What I did exactly: Downloaded the above srpm and said "rpmbuild --rebuild --target=i686 ovzkernel-2.6.8-022stab070.1.src.rpm". Then I went to RPMS directory and installed the rpm using -ivh flags. (I received a warning here about module ata_piix).

Method 2. RPM. This is the rpm that I used:
http://download.openvz.org/kernel/022stab070.1/ovzkernel-2.6 .8-022stab070.1.i686.rpm
Result: Same error as above.
What I did exactly: Downloaded the above rpm and simply said "rpm -ivh ovzkernel-2.6.8-022stab070.1.i686.rpm".
(I received a warning here about module ata_piix).

Method 3: Patch. Patching the kernel:
Kernel:
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.8.tar. bz2
Patch:
http://download.openvz.org/kernel/022stab070.1/patches/patch -022stab070-combined.gz
Result: The vanilla kernel is bootable and fine. After patching, I get error in make step.
Compiled and installed the vanilla kernel first, using the following commands:
make mrproper
make xconfig
make
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinux-2.6.8
cp System.map /boot/System.map /boot/System.map-2.6.8
/sbin/mkinitrd /boot/initrd-2.6.8.img 2.6.8
gunzip patch-022stab070-combined.gz
patch -p1 <patch-022stab070-combined
make oldconfig
make
(I received error here)

the output of dmesg is in attached file.

Please let me know if further information is required.
It is a P4 CPU @ 3.0 GHz, 2 GB RAM and 2 SATA HDD each one 80 GB. The second hdd is under partition /vz.

Thank-you,

Sincerely,

Chintan Zaveri.

[Updated on: Fri, 17 March 2006 13:12]

Report message to a moderator

Re: OpenVZ on CentOS 4.2 [message #2056 is a reply to message #2055] Fri, 17 March 2006 13:08 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

(1) Can you please put dmesg into the attached file, not as a part of the message itself (it is too long that way)?

(2) I haven't seen anything in dmesg regarding MAC or any error about the microcode, and do not really understand what was the problem. Can you please point me to the specific errors you get?

(3) What was the exact error you got when you tried compiling kernel yourself?

Thanks,
Kir


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: OpenVZ on CentOS 4.2 [message #2057 is a reply to message #2056] Fri, 17 March 2006 13:36 Go to previous messageGo to next message
czaveri is currently offline  czaveri
Messages: 7
Registered: March 2006
Junior Member
Thank-you for replying kir.

I have edited the previous message and shifted the dmesg output to a file.

I have again, overwritten the previous installation wherein I lost the errors that I received after patching the kernel.

However, here are the errors that are visible on booting the OpenVZ kernel. Yes, these are not shown in the dmesg output.

The first error is:

Applying Intel Microcode update: FATAL: Module microcode not found
Error: module microcode does not exist in /proc/modules

The second error is:

dev eth1 has different MAC address than expected, so ignoring.

And, here is how I installed OpenVZ:
[root@server kernel]# rpm -ivh ovzkernel-2.6.8-022stab070.1.i686.rpm
warning: ovzkernel-2.6.8-022stab070.1.i686.rpm: V3 DSA signature: NOKEY, key ID a7a1d4b6
Preparing... ########################################### [100%]
1:ovzkernel ########################################### [100%]
WARNING: No module ata_piix found for kernel 2.6.8-022stab070.1, continuing anyway
[root@server kernel]#


I have received the same error when I tried installing using the RPM created by SRPMs.

Do you suggest, I try recompiling the kernel and installing the patch?

Please let me know if some other information is required.

Thanks and regards,

Chintan Zaveri.
Re: OpenVZ on CentOS 4.2 [message #2058 is a reply to message #2057] Fri, 17 March 2006 13:42 Go to previous messageGo to next message
czaveri is currently offline  czaveri
Messages: 7
Registered: March 2006
Junior Member
Perhaps these files will be useful for some understanding of the system I am installing on ...
  • Attachment: proc.cpuinfo
    (Size: 0.99KB, Downloaded 344 times)
  • Attachment: proc.meminfo
    (Size: 0.63KB, Downloaded 318 times)
  • Attachment: proc.modules
    (Size: 1.67KB, Downloaded 352 times)
  • Attachment: proc.version
    (Size: 0.14KB, Downloaded 316 times)
  • Attachment: proc.vmstat
    (Size: 0.59KB, Downloaded 305 times)
Re: OpenVZ on CentOS 4.2 [message #2059 is a reply to message #2057] Fri, 17 March 2006 14:36 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

dev eth1 has different MAC address than expected, so ignoring.


Oh it looks like you have more than one network card, and the their numbers (eth0/eth1) are changed (that happens sometimes). Could you look deeper into network configuration, it is in /etc/sysconfig/netowork-scripts/ifcfg-eth*.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
icon7.gif  Re: OpenVZ on CentOS 4.2 [message #2065 is a reply to message #2059] Fri, 17 March 2006 16:39 Go to previous messageGo to next message
czaveri is currently offline  czaveri
Messages: 7
Registered: March 2006
Junior Member
Yes, you are right. I removed eth0 (the card was anyways redundant) and changed eth1 to eth0. It looks like solved. Smile

Thank-you very much.

Though, this error still persists: Sad

Applying Intel Microcode update: FATAL: Module microcode not found
Error: module microcode does not exist in /proc/modules

Can you help me solve this? Shocked

Thanks again,

Sincerely,

Chintan Zaveri.

[Updated on: Fri, 17 March 2006 17:54]

Report message to a moderator

Re: OpenVZ on CentOS 4.2 [message #2067 is a reply to message #2065] Fri, 17 March 2006 17:54 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Quote:

Though, this error still persists:

Applying Intel Microcode update: FATAL: Module microcode not found
Error: module microcode does not exist in /proc/modules

Can you help me solve this?


Sure. The problem is we have microcode driver built into the kernel, not as a module. It looks like CentOS script which applies microcode update is a bit dumb, well, not expecting this situation and insists on loading the module (even if there is no need to do so).

I have filed a bug to openvz bugzilla: see bug #118. I think we have to fix it by compiling microcode driver as a module. Other way would be to file a bug to RHEL. First way is easier and it will work; second way is harder and longer but more right. We will decide soon. You can add yourself to Cc for that bug to track its progress.

In the meantime you can fix it on your system by commenting out that part of init script which bails out if module is not loaded, or modify the script so it will try to load module only if needed.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
icon14.gif  Re: OpenVZ on CentOS 4.2 [message #2068 is a reply to message #2067] Fri, 17 March 2006 18:24 Go to previous messageGo to next message
czaveri is currently offline  czaveri
Messages: 7
Registered: March 2006
Junior Member
Thank-you very much, kir.

I have added myself as a CC.

I am sorry, can't really make out which script requires editing. Can you advise, please?

What would be the result of leaving the error as is?

Regards,

Chintan.
Re: OpenVZ on CentOS 4.2 [message #2069 is a reply to message #2068] Fri, 17 March 2006 18:50 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

The file in question is probably /etc/init.d/microcode_ctl.

I took a look at this script and found out those errors are harmless -- first error is printed by '/sbin/modprobe microcode' which tries to load module (but there is no need to do that as it's compiled into the kernel), and second error is caused by '/sbin/rmmod microcode' which tells there is no such module loaded.

Other than those two error messages, script is just fine, i.e. it actually applies microcode update, so you can certainly ignore those messages. If you do not like them you can comment out two lines in /etc/init.d/microcode_ctl -- the one with modprobe and the one with rmmod -- but that way microcode update will not be applied in the case you boot into non-openvz kernel.

Hope I made it clear enough. Still, the bug exists and we will see what to do.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png

[Updated on: Fri, 17 March 2006 18:51]

Report message to a moderator

icon7.gif  Re: OpenVZ on CentOS 4.2 [message #2070 is a reply to message #2069] Fri, 17 March 2006 18:55 Go to previous messageGo to next message
czaveri is currently offline  czaveri
Messages: 7
Registered: March 2006
Junior Member
kir, I cannot thank-you enough for your time and help.

You have been very helpful.

Thank-you very much,

Sincerely,

Chintan Zaveri.
Smile
Re: OpenVZ on CentOS 4.2 [message #2074 is a reply to message #2069] Fri, 17 March 2006 22:32 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
How about just:

chkconfig --level 2345 microcode_ctl off

If your kernel does it from within, is that script / service really needed?

I have found some hardware where it fails (even without OpenVZ) so on those I just disable it.


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: OpenVZ on CentOS 4.2 [message #2075 is a reply to message #2074] Fri, 17 March 2006 22:47 Go to previous message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

No it does not -- with OpenVZ kernel there is no need to load the module as this script does. So it is still better to keep the script. To avoid those messages you can redirect modprobe and rmmod output to /dev/null, like this
/sbin/modprobe microcode 2>/dev/null
....
/sbin/rmmod microcode 2>/dev/null


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Previous Topic: iptables in vps or on the host node
Next Topic: localhost pcmcia: FATAL: Module pcmcia_core not found.
Goto Forum:
  


Current Time: Sat Jul 13 12:18:17 GMT 2024

Total time taken to generate the page: 0.02279 seconds