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.5k 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.
    • matteo nunziatiM
      matteo nunziati
      last edited by

      ok, at least ubuntu records the reboots:

      user@zi-erp-as:~$ last reboot
      reboot   system boot  4.4.0-66-generic Fri Mar 24 09:43   still running
      reboot   system boot  4.4.0-66-generic Fri Mar 24 09:42 - 09:43  (00:00)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 09:41 - 09:43  (00:01)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 09:37 - 09:43  (00:05)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 09:37 - 09:43  (00:06)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 09:35 - 09:43  (00:08)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 09:31 - 09:35  (00:03)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 09:28 - 09:35  (00:06)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 09:27 - 09:28  (00:00)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 09:26 - 09:27  (00:00)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 09:21 - 09:27  (00:06)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 08:59 - 09:20  (00:20)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 08:59 - 09:20  (00:20)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 08:59 - 08:59  (00:00)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 08:58 - 08:59  (00:00)
      reboot   system boot  4.4.0-66-generic Fri Mar 24 08:57 - 08:58  (00:00)
      reboot   system boot  4.4.0-66-generic Thu Mar 23 16:11 - 16:11  (00:00)
      reboot   system boot  4.4.0-66-generic Thu Mar 23 16:10 - 16:11  (00:01)
      reboot   system boot  4.4.0-66-generic Thu Mar 23 15:47 - 16:11  (00:24)
      reboot   system boot  4.4.0-66-generic Thu Mar 23 15:39 - 16:11  (00:32)
      reboot   system boot  4.4.0-66-generic Thu Mar 23 15:33 - 16:11  (00:38)
      reboot   system boot  4.4.0-66-generic Thu Mar 23 15:11 - 16:11  (01:00)
      reboot   system boot  4.4.0-66-generic Thu Mar 23 14:35 - 15:10  (00:35)
      
      1 Reply Last reply Reply Quote 0
      • matteo nunziatiM
        matteo nunziati
        last edited by matteo nunziati

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

          nothing new... reboot/shutdown -r just shuts down the machine.
          [this is the SAM curse :P]

          edit...

          no it is not the SAM curse: even centos7 doesn't not reboot when asked...

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

            ok, just installed a win server core 2012R2 VM. even this doesn't reboot ๐Ÿ˜•

            I'm surely doing something wrong but I really really don't know what and where to start searching for...

            1 Reply Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403
              last edited by

              Why doesn't sudo reboot now work?

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

                Or why aren't you able to reboot via the Hyper-V management interface?

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

                  @DustinB3403 because the machine shuts down but then it doesn't boot! it is like if you issue shutdown without -r.
                  This is the same with reboot or so. Also because all this commands are symlinks to systemctl.

                  there is something broken in the way hyper-v vUEFI is managed on ALL my VM.

                  DustinB3403D 1 Reply Last reply Reply Quote 0
                  • DustinB3403D
                    DustinB3403 @matteo nunziati
                    last edited by

                    @matteo-nunziati curious...

                    1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403
                      last edited by

                      So if you did issue a reboot from the management interface, the VM just shuts down. Rather than actually rebooting.

                      Seems like a huge failure there if that's true. What hardware is hyper-v installed on?

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

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

                        Or why aren't you able to reboot via the Hyper-V management interface?

                        what's this? I just have the "shutdown" button on the hyper-v GUI (win 10).
                        also if I enter a remote session in powershell and issue:

                        Restart-VM -Name VM-NAME-HERE
                        

                        the machine shuts down it doesn't restart!

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

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

                          So if you did issue a reboot from the management interface, the VM just shuts down. Rather than actually rebooting.

                          Seems like a huge failure there if that's true. What hardware is hyper-v installed on?

                          HPE DL380G9

                          I suppose something is broken in my setup: it is not possible people did notice this basic item!

                          1 Reply Last reply Reply Quote 0
                          • DustinB3403D
                            DustinB3403
                            last edited by

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

                            HPE DL380G9

                            According to the HPE HCL the hardware is fully supported...

                            Is anyone else experiencing the same results?

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

                              @DustinB3403 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?:

                              HPE DL380G9

                              According to the HPE HCL the hardware is fully supported...

                              Is anyone else experiencing the same results?

                              found anything on the web, going to call HPE support... but I'm a bit in a hurry. hoped for a fast solution on-line ๐Ÿ˜•

                              1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller
                                last edited by

                                I've not heard of anyone having this issue. You might have something unique here.

                                matteo nunziatiM travisdh1T 2 Replies Last reply Reply Quote 0
                                • matteo nunziatiM
                                  matteo nunziati @scottalanmiller
                                  last edited by

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

                                  I've not heard of anyone having this issue. You might have something unique here.

                                  yes. until it was ubuntu I was thinking about something strange in the vUEFI. but even win over win...

                                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                                  • travisdh1T
                                    travisdh1 @scottalanmiller
                                    last edited by

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

                                    I've not heard of anyone having this issue. You might have something unique here.

                                    NOT what you want in IT. I'll be waiting to see what the problem is.

                                    1 Reply Last reply Reply Quote 1
                                    • scottalanmillerS
                                      scottalanmiller @matteo nunziati
                                      last edited by

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

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

                                      I've not heard of anyone having this issue. You might have something unique here.

                                      yes. until it was ubuntu I was thinking about something strange in the vUEFI. but even win over win...

                                      If the VM does not start at all, then what is in the container won't be the issue.

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

                                        mmm... got this:

                                        Restart-VM -Name zi-erp-as
                                        
                                        Confirm
                                        Are you sure you want to restart virtual machine "zi-erp-as"?
                                        [Y] Yes  [A] Yes to All  [H] Halt Command  [?] Guida (il valore predefinito รจ "Y"):
                                        Restart-VM : 'zi-erp-as' failed to change state.
                                            + CategoryInfo          : NotSpecified: (:) [Restart-VM], VirtualizationException
                                            + FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.RestartVM
                                        

                                        And the machine just stops.

                                        Now performed a sequence of start-restart with no idle, just waiting in VM Manager to see the CPU go down and then fire the restart. So far so good... really weird. Let's the VM stay idle for a while and retry!

                                        Yep! if the machine stays idle for a few tens of seconds everything go nuts:

                                        Restart-VM -Name zi-erp-as
                                        
                                        Confirm
                                        Are you sure you want to restart virtual machine "zi-erp-as"?
                                        [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Guida (il valore predefinito รจ "Y"):
                                        Restart-VM : 'zi-erp-as' failed to change state.
                                            + CategoryInfo          : NotSpecified: (:) [Restart-VM], VirtualizationException
                                            + FullyQualifiedErrorId : OperationFailed,Microsoft.HyperV.PowerShell.Commands.RestartVM
                                        

                                        Not this specific error but when people get this "change state" suggestions are to rebuild the machine ๐Ÿ˜• but those are all brand new.

                                        Apparently this is not the case with:

                                        Stop-VM -Name zi-erp-as; Start-VM -Name zi-erp-as
                                        

                                        But this is a no go for remote administration from within the VM. Need to sort this out ๐Ÿ˜ž

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

                                          even tested a gen1 VM: not different.

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

                                            ok, just got that Restart-VM does an hard restart (removes the plug). just forget it!
                                            still missing an answer...

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