<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=VMware%2FServer</id>
	<title>VMware/Server - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=VMware%2FServer"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=VMware/Server&amp;action=history"/>
	<updated>2026-05-07T03:50:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=VMware/Server&amp;diff=1068&amp;oldid=prev</id>
		<title>Kenneth: Created page with &quot;== End of Life ==  WARNING: VMware Server is End of Life (EOF) and has been replaced with vSphere (http://www.vmware.com/products/vsphere)  == VMware Server ==  &quot;VMware Server...&quot;</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=VMware/Server&amp;diff=1068&amp;oldid=prev"/>
		<updated>2014-09-19T14:22:56Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== End of Life ==  WARNING: VMware Server is End of Life (EOF) and has been replaced with vSphere (http://www.vmware.com/products/vsphere)  == VMware Server ==  &amp;quot;VMware Server...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== End of Life ==&lt;br /&gt;
&lt;br /&gt;
WARNING: VMware Server is End of Life (EOF) and has been replaced with vSphere (http://www.vmware.com/products/vsphere)&lt;br /&gt;
&lt;br /&gt;
== VMware Server ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;VMware Server (formerly VMware GSX Server) is a free-of-charge virtualization-software server suite developed and supplied by VMware, Inc.&amp;quot; [http://en.wikipedia.org/wiki/VMware_Server]&lt;br /&gt;
&lt;br /&gt;
http://vmware.com/products/server/&lt;br /&gt;
&lt;br /&gt;
== CLI Commands ==&lt;br /&gt;
 $ vmrun &amp;lt;command&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 COMMAND          PARAMETERS                  DESCRIPTION&lt;br /&gt;
 list                                         List all running VMs&lt;br /&gt;
 start            Path to vmx file            Start a VM&lt;br /&gt;
 stop             Path to vmx file            Stop a VM&lt;br /&gt;
 reset            Path to vmx file            Reset a VM&lt;br /&gt;
 suspend          Path to vmx file            Suspend a VM&lt;br /&gt;
 upgradevm        Path to vmx file            Upgrade VM file format, virtual hw&lt;br /&gt;
 installtools     Path to vmx file            Install Tools in Guest OS&lt;br /&gt;
 snapshot         Path to vmx file            Create a snapshot of a VM&lt;br /&gt;
 deleteSnapshot   Path to vmx file            Remove a snapshot from a VM&lt;br /&gt;
 revertToSnapshot Path to vmx file            Set VM state to a snapshot&lt;br /&gt;
&lt;br /&gt;
[http://www.linux-mag.com/id/3672/ Prototyping with VMware Server]&lt;br /&gt;
&lt;br /&gt;
== VMware Server Installation ==&lt;br /&gt;
&lt;br /&gt;
[http://www.vmware.com/download/server/ VMware Server Download]&lt;br /&gt;
&lt;br /&gt;
Latest Version: 1.0.8 | 2008/11/06 | Build 126538&lt;br /&gt;
&lt;br /&gt;
=== RPM ===&lt;br /&gt;
&lt;br /&gt;
Download VMware Server - RPM Binary for Linux (101MB) - Free&lt;br /&gt;
 wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.8-126538.i386.rpm&lt;br /&gt;
&lt;br /&gt;
Install VMware:&lt;br /&gt;
 rpm -Uvh VMware-server-1.0.8-126538.i386.rpm&lt;br /&gt;
&lt;br /&gt;
=== TAR ===&lt;br /&gt;
&lt;br /&gt;
Download VMware Server - Tar for Linux (101MB) - Free&lt;br /&gt;
 wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.8-126538.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 tar -zvxf VMware-server-1.0.8-126538.tar.gz&lt;br /&gt;
 cd vmware-server-distrib&lt;br /&gt;
 ./vmware-install.pl&lt;br /&gt;
&lt;br /&gt;
=== Configure VMware ===&lt;br /&gt;
&lt;br /&gt;
Packages needed: xinetd gcc kernel kernel-devel *libXt libX11 *libXtst libXext libICE libSM *libXrender&lt;br /&gt;
 yum install kernel kernel-devel&lt;br /&gt;
 yum install xinetd gcc libXt libX11 libXtst libXext libICE libSM libXrender&lt;br /&gt;
 yum install gcc make &lt;br /&gt;
&lt;br /&gt;
Configure VMware (auto executed by TAR install&amp;#039;s vmware-install.pl):&lt;br /&gt;
 /usr/bin/vmware-config.pl&lt;br /&gt;
 &lt;br /&gt;
Note: I use defaults for all questions except I like to disable NAT networking and host based networking.&lt;br /&gt;
&lt;br /&gt;
Building the vmmon module for your kernel should result in a:&lt;br /&gt;
 The module loads perfectly in the running kernel.&lt;br /&gt;
&lt;br /&gt;
Building the vmnet module for your kernel should result in a:&lt;br /&gt;
 The module loads perfectly in the running kernel.&lt;br /&gt;
&lt;br /&gt;
The default port for the remote VMware management is 902.  If there is a warning that it is not free, simply ignore this and specify port 902 as the port regardless.&lt;br /&gt;
&lt;br /&gt;
=== Serial Number ===&lt;br /&gt;
&lt;br /&gt;
 Please enter your 20-character serial number.&lt;br /&gt;
 &lt;br /&gt;
 Type XXXXX-XXXXX-XXXXX-XXXXX or &amp;#039;Enter&amp;#039; to cancel:&lt;br /&gt;
&lt;br /&gt;
=== Directories ===&lt;br /&gt;
&lt;br /&gt;
Default virtual machine path:&lt;br /&gt;
 /var/lib/vmware/Virtual Machines&lt;br /&gt;
&lt;br /&gt;
To make this folder simple to get to:&lt;br /&gt;
 ln -s /var/lib/vmware/Virtual\ Machines /vm&lt;br /&gt;
&lt;br /&gt;
=== VMware Service ===&lt;br /&gt;
&lt;br /&gt;
The VMware service should have auto started after the install.&lt;br /&gt;
 service vmware status&lt;br /&gt;
&lt;br /&gt;
Start/Stop/Restart vmware:&lt;br /&gt;
 service vmware [start|stop|restart]&lt;br /&gt;
&lt;br /&gt;
==Uninstall VMware==&lt;br /&gt;
To uninstall VMware:&lt;br /&gt;
 /usr/bin/vmware-uninstall.pl&lt;br /&gt;
&lt;br /&gt;
==Serial Numbers==&lt;br /&gt;
Register for a serial number:&lt;br /&gt;
 http://register.vmware.com/content/registration.html&lt;br /&gt;
&lt;br /&gt;
==Guest Installation==&lt;br /&gt;
Download the Windows Server Client (20MB):&lt;br /&gt;
 http://download3.vmware.com/software/vmserver/VMware-server-win32-client-1.0.4-56528.zip&lt;br /&gt;
&lt;br /&gt;
Using the Windows or Linux Server Client you do not need to use a &amp;quot;prebuilt&amp;quot; image found on the internet.&lt;br /&gt;
&lt;br /&gt;
To release control:&lt;br /&gt;
:of the Server Client press Ctrl-Alt&lt;br /&gt;
&lt;br /&gt;
To send a Ctrl-Alt-Delete:&lt;br /&gt;
:use Ctrl-Alt-Insert.&lt;br /&gt;
:if that doesn&amp;#039;t work try Ctrl-Alt-End&lt;br /&gt;
:or use the Server Client menu - VM - Send Ctrl-Alt-End&lt;br /&gt;
&lt;br /&gt;
Install VMware Tools:&lt;br /&gt;
:See [[#VMware Tools|VMware Tools]]&lt;br /&gt;
==VMware Tools==&lt;br /&gt;
To install VMware Tools:&lt;br /&gt;
:Right click on the virtual machine and select &amp;quot;Install VMware Tools...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
*[http://pubs.vmware.com/server1/vm/wwhelp/wwhimpl/common/html/wwhelp.htm?context=vm&amp;amp;file=tools_server.4.3.html Installing VMware Tools in a Linux Virtual Machine]&lt;br /&gt;
&lt;br /&gt;
=== Auto start toolbox ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
CurrentWS=`wmctrl  -d | grep &amp;quot;*&amp;quot; | cut -f 1 -d &amp;quot; &amp;quot;`&lt;br /&gt;
Application=&amp;quot;vmware-toolbox&amp;quot;&lt;br /&gt;
&lt;br /&gt;
wmctrl -s 3&lt;br /&gt;
$Application --minimize &amp;amp;&lt;br /&gt;
# Wait up to ten seconds for the Application to load&lt;br /&gt;
for i in `seq 1 10`&lt;br /&gt;
do&lt;br /&gt;
        sleep .1&lt;br /&gt;
        Process=`pgrep -f &amp;quot;$Application&amp;quot;`&lt;br /&gt;
        #WindowID=`wmctrl -l -p | grep $Process | cut -f 1 -d &amp;quot; &amp;quot;`&lt;br /&gt;
        WindowID=`wmctrl -l -p | grep &amp;quot;VMware Tools Properties&amp;quot; | cut -f 1 -d &amp;quot;&lt;br /&gt;
&amp;quot;`&lt;br /&gt;
        if  [[ &amp;quot;$WindowID&amp;quot; != &amp;quot;&amp;quot; ]]&lt;br /&gt;
        then&lt;br /&gt;
                break&lt;br /&gt;
        fi&lt;br /&gt;
done&lt;br /&gt;
wmctrl -s $CurrentWS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Resources:&lt;br /&gt;
*[http://www.linuxquestions.org/questions/linux-desktop-74/how-to-specify-a-gnome-workpace-an-application-will-launch-in-555764/ How to Specify a Gnome Workpace an Application will Launch in - LinuxQuestions.org]&lt;br /&gt;
*[http://tripie.sweb.cz/utils/wmctrl/#download wmctrl - A command line tool to interact with an EWMH/NetWM compatible X Window Manager.]&lt;br /&gt;
&lt;br /&gt;
==Management Interface==&lt;br /&gt;
:&amp;quot;The VMware Server Web-based management interface. Install on your VMware Server system to enable control from a Web browser. Includes downloadable VMware Server Console installation files.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Web management console (34MB):&lt;br /&gt;
 wget http://download3.vmware.com/software/vmserver/VMware-mui-1.0.4-56528.tar.gz&lt;br /&gt;
 tar -zvxf VMware-mui-1.0.4-56528.tar.gz&lt;br /&gt;
 cd vmware-mui-distrib/&lt;br /&gt;
 ./vmware-install.pl&lt;br /&gt;
 # Installs to /usr/lib/vmware-mui&lt;br /&gt;
 # Configure with: /usr/bin/vmware-config-mui.pl&lt;br /&gt;
 # Uninstall with: /usr/bin/vmware-uninstall-mui.pl&lt;br /&gt;
 # service: httpd.vmware&lt;br /&gt;
 # Runs on tcp port 8222 - http://server:8222&lt;br /&gt;
&lt;br /&gt;
My comment: this has VERY little management and configuration options.  Not required and not worth the install.  The Windows or Linux Server Client is all you will need.&lt;br /&gt;
&lt;br /&gt;
==Remote Console==&lt;br /&gt;
Remove console connections use TCP port 902.&lt;br /&gt;
&lt;br /&gt;
==CLI Commands==&lt;br /&gt;
List running VMs:&lt;br /&gt;
 vmrun list&lt;br /&gt;
&lt;br /&gt;
Start/Stop VM:&lt;br /&gt;
 vmrun start/stop &amp;lt;path to vmx file&amp;gt;.vmx&lt;br /&gt;
&lt;br /&gt;
Alias vm to vmrun:&lt;br /&gt;
 #/etc/bashrc&lt;br /&gt;
 alias vm=&amp;quot;vmrun&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== VMware 2.0 ==&lt;br /&gt;
&lt;br /&gt;
 Please specify a port for remote connections to use [902] &lt;br /&gt;
 &lt;br /&gt;
 Please specify a port for standard http connections to use [8222] &lt;br /&gt;
 &lt;br /&gt;
 Please specify a port for secure http (https) connections to use [8333]&lt;br /&gt;
&lt;br /&gt;
== Shared Disk ==&lt;br /&gt;
&lt;br /&gt;
For a cluster shared disk configuration, add another &amp;quot;Hard Disk&amp;quot; (Create a new virtual disk) to one of the node&amp;#039;s VM configuration.  Specify SCSI disk and under the advanced options select Independent and Persistent Mode disk option and place on a second virtual SCSI controller (ie. SCSI 1:0).  After creation select the Advanced options again for the disk and disable the &amp;quot;write caching&amp;quot;.  Edit the .vmx to enable the shared disk options (below).  Next, add the same disk to the other node&amp;#039;s VM configurations (Use an existing virtual disk) making the same changes (independed, persistent, disable write cache) and to their .vmx files.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
disk.locking = &amp;quot;false&amp;quot;&lt;br /&gt;
diskLib.dataCacheMaxSize = &amp;quot;0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
scsi0.present = &amp;quot;TRUE&amp;quot;&lt;br /&gt;
scsi0.virtualDev = &amp;quot;lsilogic&amp;quot;&lt;br /&gt;
&lt;br /&gt;
scsi0:0.present = &amp;quot;TRUE&amp;quot;&lt;br /&gt;
scsi0:0.fileName = &amp;quot;node-os-disk.vmdk&amp;quot;&lt;br /&gt;
scsi0:0.redo = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
scsi1.present = &amp;quot;TRUE&amp;quot;&lt;br /&gt;
scsi1.virtualDev = &amp;quot;lsilogic&amp;quot;&lt;br /&gt;
&lt;br /&gt;
scsi1:1.present = &amp;quot;TRUE&amp;quot;&lt;br /&gt;
scsi1:1.fileName = &amp;quot;cluster-share.vmdk&amp;quot;&lt;br /&gt;
scsi1:1.writeThrough = &amp;quot;TRUE&amp;quot;&lt;br /&gt;
scsi1:1.shared = &amp;quot;TRUE&amp;quot;&lt;br /&gt;
scsi1:1.mode = &amp;quot;independent-persistent&amp;quot;&lt;br /&gt;
scsi1:1.redo = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
scsi1:2.present = &amp;quot;TRUE&amp;quot;&lt;br /&gt;
scsi1:2.fileName = &amp;quot;cluster-quorum.vmdk&amp;quot;&lt;br /&gt;
scsi1:2.writeThrough = &amp;quot;TRUE&amp;quot;&lt;br /&gt;
scsi1:2.shared = &amp;quot;TRUE&amp;quot;&lt;br /&gt;
scsi1:2.mode = &amp;quot;independent-persistent&amp;quot;&lt;br /&gt;
scsi1:2.redo = &amp;quot;&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The missing items from the install are:&lt;br /&gt;
* Configuring disks on separate bus from OS disk (ie scsi1)&lt;br /&gt;
* disk.locking = &amp;quot;false&amp;quot;&lt;br /&gt;
* diskLib.dataCacheMaxSize = &amp;quot;0&amp;quot;&lt;br /&gt;
* scsi1:2.shared = &amp;quot;TRUE&amp;quot;&lt;br /&gt;
* scsi1:1.writeThrough = &amp;quot;TRUE&amp;quot;&lt;br /&gt;
* scsi1:2.mode = &amp;quot;independent-persistent&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Time Synchronization ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ntp daemon will not be able to keep sync with an ntp server because of the extreme jitter caused by the randomly slow/fast clock.&lt;br /&gt;
&lt;br /&gt;
To help reduce this time problem:&lt;br /&gt;
&lt;br /&gt;
*Install VMware Tools (keep clock from going too slow):&lt;br /&gt;
&lt;br /&gt;
*Append to the kernel boot options (keep clock from going too fast):&lt;br /&gt;
 clocksource=pit&lt;br /&gt;
 clocksource=pit nosmp noapic nolapic&lt;br /&gt;
&lt;br /&gt;
*Add the following failsafe script to crontab:&lt;br /&gt;
 crontab -e&lt;br /&gt;
 * * * * * /usr/sbin/ntpdate [NTP_SERVER_IP] &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
*If you have cpu throttling try the following (get cpukHz from /proc/cpuinfo):&lt;br /&gt;
/etc/vmware/config&lt;br /&gt;
 host.cpukHz = 1000000&lt;br /&gt;
 host.noTSC = TRUE&lt;br /&gt;
 ptsc.noTSC = TRUE&lt;br /&gt;
&lt;br /&gt;
====Notes====&lt;br /&gt;
[http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;amp;externalId=1420 Clock in a Linux Guest Runs More Slowly or Quickly Than Real Time]:&lt;br /&gt;
&lt;br /&gt;
[http://blog.scottlowe.org/2005/12/23/centos-ntpd-problem-mostly-resolved/ CentOS NTPd Problem (Mostly) Resolved] Talks about taking this a step further:&lt;br /&gt;
:&amp;quot;And the time still isn’t synchronized to the level I would like, but it does stay within a minute or so of the rest of the network (well within the 5 minute gap required in order for Kerberos authentication to work).&amp;quot;&lt;br /&gt;
 # Boot options&lt;br /&gt;
 noapic nosmp nolapic clock=pit acpi=no&lt;br /&gt;
 &lt;br /&gt;
 # ntpd.conf options&lt;br /&gt;
 #server 10.161.101.1&lt;br /&gt;
 #server 127.127.1.0&lt;br /&gt;
 #fudge  127.127.1.0 stratum 10&lt;br /&gt;
 server W.X.Y.Z burst iburst&lt;br /&gt;
&lt;br /&gt;
Kernel parameter clock is depreciated, use clocksource instead:&lt;br /&gt;
 #reported by &amp;#039;dmesg&amp;#039;&lt;br /&gt;
 Kernel command line: ro root=LABEL=/ clock=pit&lt;br /&gt;
 Warning! clock= boot option is deprecated. Use clocksource=xyz&lt;br /&gt;
 &lt;br /&gt;
 #So use this instead:&lt;br /&gt;
 clocksource=pit nosmp noapic nolapic&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
*[http://support.ntp.org/bin/view/Support/KnownOsIssues#Section_9.2.1.1. NTP and VMware]&lt;br /&gt;
**&amp;quot;NTP was not designed to run inside of a virtual machine. It requires a high resolution system clock, with response times to clock interrupts that are serviced with a high level of accuracy. No known virtual machine is capable of meeting these requirements.&amp;quot;&lt;br /&gt;
*[http://www.vmware.com/pdf/vmware_timekeeping.pdf Timekeeping in VMware Virtual Machines (PDF)]&lt;br /&gt;
*[https://secure-support.novell.com/KanisaPlatform/Publishing/510/3858673_f.SAL_Public.html Time drifting when running eDirectory on a Linux guest under VMware ESX server.]&lt;br /&gt;
:Talks about setting the boot option &amp;quot;clock=pit&amp;quot;&lt;br /&gt;
*[http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=892 Virtual Machine Seems Slow when Running a Particular Program (Clock Issue)]&lt;br /&gt;
:Discusses recompiling the kernel with a higher timer interrupt rate&lt;br /&gt;
*[http://kbase.redhat.com/faq/FAQ_43_9259.shtm Running Red Hat Enterprise Linux as a guest OS under VMware, the clock will not stay synchronized]&lt;br /&gt;
:&amp;quot;Time synchronization problems are a common VMware guest configuration issue which occur when &amp;#039;&amp;#039;&amp;#039;VMware Tools&amp;#039;&amp;#039;&amp;#039; have not been installed on the guest and configured according to VMware&amp;#039;s instructions.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#Install VMwareTools in the guest OS, following VMware&amp;#039;s instructions for the target OS.&lt;br /&gt;
#*[http://www.vmware.com/support/gsx3/doc/tools_install_lin_gsx.html Installing VMware Tools in a Linux or FreeBSD Virtual Machine]&lt;br /&gt;
#On the HOST machine, locate the &amp;lt;session name&amp;gt;.vmx VMware session configuration file for the guest OS in question, and add a line which reads:&lt;br /&gt;
#*tools.syncTime = &amp;quot;TRUE&amp;quot;&lt;br /&gt;
#Restart guest session&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://lists.centos.org/pipermail/centos-virt/2008-March/000228.html Follow-up on Fast clock under VMWare]&lt;br /&gt;
*Known issue (But you can use the 100Hz-kernels offered by CentOS without problems):&lt;br /&gt;
*[http://bugs.centos.org/view.php?id=2189 BUG: CentOS is not getting optimal performance in a virtualized environment and on slow cpus]&lt;br /&gt;
&lt;br /&gt;
====ntpfix.sh====&lt;br /&gt;
&lt;br /&gt;
 touch /opt/admin/ntpfix.sh&lt;br /&gt;
 chmod u+x /opt/admin/ntpfix.sh&lt;br /&gt;
 cat &amp;gt; /opt/admin/ntpfix.sh&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
NTPSERVER=10.161.101.1&lt;br /&gt;
MAXOFFSET=10&lt;br /&gt;
&lt;br /&gt;
NTPLINE=`/usr/sbin/ntpdate -q ${NTPSERVER} | /usr/bin/tail -n 1`&lt;br /&gt;
FCHAR=`echo $NTPLINE | /usr/bin/cut -b 1`&lt;br /&gt;
if [ &amp;quot;$FCHAR&amp;quot; = &amp;quot; &amp;quot; ] ; then&lt;br /&gt;
   OFFSET=`echo $NTPLINE | /usr/bin/cut -d &amp;quot; &amp;quot; -f 11 | /usr/bin/cut -d &amp;quot;.&amp;quot; -f 1`&lt;br /&gt;
else&lt;br /&gt;
   OFFSET=`echo $NTPLINE | /usr/bin/cut -d &amp;quot; &amp;quot; -f 10 | /usr/bin/cut -d &amp;quot;.&amp;quot; -f 1`&lt;br /&gt;
fi&lt;br /&gt;
/usr/bin/logger &amp;quot;NTPFIX: localtime is $OFFSET seconds off of the NTP server&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if [ $OFFSET -gt $MAXOFFSET -o $OFFSET -lt -${MAXOFFSET} ]; then&lt;br /&gt;
  /usr/bin/logger &amp;quot;NTPFIX: forcing resync with NTP server&amp;quot;&lt;br /&gt;
  #/sbin/service ntpd stop &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
  /usr/sbin/ntpdate $NTPSERVER &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
  #/sbin/service ntpd start &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 crontab -e&lt;br /&gt;
 */2 * * * * /opt/admin/ntpfix.sh &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
==Issues==&lt;br /&gt;
&lt;br /&gt;
=== Slow or Fast System Clock ===&lt;br /&gt;
&lt;br /&gt;
See [[#Time Synchronization]]&lt;br /&gt;
&lt;br /&gt;
===libpng12.so.0: no version information available===&lt;br /&gt;
[http://communities.vmware.com/message/480361 Re: libpng12.so.0: no version information available]:&lt;br /&gt;
 just copy the /usr/lib/libpng12.so.0 to /usr/lib/vmware/lib/libpng12.so.0/&lt;br /&gt;
&lt;br /&gt;
===Module Compiling Issues===&lt;br /&gt;
Error compiling module:&lt;br /&gt;
 Using 2.6.x kernel build system.&lt;br /&gt;
make: Entering directory `/tmp/vmware-config0/vmmon-only&amp;#039;&lt;br /&gt;
make -C /lib/modules/2.6.22.14-72.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules&lt;br /&gt;
make[1]: Entering directory `/usr/src/kernels/2.6.22.14-72.fc6-x86_64&amp;#039;&lt;br /&gt;
  CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.&lt;br /&gt;
 In file included from /tmp/vmware-config0/vmmon-only/linux/driver.c:80:&lt;br /&gt;
 /tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘compat_exit’&lt;br /&gt;
 /tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: error: expected declaration specifiers or ‘...’ before ‘exit_code’&lt;br /&gt;
 /tmp/vmware-config0/vmmon-only/./include/compat_kernel.h:21: warning: type defaults to ‘int’ in declaration of ‘_syscall1’&lt;br /&gt;
 make[2]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1&lt;br /&gt;
 make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2&lt;br /&gt;
 make[1]: Leaving directory `/usr/src/kernels/2.6.22.14-72.fc6-x86_64&amp;#039;&lt;br /&gt;
 make: *** [vmmon.ko] Error 2&lt;br /&gt;
 make: Leaving directory `/tmp/vmware-config0/vmmon-only&amp;#039;&lt;br /&gt;
 Unable to build the vmmon module.&lt;br /&gt;
 &lt;br /&gt;
 # My guess is it didn&amp;#039;t like being compiled for 64bit OS&lt;br /&gt;
 # This page references this error http://www.howtoforge.com/vmware_server_fedora_core_6&lt;br /&gt;
 # http://www.vmware.com/community/thread.jspa?messageID=629085&amp;amp;#629085&lt;br /&gt;
 &lt;br /&gt;
 # To fix:&lt;br /&gt;
 cd /usr/lib/vmware/modules/source/&lt;br /&gt;
 cp vmmon.tar vmmon.tar.old&lt;br /&gt;
 tar -xvvf vmmon.tar&lt;br /&gt;
 cd vmmon-only/include&lt;br /&gt;
 vi compat_kernel.h&lt;br /&gt;
 &lt;br /&gt;
 change:&lt;br /&gt;
 &lt;br /&gt;
 #define __NR_compat_exit __NR_exit&lt;br /&gt;
 static inline _syscall1(int, compat_exit, int, exit_code);&lt;br /&gt;
 &lt;br /&gt;
 to:&lt;br /&gt;
 &lt;br /&gt;
 #define __NR_compat_exit __NR_exit&lt;br /&gt;
 #if LINUX_VERSION_CODE &amp;lt; KERNEL_VERSION(2,6,19)&lt;br /&gt;
 static inline _syscall1(int, compat_exit, int, exit_code);&lt;br /&gt;
 #endif&lt;br /&gt;
 &lt;br /&gt;
 cd ../..&lt;br /&gt;
 tar -cvvf vmmon.tar vmmon-only/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using 2.6.x kernel build system.&lt;br /&gt;
make: Entering directory `/tmp/vmware-config1/vmnet-only&amp;#039;&lt;br /&gt;
make -C /lib/modules/2.6.22.14-72.fc6/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules&lt;br /&gt;
make[1]: Entering directory `/usr/src/kernels/2.6.22.14-72.fc6-x86_64&amp;#039;&lt;br /&gt;
  CC [M]  /tmp/vmware-config1/vmnet-only/driver.o&lt;br /&gt;
  CC [M]  /tmp/vmware-config1/vmnet-only/hub.o&lt;br /&gt;
  CC [M]  /tmp/vmware-config1/vmnet-only/userif.o&lt;br /&gt;
/tmp/vmware-config1/vmnet-only/userif.c: In function ‘VNetCopyDatagramToUser’:&lt;br /&gt;
/tmp/vmware-config1/vmnet-only/userif.c:630: error: ‘const struct sk_buff’ has no member named ‘h’&lt;br /&gt;
/tmp/vmware-config1/vmnet-only/userif.c:630: error: ‘const struct sk_buff’ has no member named ‘nh’&lt;br /&gt;
/tmp/vmware-config1/vmnet-only/userif.c:636: error: ‘const struct sk_buff’ has no member named ‘h’&lt;br /&gt;
make[2]: *** [/tmp/vmware-config1/vmnet-only/userif.o] Error 1&lt;br /&gt;
make[1]: *** [_module_/tmp/vmware-config1/vmnet-only] Error 2&lt;br /&gt;
make[1]: Leaving directory `/usr/src/kernels/2.6.22.14-72.fc6-x86_64&amp;#039;&lt;br /&gt;
make: *** [vmnet.ko] Error 2&lt;br /&gt;
make: Leaving directory `/tmp/vmware-config1/vmnet-only&amp;#039;&lt;br /&gt;
Unable to build the vmnet module.&lt;br /&gt;
&lt;br /&gt;
==To Read==&lt;br /&gt;
*http://www.howtoforge.com/vmware_server_fedora_core_6&lt;br /&gt;
*http://www.howtoforge.com/vmware_server_fedora7&lt;br /&gt;
*http://www.howtoforge.com/ubuntu_vmware_server&lt;br /&gt;
*http://www.howtoforge.com/debian_etch_vmware_server_howto&lt;br /&gt;
*http://www.howtoforge.com/ubuntu_vmware_server_p2&lt;br /&gt;
*http://www.howtoforge.com/ubuntu_feisty_fawn_vmware_server_howto&lt;br /&gt;
*http://blog.netnerds.net/2007/10/vmware-server-install-vmware-server-10-on-suse-102-x64/&lt;br /&gt;
*http://fedorasolved.org/server-solutions/vmserver-install&lt;br /&gt;
*http://ubuntuforums.org/showthread.php?t=183209&lt;br /&gt;
*[http://www.linux.com/articles/54411 How to use VMware Player to create your own images]&lt;br /&gt;
*http://www.ethicalhacker.net/content/view/63/2/&lt;br /&gt;
*http://www.ubuntugeek.com/how-to-install-vmware-server-from-canonical-commercial-repository-in-ubuntu-feisty.html&lt;br /&gt;
*http://diaryproducts.net/about/operating_systems/unix/installing_vmware_server_on_gentoo_linux_part_2&lt;br /&gt;
*http://polishlinux.org/howtos/vmware-server-console-introduction-to-virtualization/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Server 2008 ==&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Choose your Guest Operating System. Since Windows Server 2008 Enterprise is still in BETA, it will not be listed. Choose the closest thing, Windows Server 2003 Enterprise. Also note, the operating system choice here will determine what configuration choices will follow. So if you chose Windows XP, you would see different choices than if you chose Windows Server 2003. &amp;quot;&lt;br /&gt;
&lt;br /&gt;
Resources:&lt;br /&gt;
* [http://www.svrops.com/svrops/articles/Win2008VM.htm Svrops.com - Testing Windows Server 2008 in VMware]&lt;br /&gt;
&lt;br /&gt;
== Host-only Networking ==&lt;br /&gt;
&lt;br /&gt;
Disabling DHCP server.&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Actualy, if you change all lines in /etc/vmware/vmnet*/dhcpd/dhcpd.conf the dhcpd server will automaticaly not get started anymore. This looks cleaner to me than updating the scripts. I assume the scripts will get overwritten during an upgrade but the config files shouldn&amp;#039;t. (Note: tested on vmware-server)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Source: [http://communities.vmware.com/message/364991 VMware Communities: How to disable DHCP server on VMware 5 ...]&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
&lt;br /&gt;
Download VMware Server - TAR Binary for Linux (101MB) - Free&lt;br /&gt;
 wget http://download3.vmware.com/software/vmserver/VMware-server-1.0.4-56528.tar.gz&lt;br /&gt;
&lt;br /&gt;
Service:&lt;br /&gt;
 service vmware start&lt;br /&gt;
 &lt;br /&gt;
 VMware Server is installed, but it has not been (correctly) configured&lt;br /&gt;
 for the running kernel. To (re-)configure it, invoke the&lt;br /&gt;
 following command: /usr/bin/vmware-config.pl.&lt;br /&gt;
&lt;br /&gt;
Install gcc, latest kernel and kernel development packages:&lt;br /&gt;
 # May need to reboot if your kernel version changes&lt;br /&gt;
 yum -y update&lt;br /&gt;
 yum -y install gcc kernel-devel&lt;br /&gt;
 # May need to reboot if your kernel version changes&lt;br /&gt;
 reboot&lt;br /&gt;
&lt;br /&gt;
 # yum install kernel&lt;br /&gt;
 # Error installing kernel... try updating system instead&lt;br /&gt;
 Transaction Check Error:&lt;br /&gt;
   package kernel-2.6.23.9-85.fc8.i686 (which is newer than kernel-2.6.23.8-63.fc8.i686) is already installed&lt;br /&gt;
&lt;br /&gt;
Configure VMware&lt;br /&gt;
 # Use all the defaults (including compiling module for current kernel)&lt;br /&gt;
 /usr/bin/vmware-config.pl&lt;br /&gt;
&lt;br /&gt;
 # This is wrong&lt;br /&gt;
 What is the location of the directory of C header files that match your running&lt;br /&gt;
 kernel? [/usr/src/linux/include]&lt;br /&gt;
&lt;br /&gt;
 # This is what you should see&lt;br /&gt;
 What is the location of the directory of C header files that match your running&lt;br /&gt;
 kernel? [/lib/modules/2.6.22.14-72.fc6/build/include]&lt;br /&gt;
 # which points to /usr/src/kernels/2.6.22.14-72.fc6-x86_64/include&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://blog.taragana.com/index.php/archive/how-to-disable-ipv6-on-fedora-linux-why/ How To Disable IPv6 on Fedora / Linux &amp;amp; Why ]:&lt;br /&gt;
 vi /etc/modprobe.conf&lt;br /&gt;
 # Add these lines to the end of the file:&lt;br /&gt;
 &lt;br /&gt;
 # Turn off IPv6&lt;br /&gt;
 alias net-pf-10 off&lt;br /&gt;
 alias ipv6 off&lt;br /&gt;
&lt;br /&gt;
 #/etc/sysconfig/network&lt;br /&gt;
 NETWORKING_IPV6=no&lt;br /&gt;
&lt;br /&gt;
 /sbin/service ip6tables stop&lt;br /&gt;
 /sbin/chkconfig ip6tables off&lt;br /&gt;
 /sbin/service network restart&lt;br /&gt;
&lt;br /&gt;
The default port : 902 is not free. We have selected a suitable alternative&lt;br /&gt;
port for VMware Server use. You may override this value now.&lt;br /&gt;
Remember to use this port when connecting to this server.&lt;br /&gt;
Please specify a port for remote console connections to use [904] 902&lt;br /&gt;
&lt;br /&gt;
# netstat -tunap | grep 902&lt;br /&gt;
tcp        0      0 0.0.0.0:902                 0.0.0.0:*                   LISTEN      5139/xinetd&lt;br /&gt;
&lt;br /&gt;
Last resort fix:&lt;br /&gt;
 wget http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update115.tar.gz&lt;br /&gt;
 tar -zvxf vmware-any-any-update115.tar.gz&lt;br /&gt;
 cd vmware-any-any-update115&lt;br /&gt;
 ./runme.pl&lt;br /&gt;
&lt;br /&gt;
In which directory do you want to keep your virtual machine files?&lt;br /&gt;
[/var/lib/vmware/Virtual Machines]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== VMware Tools ===&lt;br /&gt;
&lt;br /&gt;
*http://www.vmware.com/support/ws55/doc/ws_newguest_tools_windows.html&lt;br /&gt;
**When the guest operating system starts, select VM &amp;gt; Install VMware Tools&lt;br /&gt;
*[http://pubs.vmware.com/server1/vm/wwhelp/wwhimpl/common/html/wwhelp.htm?context=vm&amp;amp;file=tools_server.4.3.html Installing VMware Tools]&lt;br /&gt;
**Installing VMware Tools in a Windows Virtual Machine &lt;br /&gt;
**Installing VMware Tools in a Linux Virtual Machine &lt;br /&gt;
*http://www.vmware.com/support/reference/common/vmwaretools.html&lt;br /&gt;
*[http://www.brandonhutchinson.com/Installing_VMware_Tools_with_VMware_Player.html Installing VMware Tools with VMware Player]&lt;br /&gt;
*[http://www.petri.co.il/virtual_install_vmware_tools.htm How to Install VMware Tools in your Windows Guest]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Mount install CD from command line&lt;br /&gt;
 vmrun installtools &amp;lt;path to vmx file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Snapshot ===&lt;br /&gt;
&lt;br /&gt;
NOTE: make sure to be in the folder and use &amp;quot;./&amp;quot; for path.&lt;br /&gt;
&lt;br /&gt;
Create snapshot:&lt;br /&gt;
 vmrun snapshot &amp;lt;path to vmx file&amp;gt;&lt;br /&gt;
 vmrun snapshot ./virtualmachine.vmx&lt;br /&gt;
&lt;br /&gt;
Delete snapshot:&lt;br /&gt;
 vmrun deleteSnapshot &amp;lt;path to vmx file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Rever to snapshot:&lt;br /&gt;
 vmrun revertToSnapshot &amp;lt;path to vmx file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.vmware.com/support/ws55/doc/ws_learning_cli_vmrun.html VMware Workstation: Command Line Application]:&lt;br /&gt;
&lt;br /&gt;
Create a snapshot of a virtual machine:&lt;br /&gt;
 snapshot [Path to .vmx file] [snapshot name]&lt;br /&gt;
	&lt;br /&gt;
List all snapshots in a virtual machine:&lt;br /&gt;
 listSnapshots [Path to .vmx file]&lt;br /&gt;
	&lt;br /&gt;
Remove a snapshot from a virtual machine:&lt;br /&gt;
 deleteSnapshot [Path to .vmx file] [snapshot name]&lt;br /&gt;
&lt;br /&gt;
Go to a snapshot in a virtual machine:&lt;br /&gt;
 revertToSnapshot [Path to .vmx file] [snapshot name]&lt;br /&gt;
 revertToSnapshot [Path to .vmx file] [snapshot name1/snapshot name2] &lt;br /&gt;
&lt;br /&gt;
Revert Notes:&lt;br /&gt;
&lt;br /&gt;
If a snapshot has a unique name within a virtual machine, you can revert to that snapshot simply by specifying the path to the virtual machine&amp;#039;s configuration file and the snapshot name:&lt;br /&gt;
[Path to .vmx file][snapshot name]&lt;br /&gt;
&lt;br /&gt;
If several snapshots have the same name, you can still specify a snapshot by including a &amp;quot;pathname&amp;quot; for the snapshot name. A pathname is a series of snapshot names, separated by forward slash characters (&amp;quot;/&amp;quot;). Each name specifies a different snapshot in the tree, and together the names in a pathname will specify a path from the root snapshot to the snapshot you are naming.&lt;br /&gt;
&lt;br /&gt;
For example, suppose you include the pathname &amp;quot;snap1/snap2&amp;quot;. This will identify a snapshot named &amp;quot;snap2&amp;quot; that was taken from the state of a root snapshot named &amp;quot;snap1&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Because the forward slash can be used in a pathname to specify a particular snapshot in the revertToSnapshot command, it is recommended that you avoid using the slash character when you name a snapshot, since this will make it difficult for you to predict which snapshot a pathname will identify.&lt;br /&gt;
&lt;br /&gt;
=== Windows 2000 Server - Terminal Services - 256 color limitation ===&lt;br /&gt;
&lt;br /&gt;
*[http://support.microsoft.com/kb/273725 Cannot Increase the Screen Resolution to Greater Than 256 Colors in Terminal Services]&lt;br /&gt;
**This behavior is by design.&lt;br /&gt;
*[http://www.microsoft.com/windowsserver2003/evaluation/overview/technologies/terminalserver.mspx Windows 2003 Server: What&amp;#039;s New in Terminal Server]&lt;br /&gt;
**&amp;quot;Greater Color Depth and Screen Resolution: With RDP 5.1, color depth can be selected from 256 colors (8-bit) to True Color (24-bit), and resolution can be set from 640 x 480 up to 1600 x 1200. For example, an IT administrator can use Terminal Server to support store kiosks displaying merchandise. They can be set to provide true color images for the best product image.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== VMware Server 1.0 is now Free ===&lt;br /&gt;
&lt;br /&gt;
[http://www.downloadsquad.com/2006/07/12/vmware-server-1-0-now-free/ VMware Server 1.0 now free]:&lt;br /&gt;
:&amp;quot;As was [http://www.downloadsquad.com/2006/02/03/vmwares-gsx-server-to-go-freeware/ announced back in February], VMware is now giving away one of its flagship products, [http://www.vmware.com/products/server/ VMware Server] (formerly GSX Server). The free OS virtualization server makes it possible to run multiple operating systems simultaneously on top of a host OS, which can eliminate dual-booting, make installing or testing potentially dangerous apps risk-free, or [http://www.downloadsquad.com/2006/05/22/reinstall-windows-without-the-risk/ keeping around a copy of your old system] when you reinstall Windows. VMware Server 1.0 is [http://register.vmware.com/content/download.html available for Windows or Linux].&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[http://www.downloadsquad.com/2006/02/03/vmwares-gsx-server-to-go-freeware/ VMware&amp;#039;s GSX Server to go freeware]:&lt;br /&gt;
:&amp;quot;According to CNet, VMware has announced that it&amp;#039;s [http://news.com.com/VMware%20to%20make%20server%20productfree/2100-1012_3-6034615.html?tag=nefd.top going to start giving away its GSX Server product for free]. GSW Server, which currently starts at $1,400, is &amp;quot;enterprise-class virtual infrastructure for departmental server consolidation and streamlining development and testing operations,&amp;quot; which without the buzzwords means it will let you run lots of operating systems simultaneously on not a lot of hardware for a lot of users. (Take a look at VMware&amp;#039;s [http://www.vmware.com/products/gsx/faqs.html GSX Server FAQ] for more specifics.) VMware is making GSX Server free in hopes that free users will get hooked and upgrade to the even-higher-end ESX Server. Their consumer-grade product VMware Workstation, however, will not be experiencing a price change of its own.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== 7 Uses for a Virtual Machine ===&lt;br /&gt;
&lt;br /&gt;
[http://www.lifehack.org/articles/lifehack/7-uses-for-a-virtual-machine.html 7 Uses for a Virtual Machine]&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;VMWare has announced the release of VMWare Server 1.0 for FREE. Formerly known as GSX server, this product allows you to take a reasonably powerful server (say a box with two processors and 4 GB of memory) and lets you serve up virtual machines.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
*Try new operating system&lt;br /&gt;
*Test your software&lt;br /&gt;
*Set up an office quickly&lt;br /&gt;
:You could have your people on the ground go buy a server from the local computer store (or ship one, whatever), and ship them the DVD with your images on it (or a hard drive).&lt;br /&gt;
*Small Biz disaster recovery&lt;br /&gt;
*Build kid boxes&lt;br /&gt;
*Backup your system&lt;br /&gt;
*Save Legacy Systems&lt;br /&gt;
&lt;br /&gt;
=== Clone Virtual Machine ===&lt;br /&gt;
&lt;br /&gt;
[http://blog.kovyrin.net/2007/04/08/how-to-clone-virtual-machine-with-vmware-server/ How to clone virtual machine with VmWare Server]:&lt;br /&gt;
&lt;br /&gt;
Example copy &amp;quot;db1&amp;quot; to &amp;quot;db2&amp;quot;&lt;br /&gt;
vmware files in&lt;br /&gt;
 /var/lib/vmware/Virtual Machines&lt;br /&gt;
&lt;br /&gt;
copied entire db1 directory to new one:&lt;br /&gt;
 cd /var/lib/vmware/Virtual Machines&lt;br /&gt;
 cp -ax db1 db2&lt;br /&gt;
&lt;br /&gt;
rename virtual machine’s disk image (maybe it is not necessary but I decided that it would be better to perform this operation):&lt;br /&gt;
 cd db2&lt;br /&gt;
 /vmware/bin/vmware-vdiskmanager -n db1.vmdk db2.vmdk&lt;br /&gt;
&lt;br /&gt;
rename virtual machine config and change disk image name in this config file:&lt;br /&gt;
 mv db1 db2&lt;br /&gt;
 sed -i &amp;#039;s/db1.vmdk/db2.vmdk/&amp;#039; db2&lt;br /&gt;
&lt;br /&gt;
Now we can start this new machine with VMware server console, it would ask as to change machine’s UUID (which is machines MAC address)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Virtual Disk tools:&lt;br /&gt;
 vmware-vdiskmanager -n sourceName.vmdk destinationName.vmdk&lt;br /&gt;
&lt;br /&gt;
*[http://www.convergenttechonline.com/documents/vmware%20server%20cloning%20a%20microsoft%20windows-based%20virtual%20machine.htm Cloning a Microsoft Windows-Based Virtual Machine]&lt;br /&gt;
**[http://www.microsoft.com/technet/sysinternals/Security/NewSid.mspx NewSID]&lt;br /&gt;
&lt;br /&gt;
==== vmclone ====&lt;br /&gt;
&lt;br /&gt;
My vmclone Script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
#&lt;br /&gt;
# vmclone - written and maintained by Kenneth Burgener &amp;lt;email@kennethburgener.org&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$1&amp;quot; = &amp;quot;&amp;quot; -o &amp;quot;$2&amp;quot; = &amp;quot;&amp;quot; ] ; then&lt;br /&gt;
  echo &amp;quot;usage: $0 [original_vm] [cloned_vm]&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ ! -d &amp;quot;$1&amp;quot; ] ; then&lt;br /&gt;
  echo &amp;quot;Error: Original VM does not exist!&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -d &amp;quot;$2&amp;quot; ] ; then&lt;br /&gt;
  echo &amp;quot;Error: Cloned VM already exists!&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
vmrun list | grep &amp;quot;$1&amp;quot; &amp;amp;&amp;gt; /dev/null&lt;br /&gt;
if [ $? = 0 ] ; then&lt;br /&gt;
  echo &amp;quot;Error: Original VM is running!&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Cloning VMware VM &amp;#039;$1&amp;#039; to &amp;#039;$2&amp;#039;...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
mkdir &amp;quot;$2&amp;quot;&lt;br /&gt;
if [ $? -gt 0 ] ; then&lt;br /&gt;
  echo &amp;quot;Error - Cloned VM already exists!&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
/bin/cp -p $1/* $2/&lt;br /&gt;
&lt;br /&gt;
cd $2/&lt;br /&gt;
&lt;br /&gt;
ls -1 | awk &amp;#039;{print &amp;quot;mv &amp;quot; $1 &amp;quot; &amp;quot; $1}&amp;#039; | sed &amp;quot;s/$1/$2/2&amp;quot; | sh&lt;br /&gt;
&lt;br /&gt;
sed -i &amp;quot;s/$1/$2/g&amp;quot; $2.vmdk&lt;br /&gt;
sed -i &amp;quot;s/$1/$2/g&amp;quot; $2.vmx&lt;br /&gt;
&lt;br /&gt;
cd - &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Done!&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== vmrename ====&lt;br /&gt;
&lt;br /&gt;
My vmrename Script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
#&lt;br /&gt;
# vmrename - written and maintained by Kenneth Burgener &amp;lt;email@kennethburgener.org&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
if [ &amp;quot;$1&amp;quot; = &amp;quot;&amp;quot; -o &amp;quot;$2&amp;quot; = &amp;quot;&amp;quot; ] ; then&lt;br /&gt;
  echo &amp;quot;usage: $0 [original_vm] [renamed_vm]&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ ! -d &amp;quot;$1&amp;quot; ] ; then&lt;br /&gt;
  echo &amp;quot;Error: Original VM does not exist!&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -d &amp;quot;$2&amp;quot; ] ; then&lt;br /&gt;
  echo &amp;quot;Error: Renamed VM already exists!&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
vmrun list | grep &amp;quot;$1&amp;quot; &amp;amp;&amp;gt; /dev/null&lt;br /&gt;
if [ $? = 0 ] ; then&lt;br /&gt;
  echo &amp;quot;Error: Original VM is running!&amp;quot;&lt;br /&gt;
  exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Renaming VMware VM &amp;#039;$1&amp;#039; to &amp;#039;$2&amp;#039;...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Rename Folder&lt;br /&gt;
/bin/mv $1 $2&lt;br /&gt;
&lt;br /&gt;
cd $2/&lt;br /&gt;
&lt;br /&gt;
ls -1 | awk &amp;#039;{print &amp;quot;mv &amp;quot; $1 &amp;quot; &amp;quot; $1}&amp;#039; | sed &amp;quot;s/$1/$2/2&amp;quot; | sh&lt;br /&gt;
&lt;br /&gt;
sed -i &amp;quot;s/$1/$2/g&amp;quot; $2.vmdk&lt;br /&gt;
sed -i &amp;quot;s/$1/$2/g&amp;quot; $2.vmx&lt;br /&gt;
&lt;br /&gt;
cd - &amp;gt; /dev/null&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Done!&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Static MAC Address ===&lt;br /&gt;
&lt;br /&gt;
Change:&lt;br /&gt;
 ethernet0.addressType = &amp;quot;generated&amp;quot;&lt;br /&gt;
 ethernet0.generatedAddress = &amp;quot;00:0c:29:XX:XX:XX&amp;quot;&lt;br /&gt;
 ethernet0.generatedAddressOffset = &amp;quot;0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to:&lt;br /&gt;
 ethernet0.addressType = &amp;quot;static&amp;quot;&lt;br /&gt;
 ethernet[n].address = &amp;quot;00:50:56:xx:yy:zz&amp;quot;&lt;br /&gt;
 uuid.action = &amp;quot;keep&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Reference: [http://communities.vmware.com/message/691262;jsessionid=64E1AF13B11FF460FD5707FBECBF1F22 VMware Communities: Hard-coding static MAC address for VM]&lt;br /&gt;
&lt;br /&gt;
=== Virtual Appliances ===&lt;br /&gt;
&lt;br /&gt;
[http://www.vmware.com/appliances/ VMware Virtual Appliances]&lt;br /&gt;
&lt;br /&gt;
=== Tips and Tricks ===&lt;br /&gt;
&lt;br /&gt;
[http://download3.vmware.com/vmworld/2006/dvt4696.pdf VMware Server Tips &amp;amp; Tricks (PDF)]&lt;br /&gt;
&lt;br /&gt;
=== CentOS 5 64bit ===&lt;br /&gt;
&lt;br /&gt;
 ./vmware-install.pl&lt;br /&gt;
&lt;br /&gt;
 /usr/bin/vmware-config.pl&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The correct version of one or more libraries needed to run VMware Server may be&lt;br /&gt;
missing.  This is the output of ldd /usr/bin/vmware:&lt;br /&gt;
        linux-gate.so.1 =&amp;gt;  (0xffffe000)&lt;br /&gt;
        libm.so.6 =&amp;gt; /lib/libm.so.6 (0xf7fb4000)&lt;br /&gt;
        libdl.so.2 =&amp;gt; /lib/libdl.so.2 (0xf7fb0000)&lt;br /&gt;
        libpthread.so.0 =&amp;gt; /lib/libpthread.so.0 (0xf7f99000)&lt;br /&gt;
        libX11.so.6 =&amp;gt; /usr/lib/libX11.so.6 (0xf7e96000)&lt;br /&gt;
        libXtst.so.6 =&amp;gt; not found&lt;br /&gt;
        libXext.so.6 =&amp;gt; /usr/lib/libXext.so.6 (0xf7e86000)&lt;br /&gt;
        libXt.so.6 =&amp;gt; /usr/lib/libXt.so.6 (0xf7e2e000)&lt;br /&gt;
        libICE.so.6 =&amp;gt; /usr/lib/libICE.so.6 (0xf7e14000)&lt;br /&gt;
        libSM.so.6 =&amp;gt; /usr/lib/libSM.so.6 (0xf7e0b000)&lt;br /&gt;
        libXrender.so.1 =&amp;gt; not found&lt;br /&gt;
        libz.so.1 =&amp;gt; /usr/lib/libz.so.1 (0xf7df8000)&lt;br /&gt;
        libc.so.6 =&amp;gt; /lib/libc.so.6 (0xf7cb7000)&lt;br /&gt;
        /lib/ld-linux.so.2 (0xf7fe3000)&lt;br /&gt;
        libXau.so.6 =&amp;gt; /usr/lib/libXau.so.6 (0xf7cb4000)&lt;br /&gt;
        libXdmcp.so.6 =&amp;gt; /usr/lib/libXdmcp.so.6 (0xf7cae000)&lt;br /&gt;
&lt;br /&gt;
This program cannot tell for sure, but you may need to upgrade libc5 to glibc&lt;br /&gt;
before you can run VMware Server.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To solve:&lt;br /&gt;
 yum install libXtst libXrender&lt;br /&gt;
 # or&lt;br /&gt;
 yum install libXtst libXext libXt libICE libSM libXrender&lt;br /&gt;
&lt;br /&gt;
=== BusLogic vs LSI Logic SCSI Adapters ===&lt;br /&gt;
&lt;br /&gt;
VMware released a great whitepaper about virtual I/O architectures and performance impacts:&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;The storage subsystem is a critical determinant of system performance. The key to good storage performance is to identify factors and system configuration settings that affect performance and understand how to set these in order to achieve the best results. The basic determinants of performance are the operating system, the data transfer size, and the access pattern. In the virtual machine environment, the drivers for the available virtual adapters are also a factor. VMware ESX Server virtual machines can use virtual BusLogic and virtual LSI Logic SCSI adapters. &amp;#039;&amp;#039;&amp;#039;The default driver for a virtual machine depends on the guest operationg system. for example, Windows 2000 guests use the Microsoft-supplied BusLogic adapter by default, while Windows Server 2003 guests use the LSI Logic adapter by default.&amp;#039;&amp;#039;&amp;#039; This document provides a characterization of storage performance for a VMware ESX Server system with an EMC CX500 SAN as the storage back end. The goal is to provide performance data and system resource utilization at various load levels. Throughtput, I/O rate, and response time for various data sizes and access patterns provide sizing guidelines. This baseline data is expected to help debug performance problems and facilitate server consolidation for I/O intensive workloads.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Download it [http://www.vmware.com/pdf/ESX2_Storage_Performance.pdf here].&lt;br /&gt;
&lt;br /&gt;
Source: [http://www.virtualization.info/2006/04/whitepaper-storage-subsystem.html Whitepaper: Storage Subsystem Performance in VMware ESX Server: BusLogic versus LSI Logic | virtualization.info]&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
[[Category:VMware]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>