VirtualBox

Ticket #9325 (closed defect: worksforme)

Opened 3 years ago

Last modified 3 years ago

RTC device not detected in Linux guest

Reported by: nmalinoski Owned by:
Priority: major Component: VMM
Version: VirtualBox 4.0.12 Keywords:
Cc: Guest type: other
Host type: other

Description

Host: Windows 7 Enterprise x64 Guest: Gentoo Linux 2.6.39-r3 x86_64

Using Device Drivers -> Real Time Clock -> PC-style 'CMOS' in the kernel config, no RTC devices are found on boot, causing hwclock to produce a "Cannot access the Hardware Clock via any known method." error on boot, and "hwclock: Open of /dev/rtc failed, errno=2: No such file or directory" and "No usable clock interface found." errors when 'hwclock --debug' is run as root.

However, disabling Device Drivers -> Real Time Clock and using Device Drivers -> Character Devices -> Enhanced Real Time Clock Support (legacy PC RTC driver) instead, no error is produced on boot, and hwclock behaves properly.

Change History

comment:1 Changed 3 years ago by frank

  • Status changed from new to closed
  • Resolution set to worksforme

So if the first option does not work then enabling the PC-style RTC is probably not enough. You can be assured that the VBox RTC device behaves correctly as many legacy guest operating systems detect it. And Linux detects it as well, just choose the correct kernel configuration.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use