On Mar 11, 2014, at 04:54 AM, Serge Hallyn wrote:

>Thanks for filing this bug.  I'd like to try to reproduce it but need a
>few more details.  Can you tell us exactly how you set up the vm, how
>you start it, and how you initiate suspend?  Is this all done through
>virt-manager?  You say it is a vmware fusion vm - does that mean you
>started with a .vmdk of an appliance, converted it to qcow2 or raw, and
>are using that?  If not, what does it mean?

This is a Trusty guest running in VMware Fusion 6.0.2 on an OS X 10.9.2 host.
Trusty was installed fresh some time ago and has been rolling updated ever
since.

When you quit Fusion, it suspends the VM.  You can of course suspend the VM
explicitly any other time.  You can also take a disk snapshot and restore that
snapshot at a later date.  All of these exhibit the same symptom - the VM's
time gets behind, sometimes by a long while, and it never catches up.

If you go to System Settings (in Ubuntu of course) -> Time & Date, and look at
"Set time:" then "Automatically from the Internet" is set.  What this implies
to me at least, is that the system will keep its time in sync with the network
servers.  I would thus expect that when the VM is resumed, it would eventually
catch up either with the "real time".

What I think is happening is that this settings panel actually only has an
effect at system boot time.  Can you confirm whether this setting should
periodically sync system time to the internet servers, or whether ntp must be
installed in order to keep time in sync.  ntp is *not* currently installed.

I'm perfectly willing to accept that ntp is required in order for a suspended
VM's time to resync with internet server time.  If that's the case, then I
think we have a design bug here - the "Automatically from the Internet"
setting is either misleading, or should prompt to install ntp (maybe with
"panic 0" set?).  At one point I think this did happen.

However, if this setting is supposed to keep time in sync without ntp, then
there's a functional bug here.

I'm mostly trying to get verification on what expected behavior is.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu in Ubuntu.
https://bugs.launchpad.net/bugs/1157914

Title:
  time never catches up to reality after VM sleep

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1157914/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to