...
were do you found that link?
/lib/modules/2.6.24/{build,source}
However, forget I said anything about that. It's easy enough to change.
Problem: current sources are about 670MB
The
linux-2.6.24-openvz directory is only 46MB when cleaned,
.git directory removed, tar'ed and bzip'ed.
Thats what the Makefile is for. just type 'make' - isn't that easy enough?
Well that
sounds easy enough. If that were the case I would suggest that somewhere in the README it should actually say that. ;-)
However when I type make I get this error:
[root@vm pve-kernel-2.6.24]# make
git clone git://git.openvz.org/pub/linux-2.6.24-openvz linux-2.6.24-openvz.org
remote: Counting objects: 643673, done.
remote: Compressing objects: 100% (114952/114952), done.
Indexing 643673 objects.
remote: Total 643673 (delta 528680), reused 642558 (delta 527814)
100% (643673/643673) done
Resolving 528680 deltas.
100% (528680/528680) done
Checking files out...
100% (23205/23205) done
git checkout -b local 2898400a6c100c60930ac3f0ae54f19e3199a4ab
fatal: Not a git repository
make: *** [linux-2.6.24-openvz.org/README] Error 128
If I run make again it appears to download and build a bunch of stuff, including unnecessary things like busybox. Eventually it bombs out again with this error:
...
make[1]: Leaving directory `/root/pve-kernel-2.6.24/busybox-1.9.1'
tar cpf busybox.tar -C busybox .
dpkg -i /pve/0.10/extra/bootsplash-theme-proxmox_1.0-1.deb
dpkg: error processing /pve/0.10/extra/bootsplash-theme-proxmox_1.0-1.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
/pve/0.10/extra/bootsplash-theme-proxmox_1.0-1.deb
make: *** [proxmox_splash.dat] Error 1
Really, we don't need all that other stuff. We don't even need the kernel to be compiled. We just need the configured kernel source.
However, there is kernel directory downloaded and configured in the middle of all that so that should work, right?
Wrong. Building modules against this kernel source directory works but the resulting modules cannot be loaded into the Proxmox VE kernel because they are incompatible:
[root@vm testmodule]# insmod test.ko
insmod: error inserting 'test.ko': -1 Invalid module format
[root@vm testmodule]# dmesg | tail -1
test: disagrees about version of symbol struct_module
In other words, these are not the same kernel. This kernel source tree is not the tree used to build the kernel you actually ship.
Which brings us back to square one: Where can we find the source code for the kernel you actually ship?