Installazione VMWare Server su Debian: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 3: Line 3:
* Loggarsi come root
* Loggarsi come root
  sudo -i
  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.
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
'''System specs:'''


apt-get install linux-headers-`uname -r` \
* Linux debian 2.6.32-5-686 #1 SMP Tue Mar 8 21:36:00 UTC 2011 i686 GNU/Linux
build-essential bzip2 gcc-4.3
* installation package ~/VMware-server-2.0.2-203138.i386.tar.gz
2. Step 2: VMware-server-2.0.2 install
 
1. Step 1: Prerequisites installation <pre>apt-get install linux-headers-`uname -r` \
build-essential bzip2 gcc-4.3''
''</pre> 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.
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:
Extract VMware-server-2.0.2 installation package:


# cd
<pre># cd
# tar xvzf VMware-server-2.0.2-203138.i386.tar.gz
# tar xvzf VMware-server-2.0.2-203138.i386.tar.gz
</pre>


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.
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
 
''' NOTE:''' DO NOT start vmware-config.pl ! If the question asks:
 
<pre>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:
invoking the following command: "/usr/bin/vmware-config.pl". Do you want this:
THE ANSWER IS: no
THE ANSWER IS: no
 
</pre> <pre># cd vmware-server-distrib/
# cd vmware-server-distrib/
# ./vmware-install.pl
# ./vmware-install.pl
 
</pre> 3. Step 3: Patching vmware-server-2.0.2
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 ):
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 ):


# cd
<pre># cd
# wget http://linuxconfig.org/images/files/2.6.3x-vmware-patch.tar.bz2
# wget http://linuxconfig.org/images/files/2.6.3x-vmware-patch.tar.bz2
or
# wget http://support.rvmgroup.it/download/2.6.3x-vmware-patch.tar.bz2
# tar xjf 2.6.3x-vmware-patch.tar.bz2
# tar xjf 2.6.3x-vmware-patch.tar.bz2
</pre>


Apply patch:
Apply patch:


First apply patch to vmware-config:
First apply patch to vmware-config:


# cd /usr/bin/
<pre># cd /usr/bin/
# patch -p3 < ~/2.6.3x-vmware-patch/config.patch
# patch -p3 < ~/2.6.3x-vmware-patch/config.patch
203138-update.patch
</pre>
config.patch
LICENSE
README
start-VMware-console.sh
vmware-server-2.0.x-kernel-2.6.3x-install.sh


Apply patch to all modules:
Apply patch to all modules:


# cd /usr/lib/vmware/modules/source
<pre># cd /usr/lib/vmware/modules/source
# for f in *.tar ; do tar pxf $f ; done
# for f in *.tar ; do tar pxf $f ; done
# patch -p4 < ~/2.6.3x-vmware-patch/203138-update.patch
# 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
# for f in vmci vmmon vmnet vsock ; do tar pcf $f.tar $f-only ; done
# for f in vmci vmmon vmnet vsock ; do tar pcf $f.tar $f-only ; done
# rm -fr *-only
# rm -fr *-only
 
</pre> 4. Step 4: Set correct gcc version
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:
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:


# ls -l `which gcc`
<pre># ls -l `which gcc`
lrwxrwxrwx 1 root root 7 Mar 20 11:15 /usr/bin/gcc -> gcc-4.4  
lrwxrwxrwx 1 root root 7 Mar 20 11:15 /usr/bin/gcc -> gcc-4.4 </pre>


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:
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
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 ) :
or the second option is to create a new symlink ( when you finish do not forget to put everything where it belongs ) :


# ln -fs /usr/bin/gcc-4.3 /usr/bin/gcc
<pre># ln -fs /usr/bin/gcc-4.3 /usr/bin/gcc
# ls -l `which gcc`
# ls -l `which gcc`
lrwxrwxrwx 1 root root 16 Mar 20 12:09 /usr/bin/gcc -> /usr/bin/gcc-4.3
lrwxrwxrwx 1 root root 16 Mar 20 12:09 /usr/bin/gcc -> /usr/bin/gcc-4.3
 
</pre> 5. Step 5: Configure vmware-server-2.0.2
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:
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:


# vmware-config.pl
<pre># vmware-config.pl</pre>


After successful build you should see:
After successful build you should see:


Enjoy,
<pre>Enjoy,


--the VMware team
--the VMware team


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


The configuration of VMware Server 2.0.2 build-203138 for Linux for this
The configuration of VMware Server 2.0.2 build-203138 for Linux for this
running kernel completed successfully.
running kernel completed successfully.
</pre> 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:


6. Step 6: VMware Server interface
* standard http connections: http://localhost:8222
* secure http (https) connections: http://localhost:8333


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===
===Riferimenti===

Latest revision as of 13:17, 28 April 2011

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:

# cd
# 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
# cd vmware-server-distrib/
  1. ./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 ):

# cd
# wget http://linuxconfig.org/images/files/2.6.3x-vmware-patch.tar.bz2
or
# wget http://support.rvmgroup.it/download/2.6.3x-vmware-patch.tar.bz2
# tar xjf 2.6.3x-vmware-patch.tar.bz2

Apply patch:


First apply patch to vmware-config:

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

Apply patch to all modules:

# cd /usr/lib/vmware/modules/source
# for f in *.tar ; do tar pxf $f ; done
# patch -p4 < ~/2.6.3x-vmware-patch/203138-update.patch
# for f in vmci vmmon vmnet vsock ; do tar pcf $f.tar $f-only ; done
# 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:

# 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 ) :

# ln -fs /usr/bin/gcc-4.3 /usr/bin/gcc
# 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:

# 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:


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