Artificial truth

The more you see, the less you believe.

[archives] [latest] | [homepage] | [atom/rss]

Mounting vdi
Sat 05 May 2012 — download

Today, my Windows VM refused to boot. Since I am using Virtualbox with default settings, my VM was stored in vdi format.

The bad news is that this format is more complex that raw images. The good one is that vdi images can be mounted as loopback (so you can get your files back) using a network block device.

You'll need to :

  1. Install the qemu-kvm package
  2. Load the nbd module
  3. Mount the vdi image with qemu-nbd -c /dev/nbd0 VDI_FILE
  4. Now, you've got access to your partitions on /dev/nbdp{number}. For example, to access to the first partition: