Microsoft's Virtual Hard Disk (VHD) Format
VHD (Virtual Hard Disk) is a file format which represents a virtual hard disk drive (HDD). It may contain what is found on a physical HDD, such as disk partitions and a file system, which in turn can contain files and folders. It is typically used as the hard disk of a virtual machine. The format was created by Connectix for Connectix Virtual PC product, which was later acquired by Microsoft in 2003, for what is now known as Microsoft Virtual PC. Since June 2005, Microsoft has made the VHD Image Format Specification available to third parties under the Microsoft Open Specification Promise.
$ npm install vhd
For more information, see MSDN
All virtual disk types have a minimum size of 3 MB.
var VHD = require 'vhd'
var fixed = './path/to/image.vhd'
fixedopenif error// Obviously, something went wrong...else// Ready to read/write to/from image
fixedread offset length// ...
fixedwrite buffer offset// ...