<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://www.stress-free.co.nz"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>stressfree - vmware</title>
 <link>https://www.stress-free.co.nz/tech/vmware</link>
 <description></description>
 <language>en</language>
<item>
 <title>USB devices with VMWare Server 2.0 on Ubuntu</title>
 <link>https://www.stress-free.co.nz/usb_devices_with_vmware_server_20_on_ubuntu</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;div class=&quot;image&quot;&gt;&lt;img src=&quot;/sites/default/files/u63/usb-logo.png&quot; alt=&quot;&quot; width=&quot;90&quot; height=&quot;91&quot; /&gt;&lt;/div&gt;
&lt;p&gt;One of the nice features of &lt;a href=&quot;http://www.vmware.com/products/server/&quot;&gt;VMWare Server 2.0&lt;/a&gt; is that it supports the forwarding of USB devices to virtual machines. Unfortunately when it comes to Linux the VMWare team have leveraged an old method (/proc/bus/usb) for scanning the USB bus which newer distributions, such as &lt;a href=&quot;https://bugs.launchpad.net/ubuntu/%2Bbug/157843&quot;&gt;Ubuntu Server 8.04 no longer support&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To resolve this problem the &quot;old&quot; method for scanning for USB devices must be enabled in the underlying operating system. In the case of Ubuntu Server 8.04 this is a case of editing the file &lt;strong&gt;/etc/init.d/mountdevsubfs.sh&lt;/strong&gt; and uncommenting the following section:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;#&lt;br /&gt; # Magic to make /proc/bus/usb work&lt;br /&gt; #&lt;br /&gt; mkdir -p /dev/bus/usb/.usbfs&lt;br /&gt; domount usbfs &quot;&quot; /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644&lt;br /&gt; ln -s .usbfs/devices /dev/bus/usb/devices&lt;br /&gt; mount --rbind /dev/bus/usb /proc/bus/usb&lt;/p&gt;
&lt;p&gt;Reboot the server and /proc/bus/usb should be functional once more.&lt;/p&gt;
&lt;h2&gt;Activating a USB device within a virtual machine&lt;/h2&gt;
&lt;p&gt;Once the underlying USB subsystem is configured the USB device needs to be associated with a virtual machine. For this to occur the virtual machine must have the USB Controller added to its virtual hardware configuration. If the controller is not already part of the virtual machine&#039;s configuration shutdown the VM, add the device and restart.&lt;/p&gt;
&lt;div class=&quot;centeredimage&quot;&gt;&lt;a href=&quot;/sites/default/files/u63/vmware-usb-lg.jpg&quot;&gt;&lt;img src=&quot;/sites/default/files/u63/vmware-usb-sm.jpg&quot; alt=&quot;&quot; width=&quot;400&quot; height=&quot;227&quot; /&gt;&lt;br /&gt;The VMWare web console with USB device selection (click to enlarge)&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Assuming there are USB devices attached to the server, once the virtual machine boots a small USB icon will appear within the VMWare web management console. Click on the icon and select the relevant USB device to attach it to the running virtual machine.&lt;/p&gt;
&lt;p&gt;All going well the USB device will appear within the virtual machine as an accessible device. VMWare Server remembers this selection, so the next time the virtual machine (or server itself) is restarted the USB device will automatically be attached to the running VM.&lt;/p&gt;
&lt;!--break--&gt;  &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/linux&quot;&gt;linux&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/virtualisation&quot;&gt;virtualisation&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/ubuntu&quot;&gt;ubuntu&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/usb&quot;&gt;usb&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/vmware&quot;&gt;vmware&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Mon, 17 Aug 2009 05:17:18 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">548 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>VMWare Server 2.0 optimisations</title>
 <link>https://www.stress-free.co.nz/vmware_server_20_optimisations</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;div class=&quot;image&quot;&gt;&lt;img src=&quot;/sites/default/files/u63/vmware_logo.png&quot; alt=&quot;&quot; width=&quot;150&quot; height=&quot;43&quot; /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.vmware.com/products/server/&quot;&gt;VMWare Server 2.0&lt;/a&gt; is emerging as a capable, zero cost alternative to VMWare ESX when used in combination with Ubuntu Server 8.04LTS. Unfortunately &quot;out of the box&quot; performance can be a little disappointing, especially when running guest Windows virtual machines. What follows are a few system tweaks that can improve performance without hampering overall system stability. I have not come up with these myself, instead they are pruned from the following pages:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;http://vmfaq.com/?View=entry&amp;amp;EntryID=25&quot;&gt;VMWare FAQ: I need more performance out of my VMware environment&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://communities.vmware.com/thread/171343&quot;&gt;VMWare Communities: Performance tuning in Server 2.0&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://kuparinen.org/martti/comp/ubuntu/en/server.html&quot;&gt;Ubuntu Server Installation with VMware Server&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;Kernel parameters&lt;/h2&gt;
&lt;p&gt;In addition to the default Ubuntu Server kernel parameters, the following should be appended to the end of &lt;strong&gt;/etc/sysctl.conf&lt;/strong&gt;.&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;vm.swappiness=0&lt;br /&gt; vm.overcommit_memory=1&lt;br /&gt; vm.dirty_background_ratio=5&lt;br /&gt; vm.dirty_ratio=10&lt;br /&gt; vm.dirty_expire_centisecs=1000&lt;br /&gt; dev.rtc.max-user-freq=1024&lt;/p&gt;
&lt;p&gt;Once added reboot the server to ensure their application is successful and permanent.&lt;/p&gt;
&lt;h2&gt;Create an in-memory temp drive&lt;/h2&gt;
&lt;p&gt;In the host&#039;s /tmp directory create a new directory named vmware (e.g. /tmp/vmware). This will be used as the mount point for a tmpfs (in-memory) partition for storing VM related, temporary files.&lt;/p&gt;
&lt;p&gt;Edit &lt;strong&gt;/etc/fstab&lt;/strong&gt; and add the /tmp/vmware partition to your list of mount points:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;tmpfs /tmp/vmware tmpfs defaults,size=100% 0 0&lt;/p&gt;
&lt;p&gt;Now if you execute the following command the tmpfs filesystem will be mounted at /tmp/vmware:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;sudo mount /tmp/vmware&lt;/p&gt;
&lt;p&gt;If successful, reboot the Ubuntu server to ensure the tmpfs partition is mounted at boot time.&lt;/p&gt;
&lt;h2&gt;VMWare Server configuration&lt;/h2&gt;
&lt;p&gt;Edit the /etc/vmware/config file and ensure the following configuration declarations are set:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;prefvmx.minVmMemPct = &quot;100&quot;&lt;br /&gt; prefvmx.useRecommendedLockedMemSize = &quot;TRUE&quot;&lt;br /&gt; mainMem.partialLazySave = &quot;TRUE&quot;&lt;br /&gt; mainMem.partialLazyRestore = &quot;TRUE&quot;&lt;br /&gt; tmpDirectory = &quot;/tmp/vmware&quot;&lt;br /&gt; mainMem.useNamedFile = &quot;FALSE&quot;&lt;br /&gt; sched.mem.pshare.enable = &quot;FALSE&quot;&lt;br /&gt; MemTrimRate = &quot;0&quot;&lt;br /&gt; MemAllowAutoScaleDown = &quot;FALSE&quot;&lt;/p&gt;
&lt;p&gt;These configuration declarations instruct VMWare Server to keep all virtual machines in memory and not to write unused blocks to disk. It also sets the temporary directory to the newly created tmpfs partition at /tmp/vmware.&lt;br /&gt;Restart the VMWare Server process (sudo /etc/init.d/vmware restart) or reboot the server for these changes to take effect. The net result should be notably smoother virtual machine performance, especially when it comes to Windows guests.&lt;/p&gt;
&lt;h2&gt;Virtual machine tips&lt;/h2&gt;
&lt;ul&gt;&lt;li&gt;Always use fully allocated disk images.&lt;/li&gt;
&lt;li&gt;Do not use snapshots as they are approximately 20% slower.&lt;/li&gt;
&lt;li&gt;Always install the VMWare Tools package.&lt;/li&gt;
&lt;li&gt;If running Linux make sure the kernel is compiled for running within a VM, or is using the &lt;a href=&quot;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1006427&quot;&gt;correct boot time parameters&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt; &lt;/p&gt;
&lt;!--break--&gt;  &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/linux&quot;&gt;linux&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/virtualisation&quot;&gt;virtualisation&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/ubuntu&quot;&gt;ubuntu&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/vmware&quot;&gt;vmware&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Sun, 19 Jul 2009 08:42:08 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">546 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>Remotely managing VMWare servers via SSH</title>
 <link>https://www.stress-free.co.nz/remotely_managing_vmware_servers_via_ssh</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;p&gt;As the cornerstone of any company&#039;s server infrastructure it is extremely rare to find VMWare servers (be they &lt;a href=&quot;http://www.vmware.com/products/server/&quot;&gt;Server&lt;/a&gt;, &lt;a href=&quot;http://www.vmware.com/products/vi/esx/&quot;&gt;ESX&lt;/a&gt; or &lt;a href=&quot;http://www.vmware.com/products/esxi/&quot;&gt;ESXi&lt;/a&gt;) directly exposed the the Internet. Generally these important services are hidden behind layers of protection which can make managing them when not onsite quite a challenge. Of course you could setup a VPN or use some remote desktop access software, but why bother when plain old SSH can do the job for you.&lt;/p&gt;
&lt;p&gt;Once you have SSH access to a system within the organisation&#039;s network it is a fairly simple task to create virtual tunnels to the VMWare servers. This is a secure way to manage the devices because all traffic goes through an encrypted tunnel and beyond the SSH service itself you are not interacting with any other internal services.&lt;/p&gt;
&lt;p&gt;Remote VMWare server access requires two SSH tunnels, an HTTPS tunnel (typically port 443) and a console tunnel (typically port 902). Below is a small script that you can use to create these tunnels from Linux, OSX or any other *NIX operating system.&lt;/p&gt;
&lt;p&gt;Copy and paste the following text into a file named vmware-manage.sh:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;#! /bin/sh&lt;br /&gt;&lt;br /&gt;# The local I.P. address for the tunnel endpoint&lt;br /&gt;LOCAL_IP=192.168.1.1&lt;br /&gt;&lt;br /&gt;# The SSH connection details&lt;br /&gt;SSH_USER=sshuser&lt;br /&gt;SSH_HOST=ssh.host.com&lt;br /&gt;SSH_PORT=62222&lt;br /&gt;&lt;br /&gt;# VMWare server configuration&lt;br /&gt;VMWARE_IP=$2&lt;br /&gt;VMWARE_WEB_PORT=443&lt;br /&gt;VMWARE_CONSOLE_PORT=902&lt;br /&gt;&lt;br /&gt;echo &quot;Managing VMWare server at $VMWARE_IP&quot;&lt;br /&gt;echo &quot;Accessible via $LOCAL_IP:$VMWARE_WEB_PORT&quot;&lt;br /&gt;echo &quot;Press CTRL+C to close&quot;&lt;br /&gt;&lt;br /&gt;case &quot;$1&quot; in&lt;br /&gt; console)&lt;br /&gt; sudo ssh -N -L $LOCAL_IP:$VMWARE_CONSOLE_PORT:$VMWARE_IP:$VMWARE_CONSOLE_PORT $SSH_USER@$SSH_HOST -p $SSH_PORT&lt;br /&gt; ;;&lt;br /&gt; web)&lt;br /&gt; sudo ssh -N -L $LOCAL_IP:$VMWARE_WEB_PORT:$VMWARE_IP:$VMWARE_WEB_PORT $SSH_USER@$SSH_HOST -p $SSH_PORT&lt;br /&gt; ;;&lt;br /&gt;esac&lt;/p&gt;
&lt;p&gt;At the top of the file edit the &lt;em&gt;LOCAL_IP&lt;/em&gt;, &lt;em&gt;SSH_USER&lt;/em&gt;, &lt;em&gt;SSH_HOST&lt;/em&gt; and &lt;em&gt;SSH_PORT&lt;/em&gt; variables to suit your specific setup.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;LOCAL_IP&lt;/strong&gt; - Typically your desktop&#039;s I.P. address (or 127.0.0.1).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SSH_USER&lt;/strong&gt; - The SSH user account to log in with.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SSH_HOST&lt;/strong&gt; - The hostname with the accessible SSH service.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SSH_PORT&lt;/strong&gt; - The port SSH is running on. For security run SSH on a non-standard port if facing the Internet (i.e. not 22).&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;Now flag this file as being executable:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;chmod a+x vmware-manage.sh&lt;/p&gt;
&lt;p&gt;To manage a VMWare server with an internal I.P. address of 10.1.1.5 run the following command:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;./vmware-manage.sh web 10.1.1.5&lt;/p&gt;
&lt;p&gt;You will be prompted for your local password (for sudo access) and the SSH password.&lt;/p&gt;
&lt;p&gt;Once created open a second console and create the second tunnel for console access:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;./vmware-manage.sh console 10.1.1.5&lt;/p&gt;
&lt;p&gt;You should no be able to access your VMWare server at https://192.168.1.1 (i.e. the &lt;em&gt;LOCAL_IP&lt;/em&gt; address value). Or if you are using the &lt;a href=&quot;/vmware_server_2_finally_goes_gold&quot;&gt;VI Client&lt;/a&gt; enter 192.168.1.1 as the server address.&lt;/p&gt;
&lt;p&gt;Once you have finished managing your system you can close the tunnels by pressing &lt;strong&gt;CTRL+C&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;!--break--&gt;  &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/virtualisation&quot;&gt;virtualisation&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/vmware&quot;&gt;vmware&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Sun, 19 Oct 2008 09:44:05 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">529 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>VMWare Server 2 finally goes gold</title>
 <link>https://www.stress-free.co.nz/vmware_server_2_finally_goes_gold</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;div class=&quot;image&quot;&gt;&lt;img src=&quot;/sites/default/files/u63/vmware_logo.png&quot; alt=&quot;&quot; width=&quot;150&quot; height=&quot;43&quot; /&gt;&lt;/div&gt;
&lt;p&gt;On September 23 after a year of public development &lt;a id=&quot;m9bh&quot; title=&quot;VMWare Server 2.0&quot; href=&quot;http://www.vmware.com/products/server/&quot;&gt;VMWare Server 2.0&lt;/a&gt; was &lt;a id=&quot;um:x&quot; title=&quot;&#039;final&#039; version&quot; href=&quot;http://www.vmware.com/support/server2/doc/releasenotes_vmserver2.html&quot;&gt;officially released&lt;/a&gt;. Server is VMWare&#039;s free, entry-level, server-centric hypervisor. Unlike VMWare&#039;s other server virtualisation products &lt;a id=&quot;l93e&quot; title=&quot;ESX&quot; href=&quot;http://www.vmware.com/products/vi/esx/&quot;&gt;ESX&lt;/a&gt; and &lt;a id=&quot;vzrk&quot; title=&quot;ESXi&quot; href=&quot;http://www.vmware.com/products/esxi/&quot;&gt;ESXi&lt;/a&gt;, Server must be pre-installed onto a host operating system (Windows or Linux). This adds a management and performance overhead, which for some is incentive enough to choose VMWare&#039;s more costlier offerings (or explore &lt;a id=&quot;vtth&quot; title=&quot;Xen&quot; href=&quot;http://www.xen.org/&quot;&gt;Xen&lt;/a&gt;). However if you are looking to easily virtualise a handful of servers and do not mind a small performance hit, VMWare Server is a great place to begin.&lt;/p&gt;
&lt;p&gt;In comparison to &lt;a id=&quot;thdb&quot; title=&quot;VMWare Server 1 (a.ka. GST)&quot; href=&quot;http://www.vmware.com/company/news/releases/server_beta.html&quot;&gt;VMWare Server 1&lt;/a&gt; (a.k.a GSX) this new release appears to be a complete rewrite. However when first announced the new version received a mixed response as many existing users viewed it as slow, bloated and buggy compared to its predecessor. Ignoring the bugs which come with any beta-quality code, the majority of this criticism fell into two areas: the new web-based management console and a 500MB+ download (up from ~100MB).&lt;/p&gt;
&lt;h2&gt;Web-centric virtualisation management&lt;/h2&gt;
&lt;p&gt;Without a doubt the most controversial aspect of VMWare Server 2 is its focus on a web-based management console. In the previous release management was primarily conducted through a Windows-only client with a token web interface provided to view what was running. This new interface enables all of the hypervisor&#039;s functionality to be managed and monitored from any modern, Javascript-enabled browser. The only cavet being that virtual machine console access requires an ActiveX or Firefox extension (Windows/Linux only). Process-wise this is a little disjointed as a browser restart is needed when this extension is first installed. Whilst not a major problem this two-step process does take the shine from being able to manage your virtual infrastructure from &#039;any&#039; computer.&lt;/p&gt;
&lt;div class=&quot;centeredimage&quot;&gt;&lt;a href=&quot;/sites/default/files/u63/vmwareserver-1_lg.jpg&quot;&gt; &lt;img src=&quot;/sites/default/files/u63/vmwareserver-1_sm.jpg&quot; alt=&quot;&quot; width=&quot;400&quot; height=&quot;310&quot; /&gt;&lt;br /&gt; The web administration console (click to enlarge)&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;As an aside given the variety of Java-based SSH, VNC and remote client applets it is a little surprising to see VMWare go the ActiveX/Firefox extension route. Whilst I have not tried the ActiveX control, the Firefox extension is large and feels sluggish when running in both Windows and Linux. Still the ability to setup and manage VMWare from something other than Windows is a definite bonus. However as an OSX user it would be nice to see VMWare management support on this platform as well.&lt;/p&gt;
&lt;div class=&quot;centeredimage&quot;&gt;&lt;a href=&quot;/sites/default/files/u63/vmwareserver-2_lg.jpg&quot;&gt; &lt;img src=&quot;/sites/default/files/u63/vmwareserver-2_sm.jpg&quot; alt=&quot;&quot; width=&quot;400&quot; height=&quot;254&quot; /&gt;&lt;br /&gt; The Firefox extension for virtual console access (click to enlarge)&lt;/a&gt;&lt;/div&gt;
&lt;!--break--&gt;
&lt;h2&gt;But wait, VI Client to the rescue&lt;/h2&gt;
&lt;p&gt;If you are used to a traditional Windows client or just cannot stand the new web interface you will be glad to hear it is possible to manage Server 2 from the Virtual Infrastructure Client. The VI Client is very polished and feels far more responsive than the web interface for administration and console tasks. It also comes with some very nice realtime monitoring tools that graph hardware utilisation at a VM and host level. Whilst personal preference, if you manage VMWare from Windows I suggest ignoring the web interface altogether and heading straight to the VI Client.&lt;/p&gt;
&lt;div class=&quot;centeredimage&quot;&gt;&lt;a href=&quot;/sites/default/files/u63/vmwareserver-3_lg.jpg&quot;&gt; &lt;img src=&quot;/sites/default/files/u63/vmwareserver-3_sm.jpg&quot; alt=&quot;&quot; width=&quot;400&quot; height=&quot;250&quot; /&gt;&lt;br /&gt; The VI Client running against VMWare Server 2.0 (click to enlarge)&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;Server 2 comes with the VI Client which can be downloaded from: &lt;strong&gt;http://your.vmware.server/client/VMware-viclient.exe&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;Does a 500MB download represent a bloated hypervisor?&lt;/h2&gt;
&lt;p&gt;The five fold jump in installer size gave many the impression that the new hypervisor would leave no free resources for the virtual machines it was intended to run. In reality this is far from the case, with the increased download size attributable an enhanced feature-set and broader guest operating system support. The installer size is also not helped by the packaging all software dependencies such as &lt;a id=&quot;e0wg&quot; title=&quot;Java&quot; href=&quot;http://java.sun.com/j2se/1.5.0/&quot;&gt;Java&lt;/a&gt;, &lt;a id=&quot;ay1c&quot; title=&quot;Tomcat&quot; href=&quot;http://tomcat.apache.org/&quot;&gt;Tomcat&lt;/a&gt; and &lt;a id=&quot;o56o&quot; title=&quot;VIX&quot; href=&quot;http://www.vmware.com/support/developer/vix-api/&quot;&gt;VIX&lt;/a&gt; rather than relying on these to be installed independently.&lt;/p&gt;
&lt;p&gt;The end result is that an installation of VMWare Server 2 will consume more disk space than its predecessor, but it does not use excessive amounts of CPU or memory. For example the primary &#039;vmware-hostd&#039; process consumes approximately 130MB of memory and the Java web console 64MB. Assuming you are running a slim host O/S such as Ubuntu 8.04 Server this leaves plenty of memory and CPU cycles for virtual machines.&lt;/p&gt;
&lt;h2&gt;Ubuntu Server, the perfect VMWare host&lt;/h2&gt;
&lt;p&gt;For the last six months I have had great success with &lt;a id=&quot;eqfi&quot; title=&quot;Ubuntu Server 8.04&quot; href=&quot;http://www.ubuntu.com/getubuntu/download&quot;&gt;Ubuntu Server 8.04&lt;/a&gt; as the host operating system. The default installation of Ubuntu Server is very light-weight and has extensive hardware support. To top it off Ubuntu 8.04 is a Long Term Release (LTS) which is supported by Canonical until 2013. VMWare Server 2 comes with pre-compiled kernel modules for Ubuntu 8.04 making installation a breeze. The only thing you need to do prior to installing VMWare Server is install the &lt;strong&gt;make&lt;/strong&gt; package:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;sudo apt-get install make&lt;/p&gt;
&lt;p&gt;Whilst nothing needs to be compiled for VMWare Server to run, the installer does not like it when the make tool is not present. Apart from this minor distraction installation goes smoothly on both 32bit and 64bit variants of Ubuntu &amp;amp; VMWare Server.&lt;/p&gt;
&lt;h2&gt;A couple of VMWare tips&lt;/h2&gt;
&lt;h3&gt;1. Keep your host machine &#039;clean&#039;&lt;/h3&gt;
&lt;p&gt;For best performance only run the bare minimum on the host operating system. If possible stick to a cut down server O/S like Ubuntu Server instead of Windows or a full blown X-Windows Linux install.&lt;/p&gt;
&lt;h3&gt;2. Run optimised kernels on Linux virtual machines&lt;br /&gt;&lt;/h3&gt;
&lt;p&gt;The 2.6 Linux kernel introduced a 1000Hz clock ticker that is great for desktop performance but a drain on a hypervisor. Not only does this degrade overall performance but it can lead to weird (fast or slow) clocks in the virtual machines themselves. VMWare is optimised for a 100Hz clock so try to run a kernel optimised for virutalisation or set the &lt;a id=&quot;mk7o&quot; title=&quot;following kernel parameters&quot; href=&quot;http://viops.vmware.com/home/docs/DOC-1143&quot;&gt;following kernel parameters&lt;/a&gt;: &quot;&lt;strong&gt;clock=pmtmr divider=10&lt;/strong&gt;&quot;.&lt;/p&gt;
&lt;p&gt;For example if you are using Grub as your Linux virtual machine&#039;s bootloader it would look something like this:&lt;br /&gt;&lt;strong&gt;/boot/grub/menu.lst&lt;/strong&gt; &lt;em&gt;(in this example a Centos 5.2 VM)&lt;/em&gt;&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;default=0&lt;br /&gt; timeout=5&lt;br /&gt; splashimage=(hd0,0)/grub/splash.xpm.gz&lt;br /&gt; hiddenmenu&lt;br /&gt; title CentOS (2.6.18-92.1.13.el5)&lt;br /&gt; root (hd0,0)&lt;br /&gt; kernel /vmlinuz-2.6.18-92.1.13.el5 ro root=/dev/VolGroup00/LogVol00 clock=pmtmr divider=10&lt;br /&gt; initrd /initrd-2.6.18-92.1.13.el5.img&lt;/p&gt;
&lt;p&gt;* divider=10 instructs a 2.6 Linux kernel to check the hardware clock every 100Hz (1000Hz/10).&lt;/p&gt;
&lt;h3&gt;3. Install VMWare Tools&lt;/h3&gt;
&lt;p&gt;Take the time to install VMWare Tools on each of your virtual machines. This package has a decent network driver that removes some of the shortcomings of using a virtualised network interface. If you are running virtual machines with a graphical interface (i.e. Windows) you will also notice significantly improved performance.&lt;/p&gt;
&lt;h3&gt;4. Always use SCSI hard drive controllers in your virtual machines&lt;/h3&gt;
&lt;p&gt;Whilst it is possible to define an IDE hard drive controller within your virtual machine you run the risk of encountering issues when migrating from VMWare Server to ESX/ESXi. This is not an issue if you will only ever be using VMWare Server, but to be sure just stick to the default SCSI controller.&lt;/p&gt;
&lt;h3&gt;5. Do not overload RAM&lt;/h3&gt;
&lt;p&gt;Whilst it is possible to allocate more virtual RAM than your server actually has this is not a good idea. Hard drive access is far slower than memory, so if possible do not impose this bottleneck on your virtual machines.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;VMWare Server 2.0 has come a long way since its early beta releases. Virtual machine performance is very good especially once VMWare Tools is installed and the kernel optimised (if Linux). A lot of work has obviously gone into the web interface and although it is not mind-blowing it does work pretty well. However if you are managing your VMWare infrastructure with Windows you will find the VI Client is superior in terms of functionality and performance. Overall for a free (&lt;a id=&quot;quo:&quot; title=&quot;as in beer&quot; href=&quot;http://en.wikipedia.org/wiki/Gratis_versus_Libre#.22Free_as_in_beer.22.2C_.22free_as_in_speech.22&quot;&gt;as in beer&lt;/a&gt;) hypervisor VMWare Server 2.0 provides a simple and reliable introduction to virtualisation. Also its compatability with VMWare&#039;s &lt;a id=&quot;seuc&quot; title=&quot;Virtual Intrastructure&quot; href=&quot;http://www.vmware.com/products/vi/&quot;&gt;Virtual Intrastructure&lt;/a&gt; ensures that it is easy (but not cheap) to scale your virtual machines well beyond one or two physical hosts.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;  &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/virtualisation&quot;&gt;virtualisation&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/ubuntu&quot;&gt;ubuntu&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/vmware&quot;&gt;vmware&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Sun, 05 Oct 2008 08:46:03 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">525 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>Installing VMWare Server 1.0 on Ubuntu 6.06LTS</title>
 <link>https://www.stress-free.co.nz/installing_vmware_server_10_on_ubuntu_606lts</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;div class=&quot;image&quot;&gt;&lt;img title=&quot;undefined&quot; onmouseover=&quot;undefined&quot; onmouseout=&quot;undefined&quot; src=&quot;/sites/default/files/u63/vmware-ubuntu.jpg&quot; alt=&quot;&quot; width=&quot;214&quot; height=&quot;90&quot; /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;http://www.ubuntu.com/products/WhatIsUbuntu/serveredition&quot;&gt;Ubuntu 6.06LTS&lt;/a&gt; is a useful platform for VMWare because it has a small footprint by todays standards and is supported by Canonical until 2011. Unfortunately installing VMWare Server 1.0 can be a little painful given there are no binary kernel modules for Ubuntu in this release.&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;Fortunately there are some excellent guides for installing VMWare on this platform such as &lt;a style=&quot;text-decoration: none; color: #336699&quot; href=&quot;http://www.howtoforge.com/ubuntu_vmware_server&quot;&gt;this one from HowtoForge&lt;/a&gt;. What follows is an installation script based on the HowtoForge guide that saves the administrator a lot of time and solves a bug along the way.&lt;/p&gt;
&lt;!--break--&gt;
&lt;h2 style=&quot;margin-bottom: 0.5em; font-size: 1.2em&quot;&gt;Build your Ubuntu server&lt;br /&gt;&lt;/h2&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;A basic install of 6.06LTS is pretty light weight and by default doesn&#039;t have anything running that isn&#039;t needed. A few things that you may want to install is the openssh-server package for remote access and ntp-server for keeping your system clock accurate.&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;sudo apt-get install openssh-server ntp-server&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;By default Ubuntu 6.06 configures its network via DHCP which is fine for a desktop system but probably not ideal for a server. To set a static IP address edit the &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold&quot;&gt;/etc/network/interfaces&lt;/span&gt; file and set the relevant static network interface and address parameters. For example:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;iface eth0 inet static&lt;br /&gt;address 192.168.1.10&lt;br /&gt;netmask 255.255.255.0&lt;br /&gt;network 192.168.1.0&lt;br /&gt;broadcast 192.168.1.255&lt;br /&gt;gateway 192.168.1.1&lt;/p&gt;
&lt;p&gt;Also check the &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: bold&quot;&gt;/etc/resolv.conf&lt;/span&gt; file contains the correct DNS server details before restarting the network interfaces with:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;sudo /etc/init.d/network restart&lt;/p&gt;
&lt;h2 style=&quot;margin-bottom: 0.5em; font-size: 1.2em&quot;&gt;The VMWare Installation Script&lt;br /&gt;&lt;/h2&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;1. Create a vmware directory somewhere handy to store the installation files, your home directory is a good place. Once the installation is complete you can remove this directory although it is worth making a backup should you wish to install VMWare again.&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;2.Download the Linux tar archives of VMWare Server 1.0 and the Management User Interface (MUI) from the &lt;a href=&quot;http://www.vmware.com/download/server/&quot;&gt;VMWare website&lt;/a&gt;. The current stable release of VMWare Server at the time of writing was version 1.0.4-56528. Also as you are downloading remember to record your serial code as this will be needed during the installation process.&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;3. In the same directory where you have downloaded these install archives create a new file named &lt;span style=&quot;font-weight: bold&quot;&gt;rundir.httpd.vmware&lt;/span&gt; with the following contents:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;#! /bin/sh&lt;br /&gt;# /var/run gets purged at every reboot!&lt;br /&gt;&lt;br /&gt;RUNDIR=&quot;/var/run/vmware/httpd&quot;&lt;br /&gt;OWNER=&quot;www-data&quot;&lt;br /&gt;GROUP=&quot;www-data&quot;&lt;br /&gt;&lt;br /&gt;/usr/bin/test -d &quot;$RUNDIR&quot; || \&lt;br /&gt;/bin/mkdir -p &quot;$RUNDIR&quot; &amp;amp;&amp;amp; /bin/chown &quot;$OWNER:$GROUP&quot; &quot;$RUNDIR&quot;&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;This file is copied to the /etc/init.d/ directory by the installation script and overcomes an permissions issue which stops the VMWare MUI from loading.&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;4. Now create a file called &lt;span style=&quot;font-weight: bold&quot;&gt;install-vmare.sh&lt;/span&gt; with the following contents:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;#! /bin/sh&lt;br /&gt;TMP=&quot;/tmp&quot;&lt;br /&gt;VERSION=&quot;1.0.4-56528&quot;&lt;br /&gt;&lt;br /&gt;echo &quot;Installing VMware Server for Ubuntu 6.06&quot;&lt;br /&gt;&lt;br /&gt;echo &quot;Installing application requirements&quot;&lt;br /&gt;echo &quot;---------------------------------------------------&quot;&lt;br /&gt;echo &quot;Installing dev headers and xinetd...&quot;&lt;br /&gt;sudo apt-get -y install libx11-6 libx11-dev libxtst6 xlibs-dev xinetd wget&lt;br /&gt;echo &quot;---------------------------------------------------&quot;&lt;br /&gt;&lt;br /&gt;echo &quot;Installing Linux Kernel headers...&quot;&lt;br /&gt;sudo apt-get -y install linux-headers-`uname -r` build-essential&lt;br /&gt;echo &quot;---------------------------------------------------&quot;&lt;br /&gt;&lt;br /&gt;echo &quot;Installing build utilities...&quot;&lt;br /&gt;sudo apt-get -y install gcc binutils-doc cpp-doc make manpages-dev autoconf \&lt;br /&gt;automake1.9 libtool flex bison gdb gcc-doc gcc-4.0-doc libc6-dev-amd64 lib64gcc1&lt;br /&gt;&lt;br /&gt;# Install VMWare Server&lt;br /&gt;echo &quot;---------------------------------------------------&quot;&lt;br /&gt;echo &quot;Uncompressing the VMware Server $VERSION archive...&quot;&lt;br /&gt;&lt;br /&gt;# Copy files to revelant locations&lt;br /&gt;cp VMware-server-$VERSION.tar.gz $TMP&lt;br /&gt;cp VMware-mui-$VERSION.tar.gz $TMP&lt;br /&gt;sudo cp rundir.httpd.vmware /etc/init.d/&lt;br /&gt;&lt;br /&gt;cd $TMP&lt;br /&gt;tar -xzf VMware-server-$VERSION.tar.gz&lt;br /&gt;rm VMware-server-$VERSION.tar.gz&lt;br /&gt;&lt;br /&gt;echo &quot;---------------------------------------------------&quot;&lt;br /&gt;echo &quot;Installing VMware Server $VERSION...&quot;&lt;br /&gt;cd vmware-server-distrib&lt;br /&gt;sudo ./vmware-install.pl&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Install the VMWare web management console&lt;br /&gt;echo &quot;---------------------------------------------------&quot;&lt;br /&gt;&lt;br /&gt;echo &quot;Uncompressing the VMware MUI $VERSION archive...&quot;&lt;br /&gt;&lt;br /&gt;cd $TMP&lt;br /&gt;tar -xzf VMware-mui-$VERSION.tar.gz&lt;br /&gt;rm VMware-mui-$VERSION.tar.gz&lt;br /&gt;&lt;br /&gt;echo &quot;---------------------------------------------------&quot;&lt;br /&gt;echo &quot;Installing VMware MUI $VERSION...&quot;&lt;br /&gt;&lt;br /&gt;# Configure the MUI rundir fix&lt;br /&gt;sudo chmod 755 /etc/init.d/rundir.httpd.vmware&lt;br /&gt;sudo ln -s /etc/init.d/rundir.httpd.vmware /etc/rc2.d/S90rundir.httpd.vmware&lt;br /&gt;&lt;br /&gt;cd vmware-mui-distrib&lt;br /&gt;sudo ./vmware-install.pl&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;echo &quot;---------------------------------------------------&quot;&lt;br /&gt;echo &quot;Cleaning up...&quot;&lt;br /&gt;cd $TMP&lt;br /&gt;rm -rf vmware-server-distrib&lt;br /&gt;rm -rf vmware-mui-distrib&lt;br /&gt;echo &quot;---------------------------------------------------&quot;&lt;br /&gt;echo &quot;VMWare installation complete&quot;&lt;br /&gt;&lt;br /&gt;echo &quot;&quot;&lt;br /&gt;echo &quot;To administer VMWare you will need to either:&quot;&lt;br /&gt;echo &quot;1. Enable root logon access (sudo passwd root)&quot;&lt;br /&gt;echo &quot;2. Set set the uid of a designated user to 0 (sudo nano /etc/passwd)&quot;&lt;br /&gt;echo &quot;&quot;&lt;br /&gt;echo &quot;&quot;&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;This is the script that handles installation of all the required dependencies, kernel sources and VMWare packages.&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;NOTE:&lt;/span&gt; You may need to tweak the TMP and VERSION variables to suit your server environment and downloaded VMWare version.&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;5. Finally enable execute permissions on this file and run the script:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;chmod a+x install-vmware.sh./install-vmware.sh&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;The script will prompt you for your password in order to gain administrator privileges (sudo). It will then install all the required packages via apt before copying the rundir.http.vmware file into the correct location and running the VMWare installers.&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;For the most part the default VMWare install options can be accepted without much thought. The only settings that may need tweaking is the location of the VMWare images (default /var/lib/vmware/Virtual Machines) and the MUI&#039;s default login time of 60 minutes which seems a little long for my liking (15 minutes would seem more appropriate).&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;All going well at the end of the process you should have a fully functional VMWare Server with a web management console operating at https://server-ip-address:8333/. Whilst you cannot create or install virtual machines via the web console you can download the Windows or Linux VMWare Console installers which will get you going.&lt;/p&gt;
&lt;h2&gt;Kernel Updates&lt;/h2&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;Be aware that each time you upgrade the Ubuntu kernel to a different version the VMWare kernel module must be recompiled. After upgrading your kernel and rebooting the system you will find VMWare fails to load. At this point do not panic, it only takes a few steps to rectify the situation.&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;1. First download the headers for your current kernel.&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;sudo apt-get install linux-headers-`uname -r`&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;2. Now run the vmware-config.pl script, accept the default settings and rebuild the VMWare kernel module.&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;sudo vmware-config.pl&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt;Once this script completes VMWare should once again be operational. The only thing left to do is remove the old kernel headers if you feel you won&#039;t be needing them again:&lt;/p&gt;
&lt;p class=&quot;codesnippet&quot;&gt;sudo apt-get remove linux-headers-(old kernel version)&lt;/p&gt;
&lt;p style=&quot;margin-top: 0.5em; margin-bottom: 0.9em&quot;&gt; &lt;/p&gt;  &lt;/div&gt;

&lt;ul class=&quot;field-taxonomy-vocabulary-1&quot;&gt;

      &lt;li&gt;
      &lt;a href=&quot;/tech/linux&quot;&gt;linux&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tutorials&quot;&gt;software tutorials&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/virtualisation&quot;&gt;virtualisation&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/vmware&quot;&gt;vmware&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Wed, 23 Jan 2008 09:04:58 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">476 at https://www.stress-free.co.nz</guid>
</item>
</channel>
</rss>
