how to force restart the hyperv timesync in SLES 11 sp3

Hi all,
I have windows 2012 R2,hyper-v configured.And i have a SLES 11 SP3 Virtaul machine installed on hyper-V environment.I have a requirement related to Timesync between host machine(windows 2012 R2) or may be timesync between NTP server and VM(guest SLES 11 SP3).

When the Linux VM system boots,the timesync is working fine.Suppose if I change the host machine Time(windows 2012 R2) to value different time.I see in the Linux VM,time sync is not happening.

Is there a way to forcefully sync the time using any hyper-v service in Linux?

I see when i reload(rmmod and modprobe) the the hv_utlity,the time sync is happening? is this the right way to force the timesync?

Thank’s in advance for any suggestions/inputs.

Thanks & Regards,
Sankar

Hi
So is the windows hyper-v system using ntp? As in syncing to for example pool.ntp.org.

You have configured the ntp service via YaST to point at the hyper-v system?

Hi Malcolm,
No windows hyperv is not using the NTP.We are not using the YasT to configure the ntp service.And also i have not yet tried on ntp case.Right now i am looking for guest and host time sync.
And thanks Malcolm for responding to this thread.

Regards,
Sankar

[QUOTE=mundlafico;22076]Hi Malcolm,
No windows hyperv is not using the NTP.We are not using the YasT to configure the ntp service.And also i have not yet tried on ntp case.Right now i am looking for guest and host time sync.
And thanks Malcolm for responding to this thread.

Regards,
Sankar[/QUOTE]
Hi
This may clarify then?
http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/11/19/time-synchronization-in-hyper-v.aspx

So it’s the vm rtc being synced not the OS as you would get via using ntp.

Hi Malcolm,
I need to executed certain timesync commands(windows commands) from my linux guest OS.Is there any way to find what is my host os name and ip/hostname from my guest linux system?

Regards,
Sankar

Hi
For the vm you can get the ip address via the command ipconfig and the
hostname via the hostname command. These however can both be configured
via YaST Network devices.

For the host, guess you mean the netbios name?


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.1 Kernel 3.11.10-11-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

On 25/06/2014 12:22, malcolmlewis wrote:
[color=blue]

For the vm you can get the ip address via the command ipconfig and the
hostname via the hostname command. These however can both be configured
via YaST Network devices.

For the host, guess you mean the netbios name?[/color]

I think Sankar is asking how to get the hostname and IP address of the
Hyper-V host from the Linux guest?

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.

Yes Simon,you are right. I tried the below options to find the hostaddress of the host machine.

I download the hyper-v-5-0.7.10.x86_64.rpm and installed it on my SLES 11 SP3 VM.

Then started the hv_kvp_daemon using /etc/init.d/hv_kvp_daemon start

Then i can see the some .kvm-pool files under /var/lib/hyperv/

One of the file contains the Host address of the host name.

Thank you.

Regards,
Sankar

On 25/06/2014 15:44, mundlafico wrote:
[color=blue]

Yes Simon,you are right. I tried the below options to find the
hostaddress of the host machine.

I download the hyper-v-5-0.7.10.x86_64.rpm and installed it on my SLES
11 SP3 VM.

Then started the hv_kvp_daemon using /etc/init.d/hv_kvp_daemon start

Then i can see the some .kvm-pool files under /var/lib/hyperv/

One of the file contains the Host address of the host name.[/color]

Ah, not knowing Hyper-V I was wondering if there was an equivalent to
VMware Tools and it seems the hyper-v package is it.

Anyway glad you’ve found a solution and thanks for the report back.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.