OpenVZ Forum


Home » General » Support » Kernel 2.6.32-5-openvz-amd64 & CPULIMIT
Re: Kernel 2.6.32-5-openvz-amd64 & CPULIMIT [message #42272 is a reply to message #41710] Tue, 29 March 2011 13:02 Go to previous message
jamesdean-dean-57 is currently offline  jamesdean-dean-57
Messages: 4
Registered: September 2010
Location: PARIS
Junior Member
Hi,

I try to compil it using this tutorial :
wiki.openvz.org/Compiling_the_OpenVZ_kernel_(the_Debian_way)

Everything works fine, but i did'nt patch the kernel.


I download the source from squeeze repositories (aptitude install kernel-package linux-source-2.6.32)

I use this config wiki.openvz.org/Download/kernel/rhel6/042test008.1
config-2.6.32-042test008.1.x86_64

I download this patch : patch-042test008.1-combined.gz on the same page

I extract and make ./patch-042test008.1-combined

And ...

--- linux-2.6.32/arch/alpha/include/asm/module.h 2009-12-03 04:51:21.000000000 +0100
+++ linux-2.6.32.ovz/arch/alpha/include/asm/module.h 1970-01-01 01:00:00.000000000 +0100
@@ -1,23 +0,0 @@
-#ifndef _ALPHA_MODULE_H
-#define _ALPHA_MODULE_H
-
-struct mod_arch_specific
-{
- unsigned int gotsecindex;
-};
-
-#define Elf_Sym Elf64_Sym
-#define Elf_Shdr Elf64_Shdr
-#define Elf_Ehdr Elf64_Ehdr
-#define Elf_Phdr Elf64_Phdr
-#define Elf_Dyn Elf64_Dyn
-#define Elf_Rel Elf64_Rel
-#define Elf_Rela Elf64_Rela
-
-#define ARCH_SHF_SMALL SHF_ALPHA_GPREL
-
-#ifdef MODULE
-asm(".section .got,\"aws\",@progbits; .align 3; .previous");
-#endif
-
-#endif /*_ALPHA_MODULE_H*/
./patch-042test008.1-combined: line 2: ---: command not found
./patch-042test008.1-combined: line 3: +++: command not found
./patch-042test008.1-combined: line 4: @@: command not found
./patch-042test008.1-combined: line 5: unsigned: command not found
./patch-042test008.1-combined: line 6: syntax error near unexpected token `}'
./patch-042test008.1-combined: line 6: ` };'



When i make config, i id not have a line with openvz. So i guest the kernel was not patching.


Could you explain how to compil, or give me some informations to
fix this problem.


 
Read Message
Read Message
Read Message
Previous Topic: Iptables logging on VPS not working
Next Topic: route-venet0 removed by vzctl
Goto Forum:
  


Current Time: Wed Oct 16 01:27:33 GMT 2024

Total time taken to generate the page: 0.04951 seconds