Windows Server TechCenter > Windows Server Forums > Hyper-V > Urgent help. how to shut down this VM?
Ask a questionAsk a question
 

AnswerUrgent help. how to shut down this VM?

  • Thursday, November 05, 2009 4:14 PMjaneHHH Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi all,

    I have three windows 2008 hyper-v hosts that set up quick migration for 12 VMs.

    I need to expand one virtual disk for one VM and I need to take down this VM to expand.
    What's the right way to turn this VM off?

    Thank you.

Answers

  • Friday, November 06, 2009 9:47 AMVincent HuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi,

     

    If I shut down from VM, the failover clustering brings it on again.

     

    >> It seems that you bring down the VM in Hyper-V Manager, not in Failover Cluster console. If I misunderstand your concern, please feel free to let me know. If so, please shutdown the VM in Failover Cluster console to check whether you get the same issue.

     

     

    Best Regards,

    Vincent Hu

     

All Replies

  • Thursday, November 05, 2009 4:31 PMJohn Paul CookMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    You have two options. You can connect to the running vm and issue a shutdown command from within the virtual OS. This will work even if Integration Services are not installed. If Integration Services are installed, you can issue a shutdown command from the Hyper-V Manager (right-click the vm's name and select Shut Down) or from the Virtual Machine Connection menu bar (click the Shut Down icon) if you are using that to connect. Using the turn off virtual machine from the Hyper-V Manager or Virtual Machine Connection is like turning off the power to a physical machine, which probably isn't what you want to do.
  • Thursday, November 05, 2009 4:56 PMBrianEhMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    If the VM is "Highly Available" - that is it is being maintained by Failover Clustering to keep it powered on - you need to open the Failover Cluster manager as suspend that so it does not keep trying to power you VM back on.
    This is would be described as the VM being configured for "Live Migration"

    Also - you are expanding a VHD - be suer that your VM does NOT have any snapshots.  Or you will permanently damage it.
    If it does have snapshots - delete them, power off the VM and allow the snapshots to merge.

    Brian Ehlert (hopefully you have found this useful)
  • Thursday, November 05, 2009 5:46 PMjaneHHH Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    THANKS FOR THE REPLY.

    If I shut down from VM, the failover clustering brings it on again.
  • Friday, November 06, 2009 9:47 AMVincent HuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi,

     

    If I shut down from VM, the failover clustering brings it on again.

     

    >> It seems that you bring down the VM in Hyper-V Manager, not in Failover Cluster console. If I misunderstand your concern, please feel free to let me know. If so, please shutdown the VM in Failover Cluster console to check whether you get the same issue.

     

     

    Best Regards,

    Vincent Hu

     

  • Friday, November 06, 2009 4:51 PMjaneHHH Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vincent,

    Thanks for the help. It works.

    BTW, where should I start up this VM from Hyper-V or failover cluster console?

    Also, If I turn off this VM from failover cluster console, I can not see this VM in the hyper-V manager anymore.  Is this supposed to be?

    Thank you!
  • Monday, November 09, 2009 9:48 AMVincent HuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,

     

    BTW, where should I start up this VM from Hyper-V or failover cluster console?

     

    >> It’s better to perform the operation in Failover Cluster console.

     

    Also, If I turn off this VM from failover cluster console, I can not see this VM in the hyper-V manager anymore. Is this supposed to be?

     

    >> Seems there are some problem with your cluster, based on my experience, you should see the VM in Hyper-V Manager after you shutdown it in Failover Cluster console. However, my Hyper-V Failover Cluster is not available at this time, I will verify this later.

     

     

    Best Regards,

    Vincent Hu

     

  • Monday, November 09, 2009 7:05 PMjaneHHH Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Vincent,

    Also, If I turn off this VM from failover cluster console, I can not see this VM in the hyper-V manager anymore. Is this supposed to be?

     

    >> Seems there are some problem with your cluster, based on my experience, you should see the VM in Hyper-V Manager after you shutdown it in Failover Cluster console. However, my Hyper-V Failover Cluster is not available at this time, I will verify this later.

     
    If I SHUT DOWN this VM from Failover Cluster console, I can see this VM in the Hyper-V Manager.
    But,
    If I TURN OFF this VM from Failover Cluster console, I CAN NOT see this VM in the Hyper-V Manager.

    IS THIS SUPPOSED TO BE?

    Thank you.

  • Tuesday, November 10, 2009 8:18 AMVincent HuMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi,

     

    If I TURN OFF this VM from Failover Cluster console, I CAN NOT see this VM in the Hyper-V Manager

     

    >> Did you mean the VM disappeared in Hyper-V Manager console after you turn off the VM in Failover Cluster console? If so, this is abnormal. I just build a Windows Server 2008 Hyper-V Failover Cluster and perform the test as you described, the VM always showed in Hyper-V Manager no matter I TURN OFF or SHUTDOWN the VM in Failover Cluster console.

     

    Please check whether you have any errors in Event Viewer after you TURN OFF the VM.

     

     

    Best Regards,

    Vincent Hu