OpenVZ Forum


Home » General » Support » Kernel Version Error?
Kernel Version Error? [message #29380] Fri, 11 April 2008 15:44 Go to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
Why would I get this when using yum?

hal conflicts with kernel < 2.6.17

When I'm using the 2.6.24 kernel? How do I get around this? Any way to fake a newer kernel?


Re: Kernel Version Error? [message #29383 is a reply to message #29380] Fri, 11 April 2008 16:07 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Could you be more specific and provide more details?

Is this error from yum on the host system, or from inside a container? If latter, what distro is it, and what template is it? What are you trying to do with yum?


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Kernel Version Error? [message #29386 is a reply to message #29380] Fri, 11 April 2008 16:21 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

may be this page helps you
http://forum.openvz.org/index.php?t=msg&goto=27856&# msg_27856
Re: Kernel Version Error? [message #29389 is a reply to message #29383] Fri, 11 April 2008 17:10 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
It's from yum from within the VE. Apparently yum thinks the kernel < 2.6.17.

Re: Kernel Version Error? [message #29392 is a reply to message #29389] Fri, 11 April 2008 18:27 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I still need to know what template/distro is it.

Also, could you run yum with -d 255 -v 255 and post its output here (as an attachment if it's way long)?


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Kernel Version Error? [message #29393 is a reply to message #29380] Fri, 11 April 2008 18:33 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
It's Fedora 8 64 bit.

I tried the yum command and that didn't work. Gave me info on how to use yum.


Re: Kernel Version Error? [message #31351 is a reply to message #29393] Wed, 25 June 2008 12:34 Go to previous messageGo to next message
skizzo is currently offline  skizzo
Messages: 10
Registered: December 2006
Junior Member
I am having exactly the same problem. I cannot install a number
of packages as they all depend on hal. Can anyone kindly provide
guidance for solving this issue? Thank you.

 
#cat /proc/sys/kernel/virt_osrelease
2.6.18-ovz028stab053.5-smp

# uname -r
2.6.18-ovz028stab053.5-smp

# rpm -qa | grep kernel
kernel-headers-2.6.23.17-88.fc7

# rpm -q hal
package hal is not installed

# yum install hal
[...]
Error: hal conflicts with kernel < 2.6.17

# rpm -q --whatprovides kernel
dummy-fedora-core-4-1.0-4.swsoft

rpm -e dummy-fedora-core-4-1.0-4.swsoft
error: Failed dependencies:
        ethtool >= 1.8-2 is needed by (installed) initscripts-8.54.1-1.i386
        mingetty is needed by (installed) initscripts-8.54.1-1.i386
        module-init-tools is needed by (installed) initscripts-8.54.1-1.i386

# yum install ethtool mingetty module-init-tools
[...]
Finished Transaction Test
Transaction Check Error:
/sbin/insmod  conflicts with file from dummy-fedora-core-4-1.0-4.swsoft
/sbin/insmod.static  conflicts with file from dummy-fedora-core-4-1.0-4.swsoft
/sbin/lsmod conflicts with file from dummy-fedora-core-4-1.0-4.swsoft
/sbin/modprobe conflicts with file from dummy-fedora-core-4-1.0-4.swsoft

# rpm -q --provides dummy-fedora-core-4-1.0-4.swsoft
ethtool
kernel = 2.6.15
kernel-drm = 4.3.0
kernel-utils
mingetty
module-init-tools = 3.1
modutils = 3.1
dummy-fedora-core-4 = 1.0-4.swsoft
Re: Kernel Version Error? [message #31398 is a reply to message #31351] Thu, 26 June 2008 20:02 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
Ok, I think I can solve this.

yum isn't doing a uname -a to see what the kernel version is, it is checking the rpm database... and finding no kernel installed. Same goes for a missing hal... or other packages. What you will have to do is install the missing packages... but doing so takes up unneeded diskspace, and in the case of udev can sometimes cause container boot problems.

I have built a number of Fedora OS Templates with complete GUI desktops (KDE, GNOME, XFCE, etc) and have had to do a number of work arounds to bypass the same problems you are having.

The elegant way to solve the problem would be to create and use dummy packages for the problematic packages BUT sometimes I'm lazy and in a hurry so I haven't done it the elegant way yet.

What you do is you download the kernel, udev and hal rpm packages (and also possibly module-init-tools) and install them with rpm using the --justdb flag. You might also have to use --force or --nodeps if they gripe about deps. Once those are installed you might want to add an exclude for them in the /etc/yum.conf so future system updates won't try to upgrade to newer versions of those packages.

Once you have have tricked rpm into thinking it has those packages installed, you are pretty much free to install whatever you want without breaking anything.

I kinda cover this topic in the following article on my website:

http://www.montanalinux.org/fedora-9-preview-into-openvz-os- template.html

I have since updated to release version of Fedora 9. I haven't contributed my OS Templates "withGUI" because they are quite big... but if anyone wants them I can give you a URL.

I uploaded to the contrib pre-created OS Templates section the following OS Templates 2 days ago for anyone interested. They all include yum too!

http://download.openvz.org/template/precreated/contrib/cento s-4-i386-default-20080624.tar.gz

http://download.openvz.org/template/precreated/contrib/cento s-4-x86_64-default-20080624.tar.gz

http://download.openvz.org/template/precreated/contrib/cento s-5-i386-default-20080624.tar.gz

http://download.openvz.org/template/precreated/contrib/cento s-5-x86_64-default-20080624.tar.gz

http://download.openvz.org/template/precreated/contrib/fedor a-8-i386-default-20080624.tar.gz

http://download.openvz.org/template/precreated/contrib/fedor a-9-i386-default-20080624.tar.gz

Those are all current as of the date shown (20080624) and CentOS 4 is 4.6, CentOS 5 is 5.2. I haven't made any x86_64 Fedora OS Templates but if someone wants them I can.


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Kernel Version Error? [message #31499 is a reply to message #29380] Tue, 01 July 2008 23:37 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
I was just wondering if my suggestion fixed your problem? Or was I just on the wrong track?

--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Kernel Version Error? [message #31698 is a reply to message #31398] Mon, 07 July 2008 10:26 Go to previous messageGo to next message
skizzo is currently offline  skizzo
Messages: 10
Registered: December 2006
Junior Member
Scott, sorry for the late response. Not being much familiar with all these dependencies issues I tried to limit as much as possible my intervention. What I did today, based on your post, was to simply "rpm --install --nodeps --justdb hal-0.5.9-8.fc7.i386.rpm". Then the hal-dependent ImageMagick installed smoothly via yum. I am not sure if that was a good idea, but then I also run "rpm --erase --nodeps --justdb hal-0.5.9-8.fc7.i386", so that future hal-dependent installations would not proceed blindly. Thank you for helping me out of this problem!
Re: Kernel Version Error? [message #34323 is a reply to message #29380] Tue, 23 December 2008 22:15 Go to previous messageGo to next message
ovznewbie is currently offline  ovznewbie
Messages: 4
Registered: December 2008
Junior Member
Hi,

I have been trying for days to get a functional fedora 9 x86_64 os template to work with gnome and vnc installed but to no avail. The container ends up broken and cannot be made into a functional template.

Do you have any Fedora 64-bit templates available with a gui installed that i could perhaps download?

Thanks in advance,

Re: Kernel Version Error? [message #34324 is a reply to message #34323] Tue, 23 December 2008 22:19 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
I have one that is a bit outdated... given the pace Fedora releases updates. I'll try and update it and give you a URL.

I wrote up a recipe a while back that should work for as an alternative. See:

http://www.montanalinux.org/fedora-9-preview-into-openvz-os- template.html


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Kernel Version Error? [message #34325 is a reply to message #34323] Tue, 23 December 2008 22:21 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
Opps, sorry. I missed the part about x86_64. The one I had is i386. I'll see if the recipe I linked to in the previous send works for x86_64.


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Kernel Version Error? [message #34326 is a reply to message #34323] Tue, 23 December 2008 23:32 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
Here's how to fix it when it breaks... usually this works anyway.

Most of the time the thing that causes the container to break is udev... because it messes up the entries in your /dev directory and they system isn't happy about that. To fix it you can usually comment out the line that starts udev:

File: /etc/rc.sysinit
Line: /sbin/start_udev

Just add # to the line.

See if your container will start then.

As I type this, I'm in the middle of building a GUI Fedora 9 x86_64 template with the recipe I mentioned and it appears to be working. So you can create your own... or you can wait for a link to a very big .tar.gz file on a system that rate limites to 100K/sec to the outside world. Let me know what you prefer...

dowdle@montanalinux.org


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Kernel Version Error? [message #34327 is a reply to message #34326] Tue, 23 December 2008 23:40 Go to previous messageGo to next message
ovznewbie is currently offline  ovznewbie
Messages: 4
Registered: December 2008
Junior Member
Hi,

First of all thank you for all the trouble you went through to help out on this.

I have been trying to use the recipe to make a Fedora 8 x86_64 and am stuck getting the following after having done the rpm -ivh --justdb --nodeps --force part on the packages and starting the yum -y groupinstall "GNOME Desktop Environment" and not being able to install the dbus * etc required.

Many thanks again and yes i would very much appreciate a link and will practice the art of patience .....



--> Finished Dependency Resolution
dbus-x11-1.1.2-7.fc8.x86_64 from fedora has depsolving problems
--> Missing Dependency: dbus = 1.1.2-7.fc8 is needed by package dbus-x11-1.1.2-7.fc8.x86_64 (fedora)
dbus-libs-1.1.2-7.fc8.i386 from fedora has depsolving problems
--> Missing Dependency: dbus = 1.1.2-7.fc8 is needed by package dbus-libs-1.1.2-7.fc8.i386 (fedora)
Error: Missing Dependency: dbus = 1.1.2-7.fc8 is needed by package dbus-x11-1.1.2-7.fc8.x86_64 (fedora)
Error: Missing Dependency: dbus = 1.1.2-7.fc8 is needed by package dbus-libs-1.1.2-7.fc8.i386 (fedora)
Re: Kernel Version Error? [message #34328 is a reply to message #34327] Tue, 23 December 2008 23:44 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
Ok, on the particular OS Template I used as a base I had to add the fuse package to my fake-package-install list. It's installing now. We'll see how it goes.


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Kernel Version Error? [message #34329 is a reply to message #34327] Wed, 24 December 2008 00:40 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
Ok, got it done. I probably installed a lot more than you wanted (GNOME, KDE, all other desktops too, games, etc) but I did create a test user and start up GNOME just fine... and was able to connect and run applications just fine. I cleaned it up when done... removed the user, etc.

Here's the fake install package list I came up with:

rpm -ivh --justdb --nodeps --force http://img.cs.montana.edu/linux/fedora/updates/9/x86_64.newk ey/hal-libs-0.5.11-2.fc9.x86_64.rpm http://img.cs.montana.edu/linux/fedora/updates/9/x86_64.newk ey/hal-0.5.11-2.fc9.x86_64.rpm http://img.cs.montana.edu/linux/fedora/updates/9/x86_64.newk ey/kernel-2.6.27.7-53.fc9.x86_64.rpm http://img.cs.montana.edu/linux/fedora/updates/9/x86_64.newk ey/udev-124-2.fc9.x86_64.rpm http://img.cs.montana.edu/linux/fedora/releases/9/Everything /x86_64/os/Packages/module-init-tools-3.4-13.fc9.x86_64.rpm http://img.cs.montana.edu/linux/fedora/updates/9/x86_64.newk ey/fuse-2.7.4-1.fc9.x86_64.rpm

Here's a link... again it'll take forever to download because the system rate limits outside of the lan:

http://img.cs.montana.edu/linux/openvz/fedora-9-x86_64-withG UI.tar.gz

It is 1437MB so make sure the config you use to create the container with has a big enough diskspace to accommodate it. Darn it I forgot to check how much disk was used before I destroyed it. I'd give it 10G just to have plenty of room.


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Kernel Version Error? [message #34330 is a reply to message #34327] Wed, 24 December 2008 00:47 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
Oh, you'll probably want to strip -withGUI from the name of the OS Template as I'm not sure vzctl create knows what to do with that.

--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Kernel Version Error? [message #34339 is a reply to message #34329] Wed, 24 December 2008 08:28 Go to previous messageGo to next message
ovznewbie is currently offline  ovznewbie
Messages: 4
Registered: December 2008
Junior Member
Many thanks for your efforts. I will start downloading it and will advise when done.

Kindest regards,

Re: Kernel Version Error? [message #34362 is a reply to message #34330] Wed, 24 December 2008 19:30 Go to previous message
ovznewbie is currently offline  ovznewbie
Messages: 4
Registered: December 2008
Junior Member
Hello again,

First of all a very Merry Christmas to you and your dear ones.

I did download the template and thank you again.

I tried to build it on an HyperVM platform and it built the server but when it tried to start it received the following error:

Alert: Could Not Start Vps, Reason: vzquota : (warning) quota usage is invalid for id 180, recalculating disk usage...: vzquota : (error) quota check : stat /vz/private/180.tmp: No such file or directory: vzquota on failed [1]:

I do not know if this is realted to the template or not.

As you suggested i allocated 15GB disk space and 512 MB guaranteed RAM to the template.

I then tried to create it with unlimited diskspace (160GB SATA maximum) and unlimited (4GB RAM maximum) on a Pentium D 3.0 GHz platform running HyperVM and it worked fine.

Kindest regards and thanks for all,



Previous Topic: klogd on VE ubuntu 8.10 gets stuck on launch
Next Topic: OpenVZ kernel running under XEN
Goto Forum:
  


Current Time: Mon Mar 04 02:21:26 GMT 2024

Total time taken to generate the page: 0.02612 seconds