[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Just what *is* qemu's raw disk image file format?
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] Just what *is* qemu's raw disk image file format? |
Date: |
Mon, 16 Apr 2012 15:53:45 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
On 04/16/2012 11:22 AM, Hendrik Boom wrote:
> Just what *is* qemu's raw disk image file format?
>
> Is it just a byte-by-byte, block-by-block copy of the hard drive, such as
> can be produced by executing
>
> cp /dev/hda imagefile
Yep. Doesn't get any more raw than that :)
>
> ? Or does it have more structure or headers or such?
No headers; in fact, the lack of headers is why auto-probing an
arbitrary disk file for its format is a security risk - if you hand qemu
a raw image, the guest can manipulate that image to look like any other
file type, so that probing would guess the wrong type.
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature