• subscribe
August 28, 2008 12:00 AM

Demystifying SQL Server Virtualization

SQL Server Pro
InstantDoc ID #99841
Executive Summary: Michael Otey dispels some myths surrounding SQL Server virtualization, including the notion that all virtualization platforms are created equal. He explains the high-level differences between the hosted, hypervisor, and virtualized OS platforms.

Because SQL Server can be I/O intensive, it hasn’t been at the top of the list of server types you’d want to virtualize. However, with the recent release of Microsoft’s Hyper-V and VMware’s new ESX Server 3.5, SQL Server virtualization is becoming increasingly interesting. Performance for many deployments is proving to be perfectly acceptable, especially in light of the benefits virtualization can offer—such as increased hardware utilization. One remaining concern about SQL Server virtualization is that confusion has grown around virtualization itself. I want to clear up some of that confusion.

First, some people think that the expression “virtualizing SQL Server” implies that you have to do something to SQL Server to make it run in a virtual environment. That’s not the case. From a management and implementation standpoint, there’s absolutely no difference between SQL Server running in a virtual machine (VM) or SQL Server running on a physical box. To learn more about virtualizing SQL Server, see “Virtualizing SQL Server,” May 2007, InstantDoc ID 95349.

Next, confusion arises around the difference between named instances (a SQL Server feature that is not widely understood) and virtualization. Named instances allow you to run multiple copies (or instances) of the SQL Server database engine simultaneously on the same server. You typically find named instances in hosting environments. Named instances share the same server and OS and provide better performance than virtualized servers because they run directly on the physical server. SQL Server virtualization enables different virtualized SQL Server instances to run with different hardware and OS configurations and provides more flexibility for recovery because the VM containing SQL Server is insulated from the underlying hardware platform. However, because SQL Server in a VM runs on virtual hardware, the performance doesn’t match the performance that named instances can achieve running on physical hardware.

One source of confusion is that there are three different types of virtualization, and not all virtualization platforms are created equal. Hosted virtualization products, such as Microsoft Virtual Server 2005 and VMware Server, work by running virtualization software on top of a host OS. A new generation of hypervisor-based virtualization platforms provides a small special-purpose layer of software, called the hypervisor, that runs directly on the hardware, isolating VMs from the underlying OS. By running directly on the hardware, a hypervisor provides better performance, reliability, and security than hosted virtualization solutions. Examples of hypervisor-based virtualization are VMware ESX, Microsoft Hyper-V, and Citrix XENServer.

A third, less well-known type of virtualization product uses OS-level virtualization. With OS-level virtualization, it’s the OS that’s virtualized instead of the hardware level. OS-level virtualization offers performance and hardware utilization benefits just as hypervisor-based virtualization does, but its ties to the underlying OS makes it less flexible than both hosted and hypervisor-based virtualization products. OS-level virtualization has the advantage of low overhead, but it also requires each virtual OS (or container) to be the same and the hardware configuration for each container to be the same. Parallels Virtuozzo Containers is an example of an OSlevel virtualization solution.

I hope I’ve addressed some of the common questions and misconceptions that surround SQL Server and virtualization. Once you understand the available virtualization options for SQL Server, you can start to examine where they might fit into your environment. If you have questions about virtualizing SQL Server or have a story to tell about your company’s move to SQL Server virtualization, send us an email at letters@sqlmag.com or visit our SQL Server forums.



ARTICLE TOOLS

Comments
  • Victor
    4 years ago
    Sep 16, 2008

    Well, I would certainly disagree with Michael's statements about what is virtualization, etc. So he's definitely confusing the matter further instead of clarifying it. Virtualization, consolidation, multiple instances, etc... it's all been thrown into the mix here. it more than just "labels"/"definitions". For example, I don't see any relevance in saying that "from a management and implementation standpoint, there’s absolutely no difference between SQL Server running in a virtual machine (VM) or SQL Server running on a physical box."

    Microsoft is about to release a whitepaper on virtualizing SQL Server 2008 through Hyper-V. It is "interesting". So I will certainly be interested in people's reaction when it is made public.

  • Marcos
    4 years ago
    Sep 12, 2008

    Very good article about a hot topic. Thanks for the light over the subject.

  • Eric
    4 years ago
    Aug 29, 2008

    Thanks Michael.

    For virtualization of SQL Server, the utmost concern for me is not performance but DB integrity.

    SQL Server technical material (e.g. http://www.microsoft.com/technet/prodtechnol/sql/2000/maintain/sqliobasics.mspx) used to ask us to check with hardware vendor, to ensure any disk I/O must be harden on permanent storage (and so discourage any use of non-battery backed write back cache)

    I found the Virtualization Software vendor (even Microsoft itself) seems does not provide enough details to talk about that. As disk I/O command now require to pass through the Virtualization layer before reaching the storage tier, their behavior may ruin the original behavior if any sort of I/O re-ordering or caching occurs there.

    Should you found any material talks ahout tnat, please kindly advise.

You must log on before posting a comment.

Are you a new visitor? Register Here