During Dom0 shutdown/reboot, the /etc/init.d/xendomain script uses "xm shutdown --wait ${domU}". If "xm" can't shutdown the DomU, the complete shutdown procedure hangs and the system will not shutdown/reboot. Patch applied for /etc/init.d/xendomains: /etc/init.d/xendomains waits up to ${SHUTDOWN_TIMEOUT} seconds to shutdown a DomU domain and if the DomU is still running, it will be destroyed. If the DomU will not be destroyed, "/etc/init.d/xend stop" hangs later in the shutdown procedure on Dom0 (different reason, same result ;-) ${SHUTDOWN_TIMEOUT} can be configured in /etc/conf.d/xendomains. If not, 60 seconds are assumed.
Created attachment 95535 [details, diff] Patch for /etc/init.d/xendomains
Thanks for a very nice patch, only thing is that 60 seconds might be a bit low for a default value. Squid for example takes a long time to shut down. Cheers
I'll include this in next time I update of xen-tools-3.0.4, probably with a default limit of 5 minutes.
(In reply to comment #3) > I'll include this in next time I update of xen-tools-3.0.4, probably with a > default limit of 5 minutes. Maybe get it into 3.3? Next to this it is terribly difficult for me to reboot/shutdown Xen. A timer solution that really kicks it would be nice. (I'll try the sysrq magic too)
Xen 4.1 in tree. Please test with it and reopen if it doesnt work