Re: domain: how long is new xml in saved file

2020-04-27 Thread Daniel P . Berrangé
On Mon, Apr 27, 2020 at 10:17:52AM +0200, Andrea Bolognani wrote: > On Fri, 2020-04-24 at 10:20 -0500, Eric Blake wrote: > > On 4/24/20 7:37 AM, Daniel P. Berrangé wrote: > > > On Fri, Apr 24, 2020 at 02:33:13PM +0200, Michal Privoznik wrote: > > > > On 4/24/20 6:38 AM, Vincent Wu wrote: > > > >

Re: domain: how long is new xml in saved file

2020-04-27 Thread Andrea Bolognani
On Fri, 2020-04-24 at 10:20 -0500, Eric Blake wrote: > On 4/24/20 7:37 AM, Daniel P. Berrangé wrote: > > On Fri, Apr 24, 2020 at 02:33:13PM +0200, Michal Privoznik wrote: > > > On 4/24/20 6:38 AM, Vincent Wu wrote: > > > > > > The save format is fragile. At the beginning there is a header which >

Re: domain: how long is new xml in saved file

2020-04-24 Thread Eric Blake
On 4/24/20 7:37 AM, Daniel P. Berrangé wrote: On Fri, Apr 24, 2020 at 02:33:13PM +0200, Michal Privoznik wrote: On 4/24/20 6:38 AM, Vincent Wu wrote: The save format is fragile. At the beginning there is a header which describes the file, then there is libvirt section (which contains the

Re: domain: how long is new xml in saved file

2020-04-24 Thread Daniel P . Berrangé
On Fri, Apr 24, 2020 at 02:33:13PM +0200, Michal Privoznik wrote: > On 4/24/20 6:38 AM, Vincent Wu wrote: > > > > The save format is fragile. At the beginning there is a header which > describes the file, then there is libvirt section (which contains the domain > XML and a cookie) and then there

Re: domain: how long is new xml in saved file

2020-04-24 Thread Michal Privoznik
On 4/24/20 6:38 AM, Vincent Wu wrote: > The save format is fragile. At the beginning there is a header which describes the file, then there is libvirt section (which contains the domain XML and a cookie) and then there is QEMU section (where QEMU saved the guest memory). Because of this, we

domain: how long is new xml in saved file

2020-04-24 Thread Vincent Wu
Hi administrator, I am a cloud compute developer. I need some help from you about libvirt. I have a work to modify a image file which is saved by virDomainSave() or virDomainSaveFlags().So virDomainSaveImageGetXMLDesc() and virDomainSaveImageDefineXML() are APIs I choosed to do.