Remko Weijnen's Blog (Remko's Blog)

About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like

Archive for the ‘VMWare’ Category

First we need to setup a Linux Virtual Machine with a distro of choice (I recommend a 32 bit version). I will be using Ubuntu here and the first step is to download the iso.

At the time of writing Ubuntu 10.10 was the Latest version so I used that one.

Create a new Virtual Machine and use the iso as install media, I am using VMWare Workstation and it recognises Ubuntu and performs an “easy install”:


The install is unattended (when VMWare Tools are installed you need to perform a login) and took only 6 minutes on my laptop!

Now we need to install gcc (the compiler), open the Ubuntu Software Center:




  • 1 Comment
  • Filed under: Altiris, VMWare
  • STOP: 0x0000005D when booting Windows PE

    I was booting a new VMWare Virtual Machine with Windows PE through Altiris for initial deployment but Windows PE halted with a BSOD:


    0x0000005D means UNSUPPORTED_PROCESSOR (defined in bugcodes.h) so I expected there was a x86 vs x64 problem.

    The VM was configured for a 32 bit OS:


    The Altiris Job was configured to use Auto Select:


    But instead of the x86 version of Windows PE, Altiris attempts to boot the x64 version and this explains the BSOD: VMWare prevents the CPU from going to x64 mode and thus Windows has no choice but to halt.

    Workaround is to change the Automation pre-boot environment in Altiris to x86:


    Note that it’s no problem to deploy an x64 OS using the x86 version of Windows PE so I don’t see any real problems with this workaround.

    Windows 2003 align OS disk

    If you read one of VMWare’s Best Practices Guides (in my case this one) then you may have read that it’s important to align guest partitions.

    We can do this (for Windows OS) using the DiskPart tool that comes with the OS since Windows 2003 SP1 (there is a hotfix for earlier versions).

    On Windows 2008, and higher, all partitions are automatically aligned to a 1 MB boundary.

    But how to do this for the OS disk on Server 2003?

    My first thought was to open a command prompt during setup, right before creating the partitions and then use diskpart.

    However the OS partition is created during the Text portion of the install process and even though we can get a cmd prompt using SHIFT-F10 we get the recovery console (which has a builtin diskpart but cannot align).

    So I used a Windows PE bootdisk. Any version with Diskpart should do but I used a bootdisk from Symantec Backup Exec System Recovery that I’ve customized to my own needs.

    If you boot the original Symantec disk you can open a command prompt by accessing a hidden feature: move the mouse above the “S” from Symantec until you get a Hand icon and press the left mouse button:





    Booting a Virtual Machine from USB Drive

    I wanted to boot a Virtual Machine from an USB Stick but even though you can Connect USB devices to VMWare you cannot boot from it.

    It can be done however using a boot manager that is able to perform a boot from USB media. I used Plop Boot Manager.

    Download one of the stable releases (I used 5.0.11-2) and extract plpbt.img from the archive and mount this (don’t forget to select the Connect at power on option) and when booting press Esc for the Boot Menu.


    This would be a good time to Connect the USB device to the Virtual Machine, right click the USB device in the bottom bar:


    And select the Connect option:


    Click OK on the warning message:



  • Filed under: VMWare
  • The case of the UPS discovery not working

    I am doing a project involving a Citrix Xenapp environment running on VMWare vSphere.

    The physical machines are powered by two Eaton Uninterruptable Power Supplies that both a network card.

    I received some documentation that describes how to implement automatic shutdown in a VMWare vSphere environment.

    This documentation describes that a vSphere Management Assistant (vMA) must be deployed in which we need to install some software from Eaton.

    I followed the documentation that even described the needed iptables rules needed for their software.

    In the last step a discovery is done and the UPS is supposed to be found. And you have probably guessed by now: it didn’t!

    At first I figured that maybe the iptables configuration was still too tight so I stopped the iptables service but that didn’t help.


    I was trying to install a checked build of Windows 7 under VMWare Workstation but after the first reboot during the install (the completing installation step) the system came up with a BSOD.

    It can be fixed by adding a line to the VMX configuration file:


    piix4pm.smooth_acpi_timer = TRUE

    VMware has released an updated Performance Best Practices for VMware vSphere document for 4.1.

    The document provides tips that help administrators maximize the performance of VMware vSphere 4.1.

    Chapter 1 – “Hardware for Use with VMware vSphere,” provides guidance on selecting hardware for use with vSphere.

    Chapter 2 – “ESX and Virtual Machines,” provides guidance regarding VMware ESX™ software and the virtual machines that run in it.

    Chapter 3 – “Guest Operating Systems,” provides guidance regarding the guest operating systems running in vSphere virtual machines.

    Chapter 4 – “Virtual Infrastructure Management,” provides guidance regarding resource management best practices.

    Links: Technical Resource Center (direct link to the Document).

    Earlier versions:

    Performance Best Practices for VMWare vSphere 4.0

    Performance Tuning Best Practices for ESX Server 3

  • Filed under: VMWare
  • Programmatically Create Aligned Partitions

    After deploying Virtual Machines from a template and adding disks the next Task was to create and format the partitions.

    In a VMWare environment it is very important to assure that the partitions are aligned. VMWare has a nice document that explains the details called Performance Best Practices for VMware vSphere 4.0.

    Basically the recommendation is to align partition on a 64 KB boundary, not only for VMWare itsself but also for the guests.

    Of course we could do this manually but I wanted to run this task of from my Deployment Server to automate the following:

    • Create aligned partitions on all extra disks of the maximum size
    • Format, assign drive letter and assign a label
    • A safeguard to prevent overwriting existing Data

    Well enough talk let’s go the scripts! They are written as bat files that can be executed directly in Altiris as an embedded script but of course you don’t need Altiris to use them. (more…)

  • 1 Comment
  • Filed under: Altiris, VMWare
  • As I wrote earlier today I am provisioning Virtual Machines with PowerCLI. I don’t know if this is intentional behaviour but after Deploying (Cloning) a Virtual Machine from a template the Network Adapter is not automatically connected at power on.

    This made the Join Domain operation which is party of the Customization Specification to fail. I noticed this in the log file which can be found in %WINDIR%\Temp\vmware-imc\guestcust.log:

    Joining domain mydomain using account mydomain\myaccount and password ‘*****’
    The specified domain either does not exist or could not be contacted.

    So I wrote a small fix script in PowerCLI:

    And of course I changed the Provisioning script to do this as well 😀

  • Filed under: VMWare
  • I am currently provisioning a lot of Virtual Machines in VMWare vSphere 4.1. Because I had already sized the Virtual Machines I am doing this from PowerCLI based on my Excel Sheet.

    I will probably blog later about the details of how I am doing this in PowerCLI (would you be interested in that?) but after successfully deploying some Windows 2008 VM’s I got this error in PowerShell:

    New-VM : 3-11-2010 10:00:50 New-VM The operation for the entity VirtualMachine-vm-150 failed with the following message: “Cannot complete customization.”

    At C:\Users\Administrator\Documents\NewVm.ps1:64 char:14

    + $VM = New-VM <<<< -Name $Name -VMHost $VMHost -Template $Template -OSCustomizationSpec $Spec -DiskStorageFormat $DiskFormat -Datastore $LargestDataStore

    + CategoryInfo : NotSpecified: (:) [New-VM], CustomizationFault

    + FullyQualifiedErrorId : Client20_TaskServiceImpl_CheckServerSideTaskUpdates_OperationFailed,VMware.VimAutomation.ViCore.Cmdlets.Commands.NewVM

    In the vCenter console the following error was logged:

    Cannot deploy template: Cannot complete customization.


  • Filed under: VMWare
  • Donate