ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    how do you reboot your linux VMs in hyper-v?

    Scheduled Pinned Locked Moved IT Discussion
    hyper-v server 2016ubuntu 16.04virtualizationhelp
    57 Posts 10 Posters 10.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ObsolesceO
      Obsolesce
      last edited by Obsolesce

      So just the fact that you are running it as a VM makes all the difference?

      If you run it on hardware, can you reboot normally?

      Is it just with Hyper-V? Have you tried it on other hypervisors?

      What happens if you install the latest actual LIS drivers from Microsoft?:
      https://www.microsoft.com/en-us/download/details.aspx?id=51612

      More info:
      https://technet.microsoft.com/windows-server-docs/compute/hyper-v/supported-linux-and-freebsd-virtual-machines-for-hyper-v-on-windows

      matteo nunziatiM 1 Reply Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch
        last edited by

        I never have any problems. I just did this.

        Hyper-V Server 2012 R2 with a CentOS 7 guest in a Gen 2 VM.

        Windows PowerShell
        Copyright (C) 2014 Microsoft Corporation. All rights reserved.
        
        PS C:\Users\user> Restart-VM -Name Zabbix
        
        Confirm
        Are you sure you want to restart virtual machine "Zabbix"?
        [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): y
        

        0_1490387994004_upload-b8f64530-8ae3-4f1a-a48d-b016fcca8ecd

        0_1490388018264_upload-016dac8a-f014-4719-904c-d958c4631f50

        0_1490388063831_upload-4188ea58-b27f-4de5-8b1b-cdaa2c6f8388

        1 Reply Last reply Reply Quote 1
        • black3dynamiteB
          black3dynamite
          last edited by

          Try following these instructions:
          https://technet.microsoft.com/en-us/windows-server-docs/compute/hyper-v/supported-ubuntu-virtual-machines-on-hyper-v

          1 Reply Last reply Reply Quote 0
          • matteo nunziatiM
            matteo nunziati @Obsolesce
            last edited by matteo nunziati

            @Tim_G said in how do you reboot your linux VMs in hyper-v?:

            So just the fact that you are running it as a VM makes all the difference?

            If you run it on hardware, can you reboot normally?

            you mean linux or windows? well yes never got issues on HW. but don't know on THIS HW!

            Is it just with Hyper-V? Have you tried it on other hypervisors?

            same linux machines on kvm run perfectly and autoreboot at every update

            What happens if you install the latest actual LIS drivers from Microsoft?:
            https://www.microsoft.com/en-us/download/details.aspx?id=51612

            ubuntu has them built in. windows vms don't need...

            More info:
            https://technet.microsoft.com/windows-server-docs/compute/hyper-v/supported-linux-and-freebsd-virtual-machines-for-hyper-v-on-windows

            I was thinking about reboot my win10 machine with hyperv and test there...

            ObsolesceO 1 Reply Last reply Reply Quote 0
            • dbeatoD
              dbeato
              last edited by

              Do you have the Linux Hyperv Agent updated?
              https://technet.microsoft.com/en-us/windows-server-docs/compute/hyper-v/supported-ubuntu-virtual-machines-on-hyper-v

              1 Reply Last reply Reply Quote 0
              • matteo nunziatiM
                matteo nunziati
                last edited by matteo nunziati

                @black3dynamite @Eltolargo @Tim_G latest kernel and tools are installed from the HWE stack. this doesn't help. just tried again from a VPN to my office. Also hell win2012r2 doesn't reboot in hyper-v 2016.
                monday I'll reboot the server from within the server room, with a monitor attached. let see if something strange happens even at hw level...

                black3dynamiteB dbeatoD 2 Replies Last reply Reply Quote 0
                • black3dynamiteB
                  black3dynamite @matteo nunziati
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • dbeatoD
                    dbeato @matteo nunziati
                    last edited by

                    @matteo-nunziati said in how do you reboot your linux VMs in hyper-v?:

                    nday I'll reboot the server from within the server room, with a monitor attached. let see if something strange happens even at hw level...

                    Looks as if there is more issues with that server than just VMs restarting. Are there any pending updates on it?

                    matteo nunziatiM 1 Reply Last reply Reply Quote 1
                    • matteo nunziatiM
                      matteo nunziati @dbeato
                      last edited by

                      @Eltolargo no just a windows defender update pending. server has been restarted after last update batch.

                      looking now at ubuntu VM in the last reboot I see this:

                      reboot   system boot  4.8.0-41-generic Sat Mar 25 18:21   still running
                      reboot   system boot  4.8.0-41-generic Sat Mar 25 18:48   still running
                      reboot   system boot  4.8.0-41-generic Sat Mar 25 15:15   still running
                      reboot   system boot  4.8.0-41-generic Sat Mar 25 15:11 - 15:14  (00:03)
                      reboot   system boot  4.8.0-41-generic Sat Mar 25 15:10 - 15:11  (00:00)
                      reboot   system boot  4.4.0-66-generic Sat Mar 25 15:00 - 15:11  (00:10)
                      

                      3 sessions still running! bah this is for sure something broken...

                      1 Reply Last reply Reply Quote 0
                      • JaredBuschJ
                        JaredBusch
                        last edited by

                        You have never shown your Hyper-V configuration.

                        matteo nunziatiM 1 Reply Last reply Reply Quote 0
                        • matteo nunziatiM
                          matteo nunziati @JaredBusch
                          last edited by

                          @JaredBusch yes... Err... what conf? The vm conf (always the same) or the hypervisor itself?

                          1 Reply Last reply Reply Quote 0
                          • matteo nunziatiM
                            matteo nunziati
                            last edited by

                            Disabled hyperv time services and forced linux rtc to utc. Now monitoring drifts ( never say never). but win2012r2... Don't know..

                            1 Reply Last reply Reply Quote 0
                            • ObsolesceO
                              Obsolesce @matteo nunziati
                              last edited by

                              @matteo-nunziati said in how do you reboot your linux VMs in hyper-v?:

                              ubuntu has them built in. windows vms don't need...

                              I know it's built in. But I would still try the latest from Microsoft as a troubleshooting step.

                              black3dynamiteB 1 Reply Last reply Reply Quote 0
                              • black3dynamiteB
                                black3dynamite @Obsolesce
                                last edited by

                                @Tim_G
                                The downloads from Microsoft is for Red Hat and CentOS. For Ubuntu, installing linux-virtual package is all that is needed.

                                ObsolesceO 1 Reply Last reply Reply Quote 1
                                • ObsolesceO
                                  Obsolesce @black3dynamite
                                  last edited by

                                  @black3dynamite said in how do you reboot your linux VMs in hyper-v?:

                                  @Tim_G
                                  The downloads from Microsoft is for Red Hat and CentOS. For Ubuntu, installing linux-virtual package is all that is needed.

                                  Ah that's right!

                                  1 Reply Last reply Reply Quote 0
                                  • matteo nunziatiM
                                    matteo nunziati
                                    last edited by matteo nunziati

                                    OK now I've eliminated some drifting in RCT <- yes RCT. I've monitored both gen1 and gen2 vm for something like 12 hours. no drift in 12 hours of VM idling.

                                    this doesn't solve the thing: issued a reboot. got a shutdown! but at least without timing integration services now clocks seems logic in the VMs. I think even @JaredBusch got issues with timing and constant time reassignments...

                                    I've also rebooted the server from the closet, nothing strange in the reboot sequence: all ok with the hypervisor. I've a new win update. let's apply this. also let's check the "latest" HPE service pack from october 2016, maybe some driver is apparently ok, but requires update...

                                    bah. I'm going to think it's me. I'm cursed w/ hpe stuff.

                                    A last thing remains: enter bios disable power savings and CPU c-states and let's see... then I'll STONITH my self 😕

                                    f#@*$%!

                                    1 Reply Last reply Reply Quote 1
                                    • matteo nunziatiM
                                      matteo nunziati
                                      last edited by matteo nunziati

                                      latest news: my pc with hyper-v correctly reboots everything! everytime! vene without latest kernel/hyper-v stuff in VM!

                                      definitively a platform issue. last resort: reinstall all.

                                      dafyreD 1 Reply Last reply Reply Quote 0
                                      • dafyreD
                                        dafyre @matteo nunziati
                                        last edited by

                                        @matteo-nunziati said in how do you reboot your linux VMs in hyper-v?:

                                        latest news: my pc with hyper-v correctly reboots everything! everytime! vene without latest kernel/hyper-v stuff in VM!

                                        definitively a platform issue. last resort: reinstall all.

                                        Are you running Server 2016 on your PC?

                                        matteo nunziatiM 1 Reply Last reply Reply Quote 0
                                        • matteo nunziatiM
                                          matteo nunziati @dafyre
                                          last edited by matteo nunziati

                                          @dafyre said in how do you reboot your linux VMs in hyper-v?:

                                          @matteo-nunziati said in how do you reboot your linux VMs in hyper-v?:

                                          latest news: my pc with hyper-v correctly reboots everything! everytime! vene without latest kernel/hyper-v stuff in VM!

                                          definitively a platform issue. last resort: reinstall all.

                                          Are you running Server 2016 on your PC?

                                          It's windows 10, so yes, in theory, it is the same hyper-v stack.
                                          Honestly the only thing I can think of is issues with ACPI with the cpu. I've even disabled any energy saving but nothing!
                                          if I keep the VM idling too much it stops and not reboots... any VM.

                                          1 Reply Last reply Reply Quote 0
                                          • matteo nunziatiM
                                            matteo nunziati
                                            last edited by matteo nunziati

                                            LATEST NEWS:

                                            yesterday, after a number of tests VM did freeze at reboot command rather than shutdown. As a last resort I've chosen to format SD/rest bios and restart from scratch.

                                            My installation procedure did not work anymore... hell 2 times was right the third has failed...

                                            called HPE this morning, they have asked me to do some tests via Intelligent Provisioning. IP. chrashed with missing linux kernel file (IP is based on linux)

                                            they will start mobo substitution procedures tomorrow morning.

                                            F*#@ wasted 15 days.

                                            15 D.A.Y.S.

                                            ever seen a failing server MOBO? I've. And I've provisioned just 3 servers in my life!

                                            dbeatoD 1 Reply Last reply Reply Quote 4
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post