[SOLVED] Debian 9 Parallels Desktop wrong time after waking from suspend
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Debian 9 Parallels Desktop wrong time after waking from suspend
Hi,
I am running Debian 9 Gnome on my MacBook Air via Parallels Desktop. Everything works fine except for the fact that when I resume from suspend, the clock shows wrong time.
Everything works fine except for the fact that when I resume from suspend, the clock shows wrong time.
this is normal.
if your computer is connected to the internet, it should fix itself after a minute or so.
if your computer is NOT connected to the internet, the CMOS should provide the correct time.
if the CMOS battery is dead, that won't happen.
I don't know much about Parallels or how its "hardware clock" works or how or if it keeps track of a virtual machines clock but to set the system time from the hardware clock you would run the command
hwclock -s
If running ntp most likely it has stopped. If you restart ntp it should reset time or as stated you can manually reset time via the date command if the hwclock command does not work.
I assume the virtual machine has no direct connection to the physical hardware clock.
Thanks for the reply, eventhough my macbook is connected to internet, Debian shows wrong time whereas outside Parallels Desktop, macos show the correct time!
I'll try to restart ntp, if nothing else works, I'll set the time using the command posted by ondoho!
Thanks again,
Last edited by adityavpratap; 07-11-2018 at 08:57 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.