xiaoyun.maoxy
2011-Apr-02 02:30 UTC
Re: [Xen-devel] Why set time on dom0, but takes no effect on
Thanks First I get this when run in domain 0. root@xmao # hwclock --debug hwclock from util-linux-2.13-pre7 hwclock: Open of /dev/rtc failed, errno=19: No such device. No usable clock interface found. Cannot access the Hardware Clock via any known method. Later I follow http://lists.xensource.com/archives/html/xen-users/2010-08/msg00012.html But after reboot, time is still the old one ---------->Date: Fri, 1 Apr 2011 15:15:28 +0200 >From: Pavel Mateja <pavel@netsafe.cz> >Subject: Re: [Xen-devel] Why set time on dom0, but takes no effect onRTC time>To: xen-devel@lists.xensource.com >Message-ID: <201104011515.29490.pavel@netsafe.cz> >Content-Type: Text/Plain; charset="us-ascii">> In dom0, I use date command to adjuest time, but after reboot, the time >> will come back to the time from BIOS. Is it make sense?>Try to run >hwclock --systohc >before reboot. There is no other way to store time during power off andsuch.>-- >Pavel Mateja_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Pavel Matěja
2011-Apr-02 21:10 UTC
Re: [Xen-devel] Why set time on dom0, but takes no effect on
On Sat 2. of April 2011 04:30:27 xiaoyun.maoxy wrote:> Thanks > > First I get this when run in domain 0. > > root@xmao # hwclock --debug > hwclock from util-linux-2.13-pre7 > hwclock: Open of /dev/rtc failed, errno=19: No such device. > No usable clock interface found. > Cannot access the Hardware Clock via any known method. > > Later I follow > http://lists.xensource.com/archives/html/xen-users/2010-08/msg00012.html > > But after reboot, time is still the old oneman hwclock: -f, --rtc=filename overrides the default /dev file name, which is /dev/rtc on many platforms but may be /dev/rtc0, /dev/rtc1, and so on. What is output of "dmesg | grep rtc"? -- Pavel Mateja _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel