Archive for the ‘VMware Administration’ Category

VMworld Follow Up

Monday, September 14th, 2009

After the VMworld presentation a few people asked me some questions and I wanted to address one of those now. The question was by an admin that doesn’t have the funding or extra hardware to setup a separate test network, but because he’s a good admin he still wants to do testing. So how does he accomplish this?

I came up with five potential solutions varying in cost and complexity to implement.

Option 1 –

The first option is one he said he didn’t have, but I wanted to mention anyway, and that is to dig up a piece of hardware and build a separate test environment. ūüôā A possible environment could be a server you recently did a P2V conversion on and you could combine this with the free version of ESXi for an inexpensive solution.

Pros of this solution are having a separate environment so that a single small mistake of misconfiguring the network on the VM or physical switch will not cause conflicts. This is especially important when you are testing something as critical as an Active Directory upgrade which this admin wanted to do. Another pro is that you can keep the same VM name as production during testing to limit other errors.

Cons of this solution are the cost and complexity of setting up and maintaining this separate environment. The cons can be limited and I encourage you to try and create a separate test environment.

For those that still feel they cannot have this separate environment I created a visio diagram to give a visual aid for the next four options.

Private VM Setup

Option 2 –

The next best thing to the fully isolated test network is to use a dedicated vswitch with dedicated vmnics connected to a separate isolated physical switch (recommend non routed switch). This will definitely keep your test traffic isolated from your production traffic and somewhat limits you exposure to human errors (on the physical switch side).

Pros – can VMotion between hosts, communicate VM to VM, no advanced trunking or vlan tagging
Cons – A misconfiguration could put the test VM on the production network

Option 3 –

Use a dedicated vswitch with dedicated vmnics to a separate vlan on the same physical switch as production (recommend use a non routed vlan)

Pros – Can VMotion between hosts, communicate VM to VM, doesn’t require dedicated physical switches

Cons – shared production and test equipment, requires dedicated physical NICs, and a misconfiguration could put the test VM on the production network

Option 4 –

use a trunk on the same vmnics as production, but use a separate vlan for test (recommend non routed vlan)

Pros – Can VMotion between hosts, communicate VM to VM, requires least amount of equipment
Cons – Most complex design, have to use VLAN tagging, trunk to vSwitch, a misconfiguration a multiple locations could put the test VM on the production network

Option 5 –

use an isolated vSwitch on one host (vswitch with no attached VMnics)
Pros – VMs isolated from everything
Cons – VMs have to be on same host, no vmotion, drs, or communication between test VMs on different ESX hosts, a misconfiguration could put the test VM on the production network

Hopefully this helps. Any comments are welcome.

Private VM Setup

My PowerShell Healthcheck Script

Tuesday, September 1st, 2009

Like most admins I tend to “borrow” tools and scripts rather than “create” them. This script is no exception. I first got this script about¬†a year¬†ago from Ivo Beerens ivo@ivobeerens.nl. Initially the script did some cool things, but I sought to improve¬†it and was able to get some¬†additional information about VMDK usage that I wanted.¬†Since that time many people have improved the script and others¬†have¬†come out with their own that I am sure¬†are better than mine. But¬†since I am demoing this script today I thought I should post it as well. I modified the script to support a port shifted vcenter, report on a specific datacenter as I manage multiple ones and wanted a separate report, added VM disk usage info, shared .css location for formatting and added a section on top 10 lowest VM disk free space. Hope you find it useful.

CleanVMwareHealthcheck 

VMworld Thoughts

Tuesday, September 1st, 2009

I don’t know what other people are experiencing, but this years VMworld has fallen really short after attending last year.¬†The first¬†issue is all¬†the IT problems. My friends are teasing me¬†because “if a conference of IT people can get it to work then who can?”¬†I felt for the IT guys working the conference, but making things work is what we do. I had issues with the vSpehere bootcamp on Sunday, which was a total bust and waste of the day, only to get to my VCP4 exam yesterday to find out they are having slowness issues. My “timed” 90 minutes exam took well over 2 hours and I still had “30 minutes” left. Thankfully I passed that, but I was late for my lab and¬†not able to attend. My first session today was also bad as it turned into a vendor pitch and had¬†nothing to do with the¬†title. It got me thinking about my presentation and hopefully¬†it will live up to my own expectations.¬†Lets hope things improve!¬†