You are not logged in.

#1 2009-04-10 20:05:34

Coume
Member
From: UK
Registered: 2008-02-10
Posts: 78
Website

VMware server: Error trying to compile the vmmon and vmnet modules.

Hello,

I am trying to install VMware server following the wiki: http://wiki.archlinux.org/index.php/Ins … _on_Arch64

I can't get very far as I can't even compile vmmon and vmnet and I have no idea on how to solve this problem sad

[21:02:38][root@phusis]
[/opt/arch32/root/vmware-server-distrib/lib/modules/source]Arch64# make -C vmmon-only auto-build HEADER_DIR=/usr/src/linux-`uname -r`/include CC=gcc SUPPO_SMP=1 GREP=grep IS_GCC_3=no
Using 2.6.x kernel build system.
make: Entering directory `/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only'
make -C /usr/src/linux-2.6.28-ARCH/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.28-ARCH'
  CC [M]  /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.o
In file included from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/./include/x86.h:20,
                 from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/./include/machine.h:24,
                 from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.h:15,
                 from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:49:
/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/./include/x86apic.h:79:1: warning: "APIC_BASE_MSR" redefined
In file included from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/numa_64.h:5,
                 from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/numa.h:4,
                 from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/acpi.h:28,
                 from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/fixmap_64.h:15,
                 from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/fixmap.h:7,
                 from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/apic.h:8,
                 from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/smp.h:13,
                 from include/linux/smp.h:30,
                 from include/linux/topology.h:33,
                 from include/linux/mmzone.h:763,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:12:
/usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/apicdef.h:132:1: warning: this is the location of the previous definition
In file included from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/./include/machine.h:24,
                 from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.h:15,
                 from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:49:
/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/./include/x86.h:830:1: warning: "PTE_PFN_MASK" redefined
In file included from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/pda.h:8,
                 from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/current.h:19,
                 from /usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/processor.h:15,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:6,
                 from include/linux/module.h:9,
                 from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:12:
/usr/src/linux-2.6.28-ARCH/arch/x86/include/asm/page.h:22:1: warning: this is the location of the previous definition
In file included from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/vmhost.h:13,
                 from /opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:71:
/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/./include/compat_semaphore.h:5:27: error: asm/semaphore.h: No such file or directory
/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:146: error: unknown field 'nopage' specified in initializer
/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:147: warning: initialization from incompatible pointer type
/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:150: error: unknown field 'nopage' specified in initializer
/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:151: warning: initialization from incompatible pointer type
/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c: In function 'LinuxDriver_Ioctl':
/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.c:1670: error: too many arguments to function 'smp_call_function'
make[2]: *** [/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.28-ARCH'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/opt/arch32/root/vmware-server-distrib/lib/modules/source/vmmon-only'

Do you know what I could do to sort the above issue?

Thanks
Ludo

Offline

#2 2009-04-13 17:30:50

franco
Member
Registered: 2009-01-27
Posts: 6

Re: VMware server: Error trying to compile the vmmon and vmnet modules.

same problem here

Offline

#3 2009-04-15 12:50:43

brendanz
Member
From: NZ/AU
Registered: 2009-02-16
Posts: 5

Re: VMware server: Error trying to compile the vmmon and vmnet modules.

I had the same or similar issue.

Following the section "VMware and kernel 2.6.29 compile modules problem" from http://wiki.archlinux.org/index.php/Installing_VMware fixed the problem for me.

Offline

#4 2009-04-18 13:29:00

fixu
Member
Registered: 2008-05-29
Posts: 27

Re: VMware server: Error trying to compile the vmmon and vmnet modules.

hi,

i am not able to use the patch. there are always missing files and i dont know the path for this files.

here is the output of the console:

patch -p1 -i /home/felix//Desktop/vmware-workstation-6.5.1.126130-2.6.29_x86_64.patch                                                                               
can't find file to patch at input line 4                                               
Perhaps you used the wrong -p or --strip option?                                       
The text leading up to this was:                                                       
--------------------------                                                             
|diff -Naur orig/vmblock-only/include/compat_wait.h new/vmblock-only/include/compat_wait.h                                                                                    
|--- orig/vmblock-only/include/compat_wait.h    2008-10-28 22:47:20.000000000 -0700    
|+++ new/vmblock-only/include/compat_wait.h     2009-01-20 04:49:44.000000000 -0700    
--------------------------                                                             
File to patch:                                                                         
Skip this patch? [y] y                                                                 
Skipping patch.                                                                        
1 out of 1 hunk ignored                                                                
can't find file to patch at input line 19                                              
Perhaps you used the wrong -p or --strip option?                                       
The text leading up to this was:                                                       
--------------------------                                                             
|diff -Naur orig/vmci-only/include/compat_wait.h new/vmci-only/include/compat_wait.h   
|--- orig/vmci-only/include/compat_wait.h       2008-10-28 22:47:21.000000000 -0700    
|+++ new/vmci-only/include/compat_wait.h        2009-01-20 04:49:44.000000000 -0700    
--------------------------                                                             
File to patch: y                                                                       
y: No such file or directory                                                           
Skip this patch? [y]                                                                   
Skipping patch.                                                                        
1 out of 1 hunk ignored                                                                
can't find file to patch at input line 34                                              
Perhaps you used the wrong -p or --strip option?                                       
The text leading up to this was:                                                       
--------------------------                                                             
|diff -Naur orig/vmmon-only/include/compat_wait.h new/vmmon-only/include/compat_wait.h 
|--- orig/vmmon-only/include/compat_wait.h      2008-10-28 22:47:18.000000000 -0700    
|+++ new/vmmon-only/include/compat_wait.h       2009-01-20 04:49:44.000000000 -0700    
--------------------------                                                             
File to patch:                                                                         
Skip this patch? [y] y                                                                 
Skipping patch.                                                                        
1 out of 1 hunk ignored                                                                
can't find file to patch at input line 49                                              
Perhaps you used the wrong -p or --strip option?                                       
The text leading up to this was:                                                       
--------------------------                                                             
|diff -Naur orig/vmmon-only/include/x86apic.h new/vmmon-only/include/x86apic.h         
|--- orig/vmmon-only/include/x86apic.h  2008-10-28 22:47:17.000000000 -0700            
|+++ new/vmmon-only/include/x86apic.h   2009-01-20 04:49:44.000000000 -0700            
--------------------------                                                             
File to patch:                                                                         
Skip this patch? [y] y                                                                 
Skipping patch.                                                                        
1 out of 1 hunk ignored                                                                
can't find file to patch at input line 64                                              
Perhaps you used the wrong -p or --strip option?                                       
The text leading up to this was:                                                       
--------------------------                                                             
|diff -Naur orig/vmmon-only/linux/driver.c new/vmmon-only/linux/driver.c               
|--- orig/vmmon-only/linux/driver.c     2008-10-28 22:47:18.000000000 -0700            
|+++ new/vmmon-only/linux/driver.c      2009-01-20 04:49:44.000000000 -0700            
--------------------------                                                             
File to patch:                                                                         
Skip this patch? [y] y                                                                 
Skipping patch.                                                                        
1 out of 1 hunk ignored                                                                
can't find file to patch at input line 85                                              
Perhaps you used the wrong -p or --strip option?                                       
The text leading up to this was:                                                       
--------------------------                                                             
|diff -Naur orig/vmmon-only/linux/hostif.c new/vmmon-only/linux/hostif.c               
|--- orig/vmmon-only/linux/hostif.c     2008-10-28 22:47:17.000000000 -0700            
|+++ new/vmmon-only/linux/hostif.c      2009-01-20 04:49:44.000000000 -0700            
--------------------------                                                             
File to patch:                                                                         
Skip this patch? [y] y                                                                 
Skipping patch.                                                                        
4 out of 4 hunks ignored                                                               
can't find file to patch at input line 173                                             
Perhaps you used the wrong -p or --strip option?                                       
The text leading up to this was:                                                       
--------------------------                                                             
|diff -Naur orig/vmmon-only/linux/vmmonInt.h new/vmmon-only/linux/vmmonInt.h           
|--- orig/vmmon-only/linux/vmmonInt.h   2008-10-28 22:47:17.000000000 -0700            
|+++ new/vmmon-only/linux/vmmonInt.h    2009-01-20 04:49:44.000000000 -0700            
--------------------------                                                             
File to patch:                                                                         
Skip this patch? [y] y                                                                 
Skipping patch.                                                                        
1 out of 1 hunk ignored                                                                
can't find file to patch at input line 188                                             
Perhaps you used the wrong -p or --strip option?                                       
The text leading up to this was:                                                       
--------------------------                                                             
|diff -Naur orig/vmnet-only/bridge.c new/vmnet-only/bridge.c                           
|--- orig/vmnet-only/bridge.c   2008-10-28 22:47:18.000000000 -0700                    
|+++ new/vmnet-only/bridge.c    2009-01-20 04:49:44.000000000 -0700                    
--------------------------                                                             
File to patch:                                                                         
Skip this patch? [y] y                                                                 
Skipping patch.                                                                        
1 out of 1 hunk ignored                                                                
can't find file to patch at input line 203                                             
Perhaps you used the wrong -p or --strip option?                                       
The text leading up to this was:                                                       
--------------------------                                                             
|diff -Naur orig/vmnet-only/compat_wait.h new/vmnet-only/compat_wait.h                 
|--- orig/vmnet-only/compat_wait.h      2008-10-28 22:47:19.000000000 -0700            
|+++ new/vmnet-only/compat_wait.h       2009-01-20 04:49:44.000000000 -0700            
--------------------------                                                             
File to patch:                                                                         
Skip this patch? [y] y                                                                 
Skipping patch.                                                                        
1 out of 1 hunk ignored                                                                
can't find file to patch at input line 218                                             
Perhaps you used the wrong -p or --strip option?                                       
The text leading up to this was:                                                       
--------------------------                                                             
|diff -Naur orig/vmnet-only/driver.c new/vmnet-only/driver.c                           
|--- orig/vmnet-only/driver.c   2008-10-28 22:47:19.000000000 -0700                    
|+++ new/vmnet-only/driver.c    2009-01-20 04:49:44.000000000 -0700                    
--------------------------                                                             
File to patch:                                                                         
Skip this patch? [y] y                                                                 
Skipping patch.                                                                        
1 out of 1 hunk ignored
can't find file to patch at input line 235
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur orig/vmnet-only/netif.c new/vmnet-only/netif.c
|--- orig/vmnet-only/netif.c    2008-10-28 22:47:18.000000000 -0700
|+++ new/vmnet-only/netif.c     2009-01-20 04:49:44.000000000 -0700
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
4 out of 4 hunks ignored
can't find file to patch at input line 286
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur orig/vsock-only/include/compat_wait.h new/vsock-only/include/compat_wait.h
|--- orig/vsock-only/include/compat_wait.h      2009-01-20 14:11:34.000000000 +0100
|+++ new/vsock-only/include/compat_wait.h       2009-01-20 14:51:05.000000000 +0100
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored

thanks

felix

Offline

#5 2009-04-18 13:59:47

fixu
Member
Registered: 2008-05-29
Posts: 27

Re: VMware server: Error trying to compile the vmmon and vmnet modules.

patch worked finally. i just forgot a step inside the scrpit. stupid.

but no i got another error.

--the VMware team

Starting VMware services:
   Virtual machine monitor                                             done
   Virtual machine communication interface                             done
   VM communication interface socket family:                          failed
   Virtual ethernet                                                    done
/home/vmware/lib/vmware/net-services.sh: line 692: /sbin/lsmod: Datei oder Verzeichnisnicht gefunden
Module vmnet is not loaded.  Please verify that it is loaded before
running this script.


The configuration of VMware Server 2.0.1 build-156745 for Linux for this
running kernel completed successfully.

Offline

#6 2009-04-29 00:33:16

downforce
Member
Registered: 2008-09-07
Posts: 2

Re: VMware server: Error trying to compile the vmmon and vmnet modules.

I'm having the same problem, what did you do you fix it? Please share your knowledge!

EDIT: Found a solution that worked w/ VMWare server 1.0.x and Arch x86 anyway: http://www.saarlinux.de/blog/?p=5&cpage=1#comment-1245

Last edited by downforce (2009-04-29 02:29:01)

Offline

#7 2009-04-29 06:14:28

Coume
Member
From: UK
Registered: 2008-02-10
Posts: 78
Website

Re: VMware server: Error trying to compile the vmmon and vmnet modules.

For me, I decided to use VirtualBox and everything was up and running in few minutes!

Offline

#8 2009-04-29 11:18:51

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,563

Re: VMware server: Error trying to compile the vmmon and vmnet modules.

The patch mentioned in the wiki didn't work for me. I was going to edit it. Try starting over, using: http://communities.vmware.com/message/1218802 Not the script they provide, just the patch, and apply with 'patch -N -p1 -i patchlocationhere.patch'

Worked fine for me with Workstation 6.5.2 on 64-bit.

Offline

#9 2009-04-30 16:45:45

ss2
Member
Registered: 2007-10-05
Posts: 83

Re: VMware server: Error trying to compile the vmmon and vmnet modules.

I'm trying to build the vmware-server-modules at the moment with the patches mentioned in the wiki. But with not much success at the moment.

makepkg does manage to patch the modules, but then the script just aborts and I'm not sure why it does. Here is the PKGBUILD and the logfile from makepkg:

# Contributor: Alexander Fehr <pizzapunk gmail com>
# Maintainer: Simon Streit <ss2@netpanic.org>

_kernver=`uname -r`

pkgname=vmware-server-modules
pkgver=1.0.9
pkgrel=1
pkgdesc="Kernel modules for VMware Server"
arch=('i686')
url="http://www.vmware.com/products/server/"
license=('custom')
depends=('kernel26>=2.6.29')
conflicts=('vmware-workstation-modules' 'vmware-player-modules')
install=vmware-server-modules.install
source=(http://download3.vmware.com/software/vmserver/VMware-server-1.0.9-156507.tar.gz
        vmware-workstation-6.5.1.126130-2.6.29_x86_64.patch)
md5sums=('ff4b57588514c83b1a828e3b19843ad2'
         '211cc153f82a1a662576b92d8c42c853')

            
build() {
  cd "$srcdir/vmware-server-distrib/lib/modules/source"

  # Patch the outdated modules.
  for module in vmmon vmnet; do 
    tar -xf $module.tar || return 1
    rm $module.tar || return 1
  done
  if [ -f "$srcdir/vmware-workstation-6.5.1.126130-2.6.29_x86_64.patch" ]; then
    patch -p1 -i "$srcdir/vmware-workstation-6.5.1.126130-2.6.29_x86_64.patch" || return 1
  fi
  for module in vmmon vmnet; 
    do tar -cf $module-only.tar $module-only; 
    rm -r $module-only
  done

  # License
  install -D -m644 "$srcdir/vmware-server-distrib/doc/EULA" \
    "$pkgdir/usr/share/licenses/vmware-server-modules/EULA" || return 1
  install -D -m644 \
    "$srcdir/vmware-server-distrib/doc/open_source_licenses.txt" \
    "$pkgdir/usr/share/licenses/vmware-server-modules/open_source_licenses.txt" || return 1

  sed -i -e "s|KERNEL_VERSION='.*'|KERNEL_VERSION='$_kernver'|" \
    "$startdir/vmware-server-modules.install" || return 1
}
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur orig/vmblock-only/include/compat_wait.h new/vmblock-only/include/compat_wait.h
|--- orig/vmblock-only/include/compat_wait.h    2008-10-28 22:47:20.000000000 -0700
|+++ new/vmblock-only/include/compat_wait.h    2009-01-20 04:49:44.000000000 -0700
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 19
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur orig/vmci-only/include/compat_wait.h new/vmci-only/include/compat_wait.h
|--- orig/vmci-only/include/compat_wait.h    2008-10-28 22:47:21.000000000 -0700
|+++ new/vmci-only/include/compat_wait.h    2009-01-20 04:49:44.000000000 -0700
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
patching file vmmon-only/include/compat_wait.h
Hunk #1 succeeded at 57 (offset -18 lines).
patching file vmmon-only/include/x86apic.h
Hunk #1 succeeded at 76 (offset -18 lines).
patching file vmmon-only/linux/driver.c
Hunk #1 FAILED at 1984.
1 out of 1 hunk FAILED -- saving rejects to file vmmon-only/linux/driver.c.rej
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 2769 (offset 51 lines).
Hunk #2 succeeded at 2803 (offset 51 lines).
Hunk #3 FAILED at 3514.
Hunk #4 FAILED at 3643.
2 out of 4 hunks FAILED -- saving rejects to file vmmon-only/linux/hostif.c.rej
patching file vmmon-only/linux/vmmonInt.h
Hunk #1 FAILED at 46.
1 out of 1 hunk FAILED -- saving rejects to file vmmon-only/linux/vmmonInt.h.rej
patching file vmnet-only/bridge.c
Hunk #1 succeeded at 649 (offset 3 lines).
patching file vmnet-only/compat_wait.h
Hunk #1 succeeded at 57 (offset -18 lines).
patching file vmnet-only/driver.c
Hunk #1 succeeded at 119 (offset -27 lines).
patching file vmnet-only/netif.c
Hunk #1 succeeded at 310 (offset -14 lines).
Hunk #2 succeeded at 555 (offset -14 lines).
Hunk #3 succeeded at 611 (offset -14 lines).
Hunk #4 succeeded at 673 (offset -14 lines).
can't find file to patch at input line 286
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur orig/vsock-only/include/compat_wait.h new/vsock-only/include/compat_wait.h
|--- orig/vsock-only/include/compat_wait.h    2009-01-20 14:11:34.000000000 +0100
|+++ new/vsock-only/include/compat_wait.h    2009-01-20 14:51:05.000000000 +0100
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored

Maybe somebody could give me a hint? I'd appreciate that. smile

Offline

#10 2009-05-05 09:17:54

oliv
Member
Registered: 2005-04-17
Posts: 58

Re: VMware server: Error trying to compile the vmmon and vmnet modules.

Hello ss2, I managed to build the modules for vmware-server2 and I reviewed quickly the patch. Currently, I installed vmware-server2 without the package manager even if I don't like it because I have no time. If you already have a PKGBUILD of vmware server 2 working, I would be happy to help making a working PKGBUILD.

For vmware-server1, there are too much errors currently. I may get some time to make modules working but I installed the v2 because I need it as quick a possible.

Offline

#11 2009-05-05 11:21:41

oliv
Member
Registered: 2005-04-17
Posts: 58

Re: VMware server: Error trying to compile the vmmon and vmnet modules.

OK I managed to upload vmware2 on the AUR.

Offline

#12 2009-05-08 19:11:37

mic64
Member
Registered: 2005-03-03
Posts: 173

Re: VMware server: Error trying to compile the vmmon and vmnet modules.

Hi

is there no way to install the X86_64 package in arch64?
It works pretty out of the box in Ubuntu.

Offline

#13 2009-05-09 04:37:06

Hydraulix
Member
Registered: 2007-08-22
Posts: 21

Re: VMware server: Error trying to compile the vmmon and vmnet modules.

Coume wrote:

For me, I decided to use VirtualBox and everything was up and running in few minutes!

I second that statement. I was tired of VMware breaking after every kernel update. So far, Virtualbox hasn't had that issue. I've been running Virtualbox for about a good 6+ months now.

Offline

Board footer

Powered by FluxBB