Artur Linhart - Linux communication
2008-Sep-04 15:40 UTC
[Xen-devel] RE: How to simply automatically resume suspended Xend managed domains on Xend start in Xen 3.2.1
Hello, I have looked into the XendDomain.py and there in the method "autostart_domains" is really no handling of the automatical resume of the xen domains, which have been suspended on xend stop. Is there any other way how to simply make it? I think, this would be a usefull feature to have it, if the "on_xend_end" already supports the "suspend" option. It looks the implementation of such a function could be relatively easy... With best regards Artur _____ From: Artur Linhart - Linux communication [mailto:AL.LINUX@bcpraha.com] Sent: Thursday, September 04, 2008 10:12 AM To: ''xen-users@lists.xensource.com'' Subject: How to simply automaticall resume suspended Xend managed domains on Xend start in Xen 3.2.1 Hello, I try to configure the automatic suspension of some domains by the end of Xend (especially older hvm domains with windows which cannot react on the shutdown signal). If I write into the domain configuration file the lines on_xend_start = ''start'' on_xend_stop = ''shutdown'' if works well with the linux domains, the domain is shut down on xend stop and started with xend start. Also if specifying on_xend_stop = ''suspend'' works well now (the snapshot did not work till I did not applied the patch mentioned in http://xen.markmail.org/search/?q=xend+suspend+problems#query:xend%20suspend %20problems+page:1+mid:6bnxrk4eoonnyuyy+state:results - before the snapshot has not been created correctly) - the memory snapshot is created in some instance''s subdirectory of the directory /var/lib/xend/domains after xend is stopped like by explicite call of xm suspend command. Is there any way how to resume such a suspended domain on xend start? If specifying on_xend_start = ''start'' on_xend_stop = ''suspend'' then the domain is not resumed, I have tried also on_xend_start = ''resume'' on_xend_stop = ''suspend'' (resume is not documented if starting xm create --help_config, but I have tried it) - but also without success... is there some way how to bring xend to the resume of the suspended domains automatically, or do I have to write my own scripts for it? With regards, Archie _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Artur Linhart - Linux communication
2008-Sep-04 16:47 UTC
RE: [Xen-devel] RE: How to simply automatically resume suspended Xendmanaged domains on Xend start in Xen 3.2.1
Hello, I have tried to implement the new option(s) for the on_xend_start and it looks so it could work - at least it works for me well :-) I changed in XendDomain.py the method autostart_domains - the original source code in attachment XendDomain.py.autostart_domains.original has been changed into the modified source code in attachment XendDomain.py.autostart_domains.modified The given code adds two additional options for the DomU configuration parameter ''on_xend_start'' They are named ''resume'' - the suspended domain is resumed, but if it is not suspended, then it will not be started automatically ''start_or_resume'' - if the domain is halted it will be started and if it is suspended it will be resumed automatically. Of course I do not know if it is enough so, but for me it works without problems. I hope this contribution (or some other necessary modifications of it) could be included into the standard version of Xen... With regards, Archie ________________________________________ From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Artur Linhart - Linux communication Sent: Thursday, September 04, 2008 5:40 PM To: xen-users@lists.xensource.com; xen-devel@lists.xensource.com Subject: [Xen-devel] RE: How to simply automatically resume suspended Xendmanaged domains on Xend start in Xen 3.2.1 Hello, I have looked into the XendDomain.py and there in the method "autostart_domains" is really no handling of the automatical resume of the xen domains, which have been suspended on xend stop. Is there any other way how to simply make it? I think, this would be a usefull feature to have it, if the "on_xend_end" already supports the "suspend" option. It looks the implementation of such a function could be relatively easy... With best regards Artur ________________________________________ From: Artur Linhart - Linux communication [mailto:AL.LINUX@bcpraha.com] Sent: Thursday, September 04, 2008 10:12 AM To: ''xen-users@lists.xensource.com'' Subject: How to simply automaticall resume suspended Xend managed domains on Xend start in Xen 3.2.1 Hello, I try to configure the automatic suspension of some domains by the end of Xend (especially older hvm domains with windows which cannot react on the shutdown signal). If I write into the domain configuration file the lines on_xend_start = ''start'' on_xend_stop = ''shutdown'' if works well with the linux domains, the domain is shut down on xend stop and started with xend start. Also if specifying on_xend_stop = ''suspend'' works well now (the snapshot did not work till I did not applied the patch mentioned in http://xen.markmail.org/search/?q=xend+suspend+problems#query:xend%20suspend %20problems+page:1+mid:6bnxrk4eoonnyuyy+state:results - before the snapshot has not been created correctly) - the memory snapshot is created in some instance''s subdirectory of the directory /var/lib/xend/domains after xend is stopped like by explicite call of xm suspend command. Is there any way how to resume such a suspended domain on xend start? If specifying on_xend_start = ''start'' on_xend_stop = ''suspend'' then the domain is not resumed, I have tried also on_xend_start = ''resume'' on_xend_stop = ''suspend'' (resume is not documented if starting xm create --help_config, but I have tried it) - but also without success... is there some way how to bring xend to the resume of the suspended domains automatically, or do I have to write my own scripts for it? With regards, Archie __________ Informace od NOD32 3415 (20080904) __________ Tato zprava byla proverena antivirovym systemem NOD32. http://www.nod32.cz _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel