Windows 10: trying to synchronize the time on my Linux VM running on Hyper-V with W32Time service...

Discus and support trying to synchronize the time on my Linux VM running on Hyper-V with W32Time service... in Windows 10 Customization to solve the problem; 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... Discussion in 'Windows 10 Customization' started by cpopescu, Dec 6, 2018.

  1. cpopescu Win User

    trying to synchronize the time on my Linux VM running on Hyper-V with W32Time service...


    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?

    :)
     
    cpopescu, Dec 6, 2018
    #1
  2. shadowynd Win User

    Hyper-V on Windows Home Edition?

    In my "Services (Local)", the following are listed:

    Hyper-V Data Exchange Service

    Hyper-V Guest Service Interface

    Hyper-V Guest Shutdown Service

    Hyper-V Heartbeat Service

    Hyper-V Remote Desktop Virtualization Service

    Hyper-V Time Synchronization Service

    Hyper-V VM Session Service

    Hyper-V Volume Shadow Copy Requestor

    Since Hyper V isn't supposed to be on Windows 10 Home, I'm wondering what's going on and why it is in my Services. Are there any other services which would appear in Windows 10 Pro, Enterprise or Education that shouldn't appear in Windows 10 Home Services?

    Thanks!
     
    shadowynd, Dec 6, 2018
    #2
  3. jimbo45 Win User
    Running Linux VM on HYPER - V --works !!!


    Hi there
    @Kari particularly -- any experience with using the FREE 2016 server HYPER-V edition and any pitfalls as I want to try it later.


    Try Active Microsoft Hyper-V Server 2016 | TechNet Evaluation Software

    Best Practices for running Linux on Hyper-V | Microsoft Docs


    I followed roughly these instructions - but used CENTOS rather than Ubuntu as the Guest OS and had Windows 10 Pro CU edition (1703) for the Host. Note ignore the couchbase additions - I just installed the GUEST OS as normal.

    Hyper-V: How to run Ubuntu (or any Linux) on Windows - The Couchbase Blog

    Works fine with a bit of messing around - and to get the best I/O pass direct RAW HDD's to the VM and use the Linux software RAID (mdadm).

    Response time seems to be fine however I'm going to download the FREE 2016 HYPER-V server edition and have a go with that as the overhead will be minimal on the Windows system.

    I hope I can concurrently run 3 VM's --W10, XP and Centos. from what I've seen -- no problems - have 16GB RAM on host with 2 physical NICs and OODLES of HDD space -- (> 20 TB).

    Finally note the HYPER-V 2016 Server has NO GUI so you'll have to do quite a bit with the command line. The HYPER-V tools to manage remote server is available as well as RDP.

    If you are a stranger to working without a GUI this isn't for the faintt hearted but a lot of fun and great learning . Once you get it right it's MINIMAL overhead compared to VMWARE workstation on a Host machine - and in any case it's designed to be run headless.

    You DO need to manage your VMs remotely though so ideally you'll need a second computer (laptop for example) to do this.

    Logging on to the VM's though isn't a problem.

    For people who NEED a GUI you can download the evaluation full blown 2016 Server -- 180 days free trial.

    Cheers
    jimbo
     
    jimbo45, Dec 6, 2018
    #3
  4. SarahKong Win User

    trying to synchronize the time on my Linux VM running on Hyper-V with W32Time service...

    Unassign Hyper V VM with deleted User account

    Hyper V is not assigned based on user accounts.

    Hyper V is a server feature that allows you to create VMs but they are not assigned to users.

    Can you post a screenshot of what you are referring to?

    And then share on a cloud drive and post link here for me to look at?

    Also what are the steps you are doing to "assign" the VM to another User?
     
    SarahKong, Dec 6, 2018
    #4
Thema:

trying to synchronize the time on my Linux VM running on Hyper-V with W32Time service...

Loading...
  1. trying to synchronize the time on my Linux VM running on Hyper-V with W32Time service... - Similar Threads - trying synchronize Linux

  2. HYPER-V LINUX VM with sound

    in Windows 10 Virtualization
    HYPER-V LINUX VM with sound: Hi folks trying an experiment I hadn't thought of before Going through some old junk I found a small mini USB sound and Mic adapter. Tested it on a Native CENTOS machine (the one with the radeon GPU where I couldn't get sound working in any case) Worked fine -- hardware...
  3. Hyper-V VM. No OneDrive folder.

    in Windows 10 Virtualization
    Hyper-V VM. No OneDrive folder.: Hyper-V VM. No OneDrive folder. Clicking OneDrive doesn't give a OneDrive folder. 111321
  4. @KARI access Linux HDD's in HYPER-V VM

    in Windows 10 Virtualization
    @KARI access Linux HDD's in HYPER-V VM: Hi there particularly @Kari. I'm playing around now with HYPER-V. I want to access 1 X 9 TB and 1 X 7 TB Linux internal HDD's from a HYPER-V VM (Centos 7). I'm running HOST W10 pro x-64. I've taken the two HDD's offline to the HOST but can't seem to get the VM to...
  5. Exporting VM with hyper-v

    in Windows 10 Virtualization
    Exporting VM with hyper-v: When you export a VM with Hyper-v, does the exported VM retain the same hardware identifier as the original? I know with VMware, when you open up a backed up VM, you select "I moved it" to retain hardware identifier, and "I copied it" if you want a new identifier. Is it...
  6. Hyper-V does not allow my VM to the internet

    in Windows 10 Virtualization
    Hyper-V does not allow my VM to the internet: When I was at build 10074 I had Hyper-V working and the Virtual Machine (also at build 10130 but several days before the host upgraded) had LAN and internet access. After the upgrade to 10130 the VM can see the host on in the Network, but not the internet. Network adn...
  7. HYPER-V with second level VM running on vmware workstation

    in Windows 10 Virtualization
    HYPER-V with second level VM running on vmware workstation: Hi there just thought I'd do a Bonkers experiment - works and isn't too slow (but use SSD !!!). Host W10 X-64 PRO with HYPER-V VM1 (ist level VM - 2nd level machine) Linux CENTOS 7 with latest kernel (4.7) VM2 --installed VMware workstation on the Linux machine...
  8. Running Linux VM on HYPER - V --works !!!

    in Windows 10 Virtualization
    Running Linux VM on HYPER - V --works !!!: Hi there @Kari particularly -- any experience with using the FREE 2016 server HYPER-V edition and any pitfalls as I want to try it later. Try Active Microsoft Hyper-V Server 2016 | TechNet Evaluation Software Best Practices for running Linux on Hyper-V | Microsoft...
  9. Hyper-V VM has no sound

    in Windows 10 Virtualization
    Hyper-V VM has no sound: This is my first attempt at using Hyper-V. Installation in my Win 10 Pro worked well right up until I tried using the virtual machines sound. No sound device reported. I opened device manager the only option I could see was Audio inputs and outputs. Expanding and a device...
  10. Hyper-V VM - Install CentOS Linux in Windows 10

    in Windows 10 Tutorials
    Hyper-V VM - Install CentOS Linux in Windows 10: Nice tutorial. Note that if you want to change the screen resolution use this (changing the resolution to what you want). Code: grubby --update-kernel=ALL --args="video=hyperv_fb:1440x900"[/quote] It is maintained when kernel is updated too and also works in CentOS 7...