VMs in Hyper-V in Windows Server 2012 when power loss occurs

Posted on 2012-09-16
Last Modified: 2013-12-02
  I have set up in a server box: Windows Server 2012 as Hyper-V host and three VMs with Windows 2008R2, SBS2011 and Windwos 2012 operating systems.
  Without knowing that I had to purchase a special APC UPS product to shutdown the VMs within Hyper-V host in case of power failure, I bought a APC Smart-UPS SC620 Battery Backup.
  If I get make this APC device gracefully shutdown the host (W2012), but not shutting down live VMs properly, what happens to VMs and its intergrity? Will this corrupt VMs? If it will corrupt the VMs or has a strong possibility of corrupting VMs, then I need to get the right APC UPS product.
  Any advise?
Question by:sglee
    LVL 9

    Expert Comment

    depending on how you have the VMs configured, when the host shuts down or restarts (in a planned way, not a power failure or BSOD obviously) the VMs will either shutdown as well or be put to sleep and saved, then resumed on power up.
    LVL 95

    Expert Comment

    by:Lee W, MVP
    Any time you have a computer - ANY COMPUTER - that shuts down unexpectedly, you risk data loss and corruption.  Now, if you have a server 2012 license, why not just use that as the hypervisor so as to allow the APC software to run properly?  (I assume it does - 2012 is very new as you know).  

    At the end of the day, it's UNWISE to NOT use something that's been approved for the hardware and software you want to use it for.

    Author Comment

    I have a Windows server 2012 as a host/Hyper-V server and a few virtual machines on Hyper-V.
    My question was if I can program the APC Powerchute software to shut down the host computer/Windows Server 2012 when power loss occurs, would VMs be shutdown automatically; therefore no currption would  occur?
    And how do I configure the VMs so that they would be shutdown before the host is shutdown and start up automatically when the host starts up?
    LVL 95

    Accepted Solution

    As I said, ANY COMPUTER - that shuts down unexpectedly, you risk data loss and corruption. Why should the VM be any different from physical hardware - if it's writing data at the moment it is "turned off" that data could be lost or could corrupt the system.

    If the Host Shuts down gracefully, then it will by default save their state.  If you just look at the properties of the VMs through Hyper-V Manager, there are settings for what to do when starting up and shutting down the host.  Included are saving the state and restoring the state as well as delays in restoring/booting so that you don't hammer the disks with 50 VMs all starting up at once (or even 3 VMs)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
    Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now