ClearOs - Installare VmWare Server

Nell'articolo seguente:


E' stata trattata la procedura su come si installa Vmware su linux.

Se uno volesse invece implementare VMWare Server su ClearOS la casa madre da già di suo una procedura in merito.


E' interessante valutare le possibilità di tale soluzione, anche se questo potrà causare un appesantimento delle attività svolte dal Server.

Installando Vmware possiamo installare varie macchine virtuali sul server (ad esempio Windows XP o simili) dove poter implementare 'antivirus centralizzato che gestirà tutti i client nella rete.

Potremo anche implementare macchine virtuali (stile VDI) dove gli utenti possono accedere.

Stilo alcune linee guide estrapolate dalla documentazione ufficiale di ClearOs

1. yum groupinstall "Development Tools"

rpm -Uvh VMware-server-2.0.2-203138.i386.rpm



creare un utente, gruppo e una flexshare per il server vmware. Ad esempio gruppo vmware-group e un utente chiamato vmware

2. Se uno invece vuole disinstallare il software precedente:

rpm -e VMware-server
 
3. Applichiamo le patch di VmWare 

cd /usr/lib/vmware/modules/source/

mv vmnet.tar vmnet.tar~

wget http://communities.vmware.com/servlet/JiveServlet/download/1372157-28759/vmnet.tar;jsessionid=6378C5B81EA8C9A5A5B7CECAF4F4221C
 
4. /usr/bin/vmware-config.pl
 
5.  Verranno fatte delle domande:

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] 
 
What is the location of the directory of C header files that match your 
running kernel? [/lib/modules/2.6.18-194.8.1.v5/build/include] 
 
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] 

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]
 
Do you want networking for your virtual machines? (yes/no/help) [yes]
 
6. Verrà richiesto di fare il Bind di varie schede di rete, è suggeribile utilizzare tutte le schede di rete:
 
Please specify a name for this network. [Bridged]
Your computer has multiple ethernet network interfaces available: eth0, 
eth1, eth2, eth3, eth4, eth5. Which one do you want to bridge to vmnet0? [eth0] 
 
7.  Ripetere se necessario. Verrà richiesto di fare il Bind di altre schede di rete, è suggeribile effettuarlo per tutte.
 
8. Cliccare avanti con le opzioni standard finchè non appaiono le seguenti domande:
 
Do you want to be able to use NAT networking in your virtual machines? (yes/no) [yes]
Please specify a name for this network. [NAT] 
Do you want this program to probe for an unused private subnet? (yes/no/help) [yes] 
 
9. Se uno vuole configurare altre reti NAT aggiungerle altrimenti andare avanti nella configurazione:
 
Do you wish to configure another NAT network? (yes/no) [no] 
 
Do you want to be able to use host-only networking in your virtual machines? [yes]
 
Please specify a name for this network. [HostOnly]
 
Do you want this program to probe for an unused private subnet? (yes/no/help) [yes]
 
Do you wish to configure another host-only network? (yes/no) [no]
 
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]
 
Please specify a port for remote connections to use [902]
 
Please specify a port for standard http connections to use [8222] 
 
Please specify a port for secure http (https) connections to use [8333]
 
10.  Definiamo di un amministratore per l'installazione di VmWare
 
The current administrative user for VMware Server  is ''.  Would you like to specify 
a different administrator? [no] yes 

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


11. Specifichiamo il codice VmWare che abbiamo ottenuto per mail:

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:
 
12.  Utilizziamo le impostazioni standard seguenti:

In which directory do you want to install the VMware VIX API binary files? [/usr/bin] 
In which directory do you want to install the VMware VIX API library files? [/usr/lib/vmware-vix/lib]
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]
In which directory do you want to install the VMware VIX API document pages? [/usr/share/doc/vmware-vix]
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]
 
13. Potremo utilizzare il server dall'esterno se apriamo le porte opportunamente.

14. Dalla intranet per gestire il tutto è sufficiente collegarsi al seguente link:

https://servername:8333 
 
15. Può essere utile continuare nel settaggio della macchina virtuale guardando il tutorial, detto prima,

http://alessandromazzanti.blogspot.com/2011/03/installare-vmware-server-su-linux.html 

Questi step sono stati ripresi dalla documentazione ufficiale di ClearOS

http://www.clearfoundation.com/docs/howtos/configuring_vmware_on_clearos_5.2