Instalando VMware server 2.0.1 em Linux rpm based (Red Hat, Suse, CentOS, Fedora etc)

Para baixar o VMware, acesse o site http://www.vmware.com/download/server/ e faça o download do .rpm.

Aviso
Anote o número serial que será informado no momento do download.

Instalando o .rpm

rpm -ivh VMware-server-2.0.1-156745.x86_64.rpm
Preparing...                ########################################### [100%]
   1:VMware-server          ########################################### [100%]

The installation of VMware Server 2.0.1 for Linux completed successfully.
You can decide to remove this software from your system at any time by
invoking the following command: "rpm -e VMware-server".

Before running VMware Server for the first time, you need to
configure it for your running kernel by invoking the
following command: "/usr/bin/vmware-config.pl".

Enjoy,

    --the VMware team

Após a instalação do RPM é necessário configurar o VMware Server.

Digite o comando abaixo como root para iniciar o processo

vmware-config.pl
Making sure services for VMware Server are stopped.

Stopping VMware autostart virtual machines:
   Virtual machines                                                   failed
Stopping VMware management services:
   VMware Virtual Infrastructure Web Access
   VMware Server Host Agent                                           failed
Stopping VMware services:
   VMware Authentication Daemon                                        done
   Virtual machine monitor                                             done

You must read and accept the End User License Agreement to continue.
Press enter to display it.

Pressione <ENTER> para ler o contrato de aceitação.

NOTICE:  BY DOWNLOADING AND INSTALLING, COPYING OR OTHERWISE USING THE
SOFTWARE, YOU AGREE TO BE BOUND BY THE TERMS OF THIS VMWARE MASTER END
USER LICENSE AGREEMENT ("EULA").  IF YOU DO NOT AGREE TO THE TERMS OF
THIS EULA, YOU MAY NOT DOWNLOAD, INSTALL, COPY OR USE THE SOFTWARE, AND
YOU MAY RETURN THE UNUSED SOFTWARE TO THE VENDOR FROM WHICH YOU ACQUIRED
IT WITHIN THIRTY (30) DAYS AND REQUEST A REFUND OF THE LICENSE FEE, IF
ANY, ALREADY PAID UPON SHOWING PROOF OF PAYMENT.  "YOU" MEANS THE
NATURAL PERSON OR THE ENTITY THAT IS AGREEING TO BE BOUND BY THIS EULA,
THEIR EMPLOYEES AND THIRD PARTY CONTRACTORS THAT PROVIDE SERVICES TO
YOU.  YOU SHALL BE LIABLE FOR ANY FAILURE BY SUCH EMPLOYEES AND THIRD
PARTY CONTRACTORS TO COMPLY WITH THE TERMS OF THIS AGREEMENT.

1.	DEFINITIONS

1.1	"Designated Administrative Access" means that access to the
standard user interfaces of a given instance of the Software
(designated in this section) that you may grant to a designated
third party (a) for which you have provided advance written notice
to VMware that you are providing outsourced services and (b) for
whose dedicated benefit you have licensed such instance of the
Software.  Designated Administrative Access is applicable only
where you are 1) an IT outsourcing company that is providing
outsourced IT services to a client company and 2) applicable only
--More--

Pressione ‘q’ para sair ou aperte <ESPAÇO> para ler até o final.

Do you accept? (yes/no)

Responda yes

Thank you.

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]

Pressione <ENTER> para aceitar o padrão [yes] ou digite yes para prosseguir com a compilação dos drivers do kernel.

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

Your kernel was built with "gcc" version "4.3.2", while you are trying to use
"/usr/bin/gcc" version "4.3". This configuration is not recommended and VMware
Server may crash if you'll continue. Please try to use exactly same compiler as
one used for building your kernel. Do you want to go with compiler
"/usr/bin/gcc" version "4.3" anyway? [no]

Responda yes para prosseguir com a compilação.

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

Qual é o caminho para os sources do kernel, pressione <ENTER> para aceitar o sugerido.

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
...
The vmmon module loads perfectly into the running kernel.

Ao terminar a compilação dos módulos vmmon do VMware para o kernel, dará início à compilação do módulo vmci para o VMware.

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

Pressione <ENTER> para aceitar o padrão [yes] ou digite yes para prosseguir com a compilação dos drivers do kernel.

Extracting the sources of the vmci module.

Building the vmci module.
...
The vmci module loads perfectly into the running kernel.

Ao terminar a compilação do módulo vmci para o VMware, dará início a compilação do módulo vsock.

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

Pressione <ENTER> para aceitar o padrão [yes] ou digite yes para prosseguir com a compilação dos drivers do kernel.

Extracting the sources of the vsock module.

Building the vsock module.

Configuração da rede

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

Claro que rede é necessário :)

Pressione <ENTER> para aceitar o padrão [yes] ou digite yes para prosseguir com a compilação dos drivers do kernel.

Bridge

Configuring a bridged network for vmnet0.

Please specify a name for this network.
[Bridged]

O padrão sugerido é aceitável. Pressione <ENTER> ou escolha um outro nome.

Caso você tenha mais de 1 placa de rede no seu computador, aparecerá uma lista com as opções disponíveis.

Escolha a interface na qual você quer a bridge.

Caso desejar possuir em todas, repita o processo com todas as interfaces até terminar o processo.

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

The following bridged networks have been defined:

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

The following bridged networks have been defined:

. vmnet0 is bridged to eth1
. vmnet2 is bridged to eth0

Quando terminar, escreva no quando a opção de configuração de bridge aparecer novamente.

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

Caso prefira que uma interface de rede seja configurada através de NAT, ou seja, terá um IP virtual de uma rede Virtual e sairá do host “NATeada”, com o IP do servidor.

NAT

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

Caso queira esse tipo de configuração, pressione <ENTER>, caso negativo, escreva no e pressione <ENTER> para finalizar.

Host-only

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

Nesse caso é se você apenas quer que a máquina Host (onde está instalado o VMware) tenha acesso, e não será acessível por nenhuma outra na rede.

Hora de compilar os módulos vmnet para o kernel

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]

Pressione <ENTER> para aceitar o padrão [yes] ou digite yes para prosseguir com a compilação dos drivers do kernel.

Extracting the sources of the vmnet module.

Building the vmnet module.
...
The vmnet module loads perfectly into the running kernel.
Please specify a port for remote connections to use [902]

A opção padrão é suficiente.

Pressione <ENTER> para aceitar o padrão.

Acesso web do gerenciador

Please specify a port for standard http connections to use [8222]

Qual porta o gerenciador Web estará ouvindo.

A opção padrão é suficiente.

Pressione <ENTER> para aceitar o padrão.

Please specify a port for secure http (https) connections to use [8333]

Qual porta o gerenciador Web (via https) estará ouvindo.

A opção padrão é suficiente.

Pressione <ENTER> para aceitar o padrão.

Usuário administrador do VMware Server

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

Especificar um usuário administrador para o VMware é bastante interessante. Nesse caso irei utilizar um usuário local na máquina daniel que terá poder de administrar as VMs criadas.

Escreva yes e pressione <ENTER> para digitar o nome do usuário.

Please specify the user whom you wish to be the VMware Server administrator
 daniel

Storage

Using daniel as the VMware Server administrator.

insserv: script vmware-core: service VMware already provided!
insserv: script vmware-mgmt: service VMware already provided!
insserv: script vmware-autostart: service VMware already provided!
In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines]

Se você quiser utilizar o diretório padrão fornecido para gravar as novas VMs, pressione <ENTER>.

Se quiser outro diretório como storage das VMs, especifique o caminho completo aqui. No meu caso, tenho outro volume separado /VM e especificarei aqui

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

Número Serial

No momento que você fez o download do VMware server foi sugerido que registrasse gratuitamente para receber o número Serial, deve estar em seu email.

Caso não possua o serial, o link para solicitar o número é http://register.vmware.com/content/registration.html

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:

Após digitar o número serial a saída será como a seguir

Terminando a configuração

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]

Pressione <ENTER> para aceitar o padrão.

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

Pressione <ENTER> para aceitar o padrão.

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]

Pressione <ENTER> para aceitar o padrão.

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

Pressione <ENTER> para aceitar o padrão.

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]

Esse foi o último passo.

Se tudo correu bem, você verá no final

The installation of VMware VIX API 1.6.2 build-156745 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
   Bridged networking on /dev/vmnet2                                   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.1 build-156745 for Linux for this
running kernel completed successfully.

Acessando a interface de gerenciamento Web

Abra o navegador e aponte para http://localhost:8222

[singlepic id=41 w=640 h= float=]

Tela de login para a interface

[singlepic id=42 w=640 h= float=]

Após logar-se, essa é a interface de gerenciamento das VMs.

Share this post

1 comment

Join the conversation
  • Junior - 23/06/2010 reply

    Gente fiz isso tudo ai acima e deu blz….

    só um detalhe a datastore ficou com o tamanho de 3,87GB e ja exclui e criei outra , e nada , continua do mesmo tamanho.

    quando crio uma maquina virtual , fala que não tem espaço, mesmo que no hardware da maquina virtal estege com 60GB. o qua manda é o espaço da datastore.

    tenho 600GB de espaço livre no servidor com Red Hat.

    Alguem pode me ajudar?

Leave a Reply Cancel