PDA

View Full Version : how to force restart the hyperv timesync in SLES 11 sp3



mundlafico
18-Jun-2014, 14:18
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

malcolmlewis
19-Jun-2014, 01:55
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?

mundlafico
19-Jun-2014, 03:23
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

malcolmlewis
19-Jun-2014, 04:05
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
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.

mundlafico
25-Jun-2014, 06:05
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

malcolmlewis
25-Jun-2014, 12:22
On Wed 25 Jun 2014 05:14:01 AM CDT, mundlafico wrote:


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!

smflood
25-Jun-2014, 13:52
On 25/06/2014 12:22, malcolmlewis wrote:

> 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?

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.
------------------------------------------------------------------------

mundlafico
25-Jun-2014, 15:41
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

smflood
26-Jun-2014, 10:51
On 25/06/2014 15:44, mundlafico wrote:

> 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.

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.
------------------------------------------------------------------------