Solved

Can I run MS SQL 2008 R2 on VMware ?

Posted on 2011-02-23
12
663 Views
Last Modified: 2012-08-14
I have a question for you, I have 3 hosts Vmware Ent+ with HP SAN 24 HDDs 146 GB @ 15K  install and I want to run MS SQL 2008 R2 on it, would you advise to do it, or is it better to run it flat? I have WIndows Server 2008 R2 and approx 70 office users. Any imput would be greatly appreiacted from your own experience.
Thank you for your help.

0
Comment
Question by:ibozc
  • 4
  • 3
  • 3
  • +2
12 Comments
 
LVL 18

Expert Comment

by:sventhan
ID: 34964541
< Can I run MS SQL 2008 R2 on VMware?

Yes. You can run MS SQL 2008 R2 on VMware. What is your OS?
0
 
LVL 1

Assisted Solution

by:bos
bos earned 167 total points
ID: 34964615
Yes you can.  We run several SQL databases on VMware and one of them is SQL 2008.  VMware makes it easy to add hard disks to seperate your OS. DBs, and Logs.  

Our SQL 2008 database is actually clustered.   We have two seperate VMs connected to the database on the SAN using a Raw Device Mapping.  It seems to work out really well.

You can also use virtual disks instead of RDM if you like.
0
 
LVL 118
ID: 34964768
We use SQL 2008 R2 32 and 64 bit for our vCenter installations on VMware ESXi 4.1.
0
 
LVL 5

Expert Comment

by:chkdsk01
ID: 34965222
Like the answers above, yes.  I run SQL 2008 R2 in a VM and it is also my database for my VMware environment.
0
 

Author Comment

by:ibozc
ID: 34973899
Thank you guys, I just wanted to make sure, because I tried to move one of our MS SQL 2008 R2 installs from hardware server DL380 G5 to virtual environment and I experienced substancial lost of performance, eventhough I provided lots of resources. Searching became really slow...
Just quick question, if the server had 2 x 4 cores CPUs @ 3gb and when I moved it into VMware, I provided 8 VMCPUs and the performance was really slow. I was using the same servers in both cases. Any ideas? Suggestions? I have also 4 x1gb iSCSI SAN. Is 4x1Gb enough of bandwith?
Thank you.
0
 
LVL 118

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) earned 83 total points
ID: 34973969
Support and Performance are two different issues.

Well performance issues are another issue, on virtual environments, RAID type, Storage Type SAS or SATA, how many IOPS do you databases require (or had on the phyisical environment).

How many hits are the databases getting, how many concurrent users, and not ALL SQL databases are suitable for a virtual environment. How many virtual machines occupy the server, many variables to check.

and agaiin, I'll say, not all servers are good candidates for virtualisation depending on workload and infrastructure.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 1

Assisted Solution

by:bos
bos earned 167 total points
ID: 34973975
Because of the way VMware allocates resources there are cases where giving a single VM a large number of CPUs can actually slow the VM down.  I'd give the VM 2 or maybe 4 CPUs and see if you notice and improvement.  Our SQL 2008 install has 4 CPUIs and 8 GB of memory.  It runs better than the hardware  did.  I believe you iSCSI bandwidth is fine.
0
 
LVL 118
ID: 34973990
Personally, I would open another question in SQL, VMware and Storage Zones for Experts to discuss and comment.
0
 
LVL 1

Expert Comment

by:bos
ID: 34974002
Also, when we first implemented VMware we had iSCSI performance issues related to our core switch.  The core switch was 5 or 6 yrs old.  When we replaced it the iSCSI perfermance issues went away.
0
 
LVL 5

Assisted Solution

by:chkdsk01
chkdsk01 earned 250 total points
ID: 34974014
Yes, performance is another issue.  VMware performance is very different than a physical server performance.  Documentation from VMware dictates starting with a single vCPU and growing if needed.  I always start small and very rarely do I need to add a 2nd vCPU.  Thisis very likely to be your perf problem
0
 
LVL 5

Assisted Solution

by:chkdsk01
chkdsk01 earned 250 total points
ID: 34974055
Here is an excerpt from VMware vSphere performance best practices.

Use as few virtual CPUs (vCPUs) as possible. For example, do not use virtual SMP if your application is
single-threaded and will not benefit from the additional vCPUs.

Here is a link.  The cite is on pg 19.
http://www.google.com/url?sa=t&source=web&cd=1&sqi=2&ved=0CBYQFjAA&url=http%3A%2F%2Fwww.vmware.com%2Fpdf%2FPerf_Best_Practices_vSphere4.0.pdf&ei=GsFmTZ9Yh63wBsrSrI8L&usg=AFQjCNEOiRqB4lH9SOpEt5zip17WMURmBw
0
 
LVL 5

Accepted Solution

by:
chkdsk01 earned 250 total points
ID: 34974146
Sorry for the multiple posts but thoughts keep coming into my brain...

Anyway, I just wanted to say that I see this issue a lot.  The reason behind limiting vSMP when not necessary  is this.  When a virtual machine has multiple vCPUs the hypervisor has to schedule these cycles.  The more vCPUs a VM has, the more waiting the VM has to do for all physical CPU cycles to become available.  Thus degrading system performance.  When an application can utilize these CPUs the application will benefit from the additional vCPUs but again, CPU wait time may increase and cause issues.  I highly recommend reading the perf best practices and check out the white paper regarding how the CPU scheduler works.  A link for 4.1 is below.

http://www.vmware.com/resources/techresources/10131
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now