Giter VIP home page Giter VIP logo

vdidiag's Introduction

A VirtualBox VDI file check utility

Because I needed some tool to verify that the trouble at my side was not caused by a defective VDI file structure.

Usage:

make
./vdicheck -v IMAGE.vdi

What it does:

  • Read the header of an VDI file and checks it for obvious magics.
  • Read the gaps in the VDI file and look if they are filled with NUL
  • Read the block chain and verify that it is correct
  • Output some diagnostics, with -v also show empty fields
  • If verification fails, program returns false

What still is missing:

  • Report bad alignments, the blocks should be alinged on 4K boundaries for modern SSD drives
  • Grok others than the two type of VDI files I saw
  • Make sense of the "unknown2" field, for now it just dumps it
  • Make sense of all the other UUIDs
  • Verify UUID chains (like snapshots or immutable disks)
  • Repair defective block chains
  • Defragment VDI files
  • Align VDI files
  • Convert dynamic VDI files into fixed and vice versa

Known bugs:

  • Some header fields are unclear to me as I did not dive into the VirtualBox source code yet. Also the code was only tested with the VDI files I had.

vdidiag's People

Contributors

hilbix avatar

Stargazers

Pantelis Koukousoulas avatar

Watchers

James Cloos avatar  avatar

Forkers

fermatliu

vdidiag's Issues

isnull() is poorly named

I should give it another name, as the name is misleading.

Perhaps remove the check for verbose and move it into the calling routine. Improves readability.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.