Indianapolis VMUG Demo Days 4 PowerCLI Lab

Last week the Indianapolis VMware User Group hosted the 4th annual Demo Days event. I had the privilege of working with Ryan Birk (@rlbindy) and Jake Robinson (@jakerobinson) on the PowerCLI self paced lab. The purpose of this lab was to introduce people to vSphere management with PowerCLI, provide some examples to get you hooked, but not take up a lot of time (people wanted to hear expert speakers such as Scott Lowe, Mike Laverick, David Davis and Vaughn Stewart who had gathered for this event).

Jake created the following diagram of the vApp used in the labs:

As you can see, the lab consisted of a vCenter server, two virtualized ESXi hosts and a virtual shared storage appliance. Each seat in the lab connected over Remote Desktop to the vCenter server in a dedicated vApp:

We plan to make the content of this self paced lab available to everyone as soon as we work out some typos. Hopefully this should happen in the next week or so.

A special thanks goes to Bluelock (www.bluelock.com) for providing the virtual data center services and 10zig Technology (www.10zig.com) for providing the thin client devices.

Posted in Scripting, Virtualization | 1 Comment

Make PowerCLI run faster

I came across this article: http://blogs.vmware.com/vipowershell/2011/06/how-to-speed-up-the-execution-of-the-first-powercli-cmdlet.html and decided to test the steps out myself:


REM View the following link for details: http://blogs.vmware.com/vipowershell/2011/06/how-to-speed-up-the-execution-of-the-first-powercli-cmdlet.html

C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe install "VimService41.XmlSerializers, Version=4.1.0.0, Culture=neutral, PublicKeyToken=10980b081e887e9f"
C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe install "VimService40.XmlSerializers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=10980b081e887e9f"
C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe install "VimService25.XmlSerializers, Version=2.5.0.0, Culture=neutral, PublicKeyToken=10980b081e887e9f"

REM If you are running on 64-bit OS, you need to run the following as well:
if %PROCESSOR_ARCHITECTURE% == AMD64 (
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe install "VimService41.XmlSerializers, Version=4.1.0.0, Culture=neutral, PublicKeyToken=10980b081e887e9f"
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe install "VimService40.XmlSerializers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=10980b081e887e9f"
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\ngen.exe install "VimService25.XmlSerializers, Version=2.5.0.0, Culture=neutral, PublicKeyToken=10980b081e887e9f"
)

Running the NGEN.EXE commands made my connect-viserver cmdlet run a bit faster…it now takes 8 seconds the first time instead of 12. Not much savings, but if I had time to waste I wouldn’t be using PowerCLI in the first place!

Posted in Scripting, Virtualization | 3 Comments

Virtual Sound in Windows 2003 Server

As a VMware admin, I try to keep tabs on customer requests, especially when multiple issues are reported for similar problems. Recently I noticed two requests come through for virtual machine sound issues — within a day of each other. One customer was reporting that their application required a sound card to be installed and the other customer was reporting that their server was beeping and they wanted it to stop.

Issue #1: Sound card required
Description: The users application converted text to speech for use in an automated dialing application. The application would generate a WAV file, but an error would be generated as the the application attempted to play the file.
Resolution: Enabling sound for Remote Desktop Protocol in a Windows virtual machine http://kb.vmware.com/kb/1004839

Issue #2: Stop the beeping
Description: The customers application would beep when moving from tab to tab if the required form fields were not complete. This beep was was the standard system beep and could be recreated by typing the following at a command prompt echo <CTRL>+<G>.
Resolution: System Beeps after Installing Hotfix Rollup Pack 5 for XenApp 5.0/4.5 on Windows Server 2003 http://support.citrix.com/article/CTX126856

At first I believed these issues to be hardware/ESXi related — I hadn’t experienced either problem before and both requests were received within 24 hours. Fortunately, however, neither issue was virtual or physical hardware related and were easily resolved within the guest operating systems.

Posted in Virtualization | Leave a comment

Weird issue with disk management in Windows 2008

I have ran into this issue several times and thought it would be worth sharing. The issue appears to be related Windows 2008 Server (the version without R2) and applies to both Standard and Enterprise editions.

When extending the disk, the partition appears to grow but the file system size does not change as expected. You’ll note in the screenshot below that the disk management screen (at the bottom) shows disk 1 – the D: drive – as being 40GB but the screenshot in the middle shows drive D: as only 30GB.

I found the following article that applies to Windows XP and 2003 server. The partition size is extended, but the file system remains the original size when you extend an NTFS volume http://support.microsoft.com/kb/832316

I didn’t install the mentioned hotfix as it does not apply to Windows 2008. However, the following diskpart commands resolved the issue:

select volume d
extend filesystem

After running the extend filesystem command the volume size is increased to 40GB without reboot or issue. I hope this article helps others who might run into this issue.

Posted in Virtualization | 2 Comments

VMware View Android Client Tech Preview

Today VMware released the View for Android – Tech Preview client application. It is available for download in the market:

https://market.android.com/details?id=com.vmware.view.client.android&feature=search_result

Just like the View Client for iPad, this client requires View 4.6 and supports PCoIP. When I first heard about the announcement, I was disappointed as I heard it required Honeycomb (the 3.x platform) which does not perform well on my device.

I should mention that I’m using a Barnes & Noble Nook Color, and the Honeycomb version I experienced performance problems with was a dual book offering that I got from the following post: http://forum.xda-developers.com/showthread.php?t=1045018. I am currently running phiremod 6.3, a CyanogenMod 7.0.3 based version of Gingerbread (2.3 platform). If you are interested in this configuration, check out this site which provides all the info you’ll need to know: http://phiremod.wordpress.com/nook-color/

Back to the View Android Tech Preview client story…the Android Market showed that Android version 2.2 and up were supported with this release, so I went ahead and installed the free app.

After opening the application, I was prompted for my View Connection server. The application connected and presented me with a login screen and after authenticating I was able to see my entitled desktops. I launched a Windows XP desktop and was surprised how well the application worked! The screen resolution adjusts quickly as I rotate the device, the on-screen touchpad works awesome and the touch screen works just like one would expect (you don’t get a lot of precision, but it gets you pretty close).

Maybe this free product is VMware’s peace offering for the recent vSphere5 license changes 🙂

Posted in Virtualization | 1 Comment