On 06/27/2009 12:16 AM, Ethan Grammatikidis wrote:
> I'm running plan 9 in qemu, I want to use the qemu-emulated hardware clock 
> for the plan 9 time because it keeps the same time as the host.
> 
> I made a script to be sourced from cpurc:
> 
>       #!/bin/rc
>       
>       echo '> starting timesync'
>       
>       if (! test -e '/dev/rtc')
>               bind -a '#r' /dev
>       aux/timesync -r
> 
> The script runs at boot, the echo tells me that much, but the time is not 
> set, perhaps as if timesync -r is not working. To be specific the date a few 
> minutes after booting is Sun Jan  2 18:30:36 GMT 2000.
> 
> Should I not use timesync at all? I ask because $boottime (which is set 
> before timesync is started) contains a reasonable date.


I also run Plan 9 in qemu, the:

        aux/timesync -n pool.ntp.org

solved a similar problem here.

Hope that helps,
-- 
Balwinder S "bdheeman" Dheeman        Registered Linux User: #229709
Anu'z li...@home (Unix Shoppe)        Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India         Plan9, T2, Arch/Debian/FreeBSD/XP
Home: http://werc.homelinux.net/      Visit: http://counter.li.org/

Reply via email to