1. A method for inserting a driver into a virtual machine comprising: parsing, by a computer system, a virtual machine file on a storage device for a known bit pattern; determining, by the computer system, based on the known bit pattern, a location in which to insert an executable segment; inserting, by the computer system, the executable segment into the virtual machine file on the storage device using the determined location; and verifying, by the computer system, that the insertion completed successfully.