VB 3.0.10 on snow leopard. Date/time issue after sleep

Discussions about using Solaris guests in VirtualBox.
Post Reply
magphil
Posts: 1
Joined: 12. Nov 2009, 11:07
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: opensolaris

VB 3.0.10 on snow leopard. Date/time issue after sleep

Post by magphil »

Hi,

I have seen a similar post for VB 2.1.2

Here I have VB 3.0.10, running on snow leopard host.

Open solaris does not resync time/date after mac wakes up from sleep.

Also, the dhcp config does not change automatically when I switch network.

dhcp config correctly changes if I run osol guest in fuson 3 (but I have other issues in fusion so cannot use it)

Cheers
seiryu
Posts: 4
Joined: 12. Nov 2009, 19:02
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Solaris

Re: VB 3.0.10 on snow leopard. Date/time issue after sleep

Post by seiryu »

I'm seeing a similar issue and there appear to be a number of clock sync threads in various forums.

In my case, it's the virtual guest that I'm pausing. When I restart it, the time picks back up from when the guest state was saved and never recovers.

This thread: http://forums.virtualbox.org/viewtopic.php?t=21201 pointed me in the direction of the /opt/VirtualBoxAdditions/VBoxService

My configuration:
Host:OSX Snow Leopard, VBox 3.0.10
Guest: OpenSolaris snv_126 (same issue seen on 122)
Guest additions from 3.0.10 are installed.

From /var/adm/messages file on the guest I see:

Nov 12 08:13:22 kelekona-vb vboxguest: [ID 752672 kern.notice] NOTICE: rtR0MemObjNativeLockUser: as_pagelock failed rc=13
Nov 12 08:13:43 kelekona-vb last message repeated 8 times
Nov 12 08:13:46 kelekona-vb mac: [ID 486395 kern.info] NOTICE: e1000g0 link down
[**** Guest state saved here ****]
Nov 12 08:13:51 kelekona-vb mac: [ID 435574 kern.info] NOTICE: e1000g0 link up, 1000 Mbps, full duplex
Nov 12 08:13:52 kelekona-vb /sbin/dhcpagent[101]: [ID 967406 daemon.warning] refreshing state on e1000g0
Nov 12 08:13:52 kelekona-vb /sbin/dhcpagent[101]: [ID 778557 daemon.warning] configure_v4_lease: no IP broadcast specified for e1000g0, making best guess
Nov 12 08:13:53 kelekona-vb vboxguest: [ID 752672 kern.notice] NOTICE: rtR0MemObjNativeLockUser: as_pagelock failed rc=13
Nov 12 08:20:11 kelekona-vb last message repeated 107 times
Nov 12 08:20:21 kelekona-vb vboxguest: [ID 752672 kern.notice] NOTICE: rtR0MemObjNativeLockUser: as_pagelock failed rc=13
Nov 12 08:27:16 kelekona-vb last message repeated 119 times
Nov 12 08:27:27 kelekona-vb vboxguest: [ID 752672 kern.notice] NOTICE: rtR0MemObjNativeLockUser: as_pagelock failed rc=13

I've tried running VBoxService in verbose mode in foreground and get the following:

sudo /opt/VirtualBoxAdditions/VBoxService -f -v
VBoxService: Started. Verbose level = 1
VBoxService: error: Error writing guest property "/VirtualBox/GuestInfo/OS/Product" (rc=VERR_NET_PROTOCOL_ERROR)
VBoxService: error: Error writing guest property "/VirtualBox/GuestInfo/OS/Release" (rc=VERR_NET_PROTOCOL_ERROR)
VBoxService: error: Error writing guest property "/VirtualBox/GuestInfo/OS/Version" (rc=VERR_NET_PROTOCOL_ERROR)
VBoxService: error: Error writing guest property "/VirtualBox/GuestInfo/OS/ServicePack" (rc=VERR_NET_PROTOCOL_ERROR)
VBoxService: error: Error writing guest property "/VirtualBox/GuestAdd/Version" (rc=VERR_NET_PROTOCOL_ERROR)
VBoxService: error: Error writing guest property "/VirtualBox/GuestAdd/Revision" (rc=VERR_NET_PROTOCOL_ERROR)
VBoxService: error: Could not set UTMP file! Error: 71VBoxService: error: Error writing guest property "/VirtualBox/GuestInfo/OS/LoggedInUsersList" (rc=VERR_NET_PROTOCOL_ERROR)
VBoxService: error: Error writing guest property "/VirtualBox/GuestInfo/OS/LoggedInUsers" (rc=VERR_NET_PROTOCOL_ERROR)
VBoxService: error: Error writing guest property "/VirtualBox/GuestInfo/Net/Count" (rc=VERR_NET_PROTOCOL_ERROR)
VBoxService: Starting 'timesync' in the main thread
VBoxService: adjtime by 243386374000 ns
VBoxService: error: Could not set UTMP file! Error: 71VBoxService: error: Error writing guest property "/VirtualBox/GuestInfo/OS/LoggedInUsersList" (rc=VERR_NET_PROTOCOL_ERROR)
VBoxService: error: Error writing guest property "/VirtualBox/GuestInfo/OS/LoggedInUsers" (rc=VERR_NET_PROTOCOL_ERROR)
VBoxService: error: Error writing guest property "/VirtualBox/GuestInfo/Net/Count" (rc=VERR_NET_PROTOCOL_ERROR)
VBoxService: adjtime by 242751379000 ns
^C

So it looks like it's trying to adjust the time but will do so slowly. Not sure what all the other errors mean.

Trying to start the service in verbose results in the following in /var/svc/log/system-virtualbox-vboxservice\:default.log:
[ Nov 12 08:39:31 Executing start method ("/usr/bin/VBoxService"). ]
VBoxService: Started. Verbose level = 1
VBoxService: Daemonizing...
[ Nov 12 08:39:31 Method "start" exited with status 0. ]

Oddly, no other messages from the daemon after the "Daemonizing" message.
seiryu
Posts: 4
Joined: 12. Nov 2009, 19:02
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Solaris

Re: VB 3.0.10 on snow leopard. Date/time issue after sleep

Post by seiryu »

Found a ticket referencing the errors in /var/adm/messages: http://www.virtualbox.org/ticket/5337. Those errors are probably red-herring with respect to this problem.
Post Reply