<?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 - virtualisation</title>
 <link>https://www.stress-free.co.nz/tech/virtualisation</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>
<item>
 <title>Parallels update brings Windows CAD to the OSX desktop</title>
 <link>https://www.stress-free.co.nz/parallels_update_brings_windows_cad_to_the_osx_desktop</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;p&gt;Parallels released an update today for their &lt;a href=&quot;http://www.parallels.com/en/products/workstation/mac/&quot;&gt;Parallels Desktop for Mac&lt;/a&gt; virtualisation software which introduced &#039;coherence&#039; mode and seriously improved video drivers capable of supporting DirectX. To give the new features a test drive I installed &lt;a href=&quot;http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=4086277&quot;&gt;Autodesk Design Review&lt;/a&gt;, &lt;a href=&quot;http://usa.autodesk.com/adsk/servlet/index?siteID=123112&amp;amp;id=3781831&quot;&gt;Revit 9.1&lt;/a&gt; (trial version) and &lt;a href=&quot;http://www.bentley.com/en-US/Products/Bentley+View/&quot;&gt;Bentley View&lt;/a&gt; on the virtual instance of Windows XP and had a play. All performed very well even with minimal RAM allocated for testing purposes. Quite possibly the only let down was that before you could start using the software the virtual machine first had to load Windows. &lt;/p&gt;&lt;div style=&quot;text-align: center&quot;&gt;&lt;object width=&quot;425&quot; height=&quot;350&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/JoKJjx7VRCc&quot; /&gt;&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;&lt;embed src=&quot;http://www.youtube.com/v/JoKJjx7VRCc&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; width=&quot;425&quot; height=&quot;350&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;p&gt;The screencast above illustrates the boot process, coherence mode, Design Review and Revit in action. The screencast was taken at a fairly low frame rate and YouTube just makes it all that worse. Please take my word for it that performance on a 1.83 Intel Core Duo iMac was fairly snappy even with only 256meg of RAM assigned to the VM. In a production environment you would certainly want to allocate at least 512meg of RAM to Parallels which would mean needing between 1.5/2gig of RAM in the Mac. &lt;/p&gt;&lt;p&gt;Whilst I would hardly recommend to architects that they should use their primary productivity application in a virtualised window, from the perspective of those Mac users who need to occasionally use a piece of Windows only software this level of functionality and performance from Parallels is perfect. Sure it is not nearly as quick as running natively, but then you don&#039;t have instant access to all of OSX&#039;s niceties that you begin to miss once forced to work on a Windows desktop for a little while.&lt;br /&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/osx&quot;&gt;osx&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/cad&quot;&gt;cad&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Wed, 28 Feb 2007 08:24:20 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">415 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>XenExpress - the fast lane of Xen virtualisation</title>
 <link>https://www.stress-free.co.nz/xenexpress_the_fast_lane_of_xen_virtualisation</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
    &lt;p&gt;The open source &lt;a href=&quot;http://www.xensource.com/products/xen/&quot;&gt;Xen virtualisation&lt;/a&gt; suite has caused a bit of a stir within the Linux world because it combines the power of &lt;a href=&quot;http://www.vmware.com/&quot;&gt;VMWare&lt;/a&gt; without the proprietary code and cost hassles. Unfortunately Xen is not the most user friendly thing in the world to setup or configure. For a large organisation this is not so much of a problem because they can afford to hire expensive consultants or train their in-house staff. For smaller players or individuals interested in the concept but unwilling to invest hours into training XenSource have released &lt;a href=&quot;http://www.xensource.com/products/xen_express/&quot;&gt;XenExpress&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;XenExpress fits on a single CD and can be downloaded without charge from the XenSource website (they do however ask for a few contact details). To setup your very own Xen host you just boot the computer from the CD, answer a few configuration questions like time and network setup and then just sit back and watch as XenExpress turns your computer into a fully functional Xen platform (for further instructions &lt;a href=&quot;http://www.howtoforge.com/virtualization_with_xenexpress&quot;&gt;checkout this howto&lt;/a&gt;). After installation is complete configuration of the Xen host occurs remotely via a Java desktop application that runs on Windows, Linux or after a little hacking OSX. Most of the basic Xen tasks like virtual instance management and system maintenance can be accomplished through the interface without much effort or reference to the user guide. If you are an advanced user you can also bring up a terminal on the Xen host and run your normal Linux commands as at its heart XenExpress appears to be a slimmed down Red Hat distribution.&lt;!--break--&gt;&lt;/p&gt;&lt;div class=&quot;centeredimage&quot;&gt;&lt;a href=&quot;/sites/default/files/u63/xenexpress1_lg.jpg&quot;&gt;&lt;img src=&quot;/sites/default/files/u63/xenexpress1_sm.jpg&quot; alt=&quot;&quot; width=&quot;400&quot; height=&quot;300&quot; /&gt;&lt;br /&gt;The XenServer Client on Windows displaying the properties of an instance &lt;/a&gt;&lt;/div&gt;&lt;p&gt;XenExpress is a free product and as such it is digitally handicapped when compared to its more expensive siblings. From a hardware perspective only 4gig of RAM is supported which limits the number of simultaneous instances that can be run. At the software level only Debian, Windows and Red Hat instances can be installed from scratch whilst existing Suse Enterprise 9 servers can be migrated onto the server (but not created from scratch). &lt;/p&gt;&lt;p&gt;Installation of a Debian instance is the easiest option as a base copy of the OS is installed on the server ready to use. This means after a couple of mouse clicks and a few minutes waiting a Debian instance will be installed, booted and ready to use. For a new user who just wants to experiment with what virtualisation is all about this functionality is excellent. Experienced users will soon find limitations with this approach but their needs are better meet by the XenServer and XenEnterprise software packages. On a side note existing installations of XenExpress can be upgraded to XenServer through the purchase of a license key which means one can easily shift prototype boxes into production should the need arise without a complete reinstall.&lt;/p&gt;&lt;div class=&quot;centeredimage&quot;&gt;&lt;a href=&quot;/sites/default/files/u63/xenexpress2_lg.jpg&quot;&gt;&lt;img src=&quot;/sites/default/files/u63/xenexpress2_sm.jpg&quot; alt=&quot;&quot; width=&quot;400&quot; height=&quot;300&quot; /&gt;&lt;br /&gt;The XenServer client on Windows showing a text console on a Debian instance straight after installation. &lt;/a&gt;&lt;/div&gt;&lt;p&gt;In order to run Windows XP SP2 or Windows 2003 you must be using an &lt;a href=&quot;http://wiki.xensource.com/xenwiki/HVM_Compatible_Processors&quot;&gt;HVM compatible processor&lt;/a&gt;. This rules out Windows virtualisation on anything except for the latest hardware but still its great that such functionality is available in the open source world these days. Another drawback of XenExpress is that it only supports network installations of Red Hat Linux. This means that if you want to run up a Red Hat instance you must first copy your CD media to an FTP or SMB share. This is not a huge pain but it would be nice if you could just install from CD especially given the target market for XenExpress is the casual user. Although I did not try it my guess is &lt;a href=&quot;http://www.centos.org/&quot;&gt;Centos&lt;/a&gt; will also install using the Red Hat template which means you can run a commercial grade Linux distribution without the commercial licensing fees.&lt;/p&gt;&lt;div class=&quot;centeredimage&quot;&gt;&lt;a href=&quot;/sites/default/files/u63/xenexpress3_lg.jpg&quot;&gt;&lt;img src=&quot;/sites/default/files/u63/xenexpress3_sm.jpg&quot; alt=&quot;&quot; width=&quot;400&quot; height=&quot;300&quot; /&gt;&lt;br /&gt;The XenClient on OpenSuse 10.1 displaying some operating statistics of the Xen host &lt;/a&gt;&lt;/div&gt;&lt;p&gt;I was really impressed by XenExpress as it made the process of setting up the base Xen host quick and completely painless. I did experience one problem on my test box which was the DMA support was not enabled on the IDE drives. Hopefully these teething pains will be cleaned up as the product matures as things like this will put new users off the product and virtualisation. The XenExpress client interface was very good and quite snappy, I especially liked the fact it combined Text Console, Graphical Console (VNC) and server statistics into a single, well laid out control panel. One major limiting factor with the XenExpress client interface is that is designed to work with a single server rather than operate at a cluster level. Whilst this is limiation is not present in the XenServer and XenEnterprise packages still it would be nice to have the ability to monitor and manage two servers in XenExpress. Going even further it would be really nice to be presented with the option to easily migrate Xen instances between these two servers (through seamless export/import). This would allow even inexperienced users to begin to appreciate the true power of Xen (and hypervisors in general) which is its ability to completely differentiate hardware decisions (i.e. upgrades and retirements) from the operating environment.  &lt;/p&gt;&lt;p&gt;At the end of the day XenExpress won&#039;t suit you if you are looking for a highly customisable Xen server platform. If on the other hand you are an curious home user or someone looking for a quick and easy way getting into virtualisation then XenExpress is in my view the best way of getting your feet wet. You won&#039;t be presented with hundreds of options and in less time that it takes to read and understand the &lt;a href=&quot;http://tx.downloads.xensource.com/downloads/docs/user/&quot;&gt;Xen documentation&lt;/a&gt; you can have a Xen host with a couple of Debian instances up and running ready to play with.  &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/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/xen&quot;&gt;xen&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Sun, 21 Jan 2007 04:19:54 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">383 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>Parallels on OSX and OpenSUSE 10.1 experimenting</title>
 <link>https://www.stress-free.co.nz/parallels_on_osx_and_opensuse_10_1_experimenting</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
      &lt;p&gt;I have been trying out SuSE 10.1 on my iMac with the Release Candidate version of &lt;a href=&quot;http://www.parallels.com/&quot;&gt;Parallels&lt;/a&gt;. Parallels is awesome, there is nothing like being able to play with (and blow away) Linux and Windows at almost full speed directly within OSX. On the PowerPC I have used Virtual PC and the Intel iMac has also &lt;a href=&quot;https://www.stress-free.co.nz/node/256/2/&quot;&gt;gone through Bootcamp&lt;/a&gt; but Parallels is far and away a better solution for most tasks (you would not want to run games through Parallels).    &lt;br /&gt;From a website design perspective it really eases the testing of html/css in all four major environments (Windows Explorer, Firefox, Linux Konquerer and OSX Safari).    &lt;br /&gt;&lt;br /&gt;One new default feature in OpenSUSE 10.1 that is really very cool is AppArmor. It makes the task of securing server and client based applications simple through the automatic creation of application-based rules (i.e. Firefox can execute these files, modify these files and access these devices). The &lt;a href=&quot;http://susediary.blogspot.com/2006/05/securing-applications-with-apparmor.html&quot;&gt;SUSE Diary has a nicely written tutorial&lt;/a&gt; introducing the application and describing how to easily create rulesets.&lt;/p&gt;  &lt;p&gt;Through proper use it can protect systems from zero day exploits and just stop users from doing dumb things. It is definitely a huge feature that will appeal to corporate users, rather than messing around with file permission and access levels directly, you just tell the kernel what you want the application to be able to do and it looks after it from there. In theory these rulesets can be managed centrally from Zen (they are just simple text files) but I don&#039;t think Novell have released details on this.    &lt;br /&gt;&lt;br /&gt;Also the Jem Report have a useful article describing &lt;a href=&quot;http://www.thejemreport.com/mambo/node/254/42/&quot;&gt;how to get your OpenSUSE 10.1 install up to speed&lt;/a&gt; with all the packages you may need (Java, mp3, etc.). OpenSUSE have begun to make this task easier with their &#039;Add-On&#039; CD but still it is nice to have a single document that lists all the optional features available.    &lt;br /&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/suse&quot;&gt;suse&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/security&quot;&gt;security&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/osx&quot;&gt;osx&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;/ul&gt;
</description>
 <pubDate>Tue, 23 May 2006 20:53:17 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">276 at https://www.stress-free.co.nz</guid>
</item>
<item>
 <title>The Art of Xen</title>
 <link>https://www.stress-free.co.nz/the_art_of_xen</link>
 <description>
  &lt;div class=&quot;field-body&quot;&gt;
      &lt;div class=&quot;image&quot;&gt;&lt;a href=&quot;http://www.cl.cam.ac.uk/Research/SRG/netos/xen/&quot;&gt;&lt;img src=&quot;/sites/default/files/images/news/xen.png&quot; border=&quot;0&quot; alt=&quot;xen.png&quot; hspace=&quot;0&quot; vspace=&quot;0&quot; width=&quot;150&quot; height=&quot;74&quot; /&gt;&lt;/a&gt;&lt;/div&gt;In order to &lt;a href=&quot;/node/240/&quot;&gt;install Zimbra&lt;/a&gt; without issues I had to setup &lt;a href=&quot;http://www.cl.cam.ac.uk/Research/SRG/netos/xen/&quot;&gt;Xen&lt;/a&gt; on my server. This was actually a good thing because I had been thinking of doing so for a while after experimenting with it last year.  &lt;p&gt;Setting up Xen on OpenSUSE is relatively straightforward if you follow the Xen howto on the Wiki: &lt;a href=&quot;http://en.opensuse.org/Installing_Xen3&quot;&gt;http://en.opensuse.org/Installing_Xen3&lt;/a&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;The latest Xen OpenSUSE 10 files can be downloaded from here:    &lt;br /&gt;&lt;a href=&quot;http://www.suse.de/~garloff/linux/xen/RPMs-100/&quot;&gt;http://www.suse.de/~garloff/linux/xen/RPMs-100/&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;For my setup I have used the following /etc/fstab file on my virtual server:&lt;/p&gt;  &lt;p class=&quot;codesnippet&quot;&gt;/dev/hda1       /                reiserfs acl,user_xattr      1 1    &lt;br /&gt; /dev/hda2       swap         swap     defaults              0 0    &lt;br /&gt;proc               /proc          proc       defaults              0 0    &lt;br /&gt;sysfs              /sys           sysfs      noauto                0 0    &lt;br /&gt;usbfs             /proc/bus/usb        usbfs      noauto              0 0    &lt;br /&gt;tmpfs             /dev/shm             tmpfs      defaults              0 0    &lt;br /&gt;devpts            /dev/pts             devpts     mode=0620,gid=5       0 0    &lt;br /&gt;/dev/shm        /opt/zimbra/amavisd-new-2.3.3/tmp       tmpfs   defaults,users,size=150m,mode=777     0 0&lt;/p&gt;  &lt;p&gt;I did initally have a lot of trouble setting up the network on the virutal instance but after a lot of experimenting with different Xen packages and configuration options I finally settled on the following file (/etc/xen/zimbra):&lt;/p&gt;  &lt;p class=&quot;codesnippet&quot;&gt;#  -*- mode: python; -*-    &lt;br /&gt;&lt;br /&gt;# configuration name:    &lt;br /&gt;name     = &quot;zimbra&quot;    &lt;br /&gt;&lt;br /&gt;# usable ram:    &lt;br /&gt;memory   = 512    &lt;br /&gt;&lt;br /&gt;# kernel und initrd:    &lt;br /&gt;kernel   = &quot;/boot/vmlinuz-xen&quot;    &lt;br /&gt;ramdisk  = &quot;/boot/initrd-xen&quot;    &lt;br /&gt;&lt;br /&gt;# boot device:    &lt;br /&gt;root     = &quot;/dev/hda1&quot;    &lt;br /&gt;&lt;br /&gt;# boot to run level:    &lt;br /&gt;extra    = &quot;3&quot;    &lt;br /&gt;&lt;br /&gt;# network    &lt;br /&gt;nics=1    &lt;br /&gt;vif = [ &#039;mac=aa:00:00:50:02:f0, bridge=xenbr0&#039; ]    &lt;br /&gt;dhcp =&quot;dhcp&quot;     &lt;br /&gt;hostname=&quot;zimbra&quot;    &lt;br /&gt;&lt;br /&gt;# storage devices:    &lt;br /&gt;disk     = [ &#039;phy:system/mail,hda1,w&#039;,&#039;phy:system/mailswap,hda2,w&#039; ] &lt;/p&gt;  &lt;p&gt; One last thing is that the Xen howto modifies the virtual server&#039;s mtab file with the following line:&lt;/p&gt;  &lt;p class=&quot;codesnippet&quot;&gt;sed -e &quot;s/^[1-6]:/#\\0/&quot; &amp;lt; ./etc/inittab &amp;gt; ./etc/inittab.new&lt;/p&gt;  &lt;p&gt;This command also commented out the default console as well as the other terminal consoles which meant that after installation there was no login prompt. In order to correct this edit the /etc/inittab file on the virtual server (whilst it is still mounted on the host system) and uncomment the following line:&lt;/p&gt;  &lt;p class=&quot;codesnippet&quot;&gt;1:2345:respawn:/sbin/mingetty --noclear tty1 &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/linux&quot;&gt;linux&lt;/a&gt;    &lt;/li&gt;
      &lt;li&gt;
      &lt;a href=&quot;/tech/suse&quot;&gt;suse&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/xen&quot;&gt;xen&lt;/a&gt;    &lt;/li&gt;
  
&lt;/ul&gt;
</description>
 <pubDate>Sun, 12 Feb 2006 19:32:03 +0000</pubDate>
 <dc:creator>David</dc:creator>
 <guid isPermaLink="false">241 at https://www.stress-free.co.nz</guid>
</item>
</channel>
</rss>
