Lihuen
RSSRSS AtomAtom

Instalando VMware-server-1.0.4-56528 con kernel 2.6.x

Requisitos

  1. Linux-headers-2.6.x
  2. g++
  3. kernel-package
  4. libnet-dev
  5. buil-essential
  6. xinetd
  7. Gcc x versión la que dispongan en la distro lihuen o mas reciente tambíen


Bajamos vmware-server

http://www.vmware.com/download/server/

Instalamos

Ya descargado la versión que elijan disponemos a crear una carpeta donde mejor nos convenga para albergar temporalmente el nuestro vmware descargado.

su 
#mkdir /opt/tmp
#cp VMware-server-*.tar.gz /opt/tmp
#tar xvfz VMware-server-*.tar.gz

entramos al directorio

#cd vm*

ejecutamos aqui antes

# export CC=/usr/bin/gcc-version

donde version seria la que disponen, esto es por precaución si actualmente tienen un kernel > 2.6.24, ahora si.

#./vmware-install.pl

asumimos previo registro con serial obtenido de vmware, seguir las instrucciones. aqui una muestra con kernel 2.6.25.

zte:/usr/lib/vmware/modules/source# vmware-config.pl 
Making sure services for VMware Server are stopped.

Stopping VMware services:
   Virtual machine monitor                                             done
   Bridged networking on /dev/vmnet0                                   done
   DHCP server on /dev/vmnet1                                          done
   Host-only networking on /dev/vmnet1                                 done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   Host-only networking on /dev/vmnet8                                 done
   Virtual ethernet                                                    done

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type 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]  

/usr/share/applications/vmware-server.desktop: warning: value "vmware-server.png" for key "Icon" in group  "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the  Icon Theme Specification if the value is not an absolute path

/usr/share/applications/vmware-console-uri-handler.desktop: warning: value "vmware-server.png" for key  "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server 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-pcchips/build/include] ^C
zte:/usr/lib/vmware/modules/source# export CC=/usr/bin/gcc
gcc         gcc-4.1     gcc-4.3     gccbug-4.1  
zte:/usr/lib/vmware/modules/source# export CC=/usr/bin/gcc
gcc         gcc-4.1     gcc-4.3     gccbug-4.1  
zte:/usr/lib/vmware/modules/source# export CC=/usr/bin/gcc-4.3
zte:/usr/lib/vmware/modules/source# vmware-config.pl 
Making sure services for VMware Server are stopped.

Stopping VMware services:
   Virtual machine monitor                                             done
   Bridged networking on /dev/vmnet0                                   done
   DHCP server on /dev/vmnet1                                          done
   Host-only networking on /dev/vmnet1                                 done
   DHCP server on /dev/vmnet8                                          done
   NAT service on /dev/vmnet8                                          done
   Host-only networking on /dev/vmnet8                                 done
   Virtual ethernet                                                    done

Configuring fallback GTK+ 2.4 libraries. 

In which directory do you want to install the mime type 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]  

/usr/share/applications/vmware-server.desktop: warning: value "vmware-server.png" for key "Icon" in group  "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the   Icon Theme Specification if the value is not an absolute path
/usr/share/applications/vmware-console-uri-handler.desktop: warning: value "vmware-server.png" for key  "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as  described in the Icon Theme Specification if the value is not an absolute path
Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server 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-4.3". 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-pcchips/build/include]  

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: se ingresa al directorio `/tmp/vmware-config3/vmmon-only'
make -C /lib/modules/2.6.25-pcchips/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: se ingresa al directorio `/usr/src/linux-source-2.6.25'
  CC [M]  /tmp/vmware-config3/vmmon-only/linux/driver.o
  CC [M]  /tmp/vmware-config3/vmmon-only/linux/hostif.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/cpuid.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/hash.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/memtrack.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/phystrack.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/task.o
  CC [M]  /tmp/vmware-config3/vmmon-only/common/vmx86.o
/tmp/vmware-config3/vmmon-only/common/vmx86.c: In function ?Vmx86_GetkHzEstimate?:
/tmp/vmware-config3/vmmon-only/common/vmx86.c:1899: warning: passing argument 4 of ?Div643264? from   incompatible pointer type
/tmp/vmware-config3/vmmon-only/common/vmx86.c:1908: warning: passing argument 4 of ?Div643232? from  incompatible pointer type
  CC [M]  /tmp/vmware-config3/vmmon-only/vmcore/moduleloop.o
  LD [M]  /tmp/vmware-config3/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-config3/vmmon-only/vmmon.mod.o
  LD [M]  /tmp/vmware-config3/vmmon-only/vmmon.ko
make[1]: se sale del directorio `/usr/src/linux-source-2.6.25'
cp -f vmmon.ko ./../vmmon.o
make: se sale del directorio `/tmp/vmware-config3/vmmon-only'
The module loads perfectly in the running kernel. 

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

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

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

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

This program previously created the file /dev/vmnet8, and was about to remove 
it.  Somebody else apparently did it already.
 
You have already setup networking.

Would you like to skip networking setup and keep your old settings as they are?
(yes/no) [yes] 

Extracting the sources of the vmnet module.

Building the vmnet module.

Using 2.6.x kernel build system.
make: se ingresa al directorio `/tmp/vmware-config3/vmnet-only'
make -C /lib/modules/2.6.25-pcchips/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: se ingresa al directorio `/usr/src/linux-source-2.6.25'
  CC [M]  /tmp/vmware-config3/vmnet-only/driver.o
  CC [M]  /tmp/vmware-config3/vmnet-only/hub.o
  CC [M]  /tmp/vmware-config3/vmnet-only/userif.o
  CC [M]  /tmp/vmware-config3/vmnet-only/netif.o
  CC [M]  /tmp/vmware-config3/vmnet-only/bridge.o
  CC [M]  /tmp/vmware-config3/vmnet-only/procfs.o
  CC [M]  /tmp/vmware-config3/vmnet-only/smac_compat.o
  SHIPPED /tmp/vmware-config3/vmnet-only/smac_linux.x386.o
  LD [M]  /tmp/vmware-config3/vmnet-only/vmnet.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config3/vmnet-only/vmnet.mod.o
  LD [M]  /tmp/vmware-config3/vmnet-only/vmnet.ko 
make[1]: se sale del directorio `/usr/src/linux-source-2.6.25'
cp -f vmnet.ko ./../vmnet.o
make: se sale del directorio `/tmp/vmware-config3/vmnet-only'
The module loads perfectly in the running kernel.

Please specify a port for remote console connections to use [902]  

You already have an entry for "/usr/sbin/vmware-authd" in the "/etc/inetd.conf"
file.  No change will be made to it.

Hit enter to continue.  

Configuring the VMware VmPerl Scripting API.

Building the VMware VmPerl Scripting API. 

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

Installing the VMware VmPerl Scripting API.

The installation of the VMware VmPerl Scripting API succeeded.

Do you want this program to set up permissions for your registered virtual 
machines?  This will be done by setting new permissions on all files found in 
the "/etc/vmware/vm-list" file. [no] 

Generating SSL Server Certificate

In which directory do you want to keep your virtual machine files? 
[/mnt/linux2/mv/vmware]  

Do you want to enter a serial number now? (yes/no/help) [no]  

Starting VMware services:
   Virtual machine monitor                                             done
   Virtual ethernet                                                    done
   Bridged networking on /dev/vmnet0                                   done
   Host-only networking on /dev/vmnet1 (background)                    done
   Host-only networking on /dev/vmnet8 (background)                    done
   NAT service on /dev/vmnet8                                          done
   Starting VMware virtual machines...                                 done 

The configuration of VMware Server 1.0.4 build-56528 for Linux for this running
kernel completed successfully.