CN112269631A - Keyboard and mouse sharing system of virtual machine - Google Patents

Keyboard and mouse sharing system of virtual machine Download PDF

Info

Publication number
CN112269631A
CN112269631A CN202011020605.9A CN202011020605A CN112269631A CN 112269631 A CN112269631 A CN 112269631A CN 202011020605 A CN202011020605 A CN 202011020605A CN 112269631 A CN112269631 A CN 112269631A
Authority
CN
China
Prior art keywords
virtual machine
mouse
keyboard
zero terminal
communication connection
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
Application number
CN202011020605.9A
Other languages
Chinese (zh)
Inventor
许龙龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN202011020605.9A priority Critical patent/CN112269631A/en
Publication of CN112269631A publication Critical patent/CN112269631A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The utility model provides a virtual machine sharing key mouse system relates to the computer technology, can solve present need set up a set of key mouse equipment for every zero terminal to lead to complex operation's problem. The specific technical scheme is as follows: the first virtual machine and the second virtual machine establish communication connection, and directly control the first virtual machine corresponding to the first zero terminal through a keyboard and a mouse; the first zero terminal receives a keyboard and mouse switching request message; the first zero terminal establishes communication connection with the second virtual machine; the first zero terminal directly sends the captured first keyboard and mouse signal to a second virtual machine; the second virtual machine executes the first keyboard and mouse signal. Because can come two virtual machines of simultaneous control through a set of key mouse, like this, when many zero terminal equipment of user simultaneous control, this kind of scheme can bring very big facility for the user, and the user need not go to frequently change different key mouse when operating different zero terminals, can improve user experience greatly.

Description

Keyboard and mouse sharing system of virtual machine
Technical Field
The disclosure relates to the technical field of computers, in particular to a keyboard and mouse sharing system of a virtual machine.
Background
At present, in zero-terminal systems, there are often such usage scenarios: one user controls two pieces of zero terminal equipment at the same time, and needs to control the two pieces of zero terminal equipment. Under the circumstance, a user faces two displays, two virtual machines and two sets of key mice (keyboards and mice), and the two sets of key mice need to be frequently switched to control different virtual machines, so that the user is often in a busy and messy state in the scene, and the operation is very inconvenient.
Disclosure of Invention
The embodiment of the disclosure provides a virtual machine sharing keyboard and mouse system, which can solve the problem that operation is complicated due to the fact that a set of keyboard and mouse equipment needs to be set for each zero terminal currently. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a virtual machine sharing keymouse system, the system including: a first zero terminal, a second zero terminal, a first virtual machine corresponding to the first zero terminal, a second virtual machine corresponding to the second zero terminal, and a set of keyboard and mouse:
the first virtual machine and the second virtual machine establish communication connection, and the first virtual machine corresponding to the first zero terminal is directly controlled through the keyboard and mouse;
the first zero terminal receives a keyboard and mouse switching request message; the keyboard and mouse switching request message indicates that the keyboard and mouse master control right is switched from the first zero terminal to the second zero terminal;
the first zero terminal establishes communication connection with the second virtual machine;
the first zero terminal directly sends the captured first keyboard and mouse signal to the second virtual machine;
the second virtual machine executes the first keyboard and mouse signal.
The virtual machine sharing keyboard and mouse system provided by the embodiment of the disclosure comprises: the first virtual machine and the second virtual machine establish communication connection, and directly control the first virtual machine corresponding to the first zero terminal through a keyboard and a mouse; the first zero terminal receives a keyboard and mouse switching request message; the keyboard and mouse switching request message indicates that the keyboard and mouse master control right is switched from a first zero terminal to a second zero terminal; the first zero terminal establishes communication connection with the second virtual machine; the first zero terminal directly sends the captured first keyboard and mouse signal to a second virtual machine; the second virtual machine executes the first keyboard and mouse signal. Because can come two virtual machines of simultaneous control through one set of keyboard and mouse, like this, when many zero terminal equipment of user simultaneous control, this kind of scheme can bring very big facility for the user, and the user need not go to frequently change different keyboard and mouse when operating different zero terminal, can improve user experience greatly.
In one embodiment, before the first zero terminal establishes the communication connection with the second virtual machine, the method further includes:
the first zero terminal sends the keyboard and mouse switching request message to the first virtual machine;
and the first virtual machine sends the keyboard and mouse switching request message to the second virtual machine.
In one embodiment, the method further comprises:
after receiving the key and mouse switching request message, the second virtual machine sends a key and mouse switching response message to the first virtual machine;
after receiving the keyboard and mouse switching response message, the first virtual machine sends connection information of the second virtual machine to the first zero terminal;
the first zero terminal establishes a communication connection with the second virtual machine, and the method comprises the following steps:
and the first zero terminal establishes communication connection with the second virtual machine according to the connection information of the second virtual machine.
In one embodiment, the establishing, by the first zero terminal, a communication connection with the second virtual machine according to the connection information of the second virtual machine includes:
the first zero terminal sends a keyboard and mouse message direct connection channel establishment request message to the second virtual machine based on the connection information of the second virtual machine;
and the second virtual machine establishes a keyboard and mouse message direct connection channel between the second virtual machine and the first zero terminal according to the keyboard and mouse message direct connection channel establishment request message.
In one embodiment, the first zero terminal directly sends the captured first keymouse signal to the second virtual machine, including:
the first zero terminal converts the captured first keyboard and mouse analog signal into a first keyboard and mouse digital signal; wherein the first keyboard and mouse analog signal is a keyboard and mouse signal for controlling a second virtual machine;
and the first zero terminal sends the first keyboard and mouse digital signal to the second virtual machine.
In one embodiment, before the first zero terminal establishes the communication connection with the second virtual machine, the method further includes:
the first zero terminal sends query request information to the first virtual machine, wherein the query request information requests the first virtual machine to query whether the second virtual machine is stored in a local preset trusted device list of the first virtual machine;
after the first zero terminal receives request response information of the first virtual machine, the first zero terminal establishes communication connection with the second virtual machine, and the request response information indicates that the second virtual machine is stored in a local preset trusted device list of the first virtual machine.
In one embodiment, the method further comprises:
the first zero terminal receives a keyboard and mouse master control right recovery message triggered by a user; the keyboard and mouse master control right recovery message indicates that the keyboard and mouse master control right is switched from the second zero terminal to the first zero terminal;
the first zero terminal disconnects the communication connection between the second virtual machine and the first zero terminal according to the keyboard and mouse master control right recovery message;
the first zero terminal establishes communication connection with the first virtual machine;
and the first zero terminal sends the received second keyboard and mouse signal to the first virtual machine.
In one embodiment, the first zero terminal receives a keyboard and mouse switch request message, and includes:
and the first zero terminal receives the keyboard and mouse switching request message triggered by the user.
In one embodiment, the first zero terminal receives the keyboard and mouse switching request message triggered by a user, and the method includes:
and the first zero terminal receives the key and mouse switching request message triggered by the user through the shortcut key.
In one embodiment, the establishing, by the first virtual machine, a communication connection with the second virtual machine includes:
the first virtual machine and the second virtual machine establish TCP/IP communication connection
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a structural diagram of a virtual machine sharing keyboard and mouse system according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a method for sharing a keyboard and mouse by a virtual machine according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a method for sharing a keyboard and mouse by a virtual machine according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a method for sharing a keyboard and mouse by a virtual machine according to an embodiment of the present disclosure;
fig. 5 is a flowchart of a method for sharing a keyboard and mouse by a virtual machine according to an embodiment of the present disclosure;
fig. 6 is a flowchart of a method for sharing a keyboard and mouse by a virtual machine according to an embodiment of the present disclosure;
fig. 7 is a flowchart of a method for sharing a keyboard and mouse by a virtual machine according to an embodiment of the present disclosure;
fig. 8 is a signal flow diagram of a virtual machine sharing keyboard and mouse system according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
With the advance of technology, the terminal side will be developed towards more and more lightweight, that is, the terminal is configured to be lower and smaller.
At present, various zero terminal (ZC) solutions have been proposed, so-called zero terminals, i.e., terminals that only need to have a screen, a simple CPU and memory, an image receiving and decoding module for processing images, and a reverse control processing module. This solution enables a considerable simplification of the size and configuration of the mobile terminal. All programs of the zero terminal run in the cloud server, the zero terminal uses the corresponding application program by accessing the virtual machine distributed by the cloud server, the corresponding application program is controlled by reverse control, and the server sends the real-time processing picture to the zero terminal, so that the zero terminal operates as if the zero terminal is locally operated.
At present, in zero-terminal systems, there are often such usage scenarios: one user controls two pieces of zero terminal equipment at the same time, and needs to control the two pieces of zero terminal equipment. Under the circumstance, a user faces two displays, two virtual machines and two sets of key mice (keyboards and mice), and the two sets of key mice need to be frequently switched to control different virtual machines, so that the user is often in a busy and messy state in the scene, and the operation is very inconvenient.
The embodiment of the present disclosure provides a structure diagram of a virtual machine sharing keyboard and mouse system, as shown in fig. 1, the system includes: two zero terminals (a first zero terminal and a second zero terminal), two virtual machines (a first virtual machine corresponding to the first zero terminal and a second virtual machine corresponding to the second zero terminal) and a keyboard and mouse set; specifically, an embodiment of the present disclosure provides a method for sharing a keyboard and mouse by a virtual machine, where the method may be applied to a system shown in fig. 1, and as shown in fig. 2, the method includes the following steps:
101. the first virtual machine and the second virtual machine are in communication connection, and the first virtual machine corresponding to the first zero terminal is directly controlled through a keyboard and a mouse.
In one embodiment, the communication connection established by the first virtual machine and the second virtual machine may include: TCP/IP communication connection. At this time, the first virtual machine and the second virtual machine are respectively provided with the IP addresses of the other parties, and the TCP/IP communication connection can be established according to the set IP addresses.
In actual implementation, the TCP/IP connection may be automatically established after the two virtual machines are started, or the TCP/IP communication connection between the two virtual machines may be manually established by a user.
Because only one set of keyboard and mouse is provided, after the computer is started, the keyboard and mouse master control right can be set to belong to the first zero terminal, and the keyboard and mouse master control right can be switched to the first zero terminal or the second zero terminal in the using process.
For example, in the using process, the keyboard and mouse master control right can be switched to the first zero terminal or the second zero terminal through a preset switching mode, for example: the keyboard and mouse master control right can be switched to the first zero terminal or the second zero terminal through a preset shortcut key.
At this time, since the keyboard and mouse master control right belongs to the first zero terminal, the first virtual machine corresponding to the first zero terminal can be directly controlled by the set of keyboard and mouse. In one implementation, the keyboard and mouse can be connected to the first zero terminal in a wired or wireless manner.
102. The first zero terminal receives a keyboard and mouse switching request message; and the keyboard and mouse switching request message indicates that the keyboard and mouse master control right is switched from the first zero terminal to the second zero terminal.
Wherein, the first zero terminal receives the key mouse switching request message, including: the first zero terminal receives a keyboard and mouse switching request message triggered by a user.
Illustratively, the first zero terminal receives a key-mouse switching request message triggered by a user through a shortcut key.
103. And the first zero terminal establishes communication connection with the second virtual machine.
104. And the first zero terminal directly sends the captured first keyboard and mouse signal to the second virtual machine.
105. The second virtual machine executes the first keyboard and mouse signal.
When the keyboard and mouse master control right needs to be switched to the second zero terminal to control the second virtual machine, the first zero terminal indicates that the keyboard and mouse master control right needs to be switched from the first zero terminal to the second zero terminal after receiving the keyboard and mouse switching request message, at this time, the first zero terminal can actively establish communication connection with the second virtual machine, and because the first zero terminal establishes communication connection with the second virtual machine, the first zero terminal can directly send the captured first keyboard and mouse signal to the second virtual machine, so that the second virtual machine locally executes the first keyboard and mouse signal to realize control over the desktop image.
Specifically, after the keyboard and mouse master control right is switched, a first keyboard and mouse signal subsequently received by the first zero terminal is used for a user to control the second virtual machine corresponding to the second zero terminal, and therefore the first zero terminal can directly send the captured first keyboard and mouse signal to the second virtual machine, and the first virtual machine and the second virtual machine can be simultaneously controlled by one set of keyboard and mouse.
The virtual machine sharing keyboard and mouse system provided by the embodiment of the disclosure comprises: the first virtual machine and the second virtual machine establish communication connection, and directly control the first virtual machine corresponding to the first zero terminal through a keyboard and a mouse; the first zero terminal receives a keyboard and mouse switching request message; the keyboard and mouse switching request message indicates that the keyboard and mouse master control right is switched from a first zero terminal to a second zero terminal; the first zero terminal establishes communication connection with the second virtual machine; the first zero terminal directly sends the captured first keyboard and mouse signal to a second virtual machine; the second virtual machine executes the first keyboard and mouse signal. Because can come two virtual machines of simultaneous control through one set of keyboard and mouse, like this, when many zero terminal equipment of user simultaneous control, this kind of scheme can bring very big facility for the user, and the user need not go to frequently change different keyboard and mouse when operating different zero terminal, can improve user experience greatly.
In one embodiment, in order to notify the second virtual machine that the keyboard and mouse connected to the first zero terminal is about to control the second virtual machine, as shown in fig. 3, before the step 103, the method further includes the following steps:
106. and the first zero terminal sends the keyboard and mouse switching request message to the first virtual machine.
107. And the first virtual machine sends the keyboard and mouse switching request message to the second virtual machine.
After the first zero terminal receives the keyboard and mouse switching request message, because the first zero terminal does not establish communication connection with the second virtual machine at this time, and communication connection is already established between the first virtual machine and the second virtual machine, the first zero terminal firstly sends the keyboard and mouse switching request message to the first virtual machine, and then the first virtual machine sends the keyboard and mouse switching request message to the second virtual machine.
In one embodiment, as shown in fig. 3, the method further comprises the steps of:
108. and after receiving the key and mouse switching request message, the second virtual machine sends a key and mouse switching response message to the first virtual machine.
109. And after receiving the keyboard and mouse switching response message, the first virtual machine sends the connection information of the second virtual machine to the first zero terminal.
Suitably, the step 103 includes a sub-step 1031:
1031. and the first zero terminal establishes communication connection with the second virtual machine according to the connection information of the second virtual machine.
When wishing to switch the keyboard and mouse master control right to the second zero terminal, a first zero terminal user initiates a keyboard and mouse master control right switching request to the first virtual machine through a preset shortcut key, the first virtual machine receiving the keyboard and mouse switching request message initiates a keyboard and mouse switching request to the second virtual machine, and simultaneously receives a keyboard and mouse switching response message sent by the second virtual machine; after receiving the key mouse switching response message sent by the second virtual machine, the first virtual machine sends the connection information of the second virtual machine to the first zero terminal, so that the first zero terminal establishes communication connection with the second virtual machine according to the connection information of the second virtual machine, and the first zero terminal can directly send the first key mouse signal to the second virtual machine.
In one embodiment, as shown in fig. 4, the above step 1031 includes the following sub-steps:
10311. and the first zero terminal sends a keyboard and mouse message direct connection channel establishment request message to the second virtual machine based on the connection information of the second virtual machine.
10312. And the second virtual machine establishes a keyboard and mouse message direct connection channel between the second virtual machine and the first zero terminal according to the keyboard and mouse message direct connection channel establishment request message.
The method comprises the steps that a first zero terminal initiates a keyboard and mouse message direct connection channel establishment request to a second virtual machine based on connection information of the second virtual machine, the second virtual machine establishes the keyboard and mouse message direct connection channel with the first zero terminal after agreeing with the keyboard and mouse message direct connection channel establishment request, and meanwhile, the second virtual machine monitors a first keyboard and mouse signal sent by the first zero terminal on the channel.
By establishing a keyboard and mouse message direct connection channel between the first zero terminal and the second virtual machine, the first zero terminal can directly send a first keyboard and mouse signal for controlling the second virtual machine to the second virtual machine.
In one embodiment, as shown in FIG. 5, the above step 104 includes the following sub-steps:
1041. the first zero terminal converts the captured first keyboard and mouse analog signals into first keyboard and mouse digital signals; the first keyboard and mouse analog signal is used for controlling a keyboard and mouse signal of the second virtual machine.
1042. And the first zero terminal sends the first keyboard and mouse digital signal to the second virtual machine.
Because the first virtual machine and the second virtual machine can identify the numeric keyboard mouse signal, and the keyboard mouse signal triggered by the user through the keyboard mouse received by the second zero terminal is the first keyboard mouse analog signal, when the second zero terminal sends the first zero terminal, the first keyboard mouse analog signal sent by the user through the keyboard mouse is converted into the first keyboard mouse digital signal, and then the converted first keyboard mouse digital signal is sent to the second virtual machine, so that the second virtual machine executes the signal.
Specifically, the first zero terminal collects a keyboard and mouse analog signal generated in the keyboard and mouse operation process, converts the keyboard and mouse analog signal into a keyboard and mouse digital signal, and sends the keyboard and mouse digital signal to the second virtual machine through a keyboard and mouse message direct connection channel between the first zero terminal and the second virtual machine.
After the keyboard and mouse switching is completed, the user can control the second virtual machine through the keyboard and mouse device connected with the first zero terminal, namely, the desktop image received by the second zero terminal is controlled.
In actual implementation, during the key and mouse switching period, all the key and mouse messages collected by the first zero terminal are sent to the second virtual machine through the key and mouse message direct connection channel between the first zero terminal and the second virtual machine, and are not sent to the first virtual machine any more. Meanwhile, the second virtual machine only receives the keyboard and mouse messages sent by the first zero terminal, and simultaneously shields the keyboard and mouse messages sent by the second zero terminal.
And after receiving the keyboard and mouse digital signal sent by the first zero terminal, the second virtual machine locally executes the keyboard and mouse digital signal, thereby realizing the control of the second virtual machine, namely the control of the desktop image of the second zero terminal.
In the control process, if the keyboard and mouse master control authority is required to be switched again, the keyboard and mouse master control authority can still be switched through preset shortcut key operation, namely, the keyboard and mouse master control authority is switched on the current master control equipment through the shortcut key operation.
Specifically, as shown in fig. 6, the method further includes the following sub-steps:
1010. the first zero terminal receives a keyboard and mouse master control right recovery message triggered by a user; and the keyboard and mouse master control right recovery message indicates that the keyboard and mouse master control right is switched from the second zero terminal to the first zero terminal.
1011. And the first zero terminal disconnects the communication connection between the second virtual machine and the first zero terminal according to the keyboard and mouse master control right recovery message.
1012. And the first zero terminal establishes communication connection with the first virtual machine.
1013. And the first zero terminal sends the received second keyboard and mouse signal to the first virtual machine. The second keyboard and mouse signal is a signal for controlling the first virtual machine, that is, the second keyboard and mouse signal is a keyboard and mouse signal received after the first zero terminal disconnects the communication connection between the second virtual machine and the first zero terminal according to the keyboard and mouse master control right recovery message.
When the master control authority is switched back to the first zero terminal from the second zero terminal, the key mouse message direct connection channel between the current second virtual machine and the first zero terminal is directly cancelled, and all settings are restored to the state before key mouse switching.
In an embodiment, as shown in fig. 7, before the first zero terminal establishes the communication connection with the second virtual machine, the method further includes the following steps:
1014. the first zero terminal sends query request information to the first virtual machine, and the query request information requests the first virtual machine to query whether a second virtual machine is stored in a local preset trusted device list of the first virtual machine.
1015. After the first zero terminal receives the request response information of the first virtual machine, the first zero terminal establishes communication connection with the second virtual machine, and the request response information indicates that the second virtual machine is stored in a local preset trusted device list of the first virtual machine.
In order to ensure the reliability of the keyboard and mouse ownership switching, the first virtual machine and the second virtual machine are added into a trusted device list of the other party in advance.
Specifically, the information of the other party may be added to the trusted device lists of the first virtual machine and the second virtual machine in advance. Only the devices in the trusted list can be switched to the keyboard and mouse master control right.
When the keyboard and mouse master right is switched, after a first zero terminal receives a keyboard and mouse switching request message, a first virtual machine is made to inquire, at the moment, the first zero terminal sends inquiry request information for requesting the first virtual machine to inquire whether a second virtual machine is stored in a local preset trusted device list of the first virtual machine or not to the first virtual machine, the first virtual machine inquires that the second virtual machine is stored in the local preset trusted device list, then, the first virtual machine sends request response information for indicating that the second virtual machine is stored in the local preset trusted device list of the first virtual machine to the first zero terminal, and after the first zero terminal receives the request response information of the first virtual machine, the first zero terminal establishes communication connection with the second virtual machine.
In one embodiment, the first virtual machine establishes a communication connection with the second virtual machine, including: the first virtual machine establishes a TCP/IP communication connection with the second virtual machine.
For example, after the first virtual machine and the second virtual machine are started, a communication connection between the first virtual machine and the second virtual machine is established.
In actual implementation, the communication connection can be automatically established after the two virtual machines are started, or the user can manually trigger the establishment of the communication connection between the two virtual machines.
Fig. 8 is a signal flow diagram of a virtual machine sharing keyboard and mouse system provided by an embodiment of the present disclosure, and as shown in fig. 8, a first zero terminal may directly send a received keyboard and mouse signal for controlling a first virtual machine to the first virtual machine, or may directly send a first keyboard and mouse signal for controlling a second virtual machine to the second virtual machine.
Based on the virtual machine keyboard and mouse sharing system described in the embodiment corresponding to fig. 1, the present disclosure also provides a method for virtual machine keyboard and mouse sharing, where the method is applied to the first zero terminal in the above embodiment, and the specific implementation manner is described in the above embodiment and is not described herein again.
Based on the system for sharing a keyboard and mouse by a virtual machine described in the embodiment corresponding to fig. 1, the present disclosure further provides a method for sharing a keyboard and mouse by a virtual machine, where the method is applied to the first virtual machine in the above embodiment, and the specific implementation manner is described in the above embodiment and is not described herein again.
Based on the system for sharing a keyboard and mouse by a virtual machine described in the embodiment corresponding to fig. 1, the present disclosure further provides a method for sharing a keyboard and mouse by a virtual machine, where the method is applied to a second virtual machine in the above embodiment, and the specific implementation manner is described in the above embodiment and is not described herein again.
Based on the method for the virtual machine to share the keyboard and mouse corresponding to the first zero terminal, the embodiment of the present disclosure further provides a device for the virtual machine to share the keyboard and mouse, which can be used for executing the embodiment of the method of the present disclosure.
Based on the method for sharing a keyboard and mouse by a virtual machine corresponding to the first virtual machine, the embodiment of the present disclosure further provides a device for sharing a keyboard and mouse by a virtual machine, which can be used for executing the embodiment of the method of the present disclosure.
Based on the method for sharing a keyboard and mouse by a virtual machine corresponding to the second virtual machine, the embodiment of the present disclosure further provides a device for sharing a keyboard and mouse by a virtual machine, which can be used for executing the embodiment of the method of the present disclosure.
Based on the method for sharing the keyboard and the mouse by the virtual machine corresponding to the first zero terminal, an embodiment of the present disclosure further provides a computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores computer instructions for executing the method for sharing the keyboard and the mouse by the virtual machine corresponding to the first zero terminal, which is not described herein again.
Based on the method for sharing a keyboard and a mouse by the virtual machines corresponding to the first virtual machine, an embodiment of the present disclosure further provides a computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores computer instructions for executing the method for sharing the keyboard and the mouse by the virtual machine corresponding to the first virtual machine, which is not described herein again.
Based on the method for sharing the keyboard and mouse by the virtual machine corresponding to the second virtual machine, an embodiment of the present disclosure further provides a computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores computer instructions for executing the method for sharing the keyboard and the mouse by the virtual machine corresponding to the second virtual machine, which is not described herein again.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A virtual machine shared keyboard and mouse system, the system comprising: a first zero terminal, a second zero terminal, a first virtual machine corresponding to the first zero terminal, a second virtual machine corresponding to the second zero terminal, and a set of keyboard and mouse:
the first virtual machine and the second virtual machine establish communication connection, and the first virtual machine corresponding to the first zero terminal is directly controlled through the keyboard and mouse;
the first zero terminal receives a keyboard and mouse switching request message; the keyboard and mouse switching request message indicates that the keyboard and mouse master control right is switched from the first zero terminal to the second zero terminal;
the first zero terminal establishes communication connection with the second virtual machine;
the first zero terminal directly sends the captured first keyboard and mouse signal to the second virtual machine;
the second virtual machine executes the first keyboard and mouse signal.
2. The system of claim 1, wherein before the first zero terminal establishes the communication connection with the second virtual machine, the method further comprises:
the first zero terminal sends the keyboard and mouse switching request message to the first virtual machine;
and the first virtual machine sends the keyboard and mouse switching request message to the second virtual machine.
3. The system of claim 2, wherein the method further comprises:
after receiving the key and mouse switching request message, the second virtual machine sends a key and mouse switching response message to the first virtual machine;
after receiving the keyboard and mouse switching response message, the first virtual machine sends connection information of the second virtual machine to the first zero terminal;
the first zero terminal establishes a communication connection with the second virtual machine, and the method comprises the following steps:
and the first zero terminal establishes communication connection with the second virtual machine according to the connection information of the second virtual machine.
4. The system according to claim 3, wherein the first zero terminal establishes a communication connection with the second virtual machine according to the connection information of the second virtual machine, including:
the first zero terminal sends a keyboard and mouse message direct connection channel establishment request message to the second virtual machine based on the connection information of the second virtual machine;
and the second virtual machine establishes a keyboard and mouse message direct connection channel between the second virtual machine and the first zero terminal according to the keyboard and mouse message direct connection channel establishment request message.
5. The system of claim 1, wherein the first zero terminal sends the captured first keymouse signal directly to the second virtual machine, comprising:
the first zero terminal converts the captured first keyboard and mouse analog signal into a first keyboard and mouse digital signal; wherein the first keyboard and mouse analog signal is a keyboard and mouse signal for controlling a second virtual machine;
and the first zero terminal sends the first keyboard and mouse digital signal to the second virtual machine.
6. The system of claim 1, wherein before the first zero terminal establishes the communication connection with the second virtual machine, the method further comprises:
the first zero terminal sends query request information to the first virtual machine, wherein the query request information requests the first virtual machine to query whether the second virtual machine is stored in a local preset trusted device list of the first virtual machine;
after the first zero terminal receives request response information of the first virtual machine, the first zero terminal establishes communication connection with the second virtual machine, and the request response information indicates that the second virtual machine is stored in a local preset trusted device list of the first virtual machine.
7. The system of claim 1, wherein the method further comprises:
the first zero terminal receives a keyboard and mouse master control right recovery message triggered by a user; the keyboard and mouse master control right recovery message indicates that the keyboard and mouse master control right is switched from the second zero terminal to the first zero terminal;
the first zero terminal disconnects the communication connection between the second virtual machine and the first zero terminal according to the keyboard and mouse master control right recovery message;
the first zero terminal establishes communication connection with the first virtual machine;
and the first zero terminal sends the received second keyboard and mouse signal to the first virtual machine.
8. The system according to claim 1, wherein the first zero terminal receives a keyboard and mouse switch request message, comprising:
and the first zero terminal receives the keyboard and mouse switching request message triggered by the user.
9. The system according to claim 8, wherein the first zero terminal receives the user-triggered keystroke/mouse switching request message, and comprises:
and the first zero terminal receives the key and mouse switching request message triggered by the user through the shortcut key.
10. The method of claim 1, wherein establishing a communication connection between the first virtual machine and the second virtual machine comprises:
and the first virtual machine and the second virtual machine establish TCP/IP communication connection.
CN202011020605.9A 2020-09-24 2020-09-24 Keyboard and mouse sharing system of virtual machine Pending CN112269631A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011020605.9A CN112269631A (en) 2020-09-24 2020-09-24 Keyboard and mouse sharing system of virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011020605.9A CN112269631A (en) 2020-09-24 2020-09-24 Keyboard and mouse sharing system of virtual machine

Publications (1)

Publication Number Publication Date
CN112269631A true CN112269631A (en) 2021-01-26

Family

ID=74349373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011020605.9A Pending CN112269631A (en) 2020-09-24 2020-09-24 Keyboard and mouse sharing system of virtual machine

Country Status (1)

Country Link
CN (1) CN112269631A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887337A (en) * 2021-03-16 2021-06-01 西安万像电子科技有限公司 Control method of device
CN113836102A (en) * 2021-08-23 2021-12-24 西安万像电子科技有限公司 Vehicle-mounted data sharing system and method and nonvolatile storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887337A (en) * 2021-03-16 2021-06-01 西安万像电子科技有限公司 Control method of device
CN113836102A (en) * 2021-08-23 2021-12-24 西安万像电子科技有限公司 Vehicle-mounted data sharing system and method and nonvolatile storage medium

Similar Documents

Publication Publication Date Title
EP2591590B1 (en) System, apparatus and mechanism for dynamic assignment of survivability services to mobile devices
JP6976410B2 (en) Communication methods, devices and systems on live relay channels
EP3142336B1 (en) Synchronization method for notification message of electronic device, and electronic device
EP2945337A2 (en) Method, system and server for service switching
CN110839084B (en) Session management method, device, equipment and medium
WO2019080065A1 (en) Display method and apparatus
US9065788B2 (en) Method, device and system for voice communication
CN113630574A (en) Video call method and terminal equipment
CN112269631A (en) Keyboard and mouse sharing system of virtual machine
CN112188227A (en) Streaming media data distribution method and device
EP2974159B1 (en) Method, device and system for voice communication
WO2014101213A1 (en) Method, device and system for synchronizing mice
CN113365234B (en) Calling method and device and electronic equipment
JP2019523605A (en) Network policy update trigger method, management function entity and core network device
CN112583896B (en) Session management method, session management device, electronic equipment, session management server and storage medium
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN110798745A (en) Multimedia playing control method, server and storage medium
EP3805938A1 (en) Server node selection method and terminal device
CN113596100A (en) Communication transfer method, computer equipment and storage medium
US20230088033A1 (en) Wi-fi control method and apparatus and electronic device
CN107273125B (en) Method and system for remotely switching screen modes
CN113596197B (en) Address switching method and device, electronic equipment and storage medium
CN109086123A (en) Moving method, device, terminal, server and the storage medium of utility cession
CN110178353A (en) Method for processing business, Cloud Server and terminal device
CN112269630A (en) Keyboard and mouse sharing system of virtual machine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination