In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to solve the problem of Windows instance time synchronization. Many people may not know much about it. In order to let everyone know more, Xiaobian summarized the following contents for everyone. I hope everyone can gain something according to this article.
problem description
Windows instance sometimes finds that the operating system time is always 8 hours slow, and even if you manually adjust the time and time zone, it will be 8 hours behind the next instance restart.
reason
KVM handles Linux and Windows virtual machines differently in system time, and Windows requires some additional settings.
Solution 1
Add os_type attribute to Windows image.
glance image-update --property os_type="windows"
Specify explicitly that this is a windows mirror. When deploying instances through this mirror, KVM sets the appropriate parameters in its XML description file to ensure time synchronization.
Solution 2
For previously deployed Windows instance, the first method has no effect, only a little unconventional means: Hack Database!
Assuming the name of the instance to hack is win-test, use the following MySQL command:
$ use nova;
$ update instances set os_type='windows' where hostname='win-test';
$ select hostname,os_type from instances where hostname='win-test';
| hostname | os_type |
| win-test | windows |
Win-test needs to be restarted, KVM will get the modified database information, update the XML configuration, and ensure time synchronization.
After reading the above, do you have any further understanding of how to solve the Windows instance time synchronization problem? If you still want to know more knowledge or related content, please pay attention to the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.