Skip to contentSkip to conversation

autoexpand images

Qemu-devel Christian Buhtz 3 participants 4 messages May 26, 2007

lore
Share & tools
lore
#0 lore raw

Is it possible to create hard-disk images that expand automaticly? Create a 10G image that is realy 2G big, because just 2G are in use but the guest-system see 10G.

#1 lore raw
Quoted 1 line · Christian Buhtz

Is it possible to create hard-disk images that expand automaticly?

Ah, I found the qcow2 image format.

#2 lore raw
Quoted 9 lines · Christian Buhtz
Quoted 1 line · Christian Buhtz

Is it possible to create hard-disk images that expand automaticly?

Ah, I found the qcow2 image format.

Search for sparse files. Might be more what you are looking for.

Signature · 1 line
Jannes Faber
#3 lore raw
In reply to Christian Buhtz
Quoted 3 lines · Christian Buhtz

Is it possible to create hard-disk images that expand automaticly? Create a 10G image that is realy 2G big, because just 2G are in use but the guest-system see 10G.

A sparse file will do this for you, on Linux. At least it did it for me. :)

If you use QCOW 2, be sure to use trunk rather than the formal release version. Someone will know the revision where QCOW 2's data loss bug got fixed.

Signature · 3 lines
____________________________________________________________________
TonyN.:'                       <mailto:[email protected]>
      '                              <http://www.georgeanelson.com/>