OpenVZ Forum


Home » General » Support » custom kernel build
custom kernel build [message #3180] Tue, 16 May 2006 14:35 Go to next message
dbeery is currently offline  dbeery
Messages: 34
Registered: April 2006
Location: Des Moines, IA
Member

A diff between the following configs returns nothing:

(downloadable individually from the website)
kernel-2.6.8-022stab077-x86_64-smp.config.ovz

(included in the source RPM)
kernel-2.6.8-022stab077-x86_64-smp.config.ovz

Yet somehow when I build the custom kernel as follows the the resulting kernels are different in size than those installed by the published rpm, ovzkernel-smp-2.6.8-022stab077.1.x86_64.rpm.

Why?

Steps used to build:

rpm -ivh ovzkernel-2.6.8-022stab077.1.src.rpm
edit /usr/src/redhat/SPEC/kernel-ovz.spec

replace
%define ksubrelease 1
with
%define ksubrelease 1.custom

and finally

rpmbuild -bb kernel-ovz.spec

The spec files are identical as well.

Any help would be greatly appreciated.

Thanks,
Derrick
Re: custom kernel build [message #3181 is a reply to message #3180] Tue, 16 May 2006 14:38 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
Probably it is due to different gcc versions.

http://static.openvz.org/openvz_userbar_en.gif
Re: custom kernel build [message #3182 is a reply to message #3181] Tue, 16 May 2006 14:48 Go to previous messageGo to next message
dbeery is currently offline  dbeery
Messages: 34
Registered: April 2006
Location: Des Moines, IA
Member

Thank you for response. I was thinking that the difference in size might be a clue as to why the custom kernel will not boot.

I have made no changes to the kernel config but the custom kernel will not boot.
Re: custom kernel build [message #3183 is a reply to message #3182] Tue, 16 May 2006 14:52 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
Did you create initrd?
kernel.rpm installation does it at post-install stage.



http://static.openvz.org/openvz_userbar_en.gif
Re: custom kernel build [message #3184 is a reply to message #3183] Tue, 16 May 2006 15:19 Go to previous messageGo to next message
dbeery is currently offline  dbeery
Messages: 34
Registered: April 2006
Location: Des Moines, IA
Member

Yes, install kernel using the rpm that gets built and there is an initrd.
Re: custom kernel build [message #3236 is a reply to message #3184] Thu, 18 May 2006 15:39 Go to previous message
dbeery is currently offline  dbeery
Messages: 34
Registered: April 2006
Location: Des Moines, IA
Member

I had to use the compat gcc version 3 compiler to build a kernel that would boot from the src rpm.
Previous Topic: *SOLVED* moving vds on the another drive
Next Topic: Can't mount: No such device [SOLVED]
Goto Forum:
  


Current Time: Fri Aug 02 16:18:17 GMT 2024

Total time taken to generate the page: 0.03013 seconds