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.
Hyper-VVirtualizationMicrosoft SQL Server

Avatar of undefined
Last Comment
Philip Elder

8/22/2022 - Mon
Kamil Wszola

ASKER
Just to add, the Host in Windows Server 2012 R2.
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.
Kamil Wszola

ASKER
Physical drive where?  Host has physical drives.  Guest has VHD(X).
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Kamil Wszola

ASKER
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.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

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!
David Johnson, CD

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.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Kamil Wszola

ASKER
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?
Kamil Wszola

ASKER
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
David Johnson, CD

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Philip Elder

I have an EE Article: Some Hyper-V Hardware and Software Best Practices.

It addresses your questions and more.
Your help has saved me hundreds of hours of internet surfing.
fblack61