CN102646080A - System and method for configuring USB (universal serial bus) equipment in virtual environment - Google Patents
System and method for configuring USB (universal serial bus) equipment in virtual environment Download PDFInfo
- Publication number
- CN102646080A CN102646080A CN2011100433837A CN201110043383A CN102646080A CN 102646080 A CN102646080 A CN 102646080A CN 2011100433837 A CN2011100433837 A CN 2011100433837A CN 201110043383 A CN201110043383 A CN 201110043383A CN 102646080 A CN102646080 A CN 102646080A
- Authority
- CN
- China
- Prior art keywords
- usb device
- virtual machine
- driver
- main frame
- control
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention discloses a system for configuring USB (universal serial bus) equipment in a virtual environment, which comprises an equipment detection module, a host driver loading module, a virtual machine list generation module, a virtual machine selection module, a host driver unloading module and a virtual machine driver loading module, wherein the equipment detection module is used for detecting USB equipment newly accessed into a host; the host driver loading module is used for loading drivers of the USB equipment in the host so as to obtain the right to control the USB equipment; the virtual machine list generation module is used for obtaining virtual machines running on the host so as to generate a virtual machine list; the virtual machine selection module is used for selecting a virtual machine from the virtual machine list; the host driver unloading module is used for unloading the drivers of the USB equipment from the host and releasing the right to control the USB equipment; and the virtual machine driver loading module is used for loading the drivers of the USB equipment in the virtual machine so as to obtain the right to control the USB equipment. The invention also discloses a method for configuring USB equipment in a virtual environment.
Description
Technical field
The present invention relates to technical field of virtualization, particularly relate to a kind of system and method that in virtual environment, disposes USB device.
Background technology
Development along with computer hardware technology; Computing machine begins to enter into the superfluous epoch of performance from the performance deficiency gradually; According to statistics, the average potency utilization factor of most of computing machine also is no more than 10, and this shows that computing machine all is in idle state in the most of the time.The appearance of Intel Virtualization Technology effectively raises the utilization factor to computer hardware resource.
Intel Virtualization Technology allows a main frame to move a plurality of virtual machines simultaneously, and each virtual machine all is complete a, system independently, and the operating system of differentiation can be installed, and a plurality of application programs operations can be arranged in each operating system.Hypervisor (Hypervisor) or virtual machine monitor (VirtualMachine Monitor); Be to be used to manage these virtual machines also distribute and dispatch the common main frame of use for these virtual machines hardware resource, such as CPU, internal memory, disk or other peripherals.And in the peripherals, such as keyboard, mouse, camera, portable hard drive etc., USB device has accounted for greatly; When the user is linked into main frame with a USB device; Which virtual machine this USB device will be distributed to and use, when virtual machine uses this USB device, in the time of giving another virtual machine with control; How coming these USB devices are configured, is a problem demanding prompt solution.
Summary of the invention
In view of above content, be necessary to provide a kind of system and method that in virtual environment, disposes USB device.
A kind of system that in virtual environment, disposes USB device, said virtual environment comprises main frame and runs on the some virtual machines on the main frame that said system comprises:
The equipment sensing module is used for detecting the USB device that newly is linked into said main frame;
The host driver load-on module is used for the driver at the said USB device of said main frame loading, obtains the control to said USB device;
Virtual machine tabulation generation module is used to obtain the virtual machine that runs on the said main frame, generates the virtual machine tabulation;
Virtual machine is chosen module, is used to receive user's selection operation, from the virtual machine tabulation, chooses a virtual machine;
The host driver Unload module is used for the driver at the said USB device of said main frame unloading, discharges the control to said USB device; And
Virtual machine driver load-on module is used for the driver at the said USB device of said virtual machine loading, obtains the control to said USB device.
A kind of system that in virtual environment, disposes USB device, said virtual environment comprises main frame and runs on the some virtual machines on the main frame that said system comprises:
The list of devices generation module is used to obtain the USB device that is connected on the said main frame, generates the USB device tabulation;
Equipment is chosen module, is used to receive user's selection operation, from the USB device tabulation, chooses a USB device;
The control enquiry module is used to obtain the virtual machine that said USB device is had control, is designated as source virtual machine;
Virtual machine tabulation generation module is used to obtain the virtual machine that runs on the said main frame, generates the virtual machine tabulation;
Virtual machine is chosen module, is used to receive user's selection operation, from the virtual machine tabulation, chooses a virtual machine, is designated as the target virtual machine;
The driver Unload module is used for the driver at the said USB device of said source virtual machine unloading, discharges the control to said USB device; And
The driver load-on module is used for the driver at the said USB device of said target virtual machine loading, obtains the control to said USB device.
A kind of method that in virtual environment, disposes USB device, said virtual environment comprises main frame and runs on the some virtual machines on the main frame, said method comprising the steps of:
Detecting newly is linked into the USB device in the said main frame;
In said main frame, load the driver of said USB device, obtain control said USB device;
Obtain the virtual machine that runs on the said main frame, generate the virtual machine tabulation;
Receive user's selection operation, from the virtual machine tabulation, choose a virtual machine;
The driver of the said USB device of unloading discharges the control to said USB device in said main frame; And
In said virtual machine, load the driver of said USB device, obtain control said USB device.
A kind of method that in virtual environment, disposes USB device, said virtual environment comprises main frame and runs on the some virtual machines on the main frame, said method comprising the steps of:
Obtain the USB device that is connected on the said main frame, generate the USB device tabulation;
Receive user's selection operation, from the USB device tabulation, choose a USB device;
Obtain the virtual machine that said USB device is had control, be designated as source virtual machine;
Obtain the virtual machine that runs on the said main frame, generate the virtual machine tabulation;
Receive user's selection operation, from the virtual machine tabulation, choose a virtual machine, be designated as the target virtual machine;
The driver of the said USB device of unloading discharges the control to said USB device in said source virtual machine; And
In said target virtual machine, load the driver of said USB device, obtain control said USB device.
Compared with prior art; The above-mentioned system and method that in virtual environment, disposes USB device; Owing to provide man-machine interface to supply the user to select to use the virtual machine of USB device, made that the user can be easily in the control of switching USB device between the virtual machine or between virtual machine and the main frame.
Description of drawings
Fig. 1 is the virtual environment Organization Chart in one embodiment of the present invention.
Fig. 2 is the functional block diagram of the system of USB device that in virtual environment, disposes in one embodiment of the present invention.
Fig. 3 is the functional block diagram of the system of USB device that in virtual environment, disposes in the another embodiment of the present invention.
Fig. 4 is the surface chart that in virtual environment, generates the USB device tabulation in one embodiment of the present invention.
Fig. 5 is the surface chart that in virtual environment, generates the virtual machine tabulation in one embodiment of the present invention.
Fig. 6 is the process flow diagram of the method for USB device that in virtual environment, disposes in one embodiment of the present invention.
Fig. 7 is the process flow diagram of the method for USB device that in virtual environment, disposes in the another embodiment of the present invention.
The main element symbol description
The equipment sensing module | ?102 |
The host driver load-on module | ?104 |
Virtual machine tabulation generation module | ?106 |
Virtual machine is chosen module | ?108 |
The host driver Unload module | ?110 |
Virtual machine driver load-on module | ?112 |
The list of devices generation module | ?202 |
Equipment is chosen module | ?204 |
The control enquiry module | ?206 |
Virtual machine tabulation generation module | ?208 |
Virtual machine is chosen module | ?210 |
The driver Unload module | ?212 |
The driver load-on module | ?214 |
Embodiment
Below in conjunction with embodiment and accompanying drawing the present invention is done further detailed explanation.
See also Fig. 1; Schematically show virtual environment framework according to one embodiment of the present invention; Said virtual environment comprises main frame and runs on the some virtual machines on the main frame; The operating system that operates on the main frame is referred to as host operating system, is used for managing virtual machines and for virtual machine distributes and the resource of dispatching host machine, such as CPU, internal memory, disk and other peripherals etc.; In some virtual environments, the system of exercising said host operating system function is hypervisor (Hypervisor) or virtual machine monitor (Virtual Machine Monitor).The operating system that operates on the virtual machine is referred to as client operating system; Because between the virtual machine is separate; So the client operating system on the virtual machine can be polytype and not disturb mutually, is Windows XP such as the client operating system on the virtual machine 1, the client operating system on the virtual machine 2 is Linux; Client operating system on the virtual machine 3 is IOS, and the client operating system on a plurality of virtual machines can move simultaneously.
See also Fig. 2; Schematically show functional block diagram according to the system of USB device that in virtual environment, disposes of one embodiment of the present invention; Said virtual environment comprises main frame and runs on the some virtual machines on the main frame, said in virtual environment the system of configuration USB device comprise that equipment sensing module 102, host driver load-on module 104, virtual machine tabulation generation module 106, virtual machine choose module 108, host driver Unload module 110 and virtual machine driver load-on module 112.
Said equipment sensing module 102 is used for detecting the USB device that newly is linked into said main frame.When the user was linked into said main frame with USB device, said equipment sensing module 102 received USB device and adds incident, and sends a notification message to said host driver load-on module 104.
Said host driver load-on module 104 is used for the driver at the said USB device of said main frame loading, obtains the control to said USB device.Said host driver load-on module 104 comprises that apparatus information acquiring submodule, host driver are obtained submodule and host driver loads submodule.Said apparatus information acquiring submodule is used for reading from pci bus the supplier ID and the device id of said USB device.Said host driver is obtained submodule, is used for supplier ID and device id according to said USB device, in said main frame, obtains the corresponding driver of said USB device.Said host driver loads submodule, is used for said driver is loaded into the primary memory of said main frame.
Said virtual machine tabulation generation module 106 is used to obtain the virtual machine that runs on the said main frame, generates the virtual machine tabulation.For providing good man-machine interaction to experience, said virtual machine tabulation generation module 106 is shown to this virtual machine tabulation on the display screen, supplies the user to select to obtain the virtual machine of USB device control.
Said virtual machine is chosen module 108, is used to receive user's selection operation, from the virtual machine tabulation, chooses a virtual machine.
Said host driver Unload module 110 is used for the driver at the said USB device of said main frame unloading, discharges the control to said USB device.
Said virtual machine driver load-on module 112 is used for the driver at the said USB device of said virtual machine loading, obtains the control to said USB device.Said virtual machine driver load-on module 112 comprises that facility information receives submodule, the virtual machine driver obtains submodule and the virtual machine driver loads submodule.Said facility information receives submodule, is used to receive the supplier ID and the device id of the said USB device that said main frame sends.Said virtual machine driver obtains submodule, is used for supplier ID and device id according to said USB device, in said virtual machine, obtains the corresponding driver of said USB device.Said virtual machine driver loads submodule, is used for said driver is loaded into the primary memory of said virtual machine.
The said system that in virtual environment, disposes USB device also comprises virtual machine driver Unload module, is used for the driver at the said USB device of said virtual machine unloading, discharges the control to said USB device.After said virtual machine had discharged the control to said USB device, said host driver load-on module 104 loaded the driver of said USB device again in said main frame, obtain the control to said USB device.
In further improved embodiment; The said system that in virtual environment, disposes USB device also comprises the control logging modle; Be used for when main frame or virtual machine obtain the control to USB device, the corresponding relation of said main frame or virtual machine and said USB device is stored in the database.
See also Fig. 3; Schematically show functional block diagram according to the system of USB device that in virtual environment, disposes of another embodiment of the present invention; Said virtual environment comprises main frame and runs on the some virtual machines on the main frame, said in virtual environment the system of configuration USB device comprise that list of devices generation module 202, equipment chooses module 204, control enquiry module 206, virtual machine tabulation generation module 208, virtual machine and choose module 210, driver Unload module 212 and driver load-on module 214.
Said list of devices generation module 202 is used to obtain the USB device that is connected on the said main frame, generates the USB device tabulation.Said list of devices generation module 202 all USB ports of scanning all add available USB device in this USB device tabulation.For providing good man-machine interaction to experience, said list of devices generation module 202 is shown to this USB device tabulation on the display screen, supplies the user to select to change the USB device of control.
Said equipment is chosen module 204, is used to receive user's selection operation, from the USB device tabulation, chooses a USB device.
Said control enquiry module 206 is used to obtain the virtual machine that said USB device is had control, is designated as source virtual machine.
Said virtual machine tabulation generation module 208 is used to obtain the virtual machine that runs on the said main frame, generates the virtual machine tabulation.For providing good man-machine interaction to experience, said virtual machine tabulation generation module 208 is shown to this virtual machine tabulation on the display screen, supplies the user to select to obtain the virtual machine of USB device control.
Said virtual machine is chosen module 210, is used to receive user's selection operation, from the virtual machine tabulation, chooses a virtual machine, is designated as the target virtual machine.
Said driver Unload module 212 is used for the driver at the said USB device of said source virtual machine unloading, discharges the control to said USB device.
Said driver load-on module 214 is used for the driver at the said USB device of said target virtual machine loading, obtains the control to said USB device.Said driver load-on module comprises that facility information receives submodule, driver obtains submodule and driver loads submodule.Said facility information receives submodule, is used to receive the supplier ID and the device id of the said USB device that said source virtual machine sends.Said driver obtains submodule, is used for supplier ID and device id according to said USB device, in said target virtual machine, obtains the corresponding driver of said USB device.Said driver loads submodule, is used for said driver is loaded into the primary memory of said target virtual machine.
In further improved embodiment; The said system that in virtual environment, disposes USB device also comprises the control logging modle; Be used for when said target virtual machine obtains the control to USB device, the corresponding relation of said target virtual machine and said USB device is stored in the database.Said control enquiry module 206 can inquire the virtual machine that said USB device is had control through this database.
See also Fig. 4, schematically show the surface chart that in virtual environment, generates the USB device tabulation according to one embodiment of the present invention.Through the USB port of scanning main frame, find and discern all available USB devices, it is presented on the screen with tabular form, supply the user in this USB device tabulation, to select to change the USB device of control.Cursor arrow among Fig. 4 is represented the operation that the user chooses, and chooses but be not limited to cursor, and on the equipment of supporting the touch-control input, touch-control is chosen and also can be used as selection operation.In further improved embodiment; When generating the USB device tabulation, obtain in the lump and current USB device is had the virtual machine of control, for example; In Fig. 4, show what USB device 1 was had control is virtual machine 1, what USB device 3 was had control is virtual machine 4.
See also Fig. 5, schematically show the surface chart that in virtual environment, generates the virtual machine tabulation according to one embodiment of the present invention.Main frame obtains all and operates in the virtual machine on the said main frame through virtual machine monitor, and it is presented on the screen with tabular form, supplies user's select target virtual machine in this virtual machine tabulation, as the destination object that will shift control.Cursor arrow among Fig. 5 is represented the operation that the user chooses, and chooses but be not limited to cursor, and on the equipment of supporting the touch-control input, touch-control is chosen and also can be used as selection operation.In further improved embodiment, when generating the virtual machine tabulation, USB device is had the virtual machine of control according to current, this virtual machine in the virtual machine tabulation is set to not optional or does not show.For example, the interface of Fig. 5 be through among Fig. 4 to the window of choosing further ejection of USB device 2, current what USB device 2 was had control is virtual machine 2, so the virtual machine 2 in the virtual machine tabulation that shows of Fig. 5 is not optional.
See also Fig. 6, schematically show the process flow diagram according to the method for USB device that in virtual environment, disposes of one embodiment of the present invention, said virtual environment comprises main frame and runs on the some virtual machines on the main frame, said method comprising the steps of:
In step S102, detecting newly is linked into the USB device in the said main frame.When the user is linked into said main frame with USB device, can produce a USB device and add incident, just can detect the USB device whether new access is arranged through monitoring to this incident.
In step S104, in said main frame, load the driver of said USB device, obtain control to said USB device.Said main frame reads the supplier ID and the device id of said USB device from pci bus; Said main frame obtains the corresponding driver of said USB device according to the supplier ID and the device id of said USB device; Said main frame is loaded into said driver in the primary memory of said main frame.
In step S106, obtain the virtual machine that runs on the said main frame, generate the virtual machine tabulation.For providing good man-machine interaction to experience, this virtual machine tabulation is shown on the display screen, supply the user to select to obtain the virtual machine of USB device control.
In step S108, receive user's selection operation, from the virtual machine tabulation, choose a virtual machine.
In step S110, the driver of the said USB device of unloading discharges the control to said USB device in said main frame.
In step S112, in said virtual machine, load the driver of said USB device, obtain control to said USB device.Said main frame sends to said virtual machine with the supplier ID and the device id of said USB device; Said virtual machine obtains the corresponding driver of said USB device according to the supplier ID and the device id of said USB device; Said virtual machine is loaded into said driver in the primary memory of said virtual machine.
Behind step S112, if said virtual machine will discharge the control of said USB device and give back said main frame, said method also comprises: the driver of the said USB device of unloading in said virtual machine discharges the control to said USB device; In said main frame, load the driver of said USB device, obtain control said USB device.
In further improved embodiment, said method also comprises: when main frame or virtual machine obtain the control to USB device, the corresponding relation of said main frame or virtual machine and said USB device is stored in the database.
See also Fig. 7, schematically show the process flow diagram according to the method for USB device that in virtual environment, disposes of another embodiment of the present invention, said virtual environment comprises main frame and runs on the some virtual machines on the main frame, said method comprising the steps of:
In step S202, obtain the USB device that is connected on the said main frame, generate the USB device tabulation.Scan all USB ports, available USB device is all added in this USB device tabulation.For providing good man-machine interaction to experience, this USB device tabulation is shown on the display screen, supply the user to select to change the USB device of control.
In step S204, receive user's selection operation, from the USB device tabulation, choose a USB device.
In step S206, obtain the virtual machine that said USB device is had control, be designated as source virtual machine.
In step S208, obtain the virtual machine that runs on the said main frame, generate the virtual machine tabulation.For providing good man-machine interaction to experience, this virtual machine tabulation is shown on the display screen, supply the user to select to obtain the virtual machine of USB device control.
In step S210, receive user's selection operation, from the virtual machine tabulation, choose a virtual machine, be designated as the target virtual machine.
In step S212, the driver of the said USB device of unloading discharges the control to said USB device in said source virtual machine.
In step S214, in said target virtual machine, load the driver of said USB device, obtain control to said USB device.Said source virtual machine sends to said target virtual machine with the supplier ID and the device id of said USB device; Said target virtual machine obtains the corresponding driver of said USB device according to the supplier ID and the device id of said USB device; Said target virtual machine is loaded into said driver in the primary memory of said target virtual machine.
In further improved embodiment, said method also comprises: when virtual machine obtains the control to USB device, the corresponding relation of said virtual machine and said USB device is stored in the database.In this embodiment, step S206 can inquire the virtual machine that said USB device is had control through this database.
To one skilled in the art, can combine the actual needs of production to make other corresponding changes or adjustment according to invention scheme of the present invention and inventive concept, and these changes and adjustment all should belong to the protection domain of claim of the present invention.
Claims (16)
- One kind in virtual environment the configuration USB device system, said virtual environment comprises main frame and runs on the some virtual machines on the main frame that it is characterized in that: said system comprises:The equipment sensing module is used for detecting the USB device that newly is linked into said main frame;The host driver load-on module is used for the driver at the said USB device of said main frame loading, obtains the control to said USB device;Virtual machine tabulation generation module is used to obtain the virtual machine that runs on the said main frame, generates the virtual machine tabulation;Virtual machine is chosen module, is used to receive user's selection operation, from the virtual machine tabulation, chooses a virtual machine;The host driver Unload module is used for the driver at the said USB device of said main frame unloading, discharges the control to said USB device; AndVirtual machine driver load-on module is used for the driver at the said USB device of said virtual machine loading, obtains the control to said USB device.
- 2. the system that in virtual environment, disposes USB device as claimed in claim 1, it is characterized in that: said host driver load-on module comprises:The apparatus information acquiring submodule is used for reading from pci bus the supplier ID and the device id of said USB device;Host driver is obtained submodule, is used for supplier ID and device id according to said USB device, in said main frame, obtains the corresponding driver of said USB device;Host driver loads submodule, is used for said driver is loaded into the primary memory of said main frame.
- 3. the system that in virtual environment, disposes USB device as claimed in claim 2, it is characterized in that: said virtual machine driver load-on module comprises:Facility information receives submodule, is used to receive the supplier ID and the device id of the said USB device that said main frame sends;The virtual machine driver obtains submodule, is used for supplier ID and device id according to said USB device, in said virtual machine, obtains the corresponding driver of said USB device;The virtual machine driver loads submodule, is used for said driver is loaded into the primary memory of said virtual machine.
- 4. the system that in virtual environment, disposes USB device as claimed in claim 1, it is characterized in that: said system also comprises:Virtual machine driver Unload module is used for the driver at the said USB device of said virtual machine unloading, discharges the control to said USB device.
- 5. like claim 1 or the 4 described systems that in virtual environment, dispose USB device, it is characterized in that: said system also comprises:The control logging modle is used for when main frame or virtual machine obtain the control to USB device, and the corresponding relation of said main frame or virtual machine and said USB device is stored in the database.
- One kind in virtual environment the configuration USB device system, said virtual environment comprises main frame and runs on the some virtual machines on the main frame that it is characterized in that: said system comprises:The list of devices generation module is used to obtain the USB device that is connected on the said main frame, generates the USB device tabulation;Equipment is chosen module, is used to receive user's selection operation, from the USB device tabulation, chooses a USB device;The control enquiry module is used to obtain the virtual machine that said USB device is had control, is designated as source virtual machine;Virtual machine tabulation generation module is used to obtain the virtual machine that runs on the said main frame, generates the virtual machine tabulation;Virtual machine is chosen module, is used to receive user's selection operation, from the virtual machine tabulation, chooses a virtual machine, is designated as the target virtual machine;The driver Unload module is used for the driver at the said USB device of said source virtual machine unloading, discharges the control to said USB device; AndThe driver load-on module is used for the driver at the said USB device of said target virtual machine loading, obtains the control to said USB device.
- 7. the system that in virtual environment, disposes USB device as claimed in claim 6, it is characterized in that: said driver load-on module comprises:Facility information receives submodule, is used to receive the supplier ID and the device id of the said USB device that said source virtual machine sends;Driver obtains submodule, is used for supplier ID and device id according to said USB device, in said target virtual machine, obtains the corresponding driver of said USB device;Driver loads submodule, is used for said driver is loaded into the primary memory of said target virtual machine.
- 8. the system that in virtual environment, disposes USB device as claimed in claim 6, it is characterized in that: said system also comprises:The control logging modle is used for when said target virtual machine obtains the control to USB device, and the corresponding relation of said target virtual machine and said USB device is stored in the database.
- One kind in virtual environment the configuration USB device method, said virtual environment comprises main frame and runs on the some virtual machines on the main frame, it is characterized in that: said method comprising the steps of:Detecting newly is linked into the USB device in the said main frame;In said main frame, load the driver of said USB device, obtain control said USB device;Obtain the virtual machine that runs on the said main frame, generate the virtual machine tabulation;Receive user's selection operation, from the virtual machine tabulation, choose a virtual machine;The driver of the said USB device of unloading discharges the control to said USB device in said main frame; AndIn said virtual machine, load the driver of said USB device, obtain control said USB device.
- 10. the method that in virtual environment, disposes USB device as claimed in claim 9 is characterized in that: the step of the driver that in said main frame, loads said USB device in the said method is specifically further comprising the steps of:Said main frame reads the supplier ID and the device id of said USB device from pci bus;Said main frame obtains the corresponding driver of said USB device according to the supplier ID and the device id of said USB device;Said main frame is loaded into said driver in the primary memory of said main frame.
- 11. the method that in virtual environment, disposes USB device as claimed in claim 10 is characterized in that: the step of the driver that in said virtual machine, loads said USB device in the said method is specifically further comprising the steps of:Said main frame sends to said virtual machine with the supplier ID and the device id of said USB device;Said virtual machine obtains the corresponding driver of said USB device according to the supplier ID and the device id of said USB device;Said virtual machine is loaded into said driver in the primary memory of said virtual machine.
- 12. the method that in virtual environment, disposes USB device as claimed in claim 9 is characterized in that: further comprising the steps of after the step of said virtual machine acquisition in the said method to the control of said USB device:The driver of the said USB device of unloading discharges the control to said USB device in said virtual machine;In said main frame, load the driver of said USB device, obtain control said USB device.
- 13. like claim 9 or the 12 described methods that in virtual environment, dispose USB device, it is characterized in that: said method is further comprising the steps of:When main frame or virtual machine obtain the control to USB device, the corresponding relation of said main frame or virtual machine and said USB device is stored in the database.
- 14. the method for a configuration USB device in virtual environment, said virtual environment comprises main frame and runs on the some virtual machines on the main frame, it is characterized in that: said method comprising the steps of:Obtain the USB device that is connected on the said main frame, generate the USB device tabulation;Receive user's selection operation, from the USB device tabulation, choose a USB device;Obtain the virtual machine that said USB device is had control, be designated as source virtual machine;Obtain the virtual machine that runs on the said main frame, generate the virtual machine tabulation;Receive user's selection operation, from the virtual machine tabulation, choose a virtual machine, be designated as the target virtual machine;The driver of the said USB device of unloading discharges the control to said USB device in said source virtual machine; AndIn said target virtual machine, load the driver of said USB device, obtain control said USB device.
- 15. the method that in virtual environment, disposes USB device as claimed in claim 14 is characterized in that: the step of the driver that in said target virtual machine, loads said USB device in the said method is specifically further comprising the steps of:Said source virtual machine sends to said target virtual machine with the supplier ID and the device id of said USB device;Said target virtual machine obtains the corresponding driver of said USB device according to the supplier ID and the device id of said USB device;Said target virtual machine is loaded into said driver in the primary memory of said target virtual machine.
- 16. the method that in virtual environment, disposes USB device as claimed in claim 14, it is characterized in that: said method is further comprising the steps of:When virtual machine obtains the control to USB device, the corresponding relation of said virtual machine and said USB device is stored in the database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100433837A CN102646080A (en) | 2011-02-22 | 2011-02-22 | System and method for configuring USB (universal serial bus) equipment in virtual environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011100433837A CN102646080A (en) | 2011-02-22 | 2011-02-22 | System and method for configuring USB (universal serial bus) equipment in virtual environment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102646080A true CN102646080A (en) | 2012-08-22 |
Family
ID=46658908
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011100433837A Pending CN102646080A (en) | 2011-02-22 | 2011-02-22 | System and method for configuring USB (universal serial bus) equipment in virtual environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102646080A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103218321A (en) * | 2013-04-23 | 2013-07-24 | 深圳市京华科讯科技有限公司 | Port mapping method based on all-in-one machine |
CN103685434A (en) * | 2012-09-26 | 2014-03-26 | 中国移动通信集团公司 | Method, system and equipment for implementing various operating systems on terminal |
CN103942088A (en) * | 2014-04-01 | 2014-07-23 | 国云科技股份有限公司 | Method for acquiring using conditions of USB storage device of virtual machine |
CN104317759A (en) * | 2014-10-15 | 2015-01-28 | 国云科技股份有限公司 | Method for supporting hot plugging of virtual machine USB (universal serial bus) storage equipment |
CN104808978A (en) * | 2014-01-28 | 2015-07-29 | 宏碁股份有限公司 | Method for sharing plug-and-play device and electronic device therefor |
CN107357743A (en) * | 2017-07-28 | 2017-11-17 | 郑州云海信息技术有限公司 | A kind of method and device for controlling USB device |
CN109240798A (en) * | 2018-08-30 | 2019-01-18 | 郑州云海信息技术有限公司 | The method and apparatus for managing the external equipment of virtual machine |
CN109947489A (en) * | 2019-03-19 | 2019-06-28 | 佳都新太科技股份有限公司 | External equipment management method, device, equipment and storage medium based on container |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1700171A (en) * | 2004-04-30 | 2005-11-23 | 微软公司 | Providing direct access to hardware from a virtual environment |
KR20080040457A (en) * | 2006-11-03 | 2008-05-08 | 엘지전자 주식회사 | Usb device control method and the apparatus |
CN101685404A (en) * | 2008-09-28 | 2010-03-31 | 联想(北京)有限公司 | Computer and method for dynamically switching equipment in virtual environment |
CN101770389A (en) * | 2008-12-29 | 2010-07-07 | 北京联想软件有限公司 | Computer and method for managing hardware device |
-
2011
- 2011-02-22 CN CN2011100433837A patent/CN102646080A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1700171A (en) * | 2004-04-30 | 2005-11-23 | 微软公司 | Providing direct access to hardware from a virtual environment |
KR20080040457A (en) * | 2006-11-03 | 2008-05-08 | 엘지전자 주식회사 | Usb device control method and the apparatus |
CN101685404A (en) * | 2008-09-28 | 2010-03-31 | 联想(北京)有限公司 | Computer and method for dynamically switching equipment in virtual environment |
CN101770389A (en) * | 2008-12-29 | 2010-07-07 | 北京联想软件有限公司 | Computer and method for managing hardware device |
Non-Patent Citations (1)
Title |
---|
杨伟,等: "《Linux下USB设备驱动研究与开发》", 《计算机工程》, vol. 32, no. 19, 31 October 2006 (2006-10-31) * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685434A (en) * | 2012-09-26 | 2014-03-26 | 中国移动通信集团公司 | Method, system and equipment for implementing various operating systems on terminal |
CN103218321A (en) * | 2013-04-23 | 2013-07-24 | 深圳市京华科讯科技有限公司 | Port mapping method based on all-in-one machine |
CN104808978A (en) * | 2014-01-28 | 2015-07-29 | 宏碁股份有限公司 | Method for sharing plug-and-play device and electronic device therefor |
CN103942088A (en) * | 2014-04-01 | 2014-07-23 | 国云科技股份有限公司 | Method for acquiring using conditions of USB storage device of virtual machine |
CN103942088B (en) * | 2014-04-01 | 2017-07-07 | 国云科技股份有限公司 | A kind of method for obtaining virtual machine USB storage device service condition |
CN104317759A (en) * | 2014-10-15 | 2015-01-28 | 国云科技股份有限公司 | Method for supporting hot plugging of virtual machine USB (universal serial bus) storage equipment |
CN107357743A (en) * | 2017-07-28 | 2017-11-17 | 郑州云海信息技术有限公司 | A kind of method and device for controlling USB device |
CN109240798A (en) * | 2018-08-30 | 2019-01-18 | 郑州云海信息技术有限公司 | The method and apparatus for managing the external equipment of virtual machine |
CN109947489A (en) * | 2019-03-19 | 2019-06-28 | 佳都新太科技股份有限公司 | External equipment management method, device, equipment and storage medium based on container |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102646080A (en) | System and method for configuring USB (universal serial bus) equipment in virtual environment | |
EP2488929B1 (en) | Memory object relocation for power savings | |
US10085571B2 (en) | Interactive display case | |
CN111181804B (en) | Intelligent device offline state automatic detection method and device, electronic device and medium | |
US9459786B2 (en) | Systems and methods for sharing a user interface element based on user gestures | |
US20140195794A1 (en) | Electronic device with baseboard management controller updating system | |
CN104579768A (en) | Client upgrading method and device | |
CN103577658A (en) | Method and system for evaluating intelligent terminal hardware | |
CN105900054A (en) | System and method for context-based touch processing | |
CN110410353B (en) | Fan control method and device and terminal equipment | |
CN103592997A (en) | Method and system for automatic clock-gating of clock grid at clock source | |
CN103455621A (en) | Method, device and system for analyzing physical distribution invoice numbers | |
US20150242342A1 (en) | Information processing apparatus, information processing method, and storage medium | |
CN104267987B (en) | A kind of newer detection method of application APP, detection device and terminal | |
CN105430632A (en) | Data flow statistical method and mobile terminal | |
CN111694604A (en) | Method, device and equipment for installing drivers in batches and machine-readable storage medium | |
CN105045890A (en) | Method and device for determining hot news in target news source | |
CN103279264A (en) | Electronic device and input operation management method thereof | |
CN103761015A (en) | Scanning method and system for capacitive touch screen control chip | |
CN103793266A (en) | Plug-in management device | |
CN105630448A (en) | KVM (Keyboard Video Mouse) system based on FPGA (Field Programmable Gate Array) | |
CN110879701A (en) | Workflow visualization configuration method, server, system and medium | |
CN108052521B (en) | Coordinated data display method, application server and storage medium | |
CN111611124A (en) | Monitoring equipment analysis method and device, computer device and storage medium | |
US8667478B1 (en) | Backward-compatibility using a plugin architecture |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20120822 |