Jamsux's Blog

outubro 10, 2009

VMware Server 2.0 + Correção Teclado

Filed under: Uncategorized — jamsux @ 1:57 am

Pessoal, nesse post vou mostrar como instalar o vmware server 2.0 (novo vmware com acesso via web às máquinas virtuais) e também como corrigir um bug de teclado que inclusive já vem a algum tempo nas antigas versões  para o Linux.

Primeiramente será necessário baixar a versão 2.0 através do Link VMWARE

Aproveite e registre-se é totalmente gratis e vc ainda adquire a licença, eles enviam p/ o e-mail. Após baixado vamos para a instalação.

# tar xzvf VMware-server-2.0.0-122956.i386.tar.gz
# cd vmware-server-distrib
# ./vmware-install.pl

COMO O TEXTO É ENORME NÃO VOU POSTAR, MAS É SIMPLES, BASTA APERTAR ENTER EM QUASE TUDO, APENAS PRESTE ATENÇÃO NAS LINHAS ABAIXO:

In which directory do you want to install the library files?
[/usr/lib/vmware]   ENTER (CUIDADO AQUI! tem que ter espaço suficiente na partição desse diretório, pois é adicionado 450 MB)

PARTE DE CONFIGURAÇÃO DE REDE, ATENÇÃO

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

Configuring a bridged network for vmnet0.

Please specify a name for this network.
[Bridged] ENTER

Your computer has multiple ethernet network interfaces available: eth0, eth0:avahi, pan0, vboxnet0. 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] ENTER

Configuring a NAT network for vmnet8.

Please specify a name for this network. [NAT] ENTER

Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes] ENTER

Probing for an unused private subnet (this can take some time)…

The subnet 192.168.54.0/255.255.255.0 appears to be unused.

The following NAT networks have been defined:

. vmnet8 is a NAT network on private subnet 192.168.54.0.

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

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

Configuring a host-only network for vmnet1.

Please specify a name for this network.
[HostOnly] HOST_ONLY

Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes] ENTER

Probing for an unused private subnet (this can take some time)…

The subnet 172.16.63.0/255.255.255.0 appears to be unused.

The following host-only networks have been defined:

. vmnet1 is a host-only network on private subnet 172.16.63.0.

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

None of the pre-built vmnet modules for VMware Server 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] ENTER

Extracting the sources of the vmnet module.

Building the vmnet module.

Using 2.6.x kernel build system.
make: Entrando no diretório `/tmp/vmware-config1/vmnet-only’
make -C /lib/modules/2.6.28-15-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.28-15-generic’
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
CC [M]  /tmp/vmware-config1/vmnet-only/filter.o
CC [M]  /tmp/vmware-config1/vmnet-only/procfs.o
CC [M]  /tmp/vmware-config1/vmnet-only/smac_compat.o
CC [M]  /tmp/vmware-config1/vmnet-only/smac.o
CC [M]  /tmp/vmware-config1/vmnet-only/vnetEvent.o
CC [M]  /tmp/vmware-config1/vmnet-only/vnetUserListener.o
LD [M]  /tmp/vmware-config1/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
CC      /tmp/vmware-config1/vmnet-only/vmnet.mod.o
LD [M]  /tmp/vmware-config1/vmnet-only/vmnet.ko
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.28-15-generic’
cp -f vmnet.ko ./../vmnet.o
make: Saindo do diretório `/tmp/vmware-config1/vmnet-only’
The vmnet module loads perfectly into the running kernel.

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

Please specify a port for standard http connections to use [8222] 8080 (PORTA DE ACESSO HTTP, OPCIONAL)

Please specify a port for secure http (https) connections to use [8333] 8081 (PORTA DE ACESSO HTTPS, OPCIONAL)

The current administrative user for VMware Server  is ”.  Would you like to specify a different administrator? [no] YES

Please specify the user whom you wish to be the VMware Server administrator
jamsux (COLOQUE O NOME DE UM USUARIO, NO MEU CASO COLOQUEI O MEU MESMO)

You have a pre-existing vmInventory.xml.  The new version will be created as /etc/vmware/hostd/NEW_vmInventory.xml.  Please check the new file for any new values that you may need to migrate to your current vmInventory.xml.

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

You have a pre-existing datastores.xml.  The new version will be created as
/etc/vmware/hostd/NEW_datastores.xml.  Please check the new file for any new values that you may need to migrate to your current datastores.xml.

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

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or ‘Enter’ to cancel: (COLOQUE O NUMERO DE SERIAL FORNECIDO POR E-MAIL) + ENTER

Creating a new VMware VIX API installer database using the tar4 format.

Installing VMware VIX API.

In which directory do you want to install the VMware VIX API binary files?
[/usr/bin] ENTER

In which directory do you want to install the VMware VIX API library files?
[/usr/lib/vmware-vix/lib] ENTER

The path “/usr/lib/vmware-vix/lib” does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] ENTER

In which directory do you want to install the VMware VIX API document pages?
[/usr/share/doc/vmware-vix] ENTER

The path “/usr/share/doc/vmware-vix” does not exist currently. This program is going to create it, including needed parent directories. Is this what you want?
[yes] ENTER

The installation of VMware VIX API 1.6.0 build-122956 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: “/usr/bin/vmware-uninstall-vix.pl”.

Enjoy,

–the VMware team

Starting VMware services:
Virtual machine monitor                                             done
Virtual machine communication interface                             done
Virtual ethernet                                                    done
Bridged networking on /dev/vmnet0                                   done
Host-only networking on /dev/vmnet1 (background)                    done
DHCP server on /dev/vmnet1                                          done
Bridged networking on /dev/vmnet2                                   done
Host-only networking on /dev/vmnet8 (background)                    done
DHCP server on /dev/vmnet8                                          done
NAT service on /dev/vmnet8                                          done
VMware Server Authentication Daemon (background)                    done
Shared Memory Available                                             done
Starting VMware management services:
VMware Server Host Agent (background)                               done
VMware Virtual Infrastructure Web Access
Starting VMware autostart virtual machines:
Virtual machines                                                    done

The configuration of VMware Server 2.0.0 build-122956 for Linux for this
running kernel completed successfully.

PRONTO! Feito isso ja tem o vmware instalado, se quiser acessá-lo abra o firefox e digite na barra de endereço: localhost:8080, coloque login e pronto divirta-se.

Captura_de_tela

Captura_de_tela-1

CONFIGURANDO TECLADO VMWARE

Ops!!! Perae ainda precisamos configurar o teclado, pois se abrir alguma VM algumas teclas não pegarão corretamente, para isto deve-se fazer os passos a seguir.

# vim /etc/vmware/config

COLE O SEGUINTE CONTEUDO NO FINAL DO ARQUIVO

xkeymap.usekeycodeMap = true
xkeymap.keycode.108 = 0x138 # Alt_R
xkeymap.keycode.106 = 0x135 # KP_Divide
xkeymap.keycode.104 = 0x11c # KP_Enter
xkeymap.keycode.111 = 0x148 # Up
xkeymap.keycode.116 = 0x150 # Down
xkeymap.keycode.113 = 0x14b # Left
xkeymap.keycode.114 = 0x14d # Right
xkeymap.keycode.105 = 0x11d # Control_R
xkeymap.keycode.118 = 0x152 # Insert
xkeymap.keycode.119 = 0x153 # Delete
xkeymap.keycode.110 = 0x147 # Home
xkeymap.keycode.115 = 0x14f # End
xkeymap.keycode.112 = 0x149 # Prior
xkeymap.keycode.117 = 0x151 # Next
xkeymap.keycode.78 = 0x46 # Scroll_Lock
xkeymap.keycode.127 = 0x100 # Pause
xkeymap.keycode.133 = 0x15b # Meta_L
xkeymap.keycode.134 = 0x15c # Meta_R
xkeymap.keycode.135 = 0x15d # Menu
xkeymap.keycode.97 = 0x073 # Slash

Reinicie a máquina e pronto!

Atenção: Preste atenção no  “X” (xis) do codigo acima, pois no meu caso como ja tinha esse codigo colei e apareceu um “x” estranho, o erro de teclado permaneceu, uma entidade baixou e meu subconsciente pediu pra alterar o “x”, quando alterei o danado pegou.

Bom gente é isso! Espero que esperimentem e gostem.

Este Post é dedicado a um amigo (Alvaro) e também a todos que se sentem inseguros em mudar o S.O. do Worstation para Linux. (Dual Boot Good Bye!)

Anúncios

2 Comentários »

  1. Gente, por favor, socorro, já tentei de tudo e nada da / funcionar dentro da virtual machine, estou usando o vmware server, alguem por favor me ajude

    Comentário por Denilson — janeiro 4, 2010 @ 7:29 pm

    • Olá Denilson.

      Qual a sua dificuldade real?
      Você está executando a instalação do Vmware Server dentro de uma máquina Virtual? é isso?
      Qual versão do Vmware server vc está utilizando? Qual mensagem de erro?

      Espero ter resposta para poder ajudar.

      Comentário por jamsux — janeiro 5, 2010 @ 2:59 am


RSS feed for comments on this post. TrackBack URI

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s

Crie um website ou blog gratuito no WordPress.com.

%d blogueiros gostam disto: