Link to home
Start Free TrialLog in
Avatar of Kamil Wszola
Kamil Wszola

asked on

Hyper-V with 1 Virtual Machine

I'm setting up a SQL Server.  The hosting company recommended to use Hyper V for easier maintenance.  So now we have 1 host machine with 1 guest.  The guest will be running SQL and it will be the only VM on the host.  In the past, without using Hyper V, we had 2 drive partitions, C with the OS and D with SQL and all the DATA.  Now since we are using Hyper V, is there any point to have 2 partitions on the guest system or is installing everything on the one C partition now OK?

Just to add, the host has 2 partitions.  C or the OS and D where the Virtual Machine is.
Avatar of Kamil Wszola
Kamil Wszola

ASKER

Just to add, the Host in Windows Server 2012 R2.
Avatar of David Johnson, CD
WHY did you use a physical drive and not a vhd(x) The same rules apply for virtual machines as they do for physical machines.
Physical drive where?  Host has physical drives.  Guest has VHD(X).
Host is RAID 10. Guest is VHD(X) with 1 partition C right now, but I'm thinking maybe I should shrink C, create and mount virtual D for the data.
Do not use OS partitions, create two virtual disks, e.g. two VHDs, C: and D:

it will be much easier in the future, to increase the size of disk and manipulate the disks, compared to partitions!

OS Partitions are old school, when we could only create 32MB partiitons on disks!
Sorry you confused me with the c: being host os and D: being virtual machine. The more spindles you can have i.e. 1 for OS , 1 for database, 1 for log files, 1 for temp files the better. I have no idea of what your storage is and what your IOPS are.  Note I said spindles and not volumes and there is a huge difference. so it depends upon the actual # of physical drives and not the # of logical drives.
Yeah, I meant VHDs.  Sorry for the confusion.

So to confirm, the guest has now just a C VHD.  You are saying that I should create a D VHD and mount it to the host, and put SQL on D, while keeping only the OS on C.  Correct?
Let me add screenshots.

The server is running RAID 10.  2 partitions on Host C and D.  C has OS.  D has the Virtual Machine.

I created 1 VHDX for the Guest Virtual Machine and Installed Windows on it.  

So basically my question is should the guest virtual machine have SQL installed on the C VHDX or should I create a D for SQL only?
Host.png
SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have an EE Article: Some Hyper-V Hardware and Software Best Practices.

It addresses your questions and more.