Skip to contentSkip to conversation

resizing qcow2 images?

Qemu-devel Tomasz Chmielewski 2 participants 5 messages Oct 3, 2010 – Oct 4, 2010

lore
Share & tools
lore
#0 lore raw

Is it somehow possible to resize qcow2 images?

The only "method" I know is to convert an existing image into a different format, resizing it, then converting it back to qcow2.

Which is quite lengthy and means plenty of IO. Moreover, it gets even more tricky if the image is already more than 50% of your storage space and you still want to increase its size.

Are there any better solutions for qcow2 resizing?

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#1 lore raw
Quoted 1 line · Tomasz Chmielewski

Is it somehow possible to resize qcow2 images?

You can grow qcow2 images with:
qemu-img resize <filename> +10G

Stefan

#2 lore raw
Quoted 5 lines · Stefan Hajnoczi
Quoted 1 line · Tomasz Chmielewski

Is it somehow possible to resize qcow2 images?

You can grow qcow2 images with:
qemu-img resize<filename> +10G

I don't see "resize" option in my qemu-img (0.12.5) help / manual.

Was this option added recently?

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#3 lore raw
Quoted 11 lines · Tomasz Chmielewski
Quoted 6 lines · Stefan Hajnoczi
Quoted 1 line · Tomasz Chmielewski

Is it somehow possible to resize qcow2 images?

You can grow qcow2 images with:
qemu-img resize<filename> +10G

I don't see "resize" option in my qemu-img (0.12.5) help / manual.

Was this option added recently?

I see it's available in 0.13.0-rcX versions of qemu - thanks for the tip!

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#4 lore raw
Quoted 9 lines · Tomasz Chmielewski
Quoted 8 lines · Tomasz Chmielewski
Quoted 6 lines · Stefan Hajnoczi
Quoted 2 lines · Tomasz Chmielewski

Is it somehow possible to resize qcow2 images?

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

You can grow qcow2 images with:
qemu-img resize<filename> +10G

I don't see "resize" option in my qemu-img (0.12.5) help / manual.

Was this option added recently?

I see it's available in 0.13.0-rcX versions of qemu - thanks for the tip!

Sorry, I forgot to mention it is recent.

Stefan