centos 安装在hyper-v里怎么安装集成服务包

2020-06-22 科技 81阅读
1、在Hyper-V控制台新建虚机,注意虚机的网卡先选择“旧版网络适配器”,主要是方便有关服务的网络在线安装。因为“网络适配器”在没有安装集成服务的情况下,是不能进行网络连接的。
2、到微软网站下载支持包,Linux Integration Services v2.1 for Windows Server 2008 Hyper-V R2
http://www.microsoft.com/downloads/zh-cn/details.aspx?displaylang=zh-cn&FamilyID=eee39325-898b-4522-9b4c-f4b5b9b64551
解压得到LinuxIC v21.iso文件,该ISO文件即是我们需要的Hyper-V上的相关硬件的驱动。
3、保证网络的畅通,安装下述组件[当然也可以用安装光盘进行安装]
view plain copy# yum install gcc make kernel-devel -y
如果是64位系统,则还要安装额外的adjtimex包,因此执行下面的安装命令:
view plain copy# yum install gcc make kernel-devel adjtimex -y
4、在Hyper-V控制台上,将LinuxIC v21.iso镜像文件放入系统的光驱中,然后SSH登陆到系统中,将光盘mount到/media/目录下
view plain copy# mount /dev/cdrom /media/ mount: block device /dev/cdrom is write-protected, mounting read-only
5、开始安装Linux Integration Services
view plain copy# cd ~ # mkdir linuxIC_v2.1 # cp -R /media/* ~/linuxIC_v2.1/ # cd ~/linuxIC_v2.1 # make # make install # reboot
6、系统重启之后,执行ip addr命令,会看到seth0这个网络接口,该网络接口就是文章的一开始提到的,需要安装集成服务才能使用的“网络适配器”,也说明Linux Integration Services在你的虚拟服务器上安装成功了。此时也就可是使用“网络适配器”,以使你的系统达到最佳性能。
view plain copy# ip addr 1: lo: mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo 2: seth0: mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:15:5d:81:04:3c brd ff:ff:ff:ff:ff:ff inet 10.36.128.97/24 brd 10.36.128.255 scope global seth0 3: eth0: mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:15:5d:81:04:3d brd ff:ff:ff:ff:ff:ff inet 10.36.128.6/24 brd 10.36.128.255 scope global eth0
7、下面是我翻译的Hyper-V虚拟机的 Linux 集成服务 v2.1的一些特性
① Driver support for synthetic devices [虚拟设备驱动支持]
Linux Integration Services supports the synthetic network controller and the synthetic storage controller that were developed specifically for Hyper-V.
Linux集成服务支持虚拟网络适配器和虚拟存储控制器(只SCSI控制器),该集成服务是针对Hyper-V进行开发的。
② Fastpath Boot Support for Hyper-V [Fastpath引导支持]
Boot devices take advantage of the block Virtualization Service Client (VSC) to provide enhanced performance.
启动设备利用块级的虚拟服务客户端,以提供增强的性能。
③ Timesync [时间同步]
The clock inside the virtual machine will remain synchronized with the clock on the host.
保持虚拟机内的时钟与(真实)主机上的时钟同步。
④ Integrated Shutdown [集成关机]
Virtual machines running Linux can be gracefully shut down from either Hyper-V Manager or System Center Virtual Machine Manager.
无论是从Hyper-V管理器还是从系统虚拟机管理中心,都可以正常关闭正在运行Linux系统的虚拟机。
⑤ Symmetric Multi-Processing (SMP) Support [对称多线程处理支持]
Supported Linux distributions can use up to 4 virtual processors (VP) per virtual machine.
对应运行Linux发行版本的虚拟机,每个虚拟机可以支持4个虚拟处理器(VP)。
⑥ Heartbeat [心跳检测]
Allows the host to detect whether the guest is running and responsive.
允许主机检测(虚拟)客户机是否正在运行或有响应。
⑦ Pluggable Time Source [可插入的时钟源]
A pluggable clock source module is included to provide a more accurate time source to the guest.
包含一个可插入的时钟源模块,为了给(虚拟)客户机提供更准确的时间源。
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com