Press "Enter" to skip to content

Instalando o VMware-Server 1.0.8 no Ubuntu 8.10 Intrepid Ibex ( Atualizado )

O Vmware 2.0 saiu está legalzinho mas ainda não caiu no meu gosto.
O lance do gerenciador web é massa, bastante atual porém ainda sou fã do bom e velho vmware-console.
Depois de tanta chateação desinstalei o VMware 2.0 e resolvi instalar a versão 1.0.8, o último da série 1.0.

Instalei as depedências necessárias:

sudo aptitude install build-essential linux-headers-$(uname -r) xinetd

Como não poderia deixar de acontecer o seguinte erro surge durante o processo de instalação:

/tmp/vmware-config1/vmmon-only/./include/compat_semaphore.h:5:27: error: asm/semaphore.h: No such file or directory
/tmp/vmware-config1/vmmon-only/linux/driver.c:171: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config1/vmmon-only/linux/driver.c:172: warning: initialization from incompatible pointer type
/tmp/vmware-config1/vmmon-only/linux/driver.c:175: error: unknown field ‘nopage’ specified in initializer
/tmp/vmware-config1/vmmon-only/linux/driver.c:176: warning: initialization from incompatible pointer type
/tmp/vmware-config1/vmmon-only/linux/driver.c: In function ‘__LinuxDriver_Ioctl’:
/tmp/vmware-config1/vmmon-only/linux/driver.c:1781: error: too many arguments to function ‘smp_call_function’
make[2]: *** [/tmp/vmware-config1/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-7-generic’
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/vmmon-only’
Unable to build the vmmon 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.

Para resolver o problema baixei uma correção tanto para o kernel 2.6.27-7 quanto para o 2.6.28 e segui com o processo normal de instalação.

$ tar zxvf vmware-update-2.6.27-5.5.7-2.tar.gz
$ cd cd vmware-update-2.6.27-5.5.7-2/
$ sudo ./runme.pl

Updating /usr/bin/vmware-config.pl … already patched
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] [ENTER]

Making sure services for VMware Server are stopped.

Stopping VMware services:
Virtual machine monitor done

Configuring fallback GTK+ 2.4 libraries.

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

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

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

/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] [ENTER]

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.27-7-generic/build/include] [ENTER]

Do you want networking for your virtual machines? (yes/no/help) [yes] [ENTER]

Configuring a bridged network for vmnet0.

Your computer has multiple ethernet network interfaces available: ath0, eth0,
pan0. Which one do you want to bridge to vmnet0? [eth0] [ENTER]

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

Do you wish to configure another bridged network? (yes/no) [no] [ENTER]

Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes] no

Do you want to be able to use host-only networking in your virtual machines?
[no] [ENTER]

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

* Stopping internet superserver xinetd [ OK ]
* Starting internet superserver xinetd [ OK ]
Configuring the VMware VmPerl Scripting API.

Building the VMware VmPerl Scripting API.

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

Installing the VMware VmPerl Scripting API.

The installation of the VMware VmPerl Scripting API succeeded.

The file /etc/pam.d/vmware-authd that this program was about to install already
exists. Overwrite? [yes] [ENTER]

Generating SSL Server Certificate

In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] [ENTER]

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

Starting VMware services:
Virtual machine monitor done
Virtual ethernet done
Bridged networking on /dev/vmnet0 done

The configuration of VMware Server 1.0.8 build-126538 for Linux for this
running kernel completed successfully.

Após aplicar o patch e instalar o vmware foi necessário criar os seguintes links simbólicos para que ele funcionasse corretamente:

sudo ln -sf /lib/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
sudo ln -sf /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0

creysson.jpg

3 Comments

  1. Daniel Ferber Daniel Ferber March 24, 2009

    Obrigado! Ajudou um monte esta simples dica!

  2. bjverde bjverde April 25, 2009

    Mais uma vez obrigado pelas dicas.

    Essa dica funciona corretamente com Ubuntu 9.04 32bit kernel 2.6.28-11 e VMware Server 1.0.9

  3. Dêivide Dias Dêivide Dias May 5, 2009

    Perfeito ALex… Executei este procedimento no Jaunty e correu quase tudo bem.
    Quando eu inicio a máquina virtual várias teclas do teclado não funcionam, incluindo as setas. O que fazer?

    Obrigado.

Comments are closed.