C
cpopescu
Hi,
I have configured a Linux VM in Hyper-V. The host is Windows 1809 Pro. The Hyper-V virtual switch is an Internal Switch.
The VM has the IP address 192.168.2.110 netmask 255.255.255.0
The host vEthernet NIC is configured in Windows with the IP 192.168.2.10, netmask 255.255.255.0
Connection between the host machine and the Linux VM host is possible via ssh. Ping also works after I enabled Echo in the Windows Firewall on the host.
My W32Time is configured like this:
w32tm /query /configuration
[Configuration]
EventLogFlags: 2 (Local)
AnnounceFlags: 10 (Local)
TimeJumpAuditOffset: 28800 (Local)
MinPollInterval: 10 (Local)
MaxPollInterval: 15 (Local)
MaxNegPhaseCorrection: 54000 (Local)
MaxPosPhaseCorrection: 54000 (Local)
MaxAllowedPhaseOffset: 1 (Local)
FrequencyCorrectRate: 4 (Local)
PollAdjustFactor: 5 (Local)
LargePhaseOffset: 50000000 (Local)
SpikeWatchPeriod: 900 (Local)
LocalClockDispersion: 10 (Local)
HoldPeriod: 5 (Local)
PhaseCorrectRate: 1 (Local)
UpdateInterval: 360000 (Local)
[TimeProviders]
NtpClient (Local)
DllName: C:\Windows\SYSTEM32\w32time.DLL (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (Local)
ResolvePeerBackoffMaxTimes: 7 (Local)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 1 (Local)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 32768 (Local)
Type: NTP (Local)
NtpServer: time.windows.com,0x9 (Local)
NtpServer (Local)
DllName: C:\Windows\SYSTEM32\w32time.DLL (Local)
Enabled: 0 (Local)
InputProvider: 0 (Local)
VMICTimeProvider (Local)
DllName: C:\Windows\System32\vmictimeprovider.dll (Local)
Enabled: 0 (Local)
InputProvider: 1 (Local)
However in the Linux VM when I'm trying to set the Windows IP as the source for the NTP server it gets an error.
Here is the output of ntpdate:
[root@avs00155d764515 ~]# ntpdate -vd 192.168.2.10
6 Dec 12:41:07 ntpdate[47751]: ntpdate 4.2.6p5@1.2349-o Thu Jan 25 15:39:15 UTC 2018 (1)
Looking for host 192.168.2.10 and service ntp
host found : 192.168.2.10
transmit(192.168.2.10)
transmit(192.168.2.10)
transmit(192.168.2.10)
transmit(192.168.2.10)
transmit(192.168.2.10)
192.168.2.10: Server dropped: no data
server 192.168.2.10, port 123
stratum 0, precision 0, leap 00, trust 000
refid [192.168.2.10], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Mon, Jan 1 1900 0:00:00.000
originate timestamp: 00000000.00000000 Mon, Jan 1 1900 0:00:00.000
transmit timestamp: dfb39766.41960df3 Thu, Dec 6 2018 12:41:10.256
filter delay: 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000
filter offset: 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000
6 Dec 12:41:11 ntpdate[47751]: no server suitable for synchronization found
So, it looks like the Windows host is not responding.
In Windows Firewall I had added a rule to allow access both inbound and outbound for port 123 via UDP.
How can I configure my Windows host as a NTP server for my Linux VMs?
I am mentioning that I cannot use the Hyper-V Time Synchronization Integration Service cause it causes the database running on my VM to crash. I need to use an NTP server.
Continue reading...
I have configured a Linux VM in Hyper-V. The host is Windows 1809 Pro. The Hyper-V virtual switch is an Internal Switch.
The VM has the IP address 192.168.2.110 netmask 255.255.255.0
The host vEthernet NIC is configured in Windows with the IP 192.168.2.10, netmask 255.255.255.0
Connection between the host machine and the Linux VM host is possible via ssh. Ping also works after I enabled Echo in the Windows Firewall on the host.
My W32Time is configured like this:
w32tm /query /configuration
[Configuration]
EventLogFlags: 2 (Local)
AnnounceFlags: 10 (Local)
TimeJumpAuditOffset: 28800 (Local)
MinPollInterval: 10 (Local)
MaxPollInterval: 15 (Local)
MaxNegPhaseCorrection: 54000 (Local)
MaxPosPhaseCorrection: 54000 (Local)
MaxAllowedPhaseOffset: 1 (Local)
FrequencyCorrectRate: 4 (Local)
PollAdjustFactor: 5 (Local)
LargePhaseOffset: 50000000 (Local)
SpikeWatchPeriod: 900 (Local)
LocalClockDispersion: 10 (Local)
HoldPeriod: 5 (Local)
PhaseCorrectRate: 1 (Local)
UpdateInterval: 360000 (Local)
[TimeProviders]
NtpClient (Local)
DllName: C:\Windows\SYSTEM32\w32time.DLL (Local)
Enabled: 1 (Local)
InputProvider: 1 (Local)
AllowNonstandardModeCombinations: 1 (Local)
ResolvePeerBackoffMinutes: 15 (Local)
ResolvePeerBackoffMaxTimes: 7 (Local)
CompatibilityFlags: 2147483648 (Local)
EventLogFlags: 1 (Local)
LargeSampleSkew: 3 (Local)
SpecialPollInterval: 32768 (Local)
Type: NTP (Local)
NtpServer: time.windows.com,0x9 (Local)
NtpServer (Local)
DllName: C:\Windows\SYSTEM32\w32time.DLL (Local)
Enabled: 0 (Local)
InputProvider: 0 (Local)
VMICTimeProvider (Local)
DllName: C:\Windows\System32\vmictimeprovider.dll (Local)
Enabled: 0 (Local)
InputProvider: 1 (Local)
However in the Linux VM when I'm trying to set the Windows IP as the source for the NTP server it gets an error.
Here is the output of ntpdate:
[root@avs00155d764515 ~]# ntpdate -vd 192.168.2.10
6 Dec 12:41:07 ntpdate[47751]: ntpdate 4.2.6p5@1.2349-o Thu Jan 25 15:39:15 UTC 2018 (1)
Looking for host 192.168.2.10 and service ntp
host found : 192.168.2.10
transmit(192.168.2.10)
transmit(192.168.2.10)
transmit(192.168.2.10)
transmit(192.168.2.10)
transmit(192.168.2.10)
192.168.2.10: Server dropped: no data
server 192.168.2.10, port 123
stratum 0, precision 0, leap 00, trust 000
refid [192.168.2.10], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Mon, Jan 1 1900 0:00:00.000
originate timestamp: 00000000.00000000 Mon, Jan 1 1900 0:00:00.000
transmit timestamp: dfb39766.41960df3 Thu, Dec 6 2018 12:41:10.256
filter delay: 0.00000 0.00000 0.00000 0.00000
0.00000 0.00000 0.00000 0.00000
filter offset: 0.000000 0.000000 0.000000 0.000000
0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000
6 Dec 12:41:11 ntpdate[47751]: no server suitable for synchronization found
So, it looks like the Windows host is not responding.
In Windows Firewall I had added a rule to allow access both inbound and outbound for port 123 via UDP.
How can I configure my Windows host as a NTP server for my Linux VMs?
I am mentioning that I cannot use the Hyper-V Time Synchronization Integration Service cause it causes the database running on my VM to crash. I need to use an NTP server.
Continue reading...