Hyper-V Network ตอนที่ 2

วันนี้อยู่ในสถานะการปัญหาบน Virtual Network คือ เครื่องมี Network
onboard จำนวน 2
port และอยู่บน PCI 1 card มี 1 port เป้าหมายเราจะทำ Network Team แล้วใช้ Hyper-V Manager สร้าง Virtual Network ให้ผูกกับ Team ที่สร้างขึ้นมาใหม่ ผลที่ออกมาคือ Hyper-V Manager แสดงข้อความ “Error Applying New Virtual Network Changes” และ “Cannot bind to (ชื่อ virtual network) because it is already bound to another virtual network” ปัญหานี้ Microsoft ได้ออกวิธีแก้ไขตาม KB 2486812

จากที่อธิบายเบื้องต้นเกี่ยวกับ Hyper-V Network ในตอนที่ 1  
ว่า ขั้นตอนการสร้าง Virtual Network นั้น Hyper-V จะแปลงโฉม Physical Network Card ไปเป็น Virtual Switch ถ้าเราดูที่ Property ของ Card จะมีรายการชื่อ Microsoft Virtual Network Switch Protocol หรือเรียกย่อว่า vms_pp ผมตั้งสมมติฐานไว้เลยว่า ถ้า Network port ไหนถูกใช้งานเป็น Virtual Switch ไปแล้วจะใช้ซ้ำไม่ได้ ซึ่งเราอาจสงสัยว่าก็ทำงานผ่าน GUI มันผิดได้อย่างไร อันนี้เป็นปัญหาที่ Microsoft ต้องไปแก้ที่ต้นเหตุหรืออาจมี่ข่าวดีใน Hyper-V 3 ก็ได้

วิธีการแก้ไขต้องใช้ Tools nvspbind เราสามารถ
download ได้ที่นี่ ขั้นตอนการแก้ไขให้ทำดังนี้

  1. จัดทำทะเบียน Network ให้เรียบร้อย เพื่อป้องกันความผิดพลาดซ้ำซ้อน ใช้ตัวอย่างด้านล่าง

Physical Port

ใช้งานอะไร

Network Connection Name

MAC

Friendly Name

On-Board 1

Management

Local Area Connection

xx-xx-xx-xx-xx-xx

HP NC382i DP Multifunction Gigabit Server Adapter #1

On-Board 2

Application (Team)

Local Area Connection 2

xx-xx-xx-xx-xx-xx

HP NC382i DP Multifunction Gigabit Server Adapter #2

PCI-A

Application (Team)

Local Area Connection 3

xx-xx-xx-xx-xx-xx

HP NC360T PCIe DP Gigabit Server Adapter #1

Team2

Team

Local Area Connection 4

xx-xx-xx-xx-xx-xx

 

 

 

  1. ใช้คำสั่ง c:\>nvspbind ผลเป็นตามด้านล่างสังเกตุตรง Highlight ตัวสีแดง

     

Hyper-V Network VSP Bind Application 6.1.7725.0.

Copyright (c) Microsoft Corporation. All rights reserved.

Adapters:

{2D0E05DE-E2DA-41D4-A81F-F4178AE39EBF}

“cq_cpqteammp”

“Team2”    <- Friendly Name

“Local Area Connection 4”:

disabled: ms_netbios (NetBIOS Interface)

disabled: ms_server (File and Printer Sharing for Microsoft Networks)

disabled: ms_pacer (QoS Packet Scheduler)

disabled: ms_msclient (Client for Microsoft Networks)

disabled: ms_lltdio (Link-Layer Topology Discovery Mapper I/O Driver)

disabled: ms_rspndr (Link-Layer Topology Discovery Responder)

disabled: ms_tcpip6 (Internet Protocol Version 6 (TCP/IPv6))

disabled: ms_netbt (WINS Client(TCP/IP) Protocol)

disabled: ms_smb (Microsoft NetbiosSmb)

disabled: ms_tcpip (Internet Protocol Version 4 (TCP/IPv4))

disabled: cq_cpqteam (HP Network Configuration Utility)


enabled: vms_pp (Microsoft Virtual Network Switch Protocol)

<-
มีปัญหาตรงนี้จุดที่ 1

 

{CAFD2418-32EF-4F64-B4E8-A3B155595587}

“b06bdrv\l2nd&pci_163914e4”

“HP NC382i DP Multifunction Gigabit Server Adapter #2”

“Brd-2”:

disabled: ms_netbios (NetBIOS Interface)

disabled: ms_server (File and Printer Sharing for Microsoft Networks)

disabled: ms_pacer (QoS Packet Scheduler)

disabled: ms_msclient (Client for Microsoft Networks)

disabled: ms_lltdio (Link-Layer Topology Discovery Mapper I/O Driver)

disabled: ms_rspndr (Link-Layer Topology Discovery Responder)

disabled: ms_tcpip6 (Internet Protocol Version 6 (TCP/IPv6))

disabled: ms_netbt (WINS Client(TCP/IP) Protocol)

disabled: ms_smb (Microsoft NetbiosSmb)

disabled: ms_tcpip (Internet Protocol Version 4 (TCP/IPv4))

enabled: cq_cpqteam (HP Network Configuration Utility)


disabled: vms_pp (Microsoft Virtual Network Switch Protocol)

 

{7005F7AD-0DB5-47F2-A302-FAE517BE56D0}

“pci\ven_8086&dev_105e”

“HP NC360T PCIe DP Gigabit Server Adapter”    <- Friendly Name

“Local Area Connection”:

disabled: ms_netbios (NetBIOS Interface)

disabled: ms_server (File and Printer Sharing for Microsoft Networks)

disabled: ms_pacer (QoS Packet Scheduler)

disabled: ms_msclient (Client for Microsoft Networks)

disabled: ms_lltdio (Link-Layer Topology Discovery Mapper I/O Driver)

disabled: ms_rspndr (Link-Layer Topology Discovery Responder)

disabled: ms_tcpip6 (Internet Protocol Version 6 (TCP/IPv6))

disabled: ms_netbt (WINS Client(TCP/IP) Protocol)

disabled: ms_smb (Microsoft NetbiosSmb)

disabled: ms_tcpip (Internet Protocol Version 4 (TCP/IPv4))

disabled: cq_cpqteam (HP Network Configuration Utility)


enabled: vms_pp (Microsoft Virtual Network Switch Protocol)
<-
มีปัญหาตรงนี้จุดที่ 2

cleaning up…finished (0)

 

  1. ใช้คำสั่ง nvspbind /u “friend name” (ดูเขียวๆ จาก result ที่ capture มาด้านบน) ด้านล่างเพื่อ disable
    Microsoft virtual network switch

     

    c:\>nvspbind /u “HP NC360T PCIe DP Gigabit Server Adapter”

    c:\>nvspbind /u “Team2”

 

เมื่อแก้เสร็จตาม 1-3 การสร้าง Virtual Network ก็จะทำได้

 

สรุป

การทำงานกับ Hyper-V เราควรมีการวางแผนและเตรียมทุกอย่างก่อนลงมือทำ อย่างปัญหาในตอนนี้เกิดจากมี NIC อันหนึ่งเคยถูกใช้เป็น Virtual Network แล้วต่อมาภายหลังไปสร้าง Team แล้วรวม NIC อันนี้ไปด้วยจึงมีปัญหา

 

Reference

  1. Knowledge base ของ Microsoft ที่แสดงวิธีแก้ไขปัญหา
    http://support.microsoft.com/kb/2486812 \
  2. เครื่องมือ nvspbind ที่ใช้แก้ปัญหา