Comment 1 for bug 691590

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: libvirt should not take ownership of ISO images

I don't think it would be safe at any rate to have the ISO images be
written to while kvm is reading them. Would it be ok to work around
this another way?

Perhaps the right way to update the ISOs is:

 cp orig.iso new.iso
 rsync -Pv mirror://updated_iso.iso new.iso
 rm orig.iso
 mv new.iso orig.iso

This way you can still minimize network traffic, while syncing to a
temporary copy. After the 'rm orig.iso', libvirt and kvm will
continue to use the original, deleted file, until they close it.
Then, the next time they open 'orig.iso', they'll get the new file.

Would that be conceivable with your mirroring setup?