Debian 5.0.1 + VMware Server 2
Hoje ao instalar o VMware Server 2 no Debian passei por umas dificuldades na instalação, pois ele não se entendia com a versão do gcc, então quero deixar aqui todos os comando que realizei para que chegasse ao final da instalação com sucesso, não irei entrar em detalhe. qualquer dúvida postem ai!
Com o Debian 5.0.1 apenas com sistema básico instalado e mais nada.
Instalarei o pacote ssh para fazer o acesso da minha máquina, utilizo o software (SSH Secure Shell Client) para o acesso, o mesmo tem opção para enviar arquivos facilitando na hora de enviar os arquivos do VMware-server. Sem mais vamos aos comandos.
# aptitude install ssh
# aptitude install linux-headers-`uname -r`
# aptitude install build-essential apache2 php5 psmisc
# mkdir /home/vmware (Vou colocar minhas maquinas neste diretorio)
Faça download do VMware Server, você precisa criar uma conta, depois na página de download veja que bem acima tem um serial anote ele, vai ser solicitado no final da instalacao.
http://www.vmware.com/download/server/
Envie o mesmo para seu servidor
Antes o pulo do gato!
# export CC=/usr/bin/gcc-4.1
# ln -s -f /usr/bin/gcc-4.1 /usr/bin/gcc
# cd /usr/src/
# ln -s linux-headers-2.6.26-2-686 linux
Descompactando e instalando…
# tar -zxvf VMware-server-2.0.1-156745.i386.tar.gz
# cd vmware-server-distrib
# ./vmware-install.pl
Creating a new VMware Server installer database using the tar4 format.
Installing VMware Server.
In which directory do you want to install the binary files?
[/usr/bin] (ENTER)
What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc] (ENTER)
What is the directory that contains the init scripts?
[/etc/init.d] (ENTER)
In which directory do you want to install the daemon files?
[/usr/sbin] (ENTER)
In which directory do you want to install the library files?
[/usr/lib/vmware] (ENTER)
The path “/usr/lib/vmware” 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 manual files?
[/usr/share/man] (ENTER)
In which directory do you want to install the documentation files?
[/usr/share/doc/vmware] (ENTER)
The path “/usr/share/doc/vmware” 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 Server 2.0.1 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.pl”.
Before running VMware Server for the first time, you need to configure it by
invoking the following command: “/usr/bin/vmware-config.pl”. Do you want this
program to invoke the command for you now? [yes] (ENTER)
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. (ENTER)
….
LICENÇA
q (ENTER)
….
Do you accept? (yes/no) yes (ENTER)
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] (ENTER)
Using compiler “/usr/bin/gcc-4.1”. 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.26-2-686/build/include] (ENTER)
Extracting the sources of the vmmon module.
Building the vmmon module.
Using 2.6.x kernel build system.
make: Entrando no diretório `/tmp/vmware-config0/vmmon-only’
make -C /lib/modules/2.6.26-2-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.26-2-686′
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config0/vmmon-only/linux/driverLog.o
CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config0/vmmon-only/common/comport.o
CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-config0/vmmon-only/common/hashFunc.o
CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/task.o
CC [M] /tmp/vmware-config0/vmmon-only/common/vmx86.o
CC [M] /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.26-2-686′
cp -f vmmon.ko ./../vmmon.o
make: Saindo do diretório `/tmp/vmware-config0/vmmon-only’
The vmmon module loads perfectly into the running kernel.
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] (ENTER)
Extracting the sources of the vmci module.
Building the vmci module.
Using 2.6.x kernel build system.
make: Entrando no diretório `/tmp/vmware-config0/vmci-only’
make -C /lib/modules/2.6.26-2-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.26-2-686′
CC [M] /tmp/vmware-config0/vmci-only/linux/driver.o
CC [M] /tmp/vmware-config0/vmci-only/linux/driverLog.o
CC [M] /tmp/vmware-config0/vmci-only/linux/vmciKernelIf.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciContext.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciDatagram.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciDriver.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciDs.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciEvent.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciGroup.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciHashtable.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciProcess.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciQueuePair.o
CC [M] /tmp/vmware-config0/vmci-only/common/vmciResource.o
LD [M] /tmp/vmware-config0/vmci-only/vmci.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config0/vmci-only/vmci.mod.o
LD [M] /tmp/vmware-config0/vmci-only/vmci.ko
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.26-2-686′
cp -f vmci.ko ./../vmci.o
make: Saindo do diretório `/tmp/vmware-config0/vmci-only’
The vmci module loads perfectly into the running kernel.
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] (ENTER)
Extracting the sources of the vsock module.
Building the vsock module.
Using 2.6.x kernel build system.
make: Entrando no diretório `/tmp/vmware-config0/vsock-only’
make -C /lib/modules/2.6.26-2-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.26-2-686′
CC [M] /tmp/vmware-config0/vsock-only/linux/af_vsock.o
CC [M] /tmp/vmware-config0/vsock-only/linux/driverLog.o
CC [M] /tmp/vmware-config0/vsock-only/linux/util.o
CC [M] /tmp/vmware-config0/vsock-only/linux/vsockAddr.o
LD [M] /tmp/vmware-config0/vsock-only/vsock.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: “VMCIDatagram_CreateHnd” [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
WARNING: “VMCIDatagram_DestroyHnd” [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
WARNING: “VMCI_GetContextID” [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
WARNING: “VMCIDatagram_Send” [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
CC /tmp/vmware-config0/vsock-only/vsock.mod.o
LD [M] /tmp/vmware-config0/vsock-only/vsock.ko
make[1]: Saindo do diretório `/usr/src/linux-headers-2.6.26-2-686′
cp -f vsock.ko ./../vsock.o
make: Saindo do diretório `/tmp/vmware-config0/vsock-only’
Unable to make a vsock module that can be loaded in the running kernel:
insmod: error inserting ‘/tmp/vmware-config0/vsock.o’: -1 Unknown symbol in module
There is probably a slight difference in the kernel configuration between the
set of C header files you specified and your running kernel. You may want to
rebuild a kernel based on that directory, or specify another directory.
The VM communication interface socket family is used in conjunction with the VM
communication interface to provide a new communication path among guests and
host. The rest of this software provided by VMware Server is designed to work
independently of this feature. If you wish to have the VSOCK feature you can
install the driver by running vmware-config.pl again after making sure that
gcc, binutils, make and the kernel sources for your running kernel are
installed on your machine. These packages are available on your distribution’s
installation CD.
[ Press the Enter key to continue.]
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)
The following bridged networks have been defined:
. vmnet0 is bridged to eth0
Se voce tiver mais que uma interface lhe será feito uma pergunta, informe qual vai usar.
All your ethernet interfaces are already bridged.
Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes] no (ENTER)
Do you want to be able to use host-only networking in your virtual machines?
[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.26-2-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entrando no diretório `/usr/src/linux-headers-2.6.26-2-686′
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.26-2-686′
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] (ENTER)
Please specify a port for secure http (https) connections to use [8333] (ENTER)
The current administrative user for VMware Server is ”. Would you like to
specify a different administrator? [no] (ENTER)
Using root as the VMware Server administrator.
In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] /home/vmware (ENTER) Local onde ficaram seus arquivos
Please enter your 20-character serial number.
Type XXXXX-XXXXX-XXXXX-XXXXX or ‘Enter’ to cancel: USE O SERIAL QUE LHE FOI INFORMADO NA TELA DE DOWNLOAD (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.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
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.
Mole não? Parace windows Next >> Next >> Next >> hehehe
# reboot
Agora acesse via web http://ipdoserver:8222
Aceite o certificado entre com o user root e sua senha.
Agora é só criar suas máquinas virtuais, para quem usou o VMware Workstation é a mesma coisa, Só que via web.
Abraço!
Muito bom!!!!
Parabéns pelo post!!
Deu certinho aqui.
Vlw
Excelente tutorial !!! me ajudou bastante … e muito obrigado
Gostei fucionou porem remoto é muito lento
Remontti, instalei a versão VMware-server-2.0.2 | 203138 mas quando acessa a interface web, não funciona direito, dá problema com o console que não instala no firefox 3.5.6, o que faço??
instalado Debnian 5 kernel 2.6.26.2-686
desde já agradeço sua ajuda
Muito bom este seu tutorial, ajudo muito aqui .
Obrigado
Fiz o precedimento conforme descrito mais quando chega no item “What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]”
não acha o diretorio correto e não prossegue com a instalação.
Obrigado por disponibilizar o seu tempo para registrar o passo-a-passo da instalação. O pulo do gato foi muito útil para mim!
nao tem por onde 😉
Instalei e funcionou a interface web legal com o usuario root,mas quando criei a maquina virual e coloquei para rodar da um erro que não pode ser inicializada dizendo para consultar o administrador.
Tem ideia do que seja?
Olá, tentei fazer download da apostila para melhor acompanhamento deu erro …
Feito, pode baixar em pdf, modsecurity no server tava bloqueando =P