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 VM can't ping another Hyper-V VM

    in Windows 10 Gaming
    Hyper-V VM can't ping another Hyper-V VM: Hello all,I've been working on a lab network attempting to perform a test live migration. Here is my current setup:Host 1: STAN- VM COSTELLOHost 2: OLLIE Joined to the Domain- VM ABBOTT Current Domain Controller DNS ServerI have set static IP addresses for all of these...
  3. HYPER-V on latest 20H1 build Linux VM's

    in Windows 10 Virtualization
    HYPER-V on latest 20H1 build Linux VM's: Hi there On Linux VM's with HYPER-V on latest build 20H1 : In Non full screen mode you can't adjust the screen area so you can lose the bottom part of the screen. [img] In Full screen mode the Guest doesn't allow monitor size settings to full 1980 X 1080 I don't think...
  4. HYPER-V run VM in background question

    in Windows 10 Virtualization
    HYPER-V run VM in background question: Hi there @Kari (sorry but you seem to be the acknowleged expert in this) If I have a HYPER-V VM running but I want to sign out (not logoff just sign out as a particular user) of Windows (the HOST) can the VM still run in background mode so other people can log on to it or...
  5. Hyper-V VM

    in Windows 10 Updates and Activation
    Hyper-V VM: With the Hyper-V session running on my local machine. Am I allowed to create a VM using the DVD I used on the machine? https://answers.microsoft.com/en-us/windows/forum/all/hyper-v-vm/2b8f2e09-28ab-4e98-bba3-f835ac67d542"
  6. 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...
  7. @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...
  8. 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...
  9. 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...
  10. Hyper-V VM - Install CentOS Linux in Windows 10

    in Windows 10 Tutorials
    Hyper-V VM - Install CentOS Linux in Windows 10: How to: Hyper-V VM - Install CentOS Linux in Windows 10 How to Install CentOS Linux on Hyper-V Virtual Machine in Windows 10 [img] Note A working and quite nice alternative for dual booting is to install various operating systems on a virtual machine. CentOS is...