Menu
InformatiWeb Pro
  • Index
  • System admin
  • Virtualization

Login

Registration Password lost ?
FR
  • Windows Server
    • WMS 2012
    • WS2012 R2
    • WS2016
  • Citrix
    • Citrix NetScaler Gateway
    • Citrix XenApp / XenDesktop
    • Citrix XenServer
  • VMware
    • VMware ESXi
    • VMware vSphere
    • VMware Workstation
  • Microsoft
    • Hyper-V
  • RAID
    • Adaptec SmartRAID
  • UPS
    • APC Back-UPS Pro
  • InformatiWeb Pro
  • Virtualization
  • Microsoft
  • Courses
  • Learn how to create virtual machines with Hyper-V on WS 2012 R2 and WS 2016
  • Improve performance with a physical HDD
10 / 22
  • Improve VM graphics performance with RemoteFX
  • Automatically replicate virtual machines
  • Microsoft
  • 12 October 2019 at 12:01 UTC
  • InformatiWeb

Improve the storage performance of a virtual machine by using a physical hard disk with Hyper-V on WS 2012 R2 or WS 2016

If you often use virtualization, you should have noticed that you often lose performance (compared to a physical machine).

These performance losses occur mainly at the input / output level for the network and storage.

If you want to virtualize systems that need a lot of input / output at the storage level (such as database servers : Microsoft SQL Server or MySQL), it might be interesting to create a virtual machine that will directly use a hard disk physical rather than using a virtual hard drive.
Thus, the operating system and programs will be virtualized, but the data will be stored directly on the physical hard drive and not in a VHD or VHDX file.

  1. Create a virtual machine
  2. Attach a physical hard disk to a virtual machine
  3. Installing the guest operating system

1. Create a virtual machine

To get started, create a new virtual machine.

At the "Connect Virtual Hard Disk" step, select the option : Attach a virtual hard disk later.

As you can see, this virtual machine will not use any hard drives for the moment.

2. Attach a physical hard disk to a virtual machine

To attach a physical hard disk to a virtual machine, you must first detach it from the host system (the Hyper-V server).

For this, in the server manager, go to : Tools -> Computer Management.

Right-click on the hard drive to use from your virtual machine and click : Offline.

Now, this hard drive is "Offline".

This hard drive has disappeared from the file explorer.

In the Hyper-V Manager, select the virtual machine that you created earlier and click "Setting".

In the settings of this virtual machine :

  • select the IDE controller 0
  • select : Hard Drive
  • click : Add

Select "Physical hard disk" and select your physical hard disk.

Note : if the physical hard disk to use doesn't appear in the list, it means that this physical hard disk is not "Offline" on your Hyper-V server.

Since we didn't create a virtual hard disk while creating the virtual machine, the wizard stopped earlier than expected and didn't offer to select the CD/DVD to use to install the guest operating system.

To solve this little problem :

  • select the DVD Drive
  • select : Image file
  • click : Browse
  • select the iso file of the operating system to install in this virtual machine

Click OK to save the changes.

3. Installing the guest operating system

Now, you can use this virtual machine as a classic computer.
Start it.

The virtual machine starts and arrives, as expected, on the Windows installation.

As expected, the virtual machine recognizes the partitions of our physical hard disk.

If needed, delete the partition(s) of the physical hard disk.
To do this, select the partitions one by one, and then click : Drive options (advanced) -> Delete.

Partition the hard disk if you want, and then click Next to install Windows into the virtual machine.

Once under Windows, you will see that the physical hard drive will be recognized as a real hard drive in the guest system.
Except that the performance at the storage level will be much better.

Share this tutorial

Partager
Tweet

To see also

  • Hyper-V (WS 2012 R2 / 2016) - Create a generation 2 VM

    Microsoft 9/6/2019

    Hyper-V (WS 2012 R2 / 2016) - Create a generation 2 VM

  • Hyper-V (WS 2012 R2 / 2016) - Install Hyper-V and create your first VM

    Microsoft 8/10/2019

    Hyper-V (WS 2012 R2 / 2016) - Install Hyper-V and create your first VM

  • Hyper-V (WS 2012 R2 / WS 2016) - Automatically replicate virtual machines

    Microsoft 11/8/2019

    Hyper-V (WS 2012 R2 / WS 2016) - Automatically replicate virtual machines

  • Hyper-V (WS 2012 R2 / WS 2016) - Automatically replicate virtual machines (securely)

    Microsoft 11/15/2019

    Hyper-V (WS 2012 R2 / WS 2016) - Automatically replicate virtual machines (securely)

Comments

You must be logged in to post a comment

Share your opinion

Pinned content

  • Software (System admin)
  • Linux softwares
  • Our programs
  • Terms and conditions
  • Share your opinion

Contact

  • Guest book
  • Technical support
  • Contact

® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.

Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.