VMWare Guide
- This is a relatively simple installation guide to install VMware Server on a minimal Red Hat based system dedicated to running virtual machines.
- VMware Server installs virtual machines in /var ...ensure your /var directory has the necessary space allocated.
- VMware Server Console must be installed on a seperate machine with a GUI interface using Windows or Linux.
- This guide is tested on VMware Server 1.0 and Red Hat Enterprise Linux ES 4 update 3. CentOS would be very similar.
- The "system time" is important for VMware Server & system updates...please ensure NTP is working properly.
- Commands shown in a black box must be executed in the terminal window.
- Text shown in the dashed boxes must be entered into the file or interface mentioned in the instructions.
- "Copy" is accomplished by a left-click on the mouse and dragging to highlight text.
- "Paste" is accomplished by a right-click on the mouse. Pasted items appear below the cursor postion.
Install Red Hat, include ssh and use the "minimum" package selection group. Choose appropriate settings to reflect your network requirements during the installation.
From a remote workstation use Putty to open an SSH connection to the server. Use a full-screen shell to aviod any line-wrap problems. Login as root (as suggested in the VMware documentation) and issue the following commands:
Download and install the following packages (NOTE: Libstdc++ may already be installed):
Issue the following commands to update the time and system packages:
- NOTE: CentOS would use yum for updates.
Download and install the VMWare Server package where xxxx is the latest version number:
Run the VMware configuration script:
- Answer the VMware configuration screens as appropriate to your environment.
Download and install the VMware Management Interface where xxxx is the latest version number:
Run the installation script:
- Answer the VMware installation screens as appropriate to your environment & allow the configuration program to run.
Disable unecessary services:
- Uncheck the following:
- Select OK when finished.
Stop the above services:
Finally, verify the services starting in run level 3:
If you have a UPS attached (I use APC) follow these instructions. Download and install the apcupsd and gd packages. Check ntsysv to verify it's set to run at bootup. Use: apcaccess status hostname ...to see the current status of the APC UPS. If necessary, change the settings in apcupsd.conf.
- In VMWARE Server guest options, ensure the "Startup/Shutdown" section is set to "Shutdown Guest Operating System" instead of "PowerOff Virtual Machine" when the host shuts down. Then, ensure the host is set to power off with plenty of time to shut down all the guests before the battery runs out. When the APC UPS begins to shut down the host, the VMware Registration Service will tell all of the guest VM's to shutdown and wait for them to shut down before the service stops. Finally, the host will continue shutting down.
Open a browser to: https://ip-address:8333
rpm -Uvh compat-db-4.1.25-9.i386.rpm rpm -Uvh compat-libstdc++-296-2.96-132.7.2.i386.rpm rpm -Uvh compat-libstdc++-33-3.2.3-47.3.i386.rpm rpm -Uvh cpp-3.4.5-2.i386.rpm rpm -Uvh gcc-3.4.5-2.i386.rpm rpm -Uvh glibc-devel-2.3.4-2.19.i386.rpm rpm -Uvh glibc-headers-2.3.4-2.19.i386.rpm rpm -Uvh glibc-kernheaders-2.4-9.1.98.EL.i386.rpm rpm -Uvh libstdc++-devel-3.4.5-2.i386.rpm rpm -Uvh ntp-4.2.0.a.20040617-4
ntpdate up2date -u
rpm -Uvh VMware-server-xxxx.i386.rpm
vmware-config.pl
tar zxf VMware-mui-xxxx.tar.gz cd vmware-mui-distrib
./vmware-install.pl
ntsysv
autofs cpuspeed cups isdn netfs portmap rpcgssd rpcidmapd
service autofs stop service cups stop service cpuspeed stop service isdn stop service netfs stop service portmap stop service rpcgssd stop service rpcidmapd stop
chkconfig --list | grep 3:on
wget http://apt.sw.be/redhat/el4/en/i386/RPMS.dag/apcupsd-3.10.18-1.2.el4.rf.i386.rpm rpm -ivh gd-2.0.28-4.4E.1.i386.rpm rpm -ivh apcupsd-3.10.18-1.2.el4.rf.i386.rpm ntsysv apcaccess status hostname nano /etc/apcupsd/apcupsd.conf
At this point, you might want to restart the machine to ensure everything is working correctly. Links:
VMware