CN105740180A - Virtual machine access method and apparatus for USB device - Google Patents
Virtual machine access method and apparatus for USB device Download PDFInfo
- Publication number
- CN105740180A CN105740180A CN201410755507.8A CN201410755507A CN105740180A CN 105740180 A CN105740180 A CN 105740180A CN 201410755507 A CN201410755507 A CN 201410755507A CN 105740180 A CN105740180 A CN 105740180A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- usb device
- information
- usb
- long
- 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.)
- Granted
Links
Landscapes
- Computer And Data Communications (AREA)
- Information Transfer Systems (AREA)
Abstract
The invention discloses a virtual machine access method and apparatus for a USB device. The method is applied to the access apparatus comprising at least one USB interface. The method comprises the steps of establishing a connection with a USB interface through a first USB interface, wherein the first USB interface is one of at least one USB interface; obtaining device information of the USB device; according to the device information and the first USB interface, forming basic information of the USB device; sending the basic information to a first virtual machine, so that the first virtual machine can conveniently establish remote mapping with the USB device; and forming remote mapping configuration information of the USB device, wherein the remote mapping configuration information comprises identifier information of the first virtual machine.
Description
Technical field
The present invention relates to the cloud platform technology in the communications field, particularly relate to virtual machine cut-in method and the device of a kind of USB device.
Background technology
Continuous maturation along with cloud computing technology, at each common carrier, Internet enterprises and Internet data center (InternetDataCenter, the large-scale use such as IDC), cloud platform can provide the continual business service ability of a kind of High Availabitity.But some cloud platform servers inserted all kinds of USB device (such as bank authentication card, CA certificate, softdog, file management card, USB storage etc.) originally, these USB devices are owing to being inserted into physical machine, mapped to virtual machine by physical machine again, virtual machine normally use after recognizing this equipment.
These USB device dispersed and distributed are in each physical machine, the maintenance and management of inconvenient staff, as staff wants a USB device from being connected to physical machine A virtual machine and changing on connection physical machine B, then firstly the need of finding physical machine A, described USB device is pulled up, after being inserted on described physical machine B again, it is possible to be mapped on physical machine B, it is clear that very loaded down with trivial details.
After virtual machine or physical machine break down, when virtual machine needs to migrate to different physical machine, the so original USB device mapped, owing to being the physical machine inserting fault, just cannot normally employ in new physical machine.In this case, generally requiring attendant and rush to machine room, USB device reinserts new physical machine, simultaneously the mapping configuration re-starting USB device in new physical machine, such USB device normally could use on new virtual machine.
When there is virtual machine (vm) migration, USB device needs to enter new physics machine from the original physical machine transplanting of rice, and attendant rushes to machine room to be needed to consume the plenty of time with reinserting and configuring, and period business can be interrupted.
In time using USB device more in cloud platform, there will be again virtual machine Autonomic Migration Framework, USB device also can migrate therewith by hand, so will result in the managerial confusion of USB device simultaneously.Along with the increase of USB device, the expansion of cloud resource pool scale, it is possible to final attendant can be caused not known, and which physical machine the USB device of client is inserted into and suffers.
Summary of the invention
In view of this, embodiment of the present invention expectation provides a kind of USB device and moves the moving method of virtual machine and the device of mapping, to realize dynamic migration and the migration management of the virtual machine in the cloud platform that USB device maps.
For reaching above-mentioned purpose, the technical scheme is that and be achieved in that:
Embodiment of the present invention first aspect provides the virtual machine cut-in method of a kind of USB device, and described method is applied to include on the access device of at least one USB interface, and described method includes:
It is connected with the foundation of described USB interface by the first USB interface;Wherein, described first USB interface is one of them of at least one USB interface described;
Obtain the facility information of described USB device;
According to described facility information and described first USB interface, form the essential information of described USB device;
Described essential information is sent, in order to described first virtual machine is set up with described USB device and remotely mapped to the first virtual machine;
Form the long-range mapping configuration of described USB device;Wherein, described long-range mapping configuration includes the identification information of described first virtual machine.
Preferably,
After described USB device and described first virtual machine are set up and remotely mapped, described method also includes:
When the virtual machine mapped mutually on described USB device with described cloud platform by described first virtual machine (vm) migration to the second virtual machine time, obtain described virtual machine (vm) migration information;Wherein, described second virtual machine is different from described first virtual machine;
According to described virtual machine (vm) migration information, update described long-range mapping configuration;Described long-range mapping configuration after renewal includes the identification information of described second virtual machine;
According to the described long-range mapping configuration after updating, send described essential information to described second virtual machine;
Wherein, described essential information sets up remotely mapping for described second virtual machine and described USB device.
Preferably,
Described when the virtual machine mapped mutually on described USB device with described cloud platform by described first virtual machine (vm) migration to the second virtual machine time, obtain described virtual machine (vm) migration information, including:
When described first virtual machine or physical machine fault corresponding to described first virtual machine, when the virtual machine that described USB device maps mutually is altered to described second virtual machine by described first virtual machine, obtain described virtual machine (vm) migration information.
Preferably,
Described according to described virtual machine (vm) migration information, update described long-range mapping configuration, including:
According to described virtual machine (vm) migration information, form USB migration scheduling information;
According to described USB migration scheduling information, update described long-range mapping configuration.
Preferably,
Described according to the described long-range mapping configuration after updating, send described essential information to described second virtual machine, including:
According to the described long-range mapping configuration after updating, send the long-range mapping request of USB device to described second virtual machine;
Receive described second virtual machine and send response message based on the long-range mapping request of described USB device;
According to described response message, inquire about the essential information that described USB device is corresponding;
Described essential information is sent to described second virtual machine.
Embodiment of the present invention second aspect provides a kind of access device, and described device includes at least one USB interface, and described device also includes:
Management module, for being connected with the foundation of described USB interface by the first USB interface;Obtain the facility information of described USB device;And according to described facility information and described first USB interface, form the essential information of described USB device;Wherein, described first USB interface is one of them of at least one USB interface described;
AM access module, for sending described essential information to the first virtual machine, in order to described first virtual machine is set up with described USB device and remotely mapped;
Configuration module, for forming the long-range mapping configuration of described USB device;Wherein, described long-range mapping configuration includes the identification information of described first virtual machine.
Preferably,
Described device also includes synchronization module;
Described synchronization module, after setting up remotely map at described USB device and described first virtual machine, when the virtual machine mapped mutually on described USB device with described cloud platform by described first virtual machine (vm) migration to the second virtual machine time, obtain described virtual machine (vm) migration information;Wherein, described second virtual machine is different from described first virtual machine;
Described configuration module, is additionally operable to, according to described virtual machine (vm) migration information, update the long-range mapping configuration that in described configuration module, the described USB device of storage is corresponding;
Described AM access module, is additionally operable to according to the described long-range mapping configuration after updating, and sends described essential information to described second virtual machine;Wherein, described long-range mapping configuration includes the identification information of described second virtual machine;Described essential information is stored in advance in information in described management module, including the facility information of described USB device;Described essential information sets up remotely mapping for described second virtual machine and described USB device.
Preferably,
Described synchronization module, specifically for when described first virtual machine or physical machine fault corresponding to described first virtual machine, when the virtual machine that described USB device maps mutually is altered to described second virtual machine by described first virtual machine, obtaining described virtual machine (vm) migration information.
Preferably,
Described synchronization module, is additionally operable to, according to described virtual machine (vm) migration information, form USB migration scheduling information;And described USB migration scheduling information is sent to described AM access module;
Described configuration module, specifically for according to described USB migration scheduling information, updating described long-range mapping configuration.
Preferably,
Described AM access module, is additionally operable to according to the described long-range mapping configuration after updating, and sends the long-range mapping request of USB device to described second virtual machine;Receive described second virtual machine and send response message based on the long-range mapping request of described USB device;According to described response message, inquire about the essential information that described USB device is corresponding;And send described essential information to described second virtual machine.
Embodiments provide a kind of USB device and move the moving method of virtual machine and the device of mapping, described USB device is all connected remotely on virtual machine by described access device, so it is connected to the USB device of the cloud platform included in multiple stage physical machine not spread and be connected in multiple physical machine, it is simple to the same management of staff.Owing to described USB device is mapped on virtual machine by described access device long-distance, when the virtual-machine fail of its mapping, described USB device also can connect on other virtual machines either directly through described access device, without staff, described USB device is pulled the physical machine of fault, it is inserted into again on the virtual machine of other normal operation, so can simplify the work of staff, and the time of the service disconnection that USB device causes because of virtual-machine fail can be reduced.Simultaneously, described access device is formed with long-range mapping configuration, conveniently records the virtual machine that current USB device remotely maps, the problem not knowing the current virtual machine remotely mapped of USB device that will not cause because of the artificial plug of staff.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the USB device described in the embodiment of the present invention moves the moving method of the virtual machine of mapping;
Fig. 2 is the schematic flow sheet that the USB device described in the embodiment of the present invention moves the moving method of the virtual machine of mapping;
Fig. 3 is the schematic flow sheet sending essential information to the second virtual machine described in the embodiment of the present invention;
Fig. 4 is the structural representation that the USB device described in the embodiment of the present invention moves the access device of the virtual machine of mapping;
Fig. 5 is the structural representation that the USB device described in example of the present invention moves the access device of the virtual machine of mapping;
Fig. 6 is the schematic flow sheet that the USB device described in example of the present invention moves the moving method of the virtual machine of mapping.
Detailed description of the invention
Below in conjunction with Figure of description and specific embodiment technical scheme done and further elaborate.
Embodiment of the method:
As it is shown in figure 1, the present embodiment provides the cut-in method of a kind of USB device, described method is applied to include on the access device of at least one USB interface, and described method includes:
Step S110: be connected with the foundation of described USB interface by the first USB interface;Wherein, described first USB interface is one of them of at least one USB interface described;
Step S120: obtain the facility information of described USB device;
Step S130: according to described facility information and described first USB interface, form the essential information of described USB device;
Step S140: send described essential information to the first virtual machine, in order to described first virtual machine is set up with described USB device and remotely mapped;
Step S150: form the long-range mapping configuration of described USB device;Wherein, described long-range mapping configuration includes the identification information of described first virtual machine.
Described essential information can include the facility information of described USB device;Described facility information can include at least one of the information such as the port information of the numbering of described USB device, model, title and described first USB interface.Described numbering can be described device distribute to as described in the numbering of USB device, the USB device different with the difference of described device for distinguishing described cloud platform.Described numbering can be used as the index essential information of USB device inquired about user and staff.Described model includes the models such as USB2.0 or USB3.0.Different users is likely to it arrange different titles to USB device, and to facilitate user to distinguish, described title can give the title of described USB device setting for user.Described port can be the port numbers that described USB device is connected to cloud platform.
Described essential information may also include access information;Described access information can include USB device and access the time of cloud platform;The system of cloud platform accessed, specifically Window system or Unix system in this way.These information are the information such as the record that facilitates USB device described in subsequent query to be linked into described cloud platform.
Essential information can be formed in step s 130 according to described facility information and access information;Described facility information includes the model of USB device and/or identification information and/or title;Described access information includes the turn-on time accessing described first virtual machine.
In concrete implementation process, described essential information may also include described first virtual machine and accesses the system of described cloud platform, window system or unix system etc. access the record of system in this way, facilitate subsequent query and other virtual machines to set up the foundation remotely mapped between described USB device.
Described long-range mapping configuration at least includes the identification information of described first virtual machine, specifically can include the information such as the IP of the first virtual machine or the title of the first virtual machine.When realizing, in order to realize inquiry and the correspondence of information, the information such as described long-range mapping configuration also will include the identification information of described USB device, concrete numbering, to realize the one_to_one corresponding between essential information and long-range mapping configuration.
When implementing, described access device also includes the identification information obtaining the first virtual machine setting up long-range mapping with described USB device, described identification information can be the configuration information of the staff's input received from Man Machine Interface, it is also possible to be that described resource pool management platform remotely maps the request of foundation and carries out the information of the first virtual machine that resource distribution is determined based on described USB device.
Described long-range mapping configuration includes the identification information of the first virtual machine, and so described access device just can know which virtual machine to send described essential information to and facilitate the current USB device of follow-up work personnel inquiry remotely maps to be connected to which virtual machine.Described identification information can include described other identification informations of first virtual machine such as IP and the first virtual machine name of described first virtual machine.
Described step S140 may particularly include after described USB device is connected to described access device, described access device sends USB device access request to resource pool management platform, described resource pool management platform will according to Current resource allocation situation, it is determined that the virtual machine that described USB device remotely maps;And the identification information of described virtual machine is returned to described access device.Described access device can send, according to described identification information, the essential information remotely mapped for described virtual machine with the foundation of described USB device to described virtual machine.Herein, described virtual machine is the first above-mentioned virtual machine.
Described step S140 and described step S150 does not have certain sequencing, described step S150 also performs while described essential information sending to described first virtual machine, it is also possible to be described access device receive that described first virtual machine sends remotely map completion message with described USB device after perform.
When the cloud platform of described USB device access in the present embodiment etc. is configured with on the virtual machine of multiple stage virtual machine, accessed by an access device including multiple USB interface, it is rather than directly to be configured with in the physical machine of virtual machine, but by the described access device in the present embodiment, remotely mapping is connected on described virtual machine, and described access device is configured with essential information and the long-range mapping configuration of described USB device, obviously the unified management to the USB device accessed is facilitated, and facilitate staff by which virtual machine the described access device described USB device of inquiry accesses on earth on.
Adopt this cut-in method, even if the physical machine being provided with virtual machine breaks down, but described USB device is also attached to described access device, staff need not go for faulty physical machine, from faulty physical machine, pull up described USB device be connected in other physical machine, just can utilize described USB device;But again it is connected remotely on the virtual machine that other physical machine are formed either directly through described access device, simplify the operation of staff.
As in figure 2 it is shown, after described USB device and described first virtual machine are set up and remotely mapped, the present embodiment cut-in method also includes:
Step S210: when the virtual machine mapped mutually on described USB device with described cloud platform by described first virtual machine (vm) migration to the second virtual machine time, obtain described virtual machine (vm) migration information;Wherein, described second virtual machine is different from described first virtual machine;
Step S220: according to described virtual machine (vm) migration information, according to described virtual machine (vm) migration information, updates the long-range mapping configuration that described USB device is corresponding;Described long-range mapping configuration includes the identification information of described second virtual machine;
Step S230: according to described long-range mapping configuration, sends essential information to described second virtual machine;Described essential information includes the facility information of the described USB device prestored;Wherein, described essential information sets up remotely mapping for described second virtual machine and described USB device.
When the virtual machine setting up remotely mapping with USB device changes, as during from the first virtual machine (vm) migration to the second virtual machine, described access device will obtain described virtual machine (vm) migration information, specifically can from the resource pool management platform of cloud platform receive as described in virtual machine (vm) migration information.
After obtaining described information, for the inquiry after facilitating subsequent user to inquire about the migration of virtual machine corresponding to described USB device with staff, this is the renewal by carrying out the long-range mapping configuration of described USB device according to described virtual machine (vm) migration information,
Described essential information is set up, with virtual machine and USB device, the information that needs are used that remotely maps in cloud platform, specifically described second virtual machine by according to as described in the port information of the first USB interface in essential information, scanning described USB device to described first USB interface, the information such as type based on described USB device runs the application etc. corresponding with described USB device.
After renewal, described long-range mapping configuration includes the identification information of the second virtual machine, and so described device just can know which virtual machine to send described essential information to.Described identification information can include described other identification informations of second virtual machine such as IP and the second virtual machine name of described second virtual machine.
In concrete implementation process, described long-range mapping configuration also includes long-range shadowing agreement information, also includes described long-range shadowing agreement information is sent to described second virtual machine based on method described in the present embodiment;Described second virtual machine sets up the remote protocol between described USB device based on described long-range shadowing agreement information.
Obviously the automatic moving method of a kind of virtual machine mapped for USB device in cloud platform is present embodiments provided;Can be used for the virtual machine of USB device mapping from a virtual machine (vm) migration to the migration of another virtual machine, so when a virtual-machine fail, it is not necessary to staff manually migrates;And in transition process, will automatically carry out the renewal of long-range mapping configuration, so facilitate the follow-up management to this USB device.The more important thing is without staff without being performed manually by the migration of virtual machine, so it can be avoided that the USB device problem of pulling up the interruption being inserted in another physical machine the business that the USB device that causes provides a physical machine.
As further improvement of this embodiment, described step S210 comprises the steps that
When described first virtual machine or physical machine fault corresponding to described first virtual machine, when the virtual machine that described USB device maps mutually is altered to described second virtual machine by described first virtual machine, obtain described virtual machine (vm) migration information.
Described first virtual machine occurs that system runs quickly the problem such as routed or physical machine corresponding to described first virtual machine breaks down, these time described in the first virtual machine be all likely to occur the phenomenon of cisco unity malfunction, now, the resource pool management platform of cloud platform is by the information of the physical machine fault corresponding according to described first virtual machine or described first virtual machine, re-start resource distribution, described USB device is mapped on the second virtual machine.
The virtual machine that the described resource pool management platform described USB device of acquisition is mapped by described device in the present embodiment is altered to the virtual machine (vm) migration information of the second virtual machine from the first virtual machine, the flow process remotely mapped is set up with triggering following USB device and the second virtual machine, thus achieve the Autonomic Migration Framework of virtual machine corresponding to described USB device, simultaneously when dynamic migration, the long-range mapping configuration that described device synchronized update is corresponding, thus save the whereabouts after the virtual machine (vm) migration that USB device is corresponding, the convenient management to described second virtual machine.
Described step S220 comprises the steps that according to described virtual machine (vm) migration information, forms USB migration scheduling information;According to described USB migration scheduling information, update described long-range mapping configuration.The present embodiment further embodies how to update described long-range mapping configuration.
As it is shown on figure 3, described step S130 comprises the steps that
Step S231: according to the described long-range mapping configuration after updating, sends the long-range mapping request of USB device to described second virtual machine;
Step S232: receive described second virtual machine and send response message based on the long-range mapping request of described USB device;
Step S233: according to described response message, inquire about the essential information that described USB device is corresponding;
Step S234: send described essential information to described second virtual machine.
According to described long-range mapping configuration may know which virtual machine to send the long-range mapping request of described USB device to, to trigger the long-range mapping that this virtual machine preparation is set up between USB device.When receiving described mapping request transmission response message long-range based on described USB device, then think that the second virtual machine currently can set up the long-range mapping between USB device, therefore described essential information will be inquired and be sent to described second virtual machine, so that described second virtual machine adopts scan bus mode etc. to scan described USB device according to described essential information, to complete the migration of the virtual machine that described USB device maps.
Certainly in concrete implementation process, in order to improve virtual machine (vm) migration speed, can also in updating described long-range mapping configuration process, just inquire about the described essential information that described USB device is corresponding, and by sent along to described essential information and the long-range mapping request of described USB device to described second virtual machine, to improve the speed of response.
Additionally, when implementing, described essential information is also possible that access information;Described access information potentially includes described USB device and sets up, with each virtual machine, the record information remotely mapped, then the method described in the present embodiment may also include, after receiving described virtual machine (vm) migration information, and the step of essential information described in described virtual machine (vm) migration information updating.
Summary, present embodiments provide a kind of cloud platform etc. that can be applicable to and be provided with the moving method that the USB device of virtual machine platform moves the virtual machine of mapping, there is realization simplicity, the Autonomic Migration Framework of USB device virtual machine accordingly can be realized, and the information after USB device migrates can be recorded, better management number USB device, improves intelligent and user's user satisfaction that described cloud platform etc. includes the platform of virtual machine, reduces the intricate operation degree of staff.
Apparatus embodiments:
As shown in Figure 4, the present embodiment provides a kind of access device, and described device includes at least one USB interface, and described device also includes:
Management module 110, for being connected with the foundation of described USB interface by the first USB interface;Obtain the facility information of described USB device;And according to described facility information and described first USB interface, form the essential information of described USB device;Wherein, described first USB interface is one of them of at least one USB interface described;
AM access module 120, for sending described essential information to the first virtual machine, in order to described first virtual machine is set up with described USB device and remotely mapped;
Configuration module 130, for forming the long-range mapping configuration of described USB device;Wherein, described long-range mapping configuration includes the identification information of described first virtual machine.
Described management module 110 and described configuration module 130 can include the processor with the information processing function;Described processor can be the electronic equipment that application processor AP, central processor CPU, digital signal processor DSP, programmable array PLC etc. have information processing capability.Described processor can realize the concrete function of described management module 110 and configuration module 130 by performing executable instruction.
Described management module 110 and configuration module 130 can integrated corresponding same processors, it is also possible to processors corresponding different respectively, when integrated corresponding to same processor, when described processor can adopt, divisional processing or concurrent thread process the function of disparate modules.
Described AM access module includes transmission interface, for sending described essential information to described first virtual machine.
Described device also includes synchronization module 140;
Described synchronization module 140, for when the virtual machine mapped mutually on described USB device with described cloud platform by described first virtual machine (vm) migration to the second virtual machine time, obtain described virtual machine (vm) migration information;Wherein, described second virtual machine is different from described first virtual machine;
Described configuration module 130, is additionally operable to, according to described virtual machine (vm) migration information, update the long-range mapping configuration that in described configuration module, the described USB device of storage is corresponding;And according to described long-range mapping configuration, send essential information to described second virtual machine;Wherein, described long-range mapping configuration includes the identification information of described second virtual machine;Described essential information is stored in advance in information in described management module, including the facility information of described USB device;Described essential information sets up remotely mapping for described second virtual machine and described USB device.
Described synchronization module 140 can include receiving interface, for from other equipment of cloud platform resource pool management platform receive as described in dynamic migration information.
Described configuration module 130 and described management module 110 all also correspond to memorizer or storage medium, are respectively used to store long-range mapping configuration and essential information.
Specifically, described synchronization module 140, specifically for when described first virtual machine or physical machine fault corresponding to described first virtual machine, when the virtual machine that described USB device maps mutually is altered to described second virtual machine by described first virtual machine, obtaining described virtual machine (vm) migration information.
Generally when described first virtual machine or physical machine fault corresponding to described first virtual machine, described resource pool management platform will be known, and again will distribute the virtual machine of its mapping for described USB device, therefore described access device when the physical machine fault that described first virtual machine or described first virtual machine are corresponding, can obtain described virtual machine (vm) migration information.
Described synchronization module 140, is additionally operable to, according to described virtual machine (vm) migration information, form USB migration scheduling information;And described USB migration scheduling information is sent to described AM access module;
Described configuration module 130, specifically for according to described USB migration scheduling information, updating described long-range mapping configuration.
Described AM access module 120, specifically for according to the described long-range mapping configuration after updating, sending the long-range mapping request of USB device to described second virtual machine;Receive described second virtual machine and send response message based on the long-range mapping request of described USB device;According to described response message, inquire about the essential information that described USB device is corresponding;And send described essential information to described second virtual machine.
Summary present embodiments provides the access device that a kind of USB device moves the virtual machine of mapping, can provide for the method described in embodiment of the method and realize hardware, it is capable of Autonomic Migration Framework and the management of virtual machine corresponding to USB device, simplify the work of staff, improve the intelligent of platforms such as being provided with virtual machine facility (such as cloud platform), the persistence being able to ensure the business of described USB device the most wanted, the problem reducing the interruption of the business caused because of the migration of virtual machine corresponding to USB device.
A concrete example is provided below in conjunction with above-mentioned any embodiment.
Fig. 5 show a cloud platform;Resource management platform, access device and X physical machine is included in described cloud platform;Described X physical machine is physical machine one, physical machine two to physical machine X respectively.Described access device has all been set up with resource pool management platform and each physical machine respectively and has been connected.
Access device shown in Fig. 5 is the access device that the USB device described in above-described embodiment moves the virtual machine of mapping, and this device can referred to as access device.Described device can include multiple USB interface, supports the extension to USB interface simultaneously, it is possible to the USB device in platform resource pool is uniformly accessed into this device and is managed.
Described device comprises the steps that
Management module 01, for the USB device accessed is carried out unified management, forming the essential information corresponding to each USB device based on described unified management, described essential information can include the system etc. of the model of USB device, title, turn-on time, use, and provides the unique number of USB device.Described unique number can be the device numbering of USB device can also be the numbering that the unified distribution of described device is formed.
Configuration module 02, is used for being formed long-range mapping configuration, and described configuration information includes the information such as the virtual machine IP of USB device mapping, virtual machine title and long-range shadowing agreement.
Synchronization module 03, for synchronizing virtual machine from resource pool management platform due to the information of failure and other reasons generation virtual machine (vm) migration, if this module finds that the virtual machine employing USB device there occurs migration, then sending instruction to USB access device, scheduling USB access device starts to map to USB device new virtual machine;
AM access module 04: for receiving the schedule information of synchronization module, such as the virtual machine IP migrated according to generation after receiving this schedule information, searching the information of the USB device of correspondence in configuration module and management module, described information can include essential information and long-range mapping configuration;Then long-range for USB mapping request is sent to new virtual machine.New virtual machine receives the long-range mapping request of USB device by reception program, and response message will be returned to described access device.
Wherein, the access device shown in Fig. 5 is connected to N number of USB device.
Described physical machine one is configured with virtual machine 1, virtual machine 2 and virtual machine 3.Described physical machine two is configured with virtual machine 4, virtual machine 5 and virtual machine 6.Described physical machine X is configured with virtual machine x, virtual machine y and virtual machine n.
Described virtual machine in this example is provided with receiver module, is used for receiving the long-range mapping request of USB device, trigger virtual machine bus simultaneously and complete USB device based on the long-range mapping request of described USB device and remotely map access, complete the migration of USB device.
Fig. 6 is the method that USB device accesses platform shown in Fig. 5, specifically includes:
Step 1): USB device is uniformly accessed in the virtual machine access device of USB device, and the management module of described access device forms essential information based on the access of USB device.
Step 2): the configuration module of access device complete USB device corresponding remotely map configuration, the opposite end virtual machine IP that main configuration USB maps, virtual machine name.
Step 3): when the virtual machine using USB device breaks down, resource pool management platform can get fault message.
Step 4): resource pool management dispatching platforms fault virtual machine migrates to new virtual machine.
Step 5): the synchronization module of USB dynamic access device, get virtual-machine fail information from virtual machine management platform.
Step 6): synchronization module sends USB migration scheduling information to access device;Described migration scheduling information includes dispatch command.
Step 7): AM access module obtains the essential information of USB device from management module, and described essential information includes the information such as USB-style number and port.
Step 8): AM access module gets long-range mapping configuration from configuration module;Described long-range mapping configuration includes IP and the virtual machine name of the long-range maps virtual machine of USB;That the IP of usual virtual machine is corresponding is the IP of virtual machine place physical machine.
Step 9): AM access module sends the long-range mapping request of USB to the virtual machine receiver module of new virtual machine.
Step 10): the virtual machine receiver module response long-range mapping request of USB of new virtual machine.
Step 11): AM access module sends USB essential information to the virtual machine receiver module of new virtual machine, uses port including the IP of USB dynamic access device, USB-style number, USB numbering and USB.
Step 12): incoming USB device is reflected in new virtual machine bus scanning.
Step 13): USB device remotely maps to new virtual machine and completes.
Summary, the USB device in existing cloud platform needs hand fit again USB to be plugged along with the migration of virtual machine, causes service outage duration longer.As long as and USB device is inserted after described access device by method described in the present embodiment, can when not carrying out USB device plug, the random virtual machine that described USB device is corresponding and physical machine migrate, and can ensure that the seriality of business reduces again attendant's workload.It is inserted in USB dynamic migration device by unified for USB device, it is achieved that the unified management of USB device, effectively avoids the situation of USB device managerial confusion in resource pool.
In several embodiments provided herein, it should be understood that disclosed equipment and method, it is possible to realize by another way.Apparatus embodiments described above is merely schematic, such as, the division of described unit, it is only a kind of logic function to divide, actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, or is desirably integrated into another system, or some features can ignore, or do not perform.It addition, the coupling each other of shown or discussed each ingredient or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, equipment or unit, it is possible to be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, namely may be located at a place, it is also possible to be distributed on multiple NE;Part or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in various embodiments of the present invention can be fully integrated in a processing module, it is also possible to be that each unit is individually as a unit, it is also possible to two or more unit are integrated in a unit;Above-mentioned integrated unit both can adopt the form of hardware to realize, it would however also be possible to employ hardware adds the form of SFU software functional unit and realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer read/write memory medium, this program upon execution, performs to include the step of said method embodiment;And aforesaid storage medium includes: movable storage device, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), magnetic disc or CD.
The above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; change can be readily occurred in or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with described scope of the claims.
Claims (10)
1. the virtual machine cut-in method of a USB device, it is characterised in that described method is applied to include on the access device of at least one USB interface, and described method includes:
It is connected with the foundation of described USB interface by the first USB interface;Wherein, described first USB interface is one of them of at least one USB interface described;
Obtain the facility information of described USB device;
According to described facility information and described first USB interface, form the essential information of described USB device;
Described essential information is sent, in order to described first virtual machine is set up with described USB device and remotely mapped to the first virtual machine;
Form the long-range mapping configuration of described USB device;Wherein, described long-range mapping configuration includes the identification information of described first virtual machine.
2. method according to claim 1, it is characterised in that
After described USB device and described first virtual machine are set up and remotely mapped, described method also includes:
When the virtual machine mapped mutually on described USB device with described cloud platform by described first virtual machine (vm) migration to the second virtual machine time, obtain described virtual machine (vm) migration information;Wherein, described second virtual machine is different from described first virtual machine;
According to described virtual machine (vm) migration information, update described long-range mapping configuration;Described long-range mapping configuration after renewal includes the identification information of described second virtual machine;
According to the described long-range mapping configuration after updating, send described essential information to described second virtual machine;
Wherein, described essential information sets up remotely mapping for described second virtual machine and described USB device.
3. method according to claim 2, it is characterised in that
Described when the virtual machine mapped mutually on described USB device with described cloud platform by described first virtual machine (vm) migration to the second virtual machine time, obtain described virtual machine (vm) migration information, including:
When described first virtual machine or physical machine fault corresponding to described first virtual machine, when the virtual machine that described USB device maps mutually is altered to described second virtual machine by described first virtual machine, obtain described virtual machine (vm) migration information.
4. method according to claim 2, it is characterised in that
Described according to described virtual machine (vm) migration information, update described long-range mapping configuration, including:
According to described virtual machine (vm) migration information, form USB migration scheduling information;
According to described USB migration scheduling information, update described long-range mapping configuration.
5. the method according to claim 2,3 or 4, it is characterised in that
Described according to the described long-range mapping configuration after updating, send described essential information to described second virtual machine, including:
According to the described long-range mapping configuration after updating, send the long-range mapping request of USB device to described second virtual machine;
Receive described second virtual machine and send response message based on the long-range mapping request of described USB device;
According to described response message, inquire about the essential information that described USB device is corresponding;
Described essential information is sent to described second virtual machine.
6. an access device, it is characterised in that described device includes at least one USB interface, and described device also includes:
Management module, for being connected with the foundation of described USB interface by the first USB interface;Obtain the facility information of described USB device;And according to described facility information and described first USB interface, form the essential information of described USB device;Wherein, described first USB interface is one of them of at least one USB interface described;
AM access module, for sending described essential information to the first virtual machine, in order to described first virtual machine is set up with described USB device and remotely mapped;
Configuration module, for forming the long-range mapping configuration of described USB device;Wherein, described long-range mapping configuration includes the identification information of described first virtual machine.
7. device according to claim 6, it is characterised in that
Described device also includes synchronization module;
Described synchronization module, after setting up remotely map at described USB device and described first virtual machine, when the virtual machine mapped mutually on described USB device with described cloud platform by described first virtual machine (vm) migration to the second virtual machine time, obtain described virtual machine (vm) migration information;Wherein, described second virtual machine is different from described first virtual machine;
Described configuration module, is additionally operable to, according to described virtual machine (vm) migration information, update the long-range mapping configuration that in described configuration module, the described USB device of storage is corresponding;
Described AM access module, is additionally operable to according to the described long-range mapping configuration after updating, and sends described essential information to described second virtual machine;Wherein, described long-range mapping configuration includes the identification information of described second virtual machine;Described essential information is stored in advance in information in described management module, including the facility information of described USB device;Described essential information sets up remotely mapping for described second virtual machine and described USB device.
8. device according to claim 7, it is characterised in that
Described synchronization module, specifically for when described first virtual machine or physical machine fault corresponding to described first virtual machine, when the virtual machine that described USB device maps mutually is altered to described second virtual machine by described first virtual machine, obtaining described virtual machine (vm) migration information.
9. device according to claim 7, it is characterised in that
Described synchronization module, is additionally operable to, according to described virtual machine (vm) migration information, form USB migration scheduling information;And described USB migration scheduling information is sent to described AM access module;
Described configuration module, specifically for according to described USB migration scheduling information, updating described long-range mapping configuration.
10. device according to claim 7, it is characterised in that
Described AM access module, is additionally operable to according to the described long-range mapping configuration after updating, and sends the long-range mapping request of USB device to described second virtual machine;Receive described second virtual machine and send response message based on the long-range mapping request of described USB device;According to described response message, inquire about the essential information that described USB device is corresponding;And send described essential information to described second virtual machine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410755507.8A CN105740180B (en) | 2014-12-10 | 2014-12-10 | The virtual machine cut-in method and device of USB device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410755507.8A CN105740180B (en) | 2014-12-10 | 2014-12-10 | The virtual machine cut-in method and device of USB device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105740180A true CN105740180A (en) | 2016-07-06 |
CN105740180B CN105740180B (en) | 2019-08-02 |
Family
ID=56238702
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410755507.8A Active CN105740180B (en) | 2014-12-10 | 2014-12-10 | The virtual machine cut-in method and device of USB device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105740180B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109240798A (en) * | 2018-08-30 | 2019-01-18 | 郑州云海信息技术有限公司 | The method and apparatus for managing the external equipment of virtual machine |
CN110248181A (en) * | 2019-05-27 | 2019-09-17 | 北京旷视科技有限公司 | External equipment self-resetting method, device, system and computer-readable medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110107003A1 (en) * | 2009-11-05 | 2011-05-05 | Electronics And Telecommunications Research Institute | Remote usb system for supporting multiple virtual machines of multiple host and method thereof |
CN102567074A (en) * | 2011-11-29 | 2012-07-11 | 中标软件有限公司 | USB (universal serial bus) device redirecting method facing virtual machines |
CN102789432A (en) * | 2011-05-19 | 2012-11-21 | 中国电信股份有限公司 | USB (universal serial bus) equipment drive method and system |
CN104092747A (en) * | 2014-06-30 | 2014-10-08 | 杭州华三通信技术有限公司 | USB dynamic linking method and device in virtualization environment |
-
2014
- 2014-12-10 CN CN201410755507.8A patent/CN105740180B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110107003A1 (en) * | 2009-11-05 | 2011-05-05 | Electronics And Telecommunications Research Institute | Remote usb system for supporting multiple virtual machines of multiple host and method thereof |
CN102789432A (en) * | 2011-05-19 | 2012-11-21 | 中国电信股份有限公司 | USB (universal serial bus) equipment drive method and system |
CN102567074A (en) * | 2011-11-29 | 2012-07-11 | 中标软件有限公司 | USB (universal serial bus) device redirecting method facing virtual machines |
CN104092747A (en) * | 2014-06-30 | 2014-10-08 | 杭州华三通信技术有限公司 | USB dynamic linking method and device in virtualization environment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109240798A (en) * | 2018-08-30 | 2019-01-18 | 郑州云海信息技术有限公司 | The method and apparatus for managing the external equipment of virtual machine |
CN110248181A (en) * | 2019-05-27 | 2019-09-17 | 北京旷视科技有限公司 | External equipment self-resetting method, device, system and computer-readable medium |
Also Published As
Publication number | Publication date |
---|---|
CN105740180B (en) | 2019-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110311831B (en) | Container cloud-based system resource monitoring method and related equipment | |
CN107566165B (en) | Method and system for discovering and deploying available resources of power cloud data center | |
CN105553741A (en) | Automatic deployment method for application system based on cloud computing | |
CN103856569A (en) | Method and device for synchronizing domain name system resource information | |
CN103677858A (en) | Method, system and device for managing virtual machine software in cloud environment | |
CN102857370A (en) | Resource allocating method and device | |
CN106031116A (en) | Method, apparatus and system for associating NS with VNF | |
CN104506462A (en) | MAC (Media Access Control) address management method and equipment in distributed switch | |
CN108848132B (en) | Power distribution scheduling main station system based on cloud | |
CN107666493B (en) | Database configuration method and equipment thereof | |
CN107995043B (en) | Application disaster recovery system based on hybrid cloud platform | |
CN113485786B (en) | Method and system for realizing pod mounting of finder volume based on cloud physical machine | |
CN102710436A (en) | Network equipment management method, device, relative equipment and system | |
CN103064717A (en) | Device and method for parallel installation of software for cluster system | |
CN113937894A (en) | Cloud edge cooperation-based electric intelligent terminal management system and method | |
CN113299006A (en) | Address allocation method, intelligent cabinet, readable storage medium and computer program product | |
CN110213359B (en) | Internet of vehicles networking data pushing system and method based on D2D | |
WO2022267646A1 (en) | Pod deployment method and apparatus | |
CN105740180A (en) | Virtual machine access method and apparatus for USB device | |
CN111064643B (en) | Node server and data interaction method and related device thereof | |
CN107483569A (en) | A kind of server with automatically upgrading firmware, system and upgrade method | |
CN113342456A (en) | Connection method, device, equipment and storage medium | |
CN107515760B (en) | OpenStack multi-node automatic installation method and system | |
CN108833177A (en) | Virtual switch management method and main control card | |
CN103870499A (en) | Method and device for hidden danger information processing of power transmission network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |