Base images
Hi,
I've got a couple of questions about creating images linked to base images:
- qemu-img commit commits changes directly to the base image. Is there a way to create a new merged image with the changes so as not to change the original?
- I noticed that images refer to their base image using an absolute path. Is there a way to change an image's base image reference? (for example when the base image is renamed / moved to a different directory)
Signature · 2 lines
David Roberts :) http://kavenc.sf.net/
Quoted 7 lines · David Roberts
Hi,
I've got a couple of questions about creating images linked to base images:
-qemu-img commitcommits changes directly to the base image. Is there a way
to create a new merged image with the changes so as not to change the original?
- I noticed that images refer to their base image using an absolute path. Is
there a way to change an image's base image reference? (for example when the base image is renamed / moved to a different directory)
qemu-img convert [-c] <changes-file> -O qcow <new-base-file>
should do what you want.
Signature · 5 lines
-- Michael "Soruk" McConnell Eridani Star System MailStripper - http://www.MailStripper.eu/ - SMTP spam filter Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email
Quoted 3 lines
qemu-img convert [-c] <changes-file> -O qcow <new-base-file>
should do what you want.
Great. However, does that mean that I cannot compress an image without merging it with its base image?
Signature · 2 lines
David Roberts :) http://kavenc.sf.net/
Quoted 5 lines · David Roberts
Quoted 3 lines
qemu-img convert [-c] <changes-file> -O qcow <new-base-file>
should do what you want.
Great. However, does that mean that I cannot compress an image without merging it with its base image?
I believe so, yes. It makes sense for the changes file to be uncompressed, since it makes life so much simpler (and faster) for random-access writes.
-- Michael "Soruk" McConnell
Eridani Star System
MailStripper - http://www.MailStripper.eu/ - SMTP spam filter Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email
Quoted 9 lines · David Roberts
Hi,
I've got a couple of questions about creating images linked to base images:
-qemu-img commitcommits changes directly to the base image. Is there a way to create a new merged image with the changes so as not to change the original?
- I noticed that images refer to their base image using an absolute path. Is there a way to change an image's base image reference? (for example when the base image is renamed / moved to a different directory)
Would be nice if a command like:
"qemu-img relocate <filename> -p <path_to_new_base_image>"
would be added.
I have been able sometimes to hack new path names into the header of the qemu image-file but that is not an ideal solution, and it is not always possible.
Eric
Signature · 3 lines
Eric Hameleers RedHat Certified Engineer #808003505607683 Linux Knowledge Center, IBM Global Services
Quoted 3 lines
Would be nice if a command like:
"qemu-img relocate <filename> -p <path_to_new_base_image>" would be added.
Yes, thats the kind of thing I was hoping for.
Quoted 3 lines
I have been able sometimes to hack new path names into the header of the qemu image-file but that is not an ideal solution, and it is not always possible.
Does sed work, or will it just corrupt the image?
Signature · 2 lines
David Roberts :) http://kavenc.sf.net/