Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
VMWare on 2.6.25 kernel
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  16 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Peter Teoh  
View profile  
 More options May 6 2008, 11:54 am
From: "Peter Teoh" <htmldevelo...@gmail.com>
Date: Tue, 6 May 2008 23:54:52 +0800
Local: Tues, May 6 2008 11:54 am
Subject: VMWare on 2.6.25 kernel

The original vmware-any-any-116.tgz  as provided here (modified from some
other unknown source as any-any-115) has now just been modified so as to
compile on 2.6.25 Linux Kernel.   Compilation was successful, except for the
last part, when it tried to insmod in my kernel, and init_mm symbol is
missing.

Looking at:

./arch/x86/kernel/init_task.c:
struct mm_struct init_mm = INIT_MM(init_mm);
EXPORT_UNUSED_SYMBOL(init_mm); /* will be removed in 2.6.26 */

SInce EXPORT_UNUSED_SYMBOL() is depending on CONFIG_UNUSED_SYMBOLS being
define:

Therefore, the solution is to edit the .config file in the current linux
kernel download:

change the following to "y":

# CONFIG_UNUSED_SYMBOLS is not set

And recompile the Linux kernel.   After that 117.tgz should proceed
successfully.

Please download and test it if u are interested....thanks.

--
Regards,
Peter Teoh

  vmware-any-any-update117.tgz
652K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
greno  
View profile  
 More options May 7 2008, 3:03 pm
From: greno <gr...@verizon.net>
Date: Wed, 7 May 2008 12:03:54 -0700 (PDT)
Local: Wed, May 7 2008 3:03 pm
Subject: Re: VMWare on 2.6.25 kernel
I downloaded and tested current 117 on my F9 install and here is what
happened:

the vmmon.o got built and MODPOST said 1 unused symbol but module
inserted into kernel fine.
then it went on to vmnet and had a problem there:

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config4/vmnet-only'
make -C /lib/modules/2.6.25-14.fc9.i686/build/include/.. SUBDIRS=$PWD
SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.25-14.fc9.i686'
  CC [M]  /tmp/vmware-config4/vmnet-only/driver.o
  CC [M]  /tmp/vmware-config4/vmnet-only/hub.o
  CC [M]  /tmp/vmware-config4/vmnet-only/userif.o
  CC [M]  /tmp/vmware-config4/vmnet-only/netif.o
  CC [M]  /tmp/vmware-config4/vmnet-only/bridge.o
/tmp/vmware-config4/vmnet-only/bridge.c: In function ‘VNetBridgeUp’:
/tmp/vmware-config4/vmnet-only/bridge.c:949: error: implicit
declaration of function ‘sock_valbool_flag’
make[2]: *** [/tmp/vmware-config4/vmnet-only/bridge.o] Error 1
make[1]: *** [_module_/tmp/vmware-config4/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.25-14.fc9.i686'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config4/vmnet-only'
Unable to build the vmnet module.

For more information on how to troubleshoot module-related problems,
please
visit our Web site at "http://www.vmware.com/download/modules/
modules.html" and
"http://www.vmware.com/support/reference/linux/
prebuilt_modules_linux.html".

Execution aborted.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob  
View profile  
 More options May 7 2008, 4:11 pm
From: Rob <r...@bsdfreaks.nl>
Date: Wed, 7 May 2008 13:11:59 -0700 (PDT)
Local: Wed, May 7 2008 4:11 pm
Subject: Re: VMWare on 2.6.25 kernel
Against kernel 2.6.25 I get problems with vmblock compile:
vmblock-only]# make
Using 2.6.x kernel build system.
make -C /lib/modules/2.6.25-zen1/build/include/.. SUBDIRS=$PWD SRCROOT=
$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.25-zen1'
  CC [M]  /usr/local/src/vmblock-only/linux/block.o
  CC [M]  /usr/local/src/vmblock-only/linux/control.o
  CC [M]  /usr/local/src/vmblock-only/linux/dbllnklst.o
  CC [M]  /usr/local/src/vmblock-only/linux/dentry.o
/usr/local/src/vmblock-only/linux/dentry.c: In function
'DentryOpRevalidate':
/usr/local/src/vmblock-only/linux/dentry.c:115: error: 'struct
nameidata' has no member named 'dentry'
/usr/local/src/vmblock-only/linux/dentry.c:115: error: 'struct
nameidata' has no member named 'dentry'
/usr/local/src/vmblock-only/linux/dentry.c:116: error: implicit
declaration of function 'path_release'
make[2]: *** [/usr/local/src/vmblock-only/linux/dentry.o] Error 1
make[1]: *** [_module_/usr/local/src/vmblock-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.25-zen1'
make: *** [vmblock.ko] Error 2

This I due changes in nameidata
http://repo.or.cz/w/linux-2.6/zen-sources.git?a=commit;h=4ac9137858e0...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Teoh  
View profile  
 More options May 7 2008, 9:31 pm
From: Peter Teoh <htmldevelo...@gmail.com>
Date: Wed, 7 May 2008 18:31:04 -0700 (PDT)
Local: Wed, May 7 2008 9:31 pm
Subject: Re: VMWare on 2.6.25 kernel
Thank you for testing.....I found the error too (FC7) !!!   And then a
search found another FC9 error:

http://fcp.surfsite.org/modules/newbb/viewtopic.php?topic_id=55632&fo...
http://permalink.gmane.org/gmane.linux.redhat.fedora.testers/59672

Ok..same error as yours and greno.....no problem...i made some
progress...vmblock changes is due to path_release() removed (replaced
by path_put()) and then the dentry error have been patch
as .path.dentry......as nameidata has a subfield called path now...so
let me try again....

thanks.

On May 8, 4:11 am, Rob <r...@bsdfreaks.nl> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Teoh  
View profile  
 More options May 7 2008, 10:46 pm
From: Peter Teoh <htmldevelo...@gmail.com>
Date: Thu, 08 May 2008 10:46:37 +0800
Local: Wed, May 7 2008 10:46 pm
Subject: Re: VMWare on 2.6.25 kernel

As per attached is my latest results....please help if u can....

From the past kernel mailing list I found more patches to rectify the any-any codes:

From below here:   iget and read_inode have been removed from the kernel, and it also showed how to replaced it:

http://lkml.org/lkml/2007/10/25/263
http://linux.derkeiler.com/Mailing-Lists/Kernel/2007-10/msg00215.html

After the change, here is the output of compilation (starting from runme.pl, and remember to compile after booting up into the new kernel - 2.6.25 in my case here, as the any-any patch will autodetect this - different color demarcate the different zones of compilation):

/root/download/vmware/vmware-any-any-update117/vmware-any-any-update115>./runme.pl
Updating /usr/bin/vmware ... No patch needed/available
Updating /usr/bin/vmnet-bridge ... No patch needed/available
Updating /usr/lib/vmware/bin/vmware-vmx ... No patch needed/available
Updating /usr/lib/vmware/bin-debug/vmware-vmx ... No patch needed/available
VMware modules in "/usr/lib/vmware/modules/source" has been updated.

Before running VMware for the first time after update, you need to configure it
for your running kernel by invoking the following command:
"/usr/bin/vmware-config.pl". Do you want this script to invoke the command for
you now? [yes] 

Making sure services for VMware Workstation are stopped.

Stopping VMware services:
   Virtual machine monitor                                 [  OK  ]
   Blocking file system:                                   [  OK  ]
   Bridged networking on /dev/vmnet0                       [  OK  ]
   Host network detection                                  [  OK  ]
   DHCP server on /dev/vmnet1                              [  OK  ]
   Host-only networking on /dev/vmnet1                     [  OK  ]
   DHCP server on /dev/vmnet8                              [  OK  ]
   NAT service on /dev/vmnet8                              [  OK  ]
   Host-only networking on /dev/vmnet8                     [  OK  ]
   Virtual ethernet                                        [  OK  ]

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the theme icons?
[/usr/share/icons]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.25/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Unknown VMware Workstation 6.0.2 build 59824 detected. Building for Workstation 6.0.0.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmmon-only'
make -C /lib/modules/2.6.25/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/mnt/sdc2/download/linux-2.6_latest'
  CC [M]  /tmp/vmware-config1/vmmon-only/linux/driver.o
  CC [M]  /tmp/vmware-config1/vmmon-only/linux/driverLog.o
  CC [M]  /tmp/vmware-config1/vmmon-only/linux/hostif.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/comport.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/cpuid.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/hash.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/memtrack.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/phystrack.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/task.o
cc1plus: warning: command line option "-Werror-implicit-function-declaration" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
cc1plus: warning: command line option "-ffreestanding" is valid for C/ObjC but not for C++
/tmp/vmware-config1/vmmon-only/common/task_compat.h: In function ‘int Vmx86_RunVM(VMCrossPage*, VMDriver*) [with VMCrossPage = VMCrossPageV321]’:
/tmp/vmware-config1/vmmon-only/common/task_compat.h:2491: warning: ‘sysenterState.SysenterStateV45::rsp’ is used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:2492: warning: ‘sysenterState.SysenterStateV45::rip’ is used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:3028: warning: ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:3028: warning: ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h: In function ‘int Vmx86_RunVM(VMCrossPage*, VMDriver*) [with VMCrossPage = VMCrossPageV3]’:
/tmp/vmware-config1/vmmon-only/common/task_compat.h:2491: warning: ‘sysenterState.SysenterStateV45::rsp’ is used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:2492: warning: ‘sysenterState.SysenterStateV45::rip’ is used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:3028: warning: ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:3028: warning: ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h: In function ‘int Vmx86_RunVM(VMCrossPage*, VMDriver*) [with VMCrossPage = VMCrossPageGSX1]’:
/tmp/vmware-config1/vmmon-only/common/task_compat.h:2491: warning: ‘sysenterState.SysenterStateV45::rsp’ is used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:2492: warning: ‘sysenterState.SysenterStateV45::rip’ is used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:3028: warning: ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:3028: warning: ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h: In function ‘int Vmx86_RunVM(VMCrossPage*, VMDriver*) [with VMCrossPage = VMCrossPageV2]’:
/tmp/vmware-config1/vmmon-only/common/task_compat.h:2491: warning: ‘sysenterState.SysenterStateV45::rsp’ is used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:2492: warning: ‘sysenterState.SysenterStateV45::rip’ is used uninitialized in this function
/tmp/vmware-config1/vmmon-only/common/task_compat.h:3028: warning:
...

read more »

  vmware-any-any-update117.tgz
654K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
greno  
View profile  
 More options May 8 2008, 1:29 am
From: greno <gr...@verizon.net>
Date: Wed, 7 May 2008 22:29:21 -0700 (PDT)
Local: Thurs, May 8 2008 1:29 am
Subject: Re: VMWare on 2.6.25 kernel
I think config is unlinking /dev/parport0 and some process may be
watching and recreate it before the mknod.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Teoh  
View profile  
 More options May 8 2008, 3:49 am
From: Peter Teoh <htmldevelo...@gmail.com>
Date: Thu, 8 May 2008 00:49:12 -0700 (PDT)
Local: Thurs, May 8 2008 3:49 am
Subject: Re: VMWare on 2.6.25 kernel
ok...no problem anymore....after I reboot the machine....next is the
network compilation issues:

On May 8, 1:29 pm, greno <gr...@verizon.net> wrote:

> I think config is unlinking /dev/parport0 and some process may be
> watching and recreate it before the mknod.

/tmp/vmware-config1/vmmon-only/common/task_compat.h:2666: warning:
‘sysenterState.SysenterStateV45::rip’ may be used uninitialized in
this function
  CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciContext.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciDatagram.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciDriver.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciDs.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciGroup.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciHashtable.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciProcess.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciResource.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/vmciSharedMem.o
  CC [M]  /tmp/vmware-config1/vmmon-only/common/vmx86.o
  CC [M]  /tmp/vmware-config1/vmmon-only/vmcore/compat.o
  CC [M]  /tmp/vmware-config1/vmmon-only/vmcore/moduleloop.o
  LD [M]  /tmp/vmware-config1/vmmon-only/vmmon.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: modpost: module vmmon.ko uses symbol 'init_mm' marked UNUSED
  CC      /tmp/vmware-config1/vmmon-only/vmmon.mod.o
  LD [M]  /tmp/vmware-config1/vmmon-only/vmmon.ko
make[1]: Leaving directory `/mnt/sdc2/download/linux-2.6_latest'
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config1/vmmon-only'
The module loads perfectly in the running kernel.

This program previously created the file /dev/vmmon, and was about to
remove
it.  Somebody else apparently did it already.

Trying to find a suitable vmblock module for your running kernel.

None of the pre-built vmblock modules for VMware Workstation is
suitable for
your running kernel.  Do you want this program to try to build the
vmblock
module for your system (you need to have a C compiler installed on
your
system)? [yes]
Extracting the sources of the vmblock module.

Building the vmblock module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmblock-only'
make -C /lib/modules/2.6.25/build/include/.. SUBDIRS=$PWD SRCROOT=
$PWD/. modules
make[1]: Entering directory `/mnt/sdc2/download/linux-2.6_latest'
  CC [M]  /tmp/vmware-config1/vmblock-only/linux/block.o
  CC [M]  /tmp/vmware-config1/vmblock-only/linux/control.o
  CC [M]  /tmp/vmware-config1/vmblock-only/linux/dbllnklst.o
  CC [M]  /tmp/vmware-config1/vmblock-only/linux/dentry.o
  CC [M]  /tmp/vmware-config1/vmblock-only/linux/file.o
  CC [M]  /tmp/vmware-config1/vmblock-only/linux/filesystem.o
  CC [M]  /tmp/vmware-config1/vmblock-only/linux/inode.o
  CC [M]  /tmp/vmware-config1/vmblock-only/linux/module.o
  CC [M]  /tmp/vmware-config1/vmblock-only/linux/stubs.o
  CC [M]  /tmp/vmware-config1/vmblock-only/linux/super.o
  LD [M]  /tmp/vmware-config1/vmblock-only/vmblock.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config1/vmblock-only/vmblock.mod.o
  LD [M]  /tmp/vmware-config1/vmblock-only/vmblock.ko
make[1]: Leaving directory `/mnt/sdc2/download/linux-2.6_latest'
cp -f vmblock.ko ./../vmblock.o
make: Leaving directory `/tmp/vmware-config1/vmblock-only'
The module loads perfectly in the running kernel.

You have already setup networking.

Would you like to skip networking setup and keep your old settings as
they are?
(yes/no) [yes]
Trying to find a suitable vmnet module for your running kernel.

None of the pre-built vmnet modules for VMware Workstation is suitable
for your
running kernel.  Do you want this program to try to build the vmnet
module for
your system (you need to have a C compiler installed on your system)?
[yes]

Extracting the sources of the vmnet module.

Building the vmnet module.

Unknown VMware Workstation 6.0.2 build 59824 detected. Building for
Workstation 6.0.0.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmnet-only'
make -C /lib/modules/2.6.25/build/include/.. SUBDIRS=$PWD SRCROOT=
$PWD/. modules
make[1]: Entering directory `/mnt/sdc2/download/linux-2.6_latest'
  CC [M]  /tmp/vmware-config1/vmnet-only/driver.o
  CC [M]  /tmp/vmware-config1/vmnet-only/hub.o
  CC [M]  /tmp/vmware-config1/vmnet-only/userif.o
  CC [M]  /tmp/vmware-config1/vmnet-only/netif.o
  CC [M]  /tmp/vmware-config1/vmnet-only/bridge.o
/tmp/vmware-config1/vmnet-only/bridge.c: In function
‘VNetBridgeDevCompatible’:
/tmp/vmware-config1/vmnet-only/bridge.c:278: error: ‘struct
net_device’ has no member named ‘nd_net’
/tmp/vmware-config1/vmnet-only/bridge.c:278: error: ‘struct
net_device’ has no member named ‘nd_net’
/tmp/vmware-config1/vmnet-only/bridge.c: In function ‘VNetBridgeUp’:
/tmp/vmware-config1/vmnet-only/bridge.c:905: error: ‘struct
net_device’ has no member named ‘nd_net’
/tmp/vmware-config1/vmnet-only/bridge.c:943: error: ‘struct
net_device’ has no member named ‘nd_net’
/tmp/vmware-config1/vmnet-only/bridge.c:949: error: implicit
declaration of function ‘sock_valbool_flag’
make[2]: *** [/tmp/vmware-config1/vmnet-only/bridge.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmnet-only] Error 2
make[1]: Leaving directory `/mnt/sdc2/download/linux-2.6_latest'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmnet-only'
Unable to build the vmnet module.

For more information on how to troubleshoot module-related problems,
please
visit our Web site at "http://www.vmware.com/download/modules/
modules.html" and
"http://www.vmware.com/support/reference/linux/
prebuilt_modules_linux.html".

Execution aborted.

I am really confused.   The nd_net in 2.6.25 is embedded inside
CONFIG_NET_NS (look at net_device inside include/linux/netdevice.h).
But .config don't allow me to specify CONFIG_NET_NS=y, due to some
dependancies issues.   (specifying =y always result is its deletion
after I do a "make oldconfig").


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Teoh  
View profile   Translate to Translated (View Original)
 More options May 8 2008, 8:55 pm
From: Peter Teoh <htmldevelo...@gmail.com>
Date: Thu, 8 May 2008 17:55:25 -0700 (PDT)
Local: Thurs, May 8 2008 8:55 pm
Subject: Re: VMWare on 2.6.25 kernel
The network error has been resolved by someone after some googling:

From http://myn.meganecco.org/2008041900:

diff -ruw vmnet-only.orig/bridge.c vmnet-only/bridge.c
--- vmnet-only.orig/bridge.c 2007-11-28 19:25:06.000000000 +0900
+++ vmnet-only/bridge.c 2008-04-19 19:08:45.000000000 +0900
@@ -275,7 +275,7 @@
                         struct net_device *net)  // IN: Network
device
 {
 #ifdef VMW_NETDEV_HAS_NET
-   if (net->nd_net != bridge->internalDev->nd_net) {
+   if (dev_net(net) != dev_net(bridge->internalDev)) {
       return 0;
    }
 #endif

と,

diff -ruw vmnet-only.orig/vmnet-only/vmnetInt.h vmnet-only/vmnetInt.h
--- vmnet-only.orig/vmnet-only/vmnetInt.h       2007-11-28
19:25:06.000000000 +0900
+++ vmnet-only/vmnetInt.h       2008-04-20 23:09:00.000000000 +0900
@@ -63,7 +63,7 @@
 #   define dev_lock_list()    read_lock(&dev_base_lock)
 #   define dev_unlock_list()  read_unlock(&dev_base_lock)
 #   ifdef VMW_NETDEV_HAS_NET
-#      define DEV_GET(x)      __dev_get_by_name((x)->internalDev-

>nd_net, (x)->name)

+#      define DEV_GET(x)      __dev_get_by_name((dev_net((x)-
>internalDev)), (x)->name)

 #   else
 #      define DEV_GET(x)      __dev_get_by_name((x)->name)
 #   endif
@@ -85,7 +85,7 @@

 #ifdef VMW_NETDEV_HAS_NET
 extern struct proto vmnet_proto;
-#   define compat_sk_alloc(_bri, _pri) sk_alloc((_bri)->internalDev-

>nd_net, \

+#   define compat_sk_alloc(_bri, _pri) sk_alloc((dev_net((_bri)-
>internalDev)), \

                                                 PF_NETLINK, _pri,
&vmnet_proto)
 #elif defined(VMW_HAVE_SK_ALLOC_WITH_PROTO)
 extern struct proto vmnet_proto;

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Teoh  
View profile  
 More options May 8 2008, 8:57 pm
From: Peter Teoh <htmldevelo...@gmail.com>
Date: Thu, 8 May 2008 17:57:20 -0700 (PDT)
Local: Thurs, May 8 2008 8:57 pm
Subject: Re: VMWare on 2.6.25 kernel
There is one more here:

http://myn.meganecco.org/2008041800

I have yet to verify why this particular patch is needed, as I don't
Japanese :-).


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ole...@gmail.com  
View profile  
 More options May 9 2008, 4:29 pm
From: ole...@gmail.com
Date: Fri, 9 May 2008 13:29:14 -0700 (PDT)
Local: Fri, May 9 2008 4:29 pm
Subject: Re: VMWare on 2.6.25 kernel
Can you confirm that the Japanese patches fix the network issue?
using the sources from any-to-any 117 i apply the all four diffs.
after applying all four diffs i am getting these errors:

make[1]: Entering directory `/usr/src/kernels/2.6.25-14.fc9.x86_64'
  CC [M]  /tmp/vmware-config22/vmnet-only/driver.o
  CC [M]  /tmp/vmware-config22/vmnet-only/hub.o
  CC [M]  /tmp/vmware-config22/vmnet-only/userif.o
  CC [M]  /tmp/vmware-config22/vmnet-only/netif.o
  CC [M]  /tmp/vmware-config22/vmnet-only/bridge.o
/tmp/vmware-config22/vmnet-only/bridge.c: In function ‘VNetBridgeUp’:
/tmp/vmware-config22/vmnet-only/bridge.c:913: error: implicit
declaration of function ‘dev_net’
/tmp/vmware-config22/vmnet-only/bridge.c:913: warning: passing
argument 1 of ‘__dev_get_by_name’ makes pointer from integer without a
cast
/tmp/vmware-config22/vmnet-only/bridge.c:951: warning: passing
argument 1 of ‘sk_alloc’ makes pointer from integer without a cast
make[2]: *** [/tmp/vmware-config22/vmnet-only/bridge.o] Error 1
make[1]: *** [_module_/tmp/vmware-config22/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.25-14.fc9.x86_64'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config22/vmnet-only'
Unable to build the vmnet module.

The PATCHES:

diff -ruw vmnet-only.orig/bridge.c vmnet-only/bridge.c
--- vmnet-only.orig/bridge.c 2007-11-28 19:25:06.000000000 +0900
+++ vmnet-only/bridge.c 2008-04-19 19:08:45.000000000 +0900
@@ -275,7 +275,7 @@
                         struct net_device *net)  // IN: Network
device
 {
 #ifdef VMW_NETDEV_HAS_NET
-   if (net->nd_net != bridge->internalDev->nd_net) {
+   if (dev_net(net) != dev_net(bridge->internalDev)) {
       return 0;
    }
 #endif

--

diff -ruw vmnet-only.orig/vmnet-only/vmnetInt.h vmnet-only/vmnetInt.h
--- vmnet-only.orig/vmnet-only/vmnetInt.h       2007-11-28
19:25:06.000000000 +0900
+++ vmnet-only/vmnetInt.h       2008-04-20 23:09:00.000000000 +0900
@@ -63,7 +63,7 @@
 #   define dev_lock_list()    read_lock(&dev_base_lock)
 #   define dev_unlock_list()  read_unlock(&dev_base_lock)
 #   ifdef VMW_NETDEV_HAS_NET
-#      define DEV_GET(x)      __dev_get_by_name((x)->internalDev-

>nd_net, (x)->name)

+#      define DEV_GET(x)      __dev_get_by_name((dev_net((x)-
>internalDev)), (x)->name)

 #   else
 #      define DEV_GET(x)      __dev_get_by_name((x)->name)
 #   endif
@@ -85,7 +85,7 @@

 #ifdef VMW_NETDEV_HAS_NET
 extern struct proto vmnet_proto;
-#   define compat_sk_alloc(_bri, _pri) sk_alloc((_bri)->internalDev-

>nd_net, \

+#   define compat_sk_alloc(_bri, _pri) sk_alloc((dev_net((_bri)-
>internalDev)), \

                                                 PF_NETLINK, _pri,
&vmnet_proto)
 #elif defined(VMW_HAVE_SK_ALLOC_WITH_PROTO)
 extern struct proto vmnet_proto;

--

diff -ruw vmnet-only.orig/bridge.c vmnet-only/bridge.c
--- vmnet-only.orig/bridge.c 2007-11-28 19:25:06.000000000 +0900
+++ vmnet-only/bridge.c 2008-04-18 10:43:53.000000000 +0900
@@ -886,6 +886,14 @@

*----------------------------------------------------------------------
  */

+static inline void sock_valbool_flag(struct sock *sk, int bit, int
valbool)
+{
+  if (valbool)
+    sock_set_flag(sk, bit);
+  else
+    sock_reset_flag(sk, bit);
+}
+
 int
 VNetBridgeUp(VNetBridge *bridge, // IN: bridge struct
              Bool rtnlLock)      // IN: acquire RTNL lock

--

diff -ruw vmnet-only.orig/filter.c vmnet-only/filter.c
--- vmnet-only.orig/filter.c 2007-11-28 19:11:12.000000000 +0900
+++ vmnet-only/filter.c 2008-04-18 10:50:24.000000000 +0900
@@ -41,6 +41,9 @@
 /* netfilter hooks for filtering. */
 static nf_hookfn VNetFilterHookFn;

+#define NF_IP_LOCAL_IN         1
+#define NF_IP_POST_ROUTING      4
+
 static struct nf_hook_ops vmnet_nf_ops[] = {
    {  .hook = VNetFilterHookFn,
       compat_nf_hook_owner

On May 8, 5:57 pm, Peter Teoh <htmldevelo...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Teoh  
View profile  
 More options May 11 2008, 11:19 am
From: Peter Teoh <htmldevelo...@gmail.com>
Date: Sun, 11 May 2008 08:19:20 -0700 (PDT)
Local: Sun, May 11 2008 11:19 am
Subject: Re: VMWare on 2.6.25 kernel
Thanks for trying....

On May 10, 4:29 am, ole...@gmail.com wrote:

> Can you confirm that the Japanese patches fix the network issue?
> using the sources from any-to-any 117 i apply the all four diffs.
> after applying all four diffs i am getting these errors:

> make[1]: Entering directory `/usr/src/kernels/2.6.25-14.fc9.x86_64'
>   CC [M]  /tmp/vmware-config22/vmnet-only/driver.o
>   CC [M]  /tmp/vmware-config22/vmnet-only/hub.o
>   CC [M]  /tmp/vmware-config22/vmnet-only/userif.o
>   CC [M]  /tmp/vmware-config22/vmnet-only/netif.o
>   CC [M]  /tmp/vmware-config22/vmnet-only/bridge.o
> /tmp/vmware-config22/vmnet-only/bridge.c: In function ‘VNetBridgeUp’:
> /tmp/vmware-config22/vmnet-only/bridge.c:913: error: implicit
> declaration of function ‘dev_net’

"implicit declaration" means compiler cannot find out where  the
function is declared....so it implicitly deduced it....

my kernel source is in include/linux/netdevice.h declared as static
inline.

> /tmp/vmware-config22/vmnet-only/bridge.c:913: warning: passing
> argument 1 of ‘__dev_get_by_name’ makes pointer from integer without a
> cast
> /tmp/vmware-config22/vmnet-only/bridge.c:951: warning: passing
> argument 1 of ‘sk_alloc’ makes pointer from integer without a cast
> make[2]: *** [/tmp/vmware-config22/vmnet-only/bridge.o] Error 1

easily solve  by a  cast....

ok...one steps at a  time...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
josemaX  
View profile  
 More options May 11 2008, 11:31 am
From: josemaX <jose...@gmail.com>
Date: Sun, 11 May 2008 08:31:22 -0700 (PDT)
Local: Sun, May 11 2008 11:31 am
Subject: Re: VMWare on 2.6.25 kernel
Hello,

By applying the patches listed by ole...@gmail.com above to 116 i have
VMware Workstation 6.0.2 i386 running on Fedora 9. It compiled all
modules without fatal errors.

Here i probe it! :-) Hope it helps you to fix an 117

[jose@tobishi ~]$ uname -rvo
2.6.25-14.fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008 GNU/Linux
[jose@tobishi ~]$ cat /etc/redhat-release
Fedora release 9 (Sulphur)
[jose@tobishi ~]$ ps -ef | grep -i vmware
root      6701     1  0 17:22 ?        00:00:00 /usr/bin/vmnet-dhcpd -
cf /etc/vmware/vmnet1/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet1/dhcpd/
dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet1.pid vmnet1
root      6711     1  0 17:22 ?        00:00:00 /usr/bin/vmnet-dhcpd -
cf /etc/vmware/vmnet8/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet8/dhcpd/
dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid vmnet8
root      6716     1  0 17:22 ?        00:00:00 /usr/bin/vmnet-natd -
d /var/run/vmnet-natd-8.pid -m /var/run/vmnet-natd-8.mac -c /etc/
vmware/vmnet8/nat/nat.conf
jose      6748  3202  0 17:22 pts/0    00:00:00 /bin/sh /usr/lib/
vmware/lib/wrapper-gtk24.sh /usr/lib/vmware/lib /usr/lib/vmware/bin/
vmware /usr/lib/vmware/libconf
jose      6778  6748  0 17:22 pts/0    00:00:01 /usr/lib/vmware/bin/
vmware
jose      6780  6778  0 17:22 pts/0    00:00:00 [vmware-tray]
<defunct>
jose      7090  7009  0 17:28 pts/1    00:00:00 grep -i vmware
[jose@tobishi ~]$ rpm -q VMwareWorkstation
VMwareWorkstation-6.0.2-59824.i386
[jose@tobishi ~]$

On 11 mayo, 17:19, Peter Teoh <htmldevelo...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
josemaX  
View profile  
 More options May 11 2008, 11:42 am
From: josemaX <jose...@gmail.com>
Date: Sun, 11 May 2008 08:42:44 -0700 (PDT)
Local: Sun, May 11 2008 11:42 am
Subject: Re: VMWare on 2.6.25 kernel
SORRY! I was wrong about the changes made that does it works.

THIS IS what i used: http://communities.vmware.com/message/872643#872643
(Ehud entry)

Sorry again if i confused you!

On 11 mayo, 17:31, josemaX <jose...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
josemaX  
View profile  
 More options May 11 2008, 12:24 pm
From: josemaX <jose...@gmail.com>
Date: Sun, 11 May 2008 09:24:00 -0700 (PDT)
Subject: Re: VMWare on 2.6.25 kernel
Hello again

I can confirm you I have also VMware Server 1.05 running in Fedora 9
with the same Patch.

Network (in guest) works both as bridged and as NATed in Workstation
and Server.

On 11 mayo, 17:42, josemaX <jose...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Teoh  
View profile  
 More options May 11 2008, 10:13 pm
From: Peter Teoh <htmldevelo...@gmail.com>
Date: Sun, 11 May 2008 19:13:30 -0700 (PDT)
Local: Sun, May 11 2008 10:13 pm
Subject: Re: VMWare on 2.6.25 kernel
Thank you for the reference, shall come back to this again in next few
days....tied up over some things now....thanks :-).

On May 11, 11:42 pm, josemaX <jose...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Teoh  
View profile  
 More options Jul 20 2008, 3:57 am
From: "Peter Teoh" <htmldevelo...@gmail.com>
Date: Sun, 20 Jul 2008 15:57:19 +0800
Local: Sun, Jul 20 2008 3:57 am
Subject: Re: VMWare on 2.6.25 kernel
I think someone already posted the working version for 2.6.26-rc9
(verified by me), and so should be working for 2.6.25 (look for
"SUCCESSFUL")?

Check this thread:

http://groups.google.com/group/vmkernelnewbies/browse_thread/thread/a...

The working version is 117c.

http://vmkernelnewbies.googlegroups.com/web/vmware-any-any-update117c...

On Sun, Jul 20, 2008 at 6:48 AM, maxima2k <ryh...@gmail.com> wrote:
> Where you able to this resolved?  I am struggling with the same exact
> situation.

--
Regards,
Peter Teoh

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google