解决hyper-v下的centos时间不能同步

使用crontab来同步,治标不治本

到微软网站下载支持包

Linux Integration Services v2.1 for Windows Server 2008 Hyper-V R2 - 中文(简体)

挂载iso文件

mount /dev/cdrom /mnt

mkdir /root/hyper-v

cp -R /mnt/* /root/hyper-v

cd /root/hyper-v

make

make install

reboot

 

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.

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.

Symmetric Multi-Processing (SMP) Support(对称多线程处理支持): Supported Linux distributions can use up to 4 virtual processors (VP) per virtual machine.

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.