[CentOS] Step by step installing vmware server on centos

Thu Nov 2 17:10:12 UTC 2006
Dan Stoner <dstoner at flmnh.ufl.edu>

hykin power wrote:
> hi
> 
> could you please give me a notes to install vmware server on centos i 
> will be thank full to you
> 
> 

I have not verified these procedures, but I have included what our
network admins used internally to deploy and manage vmware.

Also, we tend to set up one template image and keep it powered off so we 
can "clone" it to quickly deploy a similar vm image.

  Dan Stoner
  Network Administrator
  Florida Museum of Natural History
  University of Florida


===========================================
VMware Server Beta Installation Notes

Last Updated: March 29, 2006

These instructions apply to the VMware server beta product installed on 
the base Centos 4.2 install.

Download VMware

The latest copy of VMware and the Management Interface (and an 
installation key) are available from http://vmware.com.
Install

The compat-db package is a prerequisit of the the Management Interface. 
If you install and attempt to start the interface without it, you will 
get no joy and no error messages.

	yum install compat-db




	rpm -Uvh VMware-server-e.x.p-22874.i386.rpm
	tar -xzf VMware-mui-e.x.p-22874.tar.gz
	cd vmware-mui-distrib
	./vmware-install.pl	-> FIXME: This does install but starting the 
service does nothing and not logging anywhere




Configure

    1.
       Run config script

       	vmware-config.pl

       Accept the defaults. Note that VMware includes modules for the 
current Centos kernels so no compiler seems required yet. (Verify the 
modules before changing the kernel.) Because there is no compiler, the 
VmPerl scripting language will fail to build.

       Networking configuration is undefined. We don't have a standard yet.
    2.
       Open firewall ports

       Open port 902 for the VMware console managment, ports 8222 and 
8333 for the MUI and ports 5900-5910 for VNC connections to the guest 
images in /etc/sysconfig/iptables by adding the following lines below 
the one that opens port 22 for ssh:

       	-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp 
--dport 902 -j ACCEPT
       	-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp 
--dport 8222 -j ACCEPT
       	-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp 
--dport 8333 -j ACCEPT
       	-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp 
--dport 5900:5910 -j ACCEPT


===========================================

Last Updated: March 29, 2006

Instructions for cloning a Linux VMware machine.

    1. Copy directory to new directory
    2. Rename *.vmx (`rename 'CentOS 4.3 Template' somenewname CentOS\ 
4.3\ Template*')
    3. Edit *.vmx
           * change "scsi0:0.fileName" (and any other disk device file 
names)
           * change "displayName"
           * change "ethernet0.generatedAddress" (and any other 
adaptors) (see note below)
           * change VNC port number if VNC is enabled
    4. Rename *.vmdk
    5. Edit .vmdk
           * change names of the extents
    6. Rename *.vmsd
    7. Edit disk and make it non-independant
    8. Edit notes
    9. Power on, generate new identifier
   10. Change root password
   11. Change hostname & networking

Note that MAC address stability is not guaranteed with this method. For 
manually setting MAC addresses see: 
http://www.vmware.com/support/esx21/doc/esx21admin_MACaddress.html