Ask Your Question
2

instance time wrong

asked 2015-05-11 04:37:48 -0500

rahuk gravatar image

Hey hey,

I have a Multi Controller-Compute(KVM)-Networke(Neutron) Environment based on Ubuntu 14.04 with Juno.

My problem is, that Windows VMs get the wront Time from Timeserver. I can set the time manually and reboot and the Time seams okey, but when i do a shutoff and then reboot the machine, I get the wrong time again... I belive it has nothing todo with the timezone in the VM.

My question is, where get the Instance the time from ?

Thanks for helping me !

Regards rahuk

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2015-06-03 08:42:56 -0500

rahuk gravatar image

Soooo, now i have found the answer... you can set the os_type for images to "windows"

# glance image-update --property os_type="windows" <IMAGE-ID>

If you now boot the Image the time will be correct...

But whats with VMs already installed ?

Hack your Database!

# mysql -u root -p
$ use nova;
$ UPDATE instances set os_type='windows' where hostname='uhrzeit-test';
$ select hostname,os_type from instances WHERE hostname='uhrzeit-test';
+--------------+---------+
| hostname     | os_type |
+--------------+---------+
| uhrzeit-test | windows |
+--------------+---------+

Make a reboot of your VM and the time will be displayed correct !

regards rahuk!

edit flag offensive delete link more
1

answered 2015-05-11 05:36:55 -0500

uts9 gravatar image

Check whether your VM is able to ping/connect to the NTP Servers.

Some info here.

edit flag offensive delete link more

Comments

No network Outgoing is connected. So no Timeserver is available.

When I set the time manual and make a Shutdown, then a reboot the time is wrong again!

rahuk gravatar imagerahuk ( 2015-05-13 04:05:59 -0500 )edit
0

answered 2015-05-11 10:34:01 -0500

alexpilotti gravatar image

Recent versions of cloudbase-init handle this issue

edit flag offensive delete link more

Comments

Now i have install this Version: https://www.cloudbase.it/downloads/Cl...

from here https://github.com/cloudbase/cloudbas...

but same effect :/

any ideas ?

I believe this is the last update

rahuk gravatar imagerahuk ( 2015-05-13 04:02:56 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-05-11 04:37:48 -0500

Seen: 1,666 times

Last updated: Jun 03 '15