Patent ID: 8661436

Claim:
In a computing device executing a hypervisor hosting a plurality of virtual machines, a method for granting by a drive manager a virtual machine exclusive access to an optical disc drive responsive to a determination the virtual machine initiated a transaction with the optical disc drive, the drive manager hosted outside of the virtual machine, comprising: mapping, by a drive manager executed by a processor of a computing device, an optical disc drive connected to the computing device to a plurality of virtual machines hosted by a hypervisor executed by the computing device, to allow the plurality of virtual machines to initiate transactions with the optical disc drive; intercepting, by the drive manager, a transaction stream generated by the optical disc drive comprising machine commands of the optical disc drive; converting, by the drive manager, the transaction stream to a command stream that can be processed by an operating system; determining, by the drive manager based on an analysis of the command stream, a first virtual machine of the plurality of virtual machines initiated a transaction with the optical disc drive; locking, by the drive manager responsive to the determination, the optical disc drive from one or more additional transactions initiated from the plurality of virtual machines, to grant the first virtual machine exclusive access to the optical disc drive during the transaction with the first virtual machine; determining, by the drive manager subsequent to locking the optical disc drive, the first virtual machine stopped transacting with the optical disc drive; and unlocking, by the drive manager, the optical disc drive.