I have a KVM guest, running on a KVM host...both Gentoo Linux.
The guest is called webserver.img. It is 21 gigs large, but I am only using 5 gigs inside the image.
I want to make a logical volume with NO filesystem(raw) and have the size about 10gigs, place the contents of webserver.img on it, and boot from the raw logical volume.
How could I get the contents of webserver.img onto ....for example.../dev/mapper/logical_volume1?
I thought about dd if=webserver.img of=/dev/mapper/logical_volume1 but I am worried that will copy over the filesystem or there might be some corruption.