Resolve for 2.6.27.7 vmware-server2 :
remove from /tmp all /tmp/vmware-config* if exist.
rm -rf /tmp/vmware-config*
In vmware-config.pl, in "sub build_module" :
##### string 4123 ############# INSERT
if ($name eq 'vsock') {
system('ln -sf /tmp/vmware-config1/vmci-only/Module.symvers /tmp/vmware-config2/vsock-only');
print wrap ('My code');
}
######### BEFORE
print wrap('Building the ' . $name . ' module.' . "\n\n", 0);
if (system(shell_string($gHelper{'make'}) . ' -C '
. shell_string($build_dir . '/' . $name . '-only')
. ' auto-build ' . (($gSystem{'smp'} eq 'yes') ? 'SUPPORT_SMP=1 '
: '')
. (($gOption{'kernel_version'} ne '')?
shell_string('VM_UNAME=' . $gOption{'kernel_version'}) . ' ':'')
. shell_string('HEADER_DIR=' . db_get_answer('HEADER_DIR')) . ' '
. shell_string('CC=' . $gHelper{'gcc'}) . ' '
. shell_string('GREP=' . $gHelper{'grep'}) . ' '
. shell_string('IS_GCC_3='
. (($gSystem{'gcc_version'} =~ /^3\./) ? 'yes' : 'no')))) {
print wrap('Unable to build the ' . $name . ' module.' . "\n\n", 0);
return 'no';
}
if ($gOption{'kernel_version'} eq '')
{
## Don't use the force flag: the module is supposed to perfectly load
if (try_module($name, $build_dir . '/' . $name . '.o', 0, 1)) {
print wrap('The ' . $name . ' module loads perfectly into the running kernel.'
. "\n\n", 0);
######## COMMENT NEXT LINE
######## remove_tmp_dir($build_dir);
######## END
After vmware-config.pl you can:
rm -rf /tmp/vmware-config*