Relax and virtualize it!

2c10159This is a guest post from Kristian Wæraas
Senior Consultant Datacenter at Datametrix AS
VMware VCP3/5, MCTS Hyper-V, Horizon View and Trend Micro Security Expert.

I am a curious by nature, and when my colleagues start talking frantic about some system that has crashed, I get curious and have to ask questions. Usually this ends up in me doing a lot of work.

– This, however, was not one of those times.

A few weeks ago, one of my colleagues came in late after a long night trying to fix a reoccurring bluescreen on a critical customer database server. Quite drawn in his face he sat down, picked up his phone and called Microsoft Support. I have to admit that I did some eavesdropping on that conversation, as it contained a few interesting tidbits that aroused my curiosity.

-“Physical server” (We still use those?)

-“Database on FC SAN”.

-“Critical data!” (Oh my!)

The minutes went by and turned into hours, and they still tried to fix the server. Diagnostics, rescue disks, rescue console, driver reinstalls, system file checking, fixing mbr and so on – but the server refused to cooperate. At some point Microsoft gave up on fixing the server, and asked if we could just reinstall it, which in this case would take even more hours.

When lunchtime came they had taken a break, and I started asking my colleague questions; not regarding the bluescreen and possible fixes, but more on the basic layout of the system. It turns out that it was an old physical server running Windows Server 2008 R2, it had Oracle database installed with the database-files placed on SAN mounted directly in to the server via FC – A normal setup for database servers I guess. We had a little chat on possible solutions to the problem during lunch, and my colleagues first thought was actually to find an identical physical server so he could install it parallel to the faulty server, then physically moving the fiber cable from the unstable server to the new. I of course asked if we could virtualize the server instead.

My colleague thought the idea was intriguing, but not knowing all the details in VMware’s possibilities had many questions.

-“How will it perform, how do we get the database files copied into the server, how long will it take to get a server ready, we need at least 2 CPUs and 8GBs of RAM, will there be cake?”

I explained to him that performance wise, the virtual server would do just fine, and that we could give it as much resources as it needed. As for getting a server up and running, I suggested using already prepared templates, which would take no more than a few seconds to deploy. Also, and this was my key point in this solution, the file copy is unnecessary:

-“You don’t have to copy the files from SAN into the server; you can just do zoning on the FC switches, and directly attach the datastore as raw disks on the virtual server. The disks will then appear inside the OS as you are used to”.

-“Is all this possible? How do we do it? If it is as easy as you say this would save us hours of work!”

Having done similar setups before, I was quite confident. However “saving” a physical server with real critical data from humiliation by moving datastore into a virtual server was new to me, so I did a quick tweet to my good friend Christian Mohn (vNinja extraordinare) to run my theory by him. We both agreed that the theory was spot on, but none of us had done this job before.

Being afraid of data loss, data corruption and the procedure in its whole, I agreed to do some tests to see if my theory was viable in our situation. We started with a basic SAN backup of the datastore, and then we did the necessary zoning by adding the backup LUN to the VMware host zone-group. After a quick rescan of datastores on the hosts, we saw the new LUNs available for the hosts.


The next thing was to add a new disk on a test-server, choose Raw Device Mappings (physical compability mode).


Found the correct LUNid


When all this was done, we logged into the test-server, went into Disk management and did a “Rescan Disk”. The disk appeared, drive-letter and all:


After verifying that the data was there, and that everything looked good, we felt confident that this approach worked, and we did the entire process again with the “live” data.

I always get a satisfied feeling inside when I am able to help a colleague solve an annoying issue. In this case, my actual work took no time at all; I also managed to open the eyes of my colleague who is now planning more p2v migrations. The customer was also happy, which in the end is what really matters.

I think the moral of the story is that “knowledge is power”. If you know what different solutions/products are capable of and you know how to use them correctly, you will be able to solve most problems quite quickly.

And yes, there was cake!

Can Microsoft really be Fair and Balanced?

Microsoft has launched Virtualization2, a program to educate VMware administrators on  Hyper-V and the System Center suite of tools. In short, these arefree online training sessiosn on November 19th and 20th, that also comes with a voucher for their new Microsoft virtualization certification exam (74-409).

This comes in addition to their existing Microsoft Virtualization for VMware Professionals Jump Start training course.

I think this is a good idea, and if you are able to close your eyes to the hyperbole, and disregard things like “Microsoft Wants to Help VMware Experts “Future-Proof “ Their Career“, I applaud this initiative.

However, if the training content is based on Microsofts own (flawed) vSphere vs Hyper-V & System Center comparisons (see Calling Out the Phony War: vSphere & Hyper-V for a detailed analysis), the training offered has little to no value.

Vendor training is, and always will be, like Ed Grigson mentioned on Twitter, inherently biased by nature.

In this case, the level of both hyperbole and bias is what defines the quality of the content presented. If Microsoft manages to focus on their own product, seen from the perspective of someone who has experience with VMware vSphere, without resorting to over-the-top bias towards Hyper-V, this will be a valuable resource for lots of people, myself included. If not, well, it will just be added to the list of flawed marketing tactics that really is of little to help anyone, Microsoft included.

Header photo is (c) D Sharon Pruitt and used under permissions granted by the CC license.

Creating and Using a Virtual Floppy in vSphere

My new colleague Olav Tvedt asked me if I could test his method of enabling Bitlocker in a VM, on VMware vSphere. Of course, I was happy to oblige.

I followed the same steps as he did in his Running Bitlocker on a Virtual computer post, and it worked perfectly.

The only real difference between doing this in Hyper-V and on ESXi, is that the virtual floppy drive on ESXi by default doesn’t emulate an empty floppy. So, in order to mount a virtual floppy you need to create a new floppy image. Thankfully the vSphere Client can do this for you!

To use the vSphere Client to create a floppy image you can later mount in a VM, you need to edit a VM’s settings. Find the floppy drive, if the VM doesn’t have one add one, close the window and return to the VM settings once the floppy drive has been added, and select “Create new floppy image in datastore: “.

Click on the Browse button and browse to your preferred location for the floppy image. Name it, and click on Ok.

Click on Ok again to close the VM settings window and return to the vSphere Client.

There you go, an empty virtual floppy image that you can mount in a VM is now created.

To mount the image, find the floppy drive icon in the vSphere client and select the Connect to floppy image on a datastore option.

Browse to the location where you created the floppy image, and select it.

Now, the VM has an empty floppy that you’ll need to format before you can use it.

Follow Olav’s guide to encrypt the boot drive with Bitlocker, without the need for a TPM chip or USB device connected to the VM!

And yes, it works as you can see here:

So much for never needing a floppy disk again. Oh, and by the way, you can of course do this is VMware Workstation 8 as well.