A great question.

On Wed, Jun 13, 2012 at 07:32:22PM +0100, Alan Chandler wrote:
> A possibility that occurred to me is that I could make the disk used
> by the virtual machine a raw image file on an LVM logical volume,
> which I use the snapshot capability of to take a frozen snapshot of
> the disk file at some moment in time.  Mount that snapshot on the
> loopback device, so that I get to see all the individual files and
> then back them up.  However I am not sure that would work, as, I
> presume, the disk image contains bootsectors and stuff like that.

You can use 'kpartx' on the snapshot device. It scans and interprets partition
tables on a block device and sets up dm-loop devices which point "into" the
master block device.

However, if the snapshot was taken whilst the filesystem was live, you
might find that the mount tool complains that it is in an inconsistent
state.

The push method others have suggested is probably better.  You may also
find 'backuppc' useful, if you can get at the VM's drives over SMB from
the host.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120614075130.GA1982@debian

Reply via email to