Installazione VMWare Server su Debian

From RVM Wiki
Jump to navigation Jump to search

Debian Squeeze e VMware 2.0.2

  • Loggarsi come root
sudo -i

This guide provides a step-by-step installation of VMware-server-2.0.2 on Debian Squeeze Linux. Here we assume that user has already obtained VMware-server-2.0.2-<minor version>.i386.tar.gz installation pack along with a serial number provided upon the user registration.

System specs:

Linux debian 2.6.32-5-686 #1 SMP Tue Mar 8 21:36:00 UTC 2011 i686 GNU/Linux installation package ~/VMware-server-2.0.2-203138.i386.tar.gz

1. Step 1: Prerequisites installation

apt-get install linux-headers-`uname -r` \ build-essential bzip2 gcc-4.3 2. Step 2: VMware-server-2.0.2 install

In this step we will install vmware-server-2.0.2. This installation process does not include the actual compilation of vmware-modules it is rather copy of all files into appropriate directories.

Extract VMware-server-2.0.2 installation package:

  1. cd
  2. tar xvzf VMware-server-2.0.2-203138.i386.tar.gz

Enter the root of VMware-server-2.0.2 installation package and start installation. During the interaction with vmware installer change a default setting where appropriate.

NOTE: DO NOT start vmware-config.pl ! If the question asks:

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: THE ANSWER IS: no

  1. cd vmware-server-distrib/
  2. ./vmware-install.pl

3. Step 3: Patching vmware-server-2.0.2

At this point we need to patch vmware-config.pl file as well as vmware modules. First download a patch ( patch provided by: Radu Cotescu ):

  1. cd
  2. wget http://linuxconfig.org/images/files/2.6.3x-vmware-patch.tar.bz2
  3. tar xjf 2.6.3x-vmware-patch.tar.bz2

Apply patch:

First apply patch to vmware-config:

  1. cd /usr/bin/
  2. patch -p3 < ~/2.6.3x-vmware-patch/config.patch

203138-update.patch config.patch LICENSE README start-VMware-console.sh vmware-server-2.0.x-kernel-2.6.3x-install.sh

Apply patch to all modules:

  1. cd /usr/lib/vmware/modules/source
  2. for f in *.tar ; do tar pxf $f ; done
  3. patch -p4 < ~/2.6.3x-vmware-patch/203138-update.patch

patching file vmci-only/include/pgtbl.h patching file vmnet-only/vnetUserListener.c patching file vmci-only/Makefile patching file vmmon-only/common/vmx86.c patching file vmmon-only/include/compat_cred.h patching file vmmon-only/include/x86svm.h patching file vmmon-only/linux/driver.c patching file vmmon-only/linux/hostif.c patching file vmmon-only/Makefile patching file vmnet-only/Makefile patching file vmnet-only/netif.c patching file vsock-only/Makefile

  1. for f in vmci vmmon vmnet vsock ; do tar pcf $f.tar $f-only ; done
  2. rm -fr *-only

4. Step 4: Set correct gcc version

The kernel on Debian squeeze was compiled with gcc 4.3 and this is the version of gcc we want to use. By default gcc is set to gcc version 4.4:

  1. ls -l `which gcc`

lrwxrwxrwx 1 root root 7 Mar 20 11:15 /usr/bin/gcc -> gcc-4.4

Therefore, we need to change gcc compiler to match our kernel compiler version. The easiest way is to set CC environmental variable to point to gcc v4.3:

export CC="/usr/bin/gcc-4.3

or the second option is to create a new symlink ( when you finish do not forget to put everything where it belongs ) :

  1. ln -fs /usr/bin/gcc-4.3 /usr/bin/gcc
  2. ls -l `which gcc`

lrwxrwxrwx 1 root root 16 Mar 20 12:09 /usr/bin/gcc -> /usr/bin/gcc-4.3

5. Step 5: Configure vmware-server-2.0.2

We are almost done. At this stage we need to configure vmware-server. Follow vmware-config.pl and change default values where appropriate. Star configuration with:

  1. vmware-config.pl

After successful build you should see:

Enjoy,

--the VMware team

Starting VMware services: Virtual machine monitor done Virtual machine communication interface done VM communication interface socket family: done Virtual ethernet done Bridged networking on /dev/vmnet0 done Host-only networking on /dev/vmnet1 (background) done DHCP server on /dev/vmnet1 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.2 build-203138 for Linux for this running kernel completed successfully.

6. Step 6: VMware Server interface

At this point you should have vmware-server-2.0.2 successfully installed on your system. Manage vmware-server-2.0.2 by openning your browser and navigating to:

standard http connections: http://localhost:8222 secure http (https) connections: http://localhost:8333

Riferimenti

Debian Lenny e VMware 2.0.1

  • Install the packages required (vedi diffs perchè tolto parti)
sudo apt-get install linux-headers-`uname -r` libx11-6 libx11-dev libxtst6 dbus psmisc build-essential
  • Create the directory where we want to install our virtual machines:
sudo mkdir /files/space/vmware
  • The VMware server can be downloaded for free from the VMware website:
http://www.vmware.com/download/server/
  • Extract the file
tar xvfz VMware-server-*.tar.gz
  • Install GCC version with which the kernel was compiled
sudo apt-get install gcc-4.1
  • BECOME ROOT
sudo -i
  • Force GCC version to use
export CC=/usr/bin/gcc-4.1
cd vmware-server-distrib
patch bin/vmware-config.pl - << 'EOFile'
--- /usr/bin/vmware-config.pl.orig      2008-11-28 12:06:35.641054086 +0100
+++ /usr/bin/vmware-config.pl   2008-11-28 12:30:38.593304082 +0100
@@ -4121,6 +4121,11 @@
     return 'no';
   }
 
+  if ($name eq 'vsock') {
+    print wrap("VMWare config patch VSOCK!\n");
+    system(shell_string($gHelper{'mv'}) . ' -vi ' . shell_string($build_dir . '/../Module.symvers') . ' ' . shell_string($build_dir . '/vsock-only/' ));
+  }
+
   print wrap('Building the ' . $name . ' module.' . "\n\n", 0);
   if (system(shell_string($gHelper{'make'}) . ' -C '
              . shell_string($build_dir . '/' . $name . '-only')
@@ -4143,6 +4148,10 @@
     if (try_module($name, $build_dir . '/' . $name . '.o', 0, 1)) {
       print wrap('The ' . $name . ' module loads perfectly into the running kernel.'
                  . "\n\n", 0);
+      if ($name eq 'vmci') {
+       print wrap("VMWare config patch VMCI!\n");
+       system(shell_string($gHelper{'cp'}) . ' -vi ' . shell_string($build_dir.'/vmci-only/Module.symvers') . ' ' . shell_string($build_dir . '/../'));
+      } 
       remove_tmp_dir($build_dir);
       return 'yes';
     }
EOFile
  • Run the installer script
./vmware-install.pl
  • After the completion you can enter your vmware trough
https://servername:8333

SE NON CARICA LA PAGINA CORRETTAMENTE, E SI RIAVVIA VMWARE, FORZARE IL REFRESH CON SHIFT-F5

Riferimenti

Debian etch e VMWare 1.0.8

Installare i prerequisiti:

sudo apt-get install linux-headers-`uname -r` libx11-6 libx11-dev xspecs libxtst6 libxrender1 psmisc build-essential

Prelevare la tarball di VMware Server ed ottenere il numero di serie gratuito:

cd /tmp
wget URL of the VMware Server for linux binary tar.gz package

Scompattare, e lanciare l'installazione, accettando tutti i default (per il networking, scegliere bridged e basta, se serve quello)

tar xvfz VMware-server-*.tar.gz
cd vmware-server-distrib
sudo ./vmware-install.pl

Finita l'installazione, da un client con la console di amministrazione di VMWare, è possibile creare, e gestire macchine.

Ubuntu 9.04 e VMware 2.0.1

Per installarla su Ubuntu Gutsy, abilitare il repository partner, e

sudo apt-get install vmware-server

Avviarla con ALT-F2 - vmware

Loggarsi con root/password

Riferimenti