Menu

Shutdown Windows VMs

2008-12-15
2013-04-30
  • Christian Loretan

    Hi /jd
    It's me again. I've encountered a strange behavior with the "Shutdown" button and Windows. The system will not shutdown cleanly, it stop like poweroff. If i do "xm shutdown <domain>" Windows say goodby as expected (ok there are people, who say that a Windows shutdown is normaly a crash ;-)). If i reboot Windows with the "Reboot" button, it works like expected. The difference between the "shutdown commands" are visible in /var/log/xen/xend.log
    Convirt shutdown:
    DEBUG (XendDomainInfo:467) XendDomainInfo.shutdown(halt)
    DEBUG (XendDomainInfo:1114) XendDomainInfo.handleShutdownWatch
    DEBUG (XendDomainInfo:1114) XendDomainInfo.handleShutdownWatch
    INFO (XendDomainInfo:1295) Domain has shutdown: name=<VMName> id=49 reason=halt.

    xm shutdown:
    DEBUG (XendDomainInfo:467) XendDomainInfo.shutdown(poweroff)
    DEBUG (XendDomainInfo:1114) XendDomainInfo.handleShutdownWatch
    DEBUG (XendDomainInfo:1114) XendDomainInfo.handleShutdownWatch
    INFO (XendDomainInfo:1295) Domain has shutdown: name=<VMName> id=51 reason=poweroff.

    In first DEBUG line "Convirt" send halt and "xm shutdown" poweroff (like xm destroy?) in shutdown command.
    Is this behavior by design, or is it customizable over a configfile (Convirt, VM)?

    Thanks again for help
    Regards, Christian Loretan

     
    • Nobody/Anonymous

      Hi Christian

      Good catch.  It seems the reason string might  have changed or we initially mis-interpreted it.
      For now,  Can u please make the following change in src/convirt/core/platforms/xen/XenVMM.py

      Old :
          def shutdown(self,id):
              self.xen_proxy.xend.domain.shutdown(id, 'halt')

      New :
         def shutdown(self,id):
              self.xen_proxy.xend.domain.shutdown(id, 'poweroff')

      Let us know.
      Do you have PV drivers installed ? ACPI enabled ?
      Thanks
      /Jd

       
      • Christian Loretan

        Hi /Jd
        Yes, PV drivers installed and ECPI enabled. But look at this. Your changes in XenVMM.py working well for me. Windows will shutdown savely and clean.
        Thank you for help.
        Regards,
        Christian

         
    • Nobody/Anonymous

      Which set of PV drivers are you using ? Do you mind adding a "How to " entry on the Wiki ?
      Or share some pointer to step by step instructions for other.

      Thanks

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.