Skip to contentSkip to conversation

Base images

Qemu-devel Don Kitchen 2 participants 2 messages Nov 24, 2006

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines
Quoted 3 lines

- 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.

I believe that forces a delta file to merge in with its base. Definately not the same as relocation.

Example:
delta1.img and delta2.img are both based on /root/base1.img. The directory's getting crowded, so you want to move base1.img into /root/qemu/base1.img. But once you do that, delta1 and delta2 can't find it. So how is it possible to have a relocated base1.img without merging either delta1 or delta2, which are mutually exclusive?

Thanks

#1 lore raw
Quoted 7 lines · Don Kitchen
Quoted 5 lines
Quoted 3 lines

- 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.

I believe that forces a delta file to merge in with its base. Definately not the same as relocation.

The original question I answered:

Quoted 6 lines · David Roberts

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?

...and my qemu-img convert command above will do exactly that.

Your misquoting has implied the command I gave would do something else, which it won't.

-- Michael "Soruk" McConnell
Eridani Star System

MailStripper - http://www.MailStripper.eu/ - SMTP spam filter Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email