• Sponsored Links

HyperV R2 broke my vm creation script

Have a script that automatically creates a VM prompts for memory size, number of CPU’s etc.

Worked fine on HyperV in 2008 SP2, but was getting intermitent failures on 2008 R2.

After a little bit of head scratching found out it was failing setting memory size to an odd number (e.g 2047 MB), worked fine when setting even number memory (e.g 2048 MB).

When trying to manually create a VM on R2 with an odd number for memory size get the error below “Please enter memory in increments of 2 MB” , easy to fix just use an even size for memory.

hyperv-memory-increments-2mb

Hyper-V host hangs at Shutting Down

A 2008 server with the Hyper-V role sometimes hangs at  Shutting Down and a power cycle is required to restart it.   This appears to occur with some servers due to BIOS incompatability, have read on some forums that upgrading to lastest motherboard BIOS has resolved issue.

Personally had this happen on servers fitted with Supermicro X7DWU motherboards, problem continues after lastest BIOS installed running Windows 2008 SP2 and all relevant patches.

This is a real pain when remote booting servers as they never come back online.

No shutdown issues on HP ML350 G5 and  HP XW4600 worksation in my test environment.

Maybe Microsoft will bring out a patch !

Fatal Error installing Hyper-V Integration Services

On several occasions have received a ‘Fatal Error’ when trying to install Integration Components  into a Hyper-V Virtual Machine.

This seems to happen when upgrading from a previous version or in my test lab when I have been doing some P2V testing.

Uninstalling Hyper-V Guest Components using Add/Remove programs doesn’t fix problem.

Only way I’ve found to fix problems is to delete the following 2 files (recommend doing a snapshot first just in case).

C:\Windows\system32\drivers\wdf01000.sys and  C:\Windows\system32\drivers\wdfldr.sys

You should then be able to install Integration Components.

VMware vSphere Essentials

One of the interesting things coming up in VMware Infrastructure 4 or vSphere as it is now known is the new licensing options aimed at securing a bigger slice of the lucrative SME marketplace.

Many SME’s were put off on the pricing of VMware Infrastructure 3 with Enterprise and Virtual Centre licences for a couple of ESX hosts not leaving you much change out of £10k.

vSphere will introduce an essentials and essentials plus which will offer a reduced feature set compared to the higher end vSphere offerings. Link below shows vSphere version comparison chart.

vSphere version comparison

Although the essentials plus offering has VMware HA it is missing vMotion, DRS and the newly introduced vSphere fault tolerance, which I feel is a bit strange considering the essentials package covers licensing for 3 ESX hosts. Microsoft will include their vMotion equivalent for Hyper-V in Windows 2008 R2 so could make the essentials package a little less attractive to customers who are looking for the ability to live migrate VM’s between hosts.

Pricing for the essentials plus package is showing as $2995, this includes licenses for 3 physical hosts and vCentre Server for essentials to handle management.

Release date stated as May 21st .

Copying files to and from an ESXi host

Software company Veeam have today released v3 of their free FastSCP program which now supports coping files to and from ESXi hosts without any hacking or modification required on ESXi.

The solution is able to copy powered off virtual machines to or from a Windows machine, jobs can be scheduled if required.

On testing managed a very respectable performance of 28 MB/s from an ESXi host running SATA disk across a gigabit network, certainly faster than any other solution I’ve seen for ESXi.

For those of you looking for a backup solution for VMware Virtual Infrastructure they also do a pay solution called Veeam Backup which rivals Vizioncores backup solution.

www.veeam.com

Hyper-V - Mouse not captured in Remote Desktop Session

So you’ve loaded Hyper-V, created your virtual machine and loaded Windows server onto the virtual machine.  You are using remote desktop to connect to your Hyper-V host and power  on the virtual machine.

The first thing you’ll notice when you try to use the mouse is that you’ll receive the message popup “Mouse not captured in Remote Desktop Session”, and instead of a mouse pointer will just get a dot in it’s place. Have noticed when using  3rd party remote control software, logmein in my case I was able to see a mouse pointer but still not control it.

This is really frustrating for those of  us who have used VMware where the mouse works straight away (albeit jerky until VMware tools installed).

The way to get the mouse working under a Hyper-V VM is to install  Microsoft Virtual Machine Integration Services into the VM.  As you have no mouse you will need to use the keyboard to login and start the install, a list of common windows key combinations is shown below. Once logged in from the VM connection window click on the ‘Actions’ menu and select ‘Insert Integration Services Setup Disk’ from the drop down list, this will load the install disk into the virtual CD drive of your VM from where the install can be started.  Once installed you’ll get control of your mouse back.

Standard  Key combination Virtual Machine Key Combination
Function
CTRL + ALT + DEL CTRL + ALT + END Displays the Task Manager or Windows Security dialog box.
ALT + TAB ALT + PAGE UP Switches between programs from left to right.
ALT + SHIFT + TAB ALT + PAGE DOWN Switches between programs from right to left.
ALT + ESC ALT + INSERT Cycles through the programs in the order they were started.
CTRL + ESC ALT + HOME Windows start menu button.
None CTRL + ALT + PAUSE Switches between full screen / windowed
None CTRL + ALT + LEFT ARROW Releases mouse and keyboard focus from the Virtual Machine Connection window.

Managing VMware server 2 using Virtual Infrastructure Client

I’d tried VMware server 2 back in beta but found I couldn’t get on with the new management web interface so stuck with my trusted VMware server 1.0.x

A colleague mentioned recently VMware Server 2 could be managed using the familair VI client usually used to manage ESX hosts.

Sure enough after downloading and installing the latest version of VMware server 2 was able to connect to it using VI client by pointing it to the server IP on port 8333  , in my case VI client was running on the same machine as VMware server so pointed the VI client to 127.0.0.1:8333 , used my Windows login name and password and bingo managing VMware server using VI client, I’m finally happy to upgrade to VMware Server 2.

If you don’t already have VI client installed you can download it by pointing your web browser to to the IP of your VMware server host using the URL:

https://127.0.0.1:8333/client/VMware-viclient.exe

Unable to remove Consolidated Helper Snapshot under ESX and ESXi

If you are running ESX or ESXi U2 or above and have an application that creates VMware backups using snapshots (e.g Vizioncore , Veeam ) you may notice sometimes you are left with a snapshot called Consolidated Helper Snapshot followed by a number.

If you try to remove the snapshot on a powered on VM it will fail (hangs at 95% ) and you may find that when you right click the virtual machine in VI client you can no longer power off the virtual machine and most of the other settings are greyed out.

Saw this happen to a VM running on an ESXi host after aborting a backup script, only thing I could do was reboot the ESXi host and remove the snapshot whilst the VM was powered off, all OK then.

These helper snapshots from what I can determine are designed to reduce the impact of VM snapshots locking a live VM but may occasionally not get removed correctly after the removal of the main VM snapshot.

Error 1606 installing VMware tools

During install of vmware tools on newly p2v’d server error 1606 was displayed and vmware tools would not install.

Error ocured as location of administrators My Documents had been redirected to a network location which could not be accessed as no network driver installed.

If you are unable to change the path of the My Documents folder to the local profile path due to group policy lockdown, you can change it in the registry by going to the key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders

Change the values for the personal and My Pictures keys to the user local path for example “C:\Documents and Settings\Administrator\My Documents”.

VMware tools should then install OK.

ESX snapshot “An Invalid snapshot configuration was detected”

Received this error today trying to create a new snapshot of a Windows VM guest running on VMware ESXi. VI client showed no existing snapshots, tried reboot of VM and ESXi host but still unable to create a new snapshot.

Was eventually able to create the snapshot by renaming the snapshot definition file for the VM, this then allowed me to create snapshots OK.

To rename the file browse to the datastore containing the VM folder using the VI client and look for a file ending in .vmsd (will probably be your_vm_name.vmsd), you can then right click on the file and rename adding a .bak to the end of the file name (e.g. orginal file called server1.vmsd renamed file server1.vmsd.bak).

Only try this technique if you are 100% sure you have no existing snapshots on the virtual machine as peforming the above on a VM with snapshots will undoubtedly break it !!