使用windows 2012 RC hyper-V的virtual FC

23 Jun

之前VMware的vSphere的一个功能是virtual FC到虚拟机内部。目前Windows 2012 RC的hyper-V也支持了。今天正好有截图和配置过程分享给大家。

  1. 配置虚拟的FC网络,请注意:这里可不是SAN交换机的概念,而是类似于一个二层switch 分配,扩大了广播域而已。
  2. clip_image001
  3. 为虚拟机创建一个HBA卡
  4. clip_image002
  5. 选择SAN网络,然后注意看到port address中的WWPN,一会在存储上还要使用到这个WWPN号。
  6. clip_image003
  7. 然后去存储上将对应的WWPN号创建好对应的端口对应。
  8. clip_image005
  9. 开启虚拟机。这时候你会发现虚拟机的开启变得缓慢了一些,这可能是因为vFC虚拟层的初始化需要一定时间。(vOS系统是windows 2008 r2,VHD格式还是hyper-v2.0版本)。
  10. 进入虚拟机,可以看到虚拟的HBA卡。
  11. clip_image004
  12. 然后刷新一下设备,可以发现存储磁盘了。
  13. clip_image006
  14. 可以正常的mount磁盘,并进行读写操作。
  15. clip_image007



目前遇到的问题是如何design vFC. 发现一段不错的描述:来自

You create a virtual SAN on the host (parent partition), for each HBA on the host that will be virtualized for VM connectivity to the SAN.  This is a 1-1 binding between virtual SAN and physical HBA, similar to the old model of virtual network and physical NIC.  You then create virtual HBAs in your VMs and connect them to virtual SANs.

And that’s where things can get interesting.  When you get into the FC world, you want fault tolerance with MPIO.  A mistake people will make is that they will create two virtual HBAs and put them both on the same virtual network, and therefore on a single FC path on a single HBA.  If that single cable breaks, or that physical HBA port fails, then the VM has pointless MPIO because both virtual HBAs are on the same physical connection.

The correct approach for fault tolerance will be:

  1. 2 or more HBA connections in the host
  2. 1 virtual SAN for each HBA connection in the host.
  3. 1 virtual HBA in each VM, with each one connected to a different virtual SAN
  4. MPIO configured in the VM’s guest OS.  In fact, you can (and should) use your storage vendor’s MPIO/DSM software in the VM’s guest OS.

Now you have true SAN path fault tolerance at the physical, host, and virtual levels.

1 Comment

Posted by on June 23, 2012 in Windows Server



One response to “使用windows 2012 RC hyper-V的virtual FC

  1. Elbert

    April 22, 2013 at 06:02

    It is perfect time to make a few plans for the future
    and it’s time to be happy. I have learn this put up and if I may just I wish to counsel you some fascinating issues or suggestions. Perhaps you could write next articles relating to this article. I wish to read more issues approximately it!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: