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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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
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