Using Hyper-V features to enhance storage
A comprehensive collection of articles, videos and more, hand-picked by our editors
Although Hyper-V virtual machines are usually configured to use virtual hard disks, they can be configured to connect
directly to a physical storage device. A virtual machine can connect to direct-attached storage (DAS) that is physically connected to the host server, or it can connect to a logical unit number on a SAN.
Those using the SCSI pass-through disk feature for the first time often have difficulty connecting a virtual machine (VM) to the desired disk. However, there is a method to the madness. The trick to making a logical unit number (LUN) available to a VM as a pass-through disk is that the LUN must not only be mapped to the host server but also be presented as offline.
The first step in the process is to connect the host server to the LUN. You don't have to do anything in this step if the LUN consists of DAS, but if the LUN resides on a SAN you will need to establish connectivity to the LUN from the Hyper-V server's host operating system.
Once connectivity is established, the LUN should be visible through the host OS disk management console. Normally, the disk management console shows the disk as offline (depending on the SAN policy). While this would seem to meet Hyper-V's criteria, there is one more issue to overcome before you can use the LUN as a SCSI pass-through disk: Ensuring the disk has been initialized.
If the disk management console displays the disk as "unknown," it means the disk has not been initialized and Windows cannot use it. In this situation, you must right-click on the disk and choose the "Initialize Disk" command from the shortcut menu. Windows will then ask if you want to initialize the disk using a Master Boot Record or a GUID partition table (GPT). A GPT is usually preferred, but you should base your selection on how the VM will use the pass-through disk.
When the Initialize Disk Wizard completes, the hard disk may display a status of "online." If this happens, you need to right-click on the disk and set the status to "offline." The LUN should now be ready to use for pass-through storage.