This is in reference to Virtualization with KVM on Ubuntu 9.10, but pertains to basic disk imaging features as well. Problem I'm getting a No space left on device error when doing a dd command. I'm trying to move a KVM qcow2 file to an LVM partition and thought that the LVM partition needed to be the same size as the sum of the partitions in the vmbuilder.partition file. Here's the error output: Code: [email protected] I can use the new copy and everything still seems to work fine. I'm assuming I should be worried though. When I use dd to copy it to another file, the size of the file is slightly larger than the LVM partition! See below for details. Additional details I'm using KVM and vmbuilder to create the disk image. My vmbuilder.partition file looks like this (a total of 3000MB): Code: root 2000 swap 1000 So I first create an LVM partition big enough to hold the VM. I thought it was supposed to be the same size as the sum of the partitions, but is this not correct? Should I make it 3001M? Code: [email protected] Then I use vmbuilder to create the disk image: Code: [email protected] When it's done, I convert the qcow2 file to a raw file: Code: [email protected][email protected][email protected] Lastly, I copy it to the LVM partition: Code: [email protected] So some additional tests (copy to another file, not LVM): Code: [email protected][email protected] Again, I'm not having any problems using the LVM partition with a KVM virtual machine, but should I be worried about it? It's size is 1,048,576 bytes (exactly 1MB) smaller than the original image file. Should I be adding 1MB to the LVM partition when I create it? Code: [email protected][email protected][email protected] Now I've created a partition that's size has been rounded up, but the copy fits in it. What is the right process for copying qcow2 files to LVM partitions? Also, any idea why is it so much faster copying to a file than to an LVM device?