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
  • Create a virtual machine on an iSCSI server
8 / 22
  • Import Windows XP Mode of Microsoft
  • Improve VM graphics performance with RemoteFX
  • Microsoft
  • 20 October 2019 at 12:43 UTC
  • InformatiWeb

Create a Hyper-V virtual machine by storing its hard disk on an iSCSI server on WS 2012 R2 or WS 2016

As previously explained in our "Improve the storage performance of a virtual machine by using a physical hard disk" tutorial, it's possible to use a physical hard disk for the virtual hard disk of the virtual machine.

Since iSCSI hard disks are recognized by Windows Server as local hard disks, it's also possible to connect to an iSCSI server to directly use this type of storage.
So, with this tutorial, you can also exploit the storage of your NAS (Synology : for example) if it supports the iSCSI protocol.

  1. Configure the iSCSI server and client
  2. Create the virtual machine
  3. Install the guest operating system

1. Configure the iSCSI server and client

For the installation of the iSCSI server on Windows Server, refer to our tutorial : Windows Server 2012 - Install and configure an iSCSI server and an iSCSI client

Then, allow your Hyper-V server to access your iSCSI virtual disk on your iSCSI server.
In our case, our Hyper-V server has the IP address "10.0.0.101". So, we allowed this IP address on our iSCSI server so that our Hyper-V server could connect to our iSCSI virtual disk.

At the moment, the status of our virtual disk is "Not connected".

On your Hyper-V server, run the "iSCSI Initiator" program (which is installed by default and corresponds to the Windows Server iSCSI client).
Then, go to the "Discovery" tab and click on "Discover Portal".

Enter the IP address of your iSCSI server.

If the connection is successful, you will see your iSCSI server displayed in the "Targets" tab.
If this is the case, select it and click : Connect.

If the connection succeeds, the iSCSI virtual disk will appear as a local hard disk in the computer management.
By default, the iSCSI disk (500 GB in our case) is "Offline" and must remain so to be attached to a virtual machine.

Note : on Windows Server, this console is accessible via the server manager (in this menu : Tools -> Computer Management).

On the iSCSI server, you will see that the status of your virtual disk is "Connected".

For the moment, our iSCSI virtual hard disk is empty and therefore has a size of 4 MB (4096 KB).

2. Create the virtual machine

For the creation of the virtual machine, it's the same as when you want to use a physical hard disk.

Select the "Attach a virtual hard disk later" option.

In the settings of your virtual machine :

  • select the IDE controller (or SCSI controller if this type of controller is supported by the guest OS)
  • select : Hard Drive
  • click Add

As expected, our 500 GB iSCSI virtual disk is available in the "Physical hard disk" list.

Remember to choose an iso file to install the operating system into the virtual machine.

3. Install the guest operating system

Since iSCSI disks are not partitioned by default, the Windows installer displays an unallocated space of 500 GB.
Create the desired partitions, and then click Next to install Windows on this iSCSI disk.

Wait while installing Windows 7.

Once Windows is installed, you will see that your virtual disk on your iSCSI server has grown.

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.