Virtually Speaking

Dan Kusnetzky, Paula Rooney and Ken Hess

10 Ways to Cure Your Virtualization Ills

By | June 21, 2011, 2:52pm PDT

Summary: Is there a doctor in the house that can fix my virtual environment? Yes, and it’s you. Here’s your bucket list. Now, get busy.

‘Tis the season to fix your virtual environment and there’s no better way to start that process than with a “to do” list. And, you know you need one. So, here’s your list for those dog days of summer, when you want to heat things up even more. You won’t solve all ten of these items in a day or in a week. It’s an ongoing process but you need to get started now, so here, here’s your license and your permission to fix what’s broken and put yourself in a better strategic position to expand and grow.

1. Virtual Host Updates - You need to update your virtual host systems on a regular basis. What’s regular? You need to check quarterly on the high side and monthly on the normal side. Remember that using Distributed Resource Scheduling, when you put a virtual host system in Maintenance mode, its VMs scatter like rats on a sinking ship, so you can perform these updates during normal business hours.

2. Firmware Updates - Yes, you need to keep firmware up to date on physical servers, blades and enclosures. Some of these are critical so don’t slack on them. Quarterly to twice yearly should be sufficient to keep new hardware features and fixes coming your way. The easiest way to maintain these updates is to place yourself on vendor mailing lists for them. Every vendor worth its salt has lists that you can join to keep you abreast of critical updates.

3. Operating System Updates - Yes, the dreaded OS patching rears its ugly head again. This necessary evil can drive you to the brink of homicide. There are new patches, security updates, service packs and updates of some kind landing in my email on an almost daily basis. In larger environments, it’s advisable to have a separate team to manage patching. Depending on the severity level of the patch, this could be a weekly exercise. Monthly is probably the correct frequency for most patching needs.

4. VMware Tools Upgrade - Do you see that exclamation mark in the system tray on top of your VMware Tools icon? That means you need to update the tools package. It requires a reboot on Windows operating systems so plan accordingly. The update doesn’t takes a few minutes per system to perform but it’s worth it for the enhanced drivers and new hardware. This update needs to be performed when updates become available.

5. Virtual Machine Hardware Upgrade - This one is a pain but necessary for better performance. When you update from an earlier version of VMware to vSphere, you’ll have to do this. There’s no easy way to do it either. It’s a lengthy process that requires multiple reboots and network reconfiguration on your VMs. If you’re running vSphere 4.x, check your virtual machine’s hardware by selecting a VM in VCenter and look at the Hardware version on the Summary tab. If it reads 4, you need to update. If it is 7, you’re cool.

6. Remove Orphaned VMDKs - This is one of those pesky housekeeping items that you absolutely must do. Disk files sometimes stay behind, when you delete VMs from inventory. And, once you’ve deleted a system from inventory, there’s no reason to keep any of its associated files around just burning up valuable space. Checking for orphaned VMs on a quarterly basis is sufficient to keep your LUNs clutter free.
How do you check for orphaned disk files, you ask? I use a PowerShell script that I found somewhere and modified to fit my environment. The script scans your environment for orphaned VMDK files and provides you a report on its scan. No files are deleted during the scan. You have to do that manually and it’s recommended that you double check the findings and remove the orphans after you’ve made that verification.

7. Adjust vCPUs - As I discussed in, The Late Great Virtual CPU Debate, you should inventory your VMs for multiple vCPU usage and do some serious pruning. Generally speaking, you should configure VMs with single vCPUs. Multiple vCPUs are for special cases and specific workloads.

8. Adjust Virtual Memory - You should take an inventory of your VMs, how much memory you’ve allocated to each one and adjust accordingly. You won’t necessarily adjust them downward but you probably will adjust a lot of them in the downward direction. Memory overcommitment is a big problem in virtual environments but it’s also a very popular thing to do. A wiser solution is to use performance data to determine what your VM’s memory needs are an adjust to best performance that doesn’t waste resources. Why allocate 4GB of memory for a test web server, when one or two is plenty?

9. Change Operating Systems - This recommendation won’t make a lot of people happy but it’s a good practice. But, why would it make such a difference? If you run a lot of Windows servers in your environment, you’re also burning a lot of resources (Memory, for one) that could be used for other workloads.

For example, Windows 2008 R2 requires a minimum of 512MB RAM (OK, try running on that) but realistically needs at least 2GB of RAM out of the box for just the OS. Add an additional two to four GB for each standard workload. Add more for more intense workloads.

If you switch your workloads to Linux, you’ll find that you’ll use from one-eighth to one-half the memory per VM. Plus, if you use Ubuntu Linux, you won’t have to deal with the extreme licensing fees from Microsoft. Better performance, fewer consumed resources and no licensing fees. No brainer?

10. Add Capacity - If you’re growing your virtual infrastructure, add capacity. Don’t wait until you’re experiencing outages, the DRS dance or growth stoppage. Add capacity now and expand into it. You have to stay at least one step ahead of your growth expectations by adding capacity before you need it. Add additional memory to your hosts, add CPUs or upgrade your CPUs and add disk space to resolve performance bottlenecks or growth slowdowns. Hearing the words, “We’re out of capacity,” is an unacceptable excuse.

Kick off your day with ZDNet's daily e-mail newsletter. It's the freshest tech news and opinion, served hot. Get it.

Topics

Kenneth 'Ken' Hess is a full-time Windows and Linux system administrator with over 15 years of experience with Mac, Linux, UNIX, and Windows systems in large multi-data center environments.

Disclosure

Ken Hess

My full-time employer is EDS (HP). I write as a freelancer for ZDNet. The postings and opinions on this blog are my own and don't necessarily represent EDS's, HP's, their subsidiaries or affiliates positions, strategies or opinions. I own no investments or direct financial instruments in the companies I write about.

Biography

Ken Hess

Kenneth 'Ken' Hess is a full-time Windows and Linux system administrator with over 15 years of experience with Mac, Linux, UNIX, and Windows systems in large multi-data center environments.

Ken writes on a variety of topics including interoperability, virtualization, data center operations, databases, and open source software. He has written and co-written books on Linux, databases, and virtualization. He currently writes a System Administration column for Linux Magazine and is a regular contributor to Linux User & Developer magazine, ServerWatch.com's Trends and InfoStor. He often contributes to other online and print publications as well.

His first computer was a Commodore VIC-20, which he purchased because William Shatner was in the commercials.

In his limited spare time, Ken enjoys painting, drawing, and flinging angry birds at fortified pigs.

11
Comments

Join the conversation!

Just In

VM, VMware or zVM
carlo.werbrouck@... 15th May
We are running multiple (>30) SLES servers (9,10 and 11) on a IBM zVM environment.
Does anybody has "Ways to Cure Your Virtualization Ills" on such an environment ?
If you have one physical Windows 2008 server license, you get four vitual server for free.
0 Votes
+ -
@FADS_z

That is nothing that I have ever heard of. Can you supply a source?
0 Votes
+ -
Evangelists.
Will Pharaoh 23rd Jun
@FADS_z
Each OS has its pros and cons, so choose which works best for your needs.

That's the no brainer wink
0 Votes
+ -
@FADS_z

Where does Idaho rank? We have been living in Montana for the past 5 years and I am not supri sexy shop to find it #3 on the "worst" list. Considering a sexshopmove to Idaho to escapthe high cost of living a low income in MT. There may not be a sales tax here but they get you if you own property!
@FADS_z

Not strictly true; if you "assign" an Enterprise Edition license to the hardware then you get 4 virtual servers. Datacentre gives you unlimited. If you have standard, it's just 1. Remember that you cannot "legally" vMotion machines unless the target host is correctly licensed. This is why Windows Datacentre edition should be licensed for all nodes in any VMware cluster - to give the VM's the portability that you need in such an environment.

http://www.microsoft.com/windowsserver2008/en/us/licensing-faq.aspx#virt
0 Votes
+ -
Contributr
@/tobys

Right, you only get "free" licenses if you're using Hyper-V.
0 Votes
+ -
Contributr
@/tobys

Right, you only get "free" licenses if you're using Hyper-V.
0 Votes
+ -
Just wanted to say thanks for the nice article. Some very good reminders, all in one place. This kind of advice/reminder can be hard to come by, with all the focus on features and getting VMs running.
0 Votes
+ -
Contributr
@Speednet

Thanks to you. I'll post tech articles like this along with news, reviews and views too. If you have any suggestions for posts for this or Technical Shmechnical, let me know.
0 Votes
+ -
Windows to Linux is not always the best option in environments where the VM hosts audio/MIDI programs (as in my recording studio)... Linux support for audio is still 20 years behind its other aspects.

For server chores, however, right on, Linux is great.
0 Votes
+ -
VM, VMware or zVM
carlo.werbrouck@... 15th May
We are running multiple (>30) SLES servers (9,10 and 11) on a IBM zVM environment.
Does anybody has "Ways to Cure Your Virtualization Ills" on such an environment ?

Join the conversation!

Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]
ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

White Papers, Webcasts, & Resources
ie8 fix