Iain Kay
2010-Aug-01 17:57 UTC
[Xen-users] No access to hwclock on Dom0 / Xen 4.0.1-rc5-pre / pv_ops 2.6.31.13
Hello all, I recently installed Xen 4.0.1-rc5-pre on CentOS 5.5 from the xen-4.0-testing repo. Everything seems to be working good; got it running with 2.6.31.13 pv_ops kernel, been testing the Xen API, pv-grub, Windows HVM with the WHQL certified pv drivers. Now I have realised that Dom-0''s cmos clock is 3 hours out. So I attempt to correct it locally, then push the changes to the hardware clock. I run the following command on Domain-0. Here''s what happens: [root@indigo ~]# hwclock --systohc Cannot access the Hardware Clock via any known method. Use the --debug option to see the details of our search for an access method. [root@indigo ~]# I was able to use the hwclock command fine before booting the Xen pv_ops kernel. I have gone through kernel config lines and ensured that CONFIG_RTC_...etc is enabled, have tried compiling the modules for rtc drivers and loading them one by one but to no avail. Any input would be greatly appreciated. Thanks. Iain Kay _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Aug-01 18:06 UTC
Re: [Xen-users] No access to hwclock on Dom0 / Xen 4.0.1-rc5-pre / pv_ops 2.6.31.13
On Mon, Aug 2, 2010 at 12:57 AM, Iain Kay <i.kay@me.com> wrote:> Here''s what happens: > [root@indigo ~]# hwclock --systohc > Cannot access the Hardware Clock via any known method. > Use the --debug option to see the details of our search for an access method. > [root@indigo ~]# > > I was able to use the hwclock command fine before booting the Xen pv_ops kernel. I have gone through kernel config lines and ensured that CONFIG_RTC_...etc is enabled, have tried compiling the modules for rtc drivers and loading them one by one but to no avail. > > Any input would be greatly appreciated.Try this: mv /dev/rtc /dev/rtc.old cp -a /dev/rtc0 /dev/rtc hwclock --systohc -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Iain Kay
2010-Aug-01 18:13 UTC
Re: [Xen-users] No access to hwclock on Dom0 / Xen 4.0.1-rc5-pre / pv_ops 2.6.31.13
Fajar, You are a star! That did the trick. Unfortunately it won''t persist after reboot but adding those lines to /etc/rc.local is a nice quick fix. Thanks again. Iain Kay On 1 Aug 2010, at 19:06, Fajar A. Nugraha wrote:> On Mon, Aug 2, 2010 at 12:57 AM, Iain Kay <i.kay@me.com> wrote: >> Here''s what happens: >> [root@indigo ~]# hwclock --systohc >> Cannot access the Hardware Clock via any known method. >> Use the --debug option to see the details of our search for an access method. >> [root@indigo ~]# >> >> I was able to use the hwclock command fine before booting the Xen pv_ops kernel. I have gone through kernel config lines and ensured that CONFIG_RTC_...etc is enabled, have tried compiling the modules for rtc drivers and loading them one by one but to no avail. >> >> Any input would be greatly appreciated. > > Try this: > mv /dev/rtc /dev/rtc.old > cp -a /dev/rtc0 /dev/rtc > hwclock --systohc > > -- > Fajar_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users