VMware vSphere 5.1 ã® SR-IOV æ§ç¯æé - (2) ESXi ãã¹ãå´ã®è¨å®
ãã¼ãã¦ã§ã¢å´ã§ SR-IOV ãæå¹ã«ãªãã¾ãããã次㫠ESXi å´ã®è¨å®ãè¡ãã¾ãã
è¨å®æé 㯠VMDirectPath I/O ã¨ã»ã¼ä¸ç·ã§ãã®ã§ãååã®æå¾ã«ãç´¹ä»ãã
SR-IOV と VMDirectPath I/O の関係 ãæãåºãã¨ç解ããããããããã¾ããã
ESXi ãã¤ãã¼ãã¤ã¶ã¼å´ã§ SR-IOV ãæå¹åãã
ä¸è¨ã¯é常æã® VMDirectPath I/Oï¼PCI ãã¹ã¹ã«ã¼ï¼ã®ç»é¢ã§ãã
SR-IOV ã¯ã¾ã æå¹ã«ãªã£ã¦ãã¾ããã
ãã㧠SR-IOV ãæå¹ã«ãã¾ãã
PowerShell 㧠CLI è¨å®ãã Hyper-V ã¨åæ§ã«ãESXi ã CLI (esxcli) ã§è¨å®ãã¾ãã
# esxcli system module parameters set -m ï¼ãã©ã¤ãï¼ -p "max_vfs=ï¼VF æ°ã®é åï¼"
# esxcli system module parameters list -m be2net Name Type Value Description ---------------- ------------ -------- ------------------------------- heap_initial int Initial heap size allocated for th... heap_max int 20971520 Maximum attainable heap size for t... max_vfs array of int Number of Virtual Functions: 0 = d... skb_mpool_initial int Driver's minimum private socket bu... skb_mpool_max int Maximum attainable private socket ... vlan_offload uint Enable or disable VLAN HW offload ... # # # esxcli system module parameters set -m be2net -p "max_vfs=16,16" # # # esxcli system module parameters list -m be2net Name Type Value Description ---------------- ------------ ----- ------------------------------- Name Type Value Description heap_initial int Initial heap size allocated for the d... heap_max int Maximum attainable heap size for the ... max_vfs array of int 16,16 Number of Virtual Functions: 0 = dis... skb_mpool_initial int Driver's minimum private socket buffe... skb_mpool_max int Maximum attainable private socket buf... vlan_offload uint Enable or disable VLAN HW offload fea... # #
SR-IOV ãæå¹ã«ãããã©ã¡ã¼ã¿ã¯ ãmax_vfsã ã ãã§ãã
ãã®ãã©ã¡ã¼ã¿ã¯é
ç®åã®ã¨ãã SR-IOV VF *1 ã®è¨å®ã§ãããã¥ã¢ã«ã«ã¯æ¬¡ã®ããã«æ¸ããã¦ãã¾ãã
ã³ã³ã ï¼,ï¼ ã§åºåããããªã¹ãã«å¤ãè¨å®ãã¾ãããã®ãªã¹ãã¯ãåã ã®ç©çæ©è½ã«è¨å®ããä»®æ³æ©è½æ°ã®ä¸è¦§ã§ããå¤ 0 ã¯ãç©çæ©è½ã§ SR-IOV ãæå¹ã«ãªããªããã¨ãæå³ãã¾ãã
ãã¨ãã°ããã¥ã¢ã« ãã¼ããããããããã«æ¬¡ã®å¤ãè¨å®ããã¨ãã¾ãã
x,x
ããã§ãx ã¯ä½æãã VF æ°ã§ããEmulex NIC ã®æå¹å¤ã¯ããã¼ãå½ãã 0 ã 16 ã§ãã
http://pubs.vmware.com/vsphere-51/topic/com.vmware.vsphere.networking.doc/GUID-C5043E19-F84D-4E2E-9162-16D9967C2DB8.html
åä¸ãã¹ãã® VF åè¨ã 64 ãªãã°ããã¥ã¢ã« ãã¼ã ã«ã¼ã 2 æã 16,16,16,16 ã«è¨å®ããå¿ è¦ãããã¾ãã
åããã«ããã®ã§å°ã解説ããã¨ãVF ã¨ã¯ SR-IOV NIC ã«å
èµãããä»®æ³ã¹ã¤ããã®ãã¼ãã§ãããã®ãã¼ãæ°ã¯ NIC ã«ãã£ã¦ç°ãªããä»åå©ç¨ãã Emulex BE3 ã®å ´åã¯ãä¸è¨ããã¥ã¢ã«ã®ã¨ãããï¼ãã¼ãããã 16 VFsãã«ãªãã¾ãã
ãããã«ã³ãåºåãã®é
åã¨ãã¦å
¥åãã¾ãã
- Emulex BE3 2ãã¼ãã¢ãã« x 1æã®å ´åï¼è¨ï¼ãã¼ãï¼
- max_vfs=16,16
- Emulex BE3 2ãã¼ãã¢ãã« x 2æã®å ´åï¼è¨ï¼ãã¼ãï¼
- max_vfs=16,16,16,16
ãªããmax_vfs ã®è¨å®ã¯ GUIï¼ãã¹ããããã¡ã¤ã«ï¼ã§ãè¡ãã¾ãã
ä½ããSR-IOV 㯠vSphere 5.1 ã®æ°æ©è½ã§ãããã WebClient ã§è¨å®ããå¿ è¦ãããããã§ããå¾æ¥ã® Win32 çã® vSphere Client ã§ã¯ãã¡ãããã®ã§ã注æãã ããã
ESXi ãã¤ãã¼ãã¤ã¶ã¼ã§ SR-IOV ãæå¹ã«ãªãã¨ã
å
ã»ã©ã® VMDirectPath I/O ã®ç»é¢ãå¤åãã¾ãã
åé ã®ç»åã§ã¯ 07:00.1 㨠07:00.2 ã¨2ãã¼ããããªãã£ããEmulexããã§ãããSR-IOV ãæå¹ã«ãããã¨ã§å¢æ®ãã¦ãã¾ãããããå
ã»ã©æå¹åãã VF ã§ãã
ä»åã® CNA 㯠16 VFs x 2ãã¼ãã§ããã®ã§ãåè¨ 32 VFs ã追å ããã¦ãã¾ãã
ä»®æ³ãã·ã³ã« VF NIC ãå²ãå½ã¦ã
ãã¤ãã¼ãã¤ã¶ã¼ã VF ãæ£ããèªèããããã²ã¹ãã« VF NIC ãå²ãå½ã¦ã¾ãã
ãã®ä½æ¥ã¯ VM DirectPath I/O ã¨å ¨ãä¸ç·ã§ãPCI ããã¤ã¹ãã¨ãã¦ããããã¾ããä»®æ³ãã·ã³ãã¼ã¸ã§ã³ã 8 ã§è¯ããã° vSphere Client ã§ãè¨å®å¯è½ã§ãã
VF NIC ã¯é©å½ã«å²ãå½ã¦ãã®ã§ã¯ãªãã次ã®ãããªæèãå¿
è¦ãããã¾ãã
- ç©çãã¼ã (PF) ã®åã VF NIC éã®é信㯠NIC å ã®ä»®æ³ã¹ã¤ããã§åæã§ããããããã©ãã£ãã¯ãã¢ãããªã³ã¯ãæµããã«æ¸ã¿ã¾ãã
- ä½ããNIC ã®åé·åï¼ãã¼ãã³ã°ï¼ãè¡ãå ´åã«ã¯ãç©çãã¼ãã®ç°ãªã VF NIC ããããããªããã°ãªãã¾ããã
Hyper-V 㯠PF NIC ããã¤ãã¼ãã¤ã¶ã¼å
ã®ä»®æ³ã¹ã¤ããã«å²ãå½ã¦ãã®ã§ããã®ãããã¯èªååããã¾ããããã«å¯¾ããVMware ã®å ´å㯠PF ã¯å®å
¨ã«ãã¼ã¿ãããªããã管çè
ã¯ä¸è¨ã®ãããªãã¤ã³ãã®ç解ãå¿
è¦ã§ãããããã ãæè»ãªå¶å¾¡ã»è¨è¨ãå¯è½ã§ãã
ä¸è¬çã«ã¯ãåé·åï¼ãã¼ãã³ã°ï¼ãèæ
®ãã¦ãç©çãã¼ããç°ãªã VF NIC ããã¢ã«ãã¦ä»®æ³ãã·ã³ã«å²ãå½ã¦ã¦ãããã¨ã«ãªãã¨æãã¾ãã
é常ã®ä»®æ³ NIC ã¨æ¯ã¹ã¦ GUI ããã¯ä½ãè¨å®ã§ãã¾ããã
æ§ææ
å ±ãã¡ã¤ã« (*.vmx) ãè¦ãã¨ã次ã®ãã©ã¡ã¼ã¿ã追å ããã¦ãã¾ãã
pciPassthru0.present = "TRUE"
pciPassthru0.deviceId = "710"
pciPassthru0.vendorId = "19a2"
pciPassthru0.systemId = "50be25f8-ff8a-ae24-da12-2c768a53dd70"
pciPassthru0.id = "07:04.0"
ä»®æ³ãã·ã³ã®ååèµ·åæã«ã¯ãä¸è¨ãã©ã¡ã¼ã¿ã追å ããã¾ããã00-0c-29ãããå§ã¾ããã® MAC ã¢ãã¬ã¹ã¯ç©ç NIC ã® OUI ã§ã¯ãªã VMware 社の登録 OUI ã§ããã¤ã¾ãä»®æ³ã¢ãã¬ã¹ã§ãã®ã§ pciPassthru0.generatedMACAddress ãä¿®æ£ãããã¨ã§å¤ãå¤æ´ã§ãã¾ãã
pciPassthru0.pciSlotNumber = "224"
pciPassthru0.MACAddressType = "generated"
pciPassthru0.generatedMACAddress = "00:0c:29:52:3b:ca"
pciPassthru0.generatedMACAddressOffset = "101"
ä»®æ³ãã·ã³ãç«ã¡ä¸ããã¨ããã¾ã§æ¥ã¾ããã
次回 ã¯ã²ã¹ãå´ã®è¨å®å
容ã¨å¶ç´äºé
ã«ã¤ãã¦èª¬æãã¾ãã