Hyper-V中安裝Linux的集成服務3.2

首先你們去如下網址下載最新的Linux Integration Services Version v3.2 for Hyper-Vlinux

http://www.microsoft.com/zh-cn/download/details.aspx?id=28188centos

先介紹在redhat6.0下面安裝Hyper-V的集成服務,網絡

1.首先插入Linux Integration Services Version v3.2 for Hyper-Vide

<a href='https://s4.51cto.com/attachment/201207/004722819.jpg' target='_blank'><img src='https://s4.51cto.com/attachment/201207/004722819.jpg' border='0'  alt='插入Linux Integration Services Version v3.2 for Hyper-V' /></a>oop

2. 而後在hyper-v管理器中中止RedHat Enterprise Linux 6.x或是centos6.x,並在設置中移除舊版網絡適配器並添加新版的網絡適配器,而後在DVD驅動器中掛載剛纔下載的鏡像,保存設置。啓動linux。rest

3. 以root用戶登陸,此時執行ifconfig -a會出現以下結果ip

lo Linkencap:Local Loopbackget

inetaddr:127.0.0.1 Mask:255.0.0.0it

inet6addr: ::1/128 Scope:Hostio

UPLOOPBACK RUNNING MTU:16436 Metric:1

RXpackets:0 errors:0 dropped:0overruns:0 frame:0

TXpackets:0 errors:0 dropped:0overruns:0 carrier:0

collisions:0txqueuelen:0

RXbytes:0 (0.0 b) TX bytes:0 (0.0 b)

說明只有迴環鏈接,沒有可用的網卡。

4. 下面準備安裝集成服務

打開終端執行下面的命令

mkdir   /mnt/cdrom

mount   /dev/cdrom     /mnt/cdrom(掛載剛纔掛載的鏡像文件)

cd/mnt/cdrom

./install.sh

安裝完成後重啓系統

Reboot

5. 一樣用root登陸,執行ifconfig –a 顯示以下結果

 

eth2 Linkencap:Ethernet HWaddr 00:15:5D:E8:D9:11

inetaddr: 192.168.1.106 Bcast:192.168.1.255 Mask:255.255.255.0

inet6addr:2001:da8:20c:502:215:5dff:fee8:d911/64 Scope:Global

inet6addr:fe80::215:5dff:fee8:d911/64 Scope:Link

UPBROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RXpackets:11202 errors:0 dropped:0overruns:0 frame:0

TXpackets:460 errors:0 dropped:0overruns:0 carrier:0

collisions:0txqueuelen:1000

RXbytes:1147316 (1.0 MiB) TX bytes:67755 (66.1 KiB)

 

lo Linkencap:Local Loopback

inetaddr:127.0.0.1 Mask:255.0.0.0

inet6addr: ::1/128 Scope:Host

UPLOOPBACK RUNNING MTU:16436 Metric:1

RXpackets:0 errors:0 dropped:0 overruns:0frame:0

TXpackets:0 errors:0 dropped:0overruns:0 carrier:0

collisions:0txqueuelen:0

RXbytes:0 (0.0 b) TX bytes:0 (0.0 b)

說明網卡已經成功被發現。

6. 配置網卡

配置文件位置/etc/sysconfig/network-scripts/ifcfg-seth0。個人配置以下

DEVICE=seth0

BOOTPROTO=static(獲取ip方式)

IPADDR=192.168.1.106(按照本身的需求設置)

NETMASK=255.255.255.0

GATEWAY=192.168.1.1

ONBOOT=yes(開機自動激活)

配置好後執行下列命令service network restart重啓網絡服務,至此能夠不用舊版的網絡適配器來鏈接linux了。

注意:

此集成服務支持的host主機

Windows Server® 2008 Standard, Windows Server 2008 Enterprise, andWindows

Server 2008 Datacenter (64-bit versions only)

Microsoft® Hyper-V Server 2008

Windows Server® 2008 R2 Standard, Windows Server 2008 R2Enterprise, and Windows

Server 2008 R2 Datacenter 

Microsoft® Hyper-V Server 2008 R2

Note

Supported versions include those updated with Service Pack 1 orService Pack 2, where available.

此集成服務支持的guest主機

Red Hat Enterprise Linux 6.0 and 6.1 x86 and x64 (Up to 4 vCPU)

CentOS 6.0 x86 and x64 (Up to 4 vCPU)

相關文章
相關標籤/搜索