#disk-image #virtualbox #virtualization

vdi

Parser for the VirtualBox VDI disk image format

3 unstable releases

Uses new Rust 2024

0.2.0 Sep 25, 2025
0.1.1 Sep 25, 2025
0.1.0 Sep 25, 2025

#764 in Filesystem

Download history 361/week @ 2025-09-24 11/week @ 2025-10-01 1/week @ 2025-10-08

373 downloads per month

MIT license

15KB
336 lines

Virtual Disk Image parser

This crate provides support for reading VirtualBox Virtual Disk Images (VDI).

Opened VDI files can be read using the std Read/Seek traits (writing is not supported (yet)). Additionally, VdiDisk implements ReadAt from positioned-io2

Example

let file = File::open(&path)?;
let mut disk = VdiDisk::open(file)?;
println!("VDI header: {:X?}", disk.header);

let partitions = bootsector::list_partitions(&mut disk, &bootsector::Options::default())?;

Dependencies

~1.3–2MB
~30K SLoC