FreeBSD uses the year 1936 in qemu

Dominique Goncalves dominique.goncalves at gmail.com
Fri Jul 13 21:01:01 UTC 2007


Hi,

I'm trying to run FreeBSD 7.0-CURRENT as a guest in qemu-0.9.0 (using
freesbie), but FreeBSD thinks the current date is Sat 31 oct 1936.
newsyslog and syslogd do not start correctly.

Creating and/or trimming log files:
newsyslog:
malformed 'at' value:
/var/log/all.log                        600  7     *    @T00  J

.
Starting syslogd.
Oct 31 17:01:25  syslogd: /var/log/messages: No such file or directory
Oct 31 17:01:25  syslogd: /var/log/security: No such file or directory
Oct 31 17:01:25  syslogd: /var/log/auth.log: No such file or directory
Oct 31 17:01:25  syslogd: /var/log/maillog: No such file or directory
Oct 31 17:01:25  syslogd: /var/log/lpd-errs: No such file or directory
Oct 31 17:01:25  syslogd: /var/log/xferlog: No such file or directory
Oct 31 17:01:25  syslogd: /var/log/cron: No such file or directory
Oct 31 17:01:25  syslogd: /var/log/debug.log: No such file or directory
Oct 31 17:01:25  syslogd: /var/log/slip.log: No such file or directory
Oct 31 17:01:25  syslogd: /var/log/ppp.log: No such file or directory

Of course I can use ntpd or ntpdate but it's too late in the startup order.
I found a similar problem [1] reported which proposes a fix [2].
I applied the patch in PR i386/111117 and the date is now set
correclty inside qemu.

Is this a bug in FreeBSD or qemu ?

Thanks,
Regards.

[1] : http://lists.freebsd.org/pipermail/freebsd-current/2007-April/070394.html
[2] : http://www.freebsd.org/cgi/query-pr.cgi?pr=111117

-- 
There's this old saying: "Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life."


More information about the freebsd-current mailing list