Archive

Archive for the ‘vSphere’ Category

Use Windows 2008 R2 as an NFS Server for vSphere

August 18, 2011 Leave a comment

Most people don’t realize it, but Windows 2008 R2 comes with a decent and simple to use NFS component.

This can change a simple File Server in Shared Storage for vSphere (to store ISO files, Templates or even VMs).

To start, fire up Server Manager and go the the Roles section.  Right click and select Add Roles.

image

Read more…

Advertisements
Categories: Network, Storage, vSphere

Enable RSS in Guest OS with PowerCLI

August 9, 2011 Leave a comment

If you have Windows 2003/2008 (R2) VMs with the VMXNet3 vNIC, you might want to enable RSS.

See the following article for more details and the improvements when enabling RSS.

Enable RSS (Receive Side Scaling) on Windows 2008 (R2) Virtual Machines

To enable RSS, you need to do some action inside the VM.  Luckily, this can be scripted.  Basically, we will invoke a batchfile from PowerCLI (through VMware Tools) to change a regkey which enables RSS.  This can be easily adapted to loop through all VMs and enable it on all with VMXNet3 adapters.

Read more…

Categories: Network, PowerCLI, VMware, vSphere

Get all VMs with Fixed MAC Addresses using PowerCLI

July 29, 2011 6 comments

I needed a list of all VMs with a Fixed MAC Address running on vSphere (it works for ESX 3.5 as well).

Let’s build up this command from the beginning.  We start with Get-VM to get a hold of all VMs.

Get-VM

This of course will list just any VM.  So we need some filtering.

Read more…

Categories: ESX, PowerCLI, vSphere

Find VMs with Mismatched OS using PowerCLI

July 27, 2011 1 comment

Almost every environment has one or more VMs where the running OS doesn’t match what is configured on the VM.

 

Let me explain:

Every VM has a property which contains the OS version:

image

This is usually set when you create the VM.  In this example, the VM is set to Windows 7 x64.  But if you install an OS in the VM, VMware is also aware of the Guest OS through VMware Tools.  This is visible on the Summary page of the VM.

image

Both fields should match, but if you upgrade the OS inside the VM and forget to change the Settings of the VM, you have a mismatch.

Read more…

Categories: PowerCLI, VMware, vSphere

Unable to clone disk *.vmdk when converting a VM with Paravirtual disk with VMware Converter

March 16, 2011 2 comments

Last week i was trying to migrate/convert (V2V) a VM with Paravirtual SCSI Controllers.

As you all know, Hard disks attached to Paravirtual SCSI Controllers is ‘the way to go’ in vSphere:

– Lower CPU utilization

– Better performance

– Virtualization aware

– …

However, when you try to convert a VM with Paravirtual SCSI Controller, VMware Converter 4.3 throws you a nice error and the task fails with Status: FAILED: An error occurred during the conversion:

image

Read more…

Categories: VMware, vSphere

Enable RSS (Receive Side Scaling) on Windows 2008 (R2) Virtual Machines

March 3, 2011 9 comments

A nice feature of the VMXNet3 vNIC in vSphere is Receive Side Scaling.

For detailed info, check out http://technet.microsoft.com/en-us/network/dd277646.

I’ll try to summarize it here:

Without RSS, all incoming network traffic is handled by CPU 0.  This could cause a bottleneck on high Network IO machines resulting in an overloaded CPU 0 (where CPU 1, 2, 3, … might be idle).  With RSS enabled, incoming network traffic is handled by all available CPUs.

RSS is available inside a VM on vSphere.  But, you’ll need to have the VMXNet3 adapter in your VM.

Let me show you how to enable this on a Windows 2008 R2 VM.

Read more…

Categories: Network, vSphere

Hot Add Memory on vSphere 4.1. Is it useful?

February 15, 2011 2 comments

Since vSphere 4.1, you can Hot Add memory inside a VM depending on the OS type.

I’m not going into the details on how to add the memory as that is described in numerous posts on the internet.

 

Let’s assume we have a Windows Server 2008 R2 with 5 GB of memory and a x64 application consuming 10 GB of RAM (we use TestLimit64 from sysinternals in this example, but typically this application could be Exchange, SQL, …).  I know, it sounds awful (as a matter of fact, it is awful 🙂 ).

If we look in Task Manager, we can see the server has severe memory shortage:

image

Read more…

Categories: VMware, vSphere