Skip to contentSkip to conversation

differencing disks support

DISCUSSION Iordan Iordanov 3 participants 3 messages Jun 8, 2011 – Jun 9, 2011 KVM

lore
Share & tools
lore
#0 lore raw

Does KVM support or plan to support differencing disks (where there is a read-only source disk, and each person running a virtual machine can save block-level changes that their virtual machine is making to the disk in a separate "differencing" image)?

If so, can somebody suggest how I may make use of this feature (i.e. building the newest version from source, and any other requirements).

Thanks!
Iordan

#1 lore raw
Quoted 10 lines · Iordan Iordanov

Does KVM support or plan to support differencing disks (where there is a read-only source disk, and each person running a virtual machine can save block-level changes that their virtual machine is making to the disk in a separate "differencing" image)?

If so, can somebody suggest how I may make use of this feature (i.e. building the newest version from source, and any other requirements).

Thanks!
Iordan

I believe you could accomplish this with LVM2 snapshots. You would create an LVM volume with the base install or set of data or whatever. Then create snapshots of the original volume. Have your guests use the snapshot volumes.

This page mentions doing it with Xen in the last paragraph:
http://tldp.org/HOWTO/LVM-HOWTO/snapshotintro.html

If you need support in qemu specifically for some reason, that's out of my realm. Hope this helps though.

Dan VerWeire

#2 lore raw
In reply to Iordan Iordanov
Quoted 8 lines · Iordan Iordanov

Does KVM support or plan to support differencing disks (where there is a read-only source disk, and each person running a virtual machine can save block-level changes that their virtual machine is making to the disk in a separate "differencing" image)?

If so, can somebody suggest how I may make use of this feature (i.e. building the newest version from source, and any other requirements).

Check out image format qcow2.

LVM snapshots were already mentioned.