Hio, Dietmar Maurer wrote: >> + Before the kvm module can be built, the linux submodule must be >> initialised >> + and populated. The required sequence of commands is >> + >> + git submodule init >> + git submodule update >> + ./configure >> + make sync >> + make >> + >> + Notice that you can also specify an existing Linux tree for the >> + synchronisation stage by using >> + >> + make sync LINUX=/path/to/tree > > I always get errors when i try to sync (with our Linux-2.6.24 tree) > > ./configure --kerneldir=${TOP}/linux-2.6.24-openvz > make sync LINUX=${TOP}/linux-2.6.24-openvz > > make[1]: Entering directory `/a/dir/kvm-kmod-2.6.30.1' > ./sync kvm-kmod-2.6.30.1 > Traceback (most recent call last): > File "./sync", line 210, in > header_sync(arch) > File "./sync", line 181, in header_sync > hack(T, 'x86', 'include/linux/kvm.h') > File "./sync", line 127, in hack > _hack(T + '/' + file, arch) > File "./sync", line 118, in _hack > data = file(fname).read() > IOError: [Errno 2] No such file or directory: 'header/include/linux/kvm.h' > make[1]: *** [sync] Error 1 > > Any idea whats wrong? Do you have a checked out Linux tree in linux-2.6/? Currently, the linux-2.6 submodule seems to reference a commit that is not present in the standard kvm repo, so I assume that git submodule update has failed for you. For now, you can fix this by using git checkout in linux-2.6/ Btw.: Wrt. git sync, I've also updated to README a bit to the two different kernel trees that come into play. Comments? Jan: I think the bogous reference is a leftover from the tree that you've added as submodule; after my patch to use Avi's tree, the information might be out of sync. Best, Wolfgang