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