* Convert VMDK to RAW
@ 2019-11-14 16:12 janine.schneider
2019-11-14 17:27 ` Max Reitz
0 siblings, 1 reply; 3+ messages in thread
From: janine.schneider @ 2019-11-14 16:12 UTC (permalink / raw)
To: qemu-devel, qemu-block
[-- Attachment #1: Type: text/plain, Size: 648 bytes --]
Ladies and Gentlemen,
I am a PhD student at the Friedrich-Alexander-University Erlangen-Nuremberg
in Bavaria, Germany and am currently working on a forensic reconstruction
tool. The tool can be used to analyze physical and virtual hard disks and to
reconstruct files. I would now like to extend the tool so that it is able to
analyze VMDK files and convert them to raw. Unfortunately I have not been
able to understand how to correctly unpack and assemble VMDK containers.
Since qemu is able to convert VMDK to raw, I wanted to ask you if you could
explain to me how to put the grains together?
Many thanks and greetings
Janine Schneider
[-- Attachment #2: Type: text/html, Size: 2653 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Convert VMDK to RAW
2019-11-14 16:12 Convert VMDK to RAW janine.schneider
@ 2019-11-14 17:27 ` Max Reitz
[not found] ` <000401d59b12$8024ce30$806e6a90$@fau.de>
0 siblings, 1 reply; 3+ messages in thread
From: Max Reitz @ 2019-11-14 17:27 UTC (permalink / raw)
To: janine.schneider, qemu-devel, qemu-block
[-- Attachment #1.1: Type: text/plain, Size: 1951 bytes --]
On 14.11.19 17:12, janine.schneider@fau.de wrote:
> Ladies and Gentlemen,
>
>
>
> I am a PhD student at the Friedrich-Alexander-University
> Erlangen-Nuremberg in Bavaria, Germany and am currently working on a
> forensic reconstruction tool. The tool can be used to analyze physical
> and virtual hard disks and to reconstruct files. I would now like to
> extend the tool so that it is able to analyze VMDK files and convert
> them to raw. Unfortunately I have not been able to understand how to
> correctly unpack and assemble VMDK containers. Since qemu is able to
> convert VMDK to raw, I wanted to ask you if you could explain to me how
> to put the grains together?
Hi,
I’m not quite sure what you mean by a “VMDK container”. VMDK disk
images can consist of multiple files that are linked together by a
descriptor file. In theory all you need to do is tell qemu-img to
convert that descriptor file into a raw image. For example:
(Sorry, I don’t know much about VMware, so all I can do is use qemu
tools to demonstrate)
$ qemu-img create -f vmdk -o subformat=twoGbMaxExtentSparse foo.vmdk 4G
Formatting 'foo.vmdk', fmt=vmdk size=4294967296 compat6=off
hwversion=undefined subformat=twoGbMaxExtentSparse
$ ls
foo-s001.vmdk foo-s002.vmdk foo.vmdk
$
In this example, foo.vmdk is the descriptor file and it points to the
other two (data) files:
$ cat foo.vmdk
# Disk DescriptorFile
version=1
CID=6d8d65ed
parentCID=ffffffff
createType="twoGbMaxExtentSparse"
# Extent description
RW 4194304 SPARSE "foo-s001.vmdk"
RW 4194304 SPARSE "foo-s002.vmdk"
# The Disk Data Base
#DDB
ddb.virtualHWVersion = "4"
ddb.geometry.cylinders = "8322"
ddb.geometry.heads = "16"
ddb.geometry.sectors = "63"
ddb.adapterType = "ide"
$
So to convert this VMDK disk image to a raw image, you’d simply do this:
$ qemu-img convert -f vmdk -O raw -p foo.vmdk foo.img
(100.00/100%)
$
Max
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-11-15 8:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-14 16:12 Convert VMDK to RAW janine.schneider
2019-11-14 17:27 ` Max Reitz
[not found] ` <000401d59b12$8024ce30$806e6a90$@fau.de>
2019-11-15 8:07 ` Max Reitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).