ãã¬ã€äžã«å€æããããã«ãCitrix XenServerã«äœããã€ã³ã¹ããŒã«ããã®ã¯ããªãé¢åãªã¿ã¹ã¯ã§ããããœãŒã¹ãããã©ã€ããŒãã¢ã»ã³ãã«ããå¿ èŠãããå ŽåïŒããã¯ãŸãã«å¿ èŠãªããšã§ãïŒããšã«ããããã¯äžå¯èœãªã¿ã¹ã¯ã§ãã ç§ã®æšæž¬ã§ã¯ãããã¯å¶ç¶ã§ã¯ãªããã»ãã¥ãªãã£ãšãã¹ãã·ã¹ãã ã®ããã©ãŒãã³ã¹ã®çç±ã§è¡ããããã®ã§ããããã¯ãã·ã¹ãã å ã®ãã¹ãŠã®è¿œå ããã±ãŒãžããªãŒããŒããããå¿ èŠãšããã·ã¹ãã å šäœã®ã»ãã¥ãªãã£ãäœäžãããããã§ãã
èæ¯ïŒæ°ã«ãã人ã¯ã 次ã®ã»ã¯ã·ã§ã³ã«é²ãã§ãã ããïŒ
ãã§ã«é ã2010幎ãç§ã¯èªå® ã§ä»äºãããŠã24æéäœå¶ã§ããããã®é£ããã¿ã¹ã¯ãå®è¡ããè€æ°ã®ä»®æ³ãã·ã³ãåãããµãŒããŒãç«ã¡äžããŸããããããŠæãéèŠãªããšã¯ããã®éçã®é£ã«ãã人ã ã®å¹³åã劚ããŸããã é·ãéžæã®åŸïŒ
ããããæéãçµã€ã«ã€ããŠããã€ãã®ããã«ãããã¯èŠéããå§ããããå€ãã®VMãå¿ èŠã§ãããšèšãããŸãã-å®äºããŸããããã§ã«ããå°è±¡çãªæ§æã®i7 2.0ïŒ4ã³ã¢8ã¹ã¬ããïŒã16Gb Ramããããã«è©°ã蟌ãŸãããã¹ãŠãããŸããããšããã€ãã®Mac Miniãè³Œå ¥ãããŸããããããã1ã³ã¢ãš1GBã®Ramãå¿ èŠãšãã1å°ã®ãã·ã³ã§2å°ã®VMã®ã¿ãå®è¡ããã®ã¯ã©ããããããæ²ãããªããŸãããã€ã³ã¿ãŒãããã調ã¹ãŠãããã«èå³æ·±ããã€ããŒãã€ã¶ãŒãèŠã€ããããšã決å®ãããŸããã
ç 究äžã«HyperVãProxMoxãè©ŠãããŸããããéžæã¯XenãŸãã¯ãããXen Cloud Platformã§è¡ãããŸããããæ®å¿µãªããé·ãã¯ç¶ããããã€ãXCPãéãããããšããã¡ãã»ãŒãžã衚瀺ãããXenServerä»ã¯ç¡æã§ãäœãããããšã¯ãããŸãããXenServerã«ã¢ã¯ã»ã¹ããŠãã ããã ããã«-å€åãå€ãã®ãµãŒããŒãé«å¯çšæ§ãå¿ èŠã§ãã16GB RamãæèŒããå¥ã®ãµãŒããŒXeon e3-1240v2ããããã®åé¡ã®ããã«è³Œå ¥ãããŸããæã«ã¯ãå€åºå ã§ã®HA移è¡ãå¯èœãªXenã¯ã©ã¹ã¿ãŒãšãã®ä»ã®çŽ æµãªãã³ãçµã¿ç«ãŠãããŸããããæéãçµã€ã«ã€ããŠãnåã®VMã§1Gb / sã®åž¯åå¹ ããªããªããVMã€ã¡ãŒãžèªäœã®ããã«å®è¡ãããããšã«æ°ä»ãå§ããŸãããµãŒããŒå ã®NAS'aãããã³åãNAS'eã«ä¿åãããŠããããŒã¿ã 802.3adãå¯èœãªåççãªã¹ã€ãããé 眮ããããšã決å®ãã次ã«NAS'eã§ã€ãŒãµããããã£ãã«ã®æ°ã6x1GB / sã«å¢ããããµãŒããŒã§ã¯2x1GB / sã«å¢ãããŸããããApple Thunderbolt Ethernet Adapterãæã«å ¥ããšããã«éå§ããŸããéåèŸ²å Žã®æãããã«é¢ãããã®èšäºã«ãªããŸãã...
ããå§ããŸããã
ãããŠãç§ãã¡ã¯æã£ãŠããŸãïŒ
- Apple Thunderbolt Ethernet AdapterïŒMD463ZMïŒãBroadcom 10/100 / 1000BASE-T PCIeãããã¯ãŒã¯ã«ãŒããNetXtreme BCM57762
- Thunderboltã³ãã¯ã¿ãåãããã¶ãŒããŒãïŒã€ã³ã¿ãŒãã§ã€ã¹ã¯PCIeã«ããããã¯ã€ã€ãŒã®åœ¢ã®ã¿ïŒ
- XenCenterã䜿çšããWindowsã³ã³ãã¥ãŒã¿ãŒ
ä»åã®ã±ãŒã¹ã§ã¯ãXenServer 6.2ãã€ã³ã¹ããŒã«ãããSP1ã«ã¢ããããŒãããã2011幎åã°ã®Mac Mini Serverã察象ã§ããã
1.ã¢ããã¿ãŒãã³ãã¯ã¿ãŒã«æ¥ç¶ãããããã¯ãŒã¯ã±ãŒãã«ãæ¥ç¶ããŠãµãŒããŒãåèµ·åããŸãïŒåèµ·åããªããšæ€åºãããŸããïŒãã¢ããã¿ãŒãæ€åºããããã©ããã確èªããŸãã
[root@xNode1 ~]# lspci ... 0a:00.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge] 0b:00.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Controller [Cactus Ridge] 0c:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM57762 Gigabit Ethernet PCIe
Broadcomãæšæºãã©ã€ããŒã«ãã®ã¢ããã¿ãŒã®ãµããŒããå«ããªãã£ãçç±ã¯ç§ã«ã¯è¬ã®ãŸãŸã§ãããããããAppleãšã®äœããã®åæã«ãã£ãŠãããããµããŒãããªãã£ããšããäºå®ãæ®ã£ãŠããŸãã
2.åè¿°ã®ããã«ããã¹ãã·ã¹ãã ã«äœããã€ã³ã¹ããŒã«ããããšã¯éåžžã«åé¡ããããŸãããã¹ãŠã®äžèŠãªããã±ãŒãžãšãmakeããããããåãåãããããã©ã«ãã§ã¬ããžããªãCitrixã«èšå®ãããŠããããã§ãããã¡ãããCitrixã¬ããšbaserepoãééããŸãããããã¯ç§ãã¡ã®å Žåã§ã¯ãããŸãããã¡ãŒã«ãŒã®ããªã·ãŒããµããŒãããã·ã¹ãã ãè©°ãŸãããã害ãäžãããããªãããšãåæãšããŠããŸãã
Citrixã¯ãã·ã¹ãã ã®ãè¶ éããã¯ãªã¢ããã¬ãã«ã§ã¯éŠ¬é¹¿ã§ã¯ãããŸãããåãã«ãŒãã«ãšããã©ã€ããŒã€ã¡ãŒãžãæ§ç¯ããããã«å¿ èŠãªããã±ãŒãžã®å šã»ãããåããã·ã¹ãã ã®ã€ã¡ãŒãžãäœæãããã¹ãã·ã¹ãã ã«ç°¡åã«ã€ã³ã¹ããŒã«ã§ããŸãã ãã®ç£ã¯ãDriver Development KitïŒDDKïŒãšåŒã°ããŸããããããããŠã³ããŒãã§ããŸãïŒ http : //support.citrix.com/article/CTX139817 ïŒå·çæç¹ã§ã¯ãçŸåšã®ããŒãžã§ã³ã¯6.2 SP1ã§ãïŒã ãã®iso-shnikã¯ä»®æ³ãã·ã³ã€ã¡ãŒãžã«éããŸããããXenãµãŒããŒã«ã€ã³ããŒãããã«ã¯ããŸããªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã«ããŠã³ããã次ã«Xen Centerã§ãµãŒããŒãå³ã¯ãªãã¯ããŠéžæããå¿ èŠããããŸãã€ã³ããŒãã ã€ã³ããŒãããã«ã¯ãããŠã³ããããã€ã¡ãŒãžã®ddkãã©ã«ããŒã«ããova.xmlãã¡ã€ã«ãéžæããå¿ èŠããããŸãã ïŒã€ã³ããŒãããéã«ã€ãŒãµãããã€ã³ã¿ãŒãã§ãŒã¹ãè¿œå ããããšãå¿ããªãã§ãã ããïŒ
3.ã€ã¡ãŒãžãã€ã³ããŒããããåŸãã«ãŒãã«ãã¹ã¯ãŒããå²ãåœãŠãŸããããã©ã€ããŒãœãŒã¹èªäœãååŸããå¿ èŠããããŸããhttp ïŒ//www.broadcom.com/support/ethernet_nic/netxtreme_desktop.phpæäžéšã«ãããLinuxïŒtg3ïŒãšåŒã°ããŸããhabro-residentsã®äŸ¿å®ã®ããã«ãä¿®æ£æžã¿ã®ãœãŒã¹http://my-files.ru/Download/wqet0i/tg3-drv.zipããã§ã«æçš¿ããŠããŸãã
ãã¡ã€ã«ãDDKãµãŒããŒã«ã¢ããããŒãããŠãã解åããŸãã
[root@localhost ~]# wget http://my-files.ru/Download/wqet0i/tg3-drv.zip ... 2014-01-14 01:48:13 (776 KB/s) - `tg3-drv.zip` saved [349509/349509] [root@localhost ~]# unzip tg3-drv.zip
Broadcom Webãµã€ãã®å
ã®ãã©ã€ããŒã䜿çšããŠããå Žå
tg3-3.133d.tar.gzã¢ãŒã«ã€ãã«ããtg3.cãã¡ã€ã«ãç·šéããå¿
èŠããããŸãã ãã¡ã€ã«å
ã®è¡ãèŠã€ããŸãã
ããã€ã¹57762ã®èå¥åãè¿œå ãããšãæçµçã«ã¯æ¬¡ã®ããã«ãªããŸãã
... {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, TG3PCI_DEVICE_TIGON3_57761)}, {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, TG3PCI_DEVICE_TIGON3_57765)}, ...
ããã€ã¹57762ã®èå¥åãè¿œå ãããšãæçµçã«ã¯æ¬¡ã®ããã«ãªããŸãã
... {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, TG3PCI_DEVICE_TIGON3_57761)}, {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, TG3PCI_DEVICE_TIGON3_57762)}, {PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, TG3PCI_DEVICE_TIGON3_57765)}, ...
çµã¿ç«ãŠãåã«ããã©ã€ããŒã€ã¡ãŒãžãçµã¿ç«ãŠãã¹ã¯ãªãããå¿ èŠã§ãã ç§ãä¿®æ£ããã¹ã¯ãªããã®ããŒãžã§ã³ã¯ã httpïŒ//my-files.ru/Download/ntqvvd/tg3-proj.zipã§ååŸã§ããŸããå ã®http://discussions.citrix.com/topic/301614-bcm5754-tg3-and-vlan-tagging -do-not-work-in-xs6 / ããã¹ã16ïŒç»é²ãå¿ èŠã§ãïŒã
ãã¡ã€ã«ãããŠã³ããŒãããŠãã解åããŸãã
[root@localhost ~]# wget http://my-files.ru/Download/ntqvvd/tg3-proj.zip ... 2014-01-14 02:29:38 (72.6 MB/s) - `tg3-proj.zip` saved [1738/1738] [root@localhost ~]# unzip tg3-proj.zip
å
ã®ã¹ã¯ãªããã䜿çšããŠããå Žå
Makefileãç·šéããå¿
èŠããããŸã
ããã¯å€æããã¯ãã§ãïŒ
tg3.specãã¡ã€ã«ãç·šéããããšãå¿ èŠã§ã
ããã¯å€æããã¯ãã§ãïŒ
... RPM_VERSION := 3.110g // ... build-iso: build-rpms ... cd $(PACKAGE) && /usr/local/bin/build-supplemental-pack.sh --output=$(dir $(ISO)) ... // ... build-tarball: build-rpms ... cd $(PACKAGE) && /usr/local/bin/build-supplemental-pack.sh --output=$(dir $(ISO)) ... // ...
ããã¯å€æããã¯ãã§ãïŒ
... RPM_VERSION := 3.133d // ... build-iso: build-rpms ... cd $(PACKAGE) && build-supplemental-pack.sh --output=$(dir $(ISO)) ... // ... build-tarball: build-rpms ... cd $(PACKAGE) && build-supplemental-pack.sh --output=$(dir $(ISO)) ... // ...
tg3.specãã¡ã€ã«ãç·šéããããšãå¿ èŠã§ã
... Version: %{?version}%{!?version:3.110g} // ...
ããã¯å€æããã¯ãã§ãïŒ
... Version: %{?version}%{!?version:3.133d} ...
4.ãã©ã€ããŒã€ã¡ãŒãžã®ã¢ã»ã³ããªã«ç§»åããŸãã
[root@localhost ~]# cd tg3-drv/ [root@localhost tg3-drv]# make tg3_flags.h [root@localhost tg3-drv]# cd .. [root@localhost ~]# mv tg3-drv tg3-3.133d [root@localhost ~]# tar czvpf tg3-3.133d.tar.gz tg3-3.133d/ [root@localhost ~]# cp tg3-3.133d.tar.gz /usr/src/redhat/SOURCES/
äžèšã®ã¢ã¯ã·ã§ã³ã§ãã¹ã¯ãªããã¢ã»ã³ããªã®ãœãŒã¹ãæºåããŸãããã¹ã¯ãªãããå®è¡ããããã ãã«æ®ããŸãããã¹ã¯ãªãããå®è¡ããåã«ãã€ã¡ãŒãžã«çŸåšã®æå»ãèšå®ããŸããããããªããšãã¹ã¯ãªããã¯èŠåã§çµäºããŸãã
[root@localhost ~]# cd tg3-proj/ [root@localhost tg3-proj]# date 011311282014.30 //(, , , , 4 , ) Mon Jan 13 11:28:30 EST 2014 [root@localhost tg3-proj]# make ... Total translation table size: 0 Total rockridge attributes bytes: 780 Total directory bytes: 0 Path table size(bytes): 10 Max brk space used 21000 283 extents written (0 MB)
ãã¡ã€ã«tg3.isoãtg3.iso.md5ãtg3.metadata.md5ãªã©ããã©ã«ããŒã«è¡šç€ºãããŸããtg3.isoã«ã®ã¿é¢å¿ãããããã¹ããµãŒããŒã«éä¿¡ããå¿ èŠããããŸããããã¯ãsshãä»ããŠãã¡ã€ã«ãé§åããscpã³ãã³ãã䜿çšããŠè¡ããŸãã
[root@localhost tg3-proj]# scp tg3.iso root@192.168.0.2:/root/tg3.iso
5.æãé£ããéšåã¯èåŸã«ãããæ®ãã¯ãã¹ããµãŒããŒã«ãã©ã€ããŒãã€ã³ã¹ããŒã«ããããšã§ãããã®ããããµãŒããŒã«ãã°ã€ã³ããã«ã¯ãXen Centerã®ã³ã³ãœãŒã«ãã次ã®æé ãå®è¡ããŸãã
mkdir -p /mnt/tmp mount /root/tg3.iso /mnt/tmp -o loop,ro cd /mnt/tmp/ ./install.sh cd /root/ umount /mnt/tmp shutdown -r now
ãããã£ãŠãåèµ·ååŸã®æåŸã®ã¿ããã¯ãã¢ããã¿ãŒã䜿çšå¯èœãªããã€ã¹ã«è¡šç€ºãããªãããã§ããã¢ããã¿ãŒã衚瀺ããã«ã¯ããµãŒããŒã³ã³ãœãŒã«ã«ç§»åããxsconsoleã³ãã³ãã䜿çšããŠãããŒãžã£ãŒãåŒã³åºãã[ãããã¯ãŒã¯ãšç®¡çã€ã³ã¿ãŒãã§ã€ã¹]é ç®ã§[ç·æ¥]ãéžæããå¿ èŠããããŸããããã¯ãŒã¯ãªã»ãããã¯ãã¢ããã¿ãŒããªã»ããããThunderbolt Ethernet Adapterãåèµ·åãããšäœ¿çšå¯èœã«ãªããŸãã
PSæ zyãªäººã®ããã«ãç§ããã§ã«åéããŠæ€èšŒããç»åïŒ here ã