


Hyper-V Serverに仮想OSとしてCentOS 5.3 X86をインストールしたが、LANを認識しなかった。
取り敢ず設定でレガシーネットワークを追加すればLANが利用できるようになったが、どうもLinuxを仮想OSにした場合Linux Integration Componentsをインストールした方が性能も上がる(?)らしい
Linux Integration Components for Windows Server 2008 Hyper-V R2
http://www.microsoft.com/downloads/details.aspx?FamilyID=c299d675-bb9f-41cf-b5eb-74d0595ccc5c&DisplayLang=en#filelist
ちなみに旧バージョンはこちら
Linux Integration Components for Windows Server 2008 Hyper-V – 日本語
http://www.microsoft.com/downloads/details.aspx?FamilyID=AB7F4983-93C5-4A70-8C79-0642F0D59EC2&displaylang=ja
Linux Integration ComponentsをDownload(Linux_IC_v2.EXE)してダブルクリックで実行すると「Linux_IC_v2.EXEは有効なWin32アプリケーションではありません。」
エラーになって解凍できない。仕方がないので取り敢ず解凍ソフトで解凍
2009/08/20 11:57 345,128 Linux Integration Components Read Me.pdf
2009/06/29 19:46 843,776 LinuxIC v2.iso
Linux Integration Components Read Me.pdfを読むと対応しているOSが
- SUSE Linux Enterprise Server 10 SP2 x86 and x64
- SUSE Linux Enterprise Server 11 x86 and x64
となっているがネットで調べると皆さん普通にインストールしているようなので、R2でも大丈夫でしょう
ただ、pdfには下記のように書かれているのでCentOSには開発ツールを事前にインストールしておく必要があります
Ensure that the optional package C/C++ Compiler and Tools is selected during installation. It is required to build and install the Linux Integration Components.
- LinuxIC v2.isoをHyper-V ServerのHDDにコピー
- 仮想OSであるCentOSにLinuxIC v2.isoをmount
- CentOSに必要なファイルをコピー
- setup.plを実行
- 再起動
- インストール後の確認
| 1 2 3 4 5 6 7 8 9 | [root@localhost /]# mkdir /opt/linux_ic [root@localhost /]# ls /media/ .hal-mtab       .hal-mtab-lock  CDROM/ [root@localhost /]# cp -R /media/CDROM/* /opt/linux_ic/ [root@localhost /]# cd /opt/linux_ic/ [root@localhost linux_ic]# ls -l 合計 8 drwxr-xr-x 3 root root 4096 10月 28 07:31 drivers -rwxr-xr-x 1 root root 3272 10月 28 07:31 setup.pl | 
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | [root@localhost linux_ic]# ./setup.pl drivers Checking if required components are installed...done. Installing Linux integration components (vmbus, enlightened ide, enlightened scsi and network drivers) for Hyper-V... Building vmbus driver...done. Building blkvsc driver...done. Building storvsc driver...done. Building netvsc driver...done. Installing vmbus driver...done. Installing blkvsc driver...done. Installing storvsc driver...done. Installing netvsc driver...done. Updating module dependencies. This may take a while... done. Installing various udev rules and scripts...done. Updating initrd image... Backing up /boot/initrd-2.6.18-128.el5.img to /boot/initrd-2.6.18-128.el5.img.backup0 Done. Updated /boot/initrd-2.6.18-128.el5.img Updating grub conf file... Done. Installing vmbus startup script... *** The drivers have been installed successfully.***       [  OK  ] | 
ロードモジュールの確認
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | [root@localhost ~]# lsmod Module                  Size  Used by autofs4                24261  2 hidp                   23105  2 rfcomm                 42457  0 l2cap                  29505  10 hidp,rfcomm bluetooth              53797  5 hidp,rfcomm,l2cap sunrpc                144765  1 dm_multipath           24013  0 scsi_dh                11713  1 dm_multipath video                  21193  0 hwmon                   7365  0 backlight              10049  1 video sbs                    18533  0 i2c_ec                  9025  1 sbs button                 10705  0 battery                13637  0 asus_acpi              19289  0 ac                      9157  0 ipv6                  261473  14 xfrm_nalgo             13381  1 ipv6 crypto_api             12609  1 xfrm_nalgo parport_pc             29157  0 lp                     15849  0 parport                37513  2 parport_pc,lp floppy                 57125  0 pcspkr                  7105  0 i2c_piix4              12237  0 ide_cd                 40161  1 i2c_core               23745  2 i2c_ec,i2c_piix4 cdrom                  36577  1 ide_cd serio_raw              10693  0 <span style="color: #ff0000;">netvsc                 45232  0</span> <span style="color: #ff0000;">storvsc                36772  0</span> <span style="color: #ff0000;">blkvsc                 40260  3</span> <span style="color: #ff0000;">vmbus                  56264  3 netvsc,storvsc,blkvsc</span> dm_raid45              66509  0 dm_message              6977  1 dm_raid45 dm_region_hash         15681  1 dm_raid45 dm_mem_cache            9537  1 dm_raid45 dm_snapshot            22245  0 dm_zero                 6209  0 dm_mirror              22981  0 dm_log                 14529  3 dm_raid45,dm_region_hash,dm_mirror dm_mod                 62201  11 dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log ata_piix               23621  0 libata                156677  1 ata_piix sd_mod                 25153  0 scsi_mod              141589  5 scsi_dh,storvsc,blkvsc,libata,sd_mod ext3                  124233  2 jbd                    56937  1 ext3 uhci_hcd               25421  0 ohci_hcd               24681  0 ehci_hcd               33357  0 | 
ネットワークの確認
		
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | [root@localhost ~]# ifconfig lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:16436  Metric:1           RX packets:1110 errors:0 dropped:0 overruns:0 frame:0           TX packets:1110 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:1977768 (1.8 MiB)  TX bytes:1977768 (1.8 MiB) <span style="color: #ff0000;">seth0</span>     Link encap:Ethernet  HWaddr 00:15:5D:0A:04:05             inet addr:192.168.1.1 Bcast:192.168.1.255  Mask:255.255.255.0           inet6 addr: fe80::215:5dff:fe0a:405/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:1286 errors:0 dropped:0 overruns:0 frame:0           TX packets:202 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:94742 (92.5 KiB)  TX bytes:20106 (19.6 KiB) | 
無事にインストールできました。
レガシーネットワークを使用しなくてもLANが利用できるようになりました