xenserver中的虚拟机时间无法修改
点击(此处)折叠或打开
- [root@host2 ~]# date -s "2012-4-10 9:13"
- Tue Apr 10 09:13:00 CST 2012
- [root@host2 ~]# date -s "2012-4-10 9:13"
- Tue Apr 10 09:13:00 CST 2012
- [root@host2 ~]# date -s "2012-4-10 9:13"
- Tue Apr 10 09:13:00 CST 2012
- [root@host2 ~]#
- [root@host2 ~]#
- [root@host2 ~]#
- [root@host2 ~]# date
- Wed Apr 11 02:11:09 CST 2012
在sysctl.conf配置文件中加入:
点击(此处)折叠或打开
- [root@host2 ~]# cat /etc/sysctl.conf
- xen.independent_wallclock=1
- [root@host2 ~]# /sbin/sysctl -p
测试OK
点击(此处)折叠或打开
- [root@host2 ~]# date -s "2012-4-10 9:15"
- Tue Apr 10 09:15:00 CST 2012
- [root@host2 ~]# date
- Tue Apr 10 09:15:01 CST 2012
转载于:https://blog.51cto.com/sunyu/864476