欢迎来到天天文库
浏览记录
ID:40083422
大小:300.11 KB
页数:12页
时间:2019-07-20
《libvirt-qemu-restore-hook》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Libvirthooks–qemurestorehongming2015.1.261Libvirthooks–qemurestore●Bug1142693-[RFE]AddaqemuresumehookthatisabletopreprocessthedomainXML●Themin_guaranteechange(ignore->fail)affectslongrunningVMs.WecanworkaroundthisbymakingsuretheoffendingelementisremovedfromtheXMLduringmigration
2、orresume.Currentlyonlymigrationdestinationallowsustodothat,butifaVMisnevermigrated,thensuspendedandresumedonhostwithnewenoughlibvirt-itwillfailtostart.2Libvirthooks–qemurestore●suspend->resume●Temporarilysavingitsmemorystate●save->restore●Savingitsmemorystatetoafile●managedsave
3、->start●Whenthevirshstartcommandisnextrunforthedomain,itwillautomaticallybestartedfromthissavedstate.3Qemurestorehook-executionsave->restore4Qemurestorehook-executionmanagedsave->start5Qemurestorehook-arguments●/etc/libvirt/hooks/qemuguest_namerestorebegin-●Arguments●Objectname
4、:qemuguestname●Operation:restore●Sub-operation:begin●Extraargument:-6Qemuhook-arguments./src/util/virhook.c7Qemurestorehook-inputandoutput●Input:domainXMLsenttostandardinputofthescript●Output:thescriptactsasafilterandissupposedtomodifythedomainXMLandprintitoutonitsstandardoutpu
5、t●EmptyoutputisidenticaltocopyingtheinputXMLwithoutchangingit8Qemurestorehook-execution●Restoringasavedimage●virshsave->virshrestore●Automaticallyrestoringamanagedsavedomain●virshmanagedsave->virshstart9Libvirthooks–qemurestore10Libvirthooks–qemurestore11Q&A12
此文档下载收益归作者所有
点击更多查看相关文章~~