CN107689873A - A kind of method and device of switching on and shutting down - Google Patents

A kind of method and device of switching on and shutting down Download PDF

Info

Publication number
CN107689873A
CN107689873A CN201610643125.5A CN201610643125A CN107689873A CN 107689873 A CN107689873 A CN 107689873A CN 201610643125 A CN201610643125 A CN 201610643125A CN 107689873 A CN107689873 A CN 107689873A
Authority
CN
China
Prior art keywords
virtual machine
thin client
shutdown
instruction
desktop
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
CN201610643125.5A
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.)
Shenzhen Shenxinfu Electronic Technology Co Ltd
Original Assignee
Shenzhen Shenxinfu Electronic 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 Shenzhen Shenxinfu Electronic Technology Co Ltd filed Critical Shenzhen Shenxinfu Electronic Technology Co Ltd
Priority to CN201610643125.5A priority Critical patent/CN107689873A/en
Publication of CN107689873A publication Critical patent/CN107689873A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a kind of method of switching on and shutting down, available for when thin client performs switching on and shutting down operation, while the switching on and shutting down of virtual machine are realized, simplify the switching on and shutting down process of desktop cloud, lift Consumer's Experience and ease for use.Methods described is applied to the power on/off device of desktop cloud, and the desktop cloud includes thin client and virtual machine, and methods described includes:When detecting that thin client performs switching on and shutting down operation, switching on and shutting down instruction is sent to virtual machine;The virtual machine is controlled to start or close according to switching on and shutting down instruction.The present invention also proposes a kind of device of switching on and shutting down, for simplifying the switching on and shutting down process of desktop cloud, lifts Consumer's Experience and ease for use.

Description

Method and device for starting and stopping machine
Technical Field
The invention relates to the technical field of desktop cloud, in particular to a method and a device for starting up and shutting down a computer.
Background
As the desktop cloud technology tends to be mature, the value brought by the desktop cloud is gradually known by the big families, the desktop cloud has the advantages of simplifying operation and maintenance work, improving deployment efficiency, guaranteeing data safety, being convenient and fast to move and work, protecting environment and saving energy and the like, and the trouble brought by deploying the traditional PC is avoided. The user can be connected with the cloud virtual machine for working by using one thin client and one display, wherein the thin client needs to be provided with an operating system for installing a desktop cloud client program and connecting with a desktop cloud server to finally display the cloud virtual machine.
In the existing desktop cloud startup scheme, after a thin client is started, a local operating system needs to be accessed, then a desktop cloud client is operated, a user clicks a virtual machine through the desktop cloud client, and the virtual machine executes a startup process; in the existing desktop cloud shutdown scheme, a user exits from a local operating system of the thin client after executing a virtual machine shutdown operation, the user is required to further execute the shutdown operation of the thin client, the desktop cloud shutdown mode is complicated, and the user experience and the usability are greatly reduced.
Disclosure of Invention
The invention provides a method and a device for startup and shutdown, and mainly aims to realize startup and shutdown of a virtual machine when a thin client executes startup and shutdown operations, simplify the startup and shutdown process of desktop cloud, and improve user experience and usability.
In order to achieve the above object, a first aspect of the embodiments of the present invention provides a method for powering on and powering off, where the method is applied to a power on and powering off device of a desktop cloud, where the desktop cloud includes a thin client and a virtual machine, and the method includes:
when detecting that the thin client executes the power on/off operation, sending a power on/off instruction to the virtual machine;
and controlling the virtual machine to start or close according to the startup and shutdown instruction.
With reference to the first aspect of the embodiments of the present invention, in the first embodiment of the first aspect of the embodiments of the present invention, the installing the virtual machine on the desktop cloud server, and sending the power on/off instruction to the virtual machine when it is detected that the thin client performs the power on/off operation includes:
when the thin client is detected to execute the starting operation, the thin client is triggered to send a starting message to the virtual machine of the desktop cloud server through a client program;
or,
when the fact that the thin client sends a shutdown broadcast message is monitored, the thin client is triggered to send a shutdown request to the virtual machine of the desktop cloud server through a client program.
With reference to the first aspect of the embodiment of the present invention or the first implementation manner of the first aspect, in a second implementation manner of the first aspect of the embodiment of the present invention, when it is detected that a thin client performs a boot operation, after the thin client is triggered to send a boot message to a desktop cloud server through a client program, the method further includes:
receiving a network configuration message issued by the desktop cloud server according to the startup message;
sending the network configuration message to the thin client to enable a client program of the thin client to configure a connection channel between the thin client and the virtual machine based on the network configuration message;
and acquiring cloud desktop data from the virtual machine by using the connecting channel, sending the cloud desktop data to the thin client, and displaying a virtual desktop by a display connected with the thin client according to the cloud desktop data.
With reference to the first aspect of the embodiment of the present invention or the first implementation manner of the first aspect, in a third implementation manner of the first aspect of the embodiment of the present invention, the method further includes:
and when judging that the virtual machine executes shutdown operation, sending a shutdown instruction to the thin client so that the thin client executes the shutdown instruction through the client program and shuts down the thin client by using the shutdown instruction.
With reference to the third implementation manner of the first aspect of the embodiment of the present invention, in a fourth implementation manner of the first aspect of the embodiment of the present invention, before sending the shutdown instruction to the thin client, the method further includes:
judging that the virtual machine executes shutdown operation;
the judging that the virtual machine executes shutdown operation comprises the following steps: if a shutdown broadcast message sent by the virtual machine is monitored, judging that the virtual machine executes shutdown operation.
In addition, to achieve the above object, a second aspect of the embodiments of the present invention further provides a device for turning on and off a computer, the device including:
the thin client comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting whether the thin client executes a starting operation;
the first sending module is used for sending a power on/off instruction to the virtual machine when the detection module detects that the thin client executes power on/off operation, so that the virtual machine starts or closes the virtual machine according to the power on/off instruction;
and the control module is used for controlling the virtual machine to be started or closed according to the startup and shutdown instruction.
With reference to the second aspect of the embodiment of the present invention, in a first embodiment of the second aspect of the embodiment of the present invention, the sending module is specifically configured to:
when the thin client is detected to execute the starting operation, the thin client is triggered to send a starting message to the virtual machine of the desktop cloud server through a client program;
or,
when the fact that the thin client sends a shutdown broadcast message is monitored, the thin client is triggered to send a shutdown request to the virtual machine of the desktop cloud server through a client program.
With reference to the second aspect of the embodiment of the present invention or the first implementation manner of the second aspect, in a second implementation manner of the second aspect of the embodiment of the present invention, the apparatus further includes:
the receiving module is used for receiving a network configuration message issued by the desktop cloud server according to the starting-up message;
a second sending module, configured to send the network configuration message to the thin client, so that a client program of the thin client configures a connection channel between the thin client and the virtual machine based on the network configuration message;
the acquisition module is used for acquiring cloud desktop data from the virtual machine by using the connection channel;
and the third sending module is used for sending the acquired cloud desktop data to the thin client, and a display connected with the thin client displays a virtual desktop according to the cloud desktop data.
With reference to the second aspect of the embodiment of the present invention or the first implementation manner of the second aspect, in a third implementation manner of the second aspect of the embodiment of the present invention, the apparatus further includes:
the judging module is used for judging whether the virtual machine executes the starting operation;
and the fourth sending module is used for sending a shutdown instruction to the thin client when the judgment module judges that the virtual machine executes shutdown operation, so that the thin client executes the shutdown instruction through the client program and is shut down by using the shutdown instruction.
With reference to the third implementation manner of the second aspect of the embodiment of the present invention, in a fourth implementation manner of the second aspect of the embodiment of the present invention, the determining module is specifically configured to determine that the virtual machine executes a shutdown operation if a shutdown broadcast message sent by the virtual machine is monitored.
According to the method and the device for switching on and shutting down the thin client, when the thin client is detected to execute the switching on and shutting down operation, the switching on and shutting down instruction is sent to the virtual machine, so that the virtual machine is started or shut down according to the switching on and shutting down instruction.
Drawings
FIG. 1 is a diagram of a network architecture of a desktop cloud in an embodiment of the invention;
FIG. 2 is a flowchart illustrating a first embodiment of a power-on/off method according to the present invention;
FIG. 3 is a flowchart illustrating a second embodiment of the power on/off method of the present invention;
FIG. 4 is a signaling diagram of a thin client (terminal) power off in an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a third embodiment of the power on/off method of the present invention;
FIG. 6 is a flowchart illustrating a fourth embodiment of the power on/off method of the present invention;
fig. 7 is a signaling diagram of the process of power on/off and configuration of a connection channel between a thin client (terminal) and a virtual machine according to an embodiment of the present invention;
FIG. 8 is a functional block diagram of a switch device according to a first embodiment of the present invention;
FIG. 9 is a functional block diagram of a switch device according to a second embodiment of the present invention;
FIG. 10 is a functional block diagram of a switch device according to a third embodiment of the present invention;
fig. 11 is a schematic diagram of a hardware structure of a server in the embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a method and a device for controlling the startup and shutdown of a desktop cloud, and mainly aims to realize the startup and shutdown of a virtual machine when a thin client executes the startup and shutdown operation, simplify the startup and shutdown process of the desktop cloud, and improve the user experience and the usability.
A desktop cloud network architecture and a schematic diagram of each component module in the desktop cloud are shown in fig. 1, and mainly include the following component modules:
virtual Machine (VM): a complete computer system with complete hardware system functions and running in a completely isolated environment simulated by software can be provided with a win7, xp and other operating systems.
An agent program is run in the Virtual machine, and can communicate with a Virtual Desktop Controller (VDC) and a thin client.
A thin client: a small industry specific commercial PC designed based On PC industry standards using a professional embedded processor, a small local dom (disk On module) electronic disk, a reduced version operating system.
The thin Client runs a Client program which can communicate with a virtual machine desktop controller and a virtual machine.
And the desktop cloud server runs a plurality of virtual machines and configures cloud desktop data (virtual desktops) for each virtual machine.
And the display is used for communicating with the virtual machine through the thin client and displaying the virtual machine desktop acquired from the virtual machine.
In order to improve usability without changing user experience and enable a user to feel like using a traditional PC, a scheme for controlling desktop cloud startup is provided. The thin client can directly start the cloud virtual machine and then is connected with the cloud virtual machine when a user presses a thin client starting button; the method comprises the following steps that a user executes shutdown operation in a cloud virtual machine, and the thin client is automatically shut down; and when the user presses a thin client button, the cloud virtual machine is automatically closed. The whole process of starting and shutting down makes the user feel that a traditional PC is used.
The invention provides a cloud startup method, and is a flowchart of a first embodiment of a startup and shutdown method according to the invention, as shown in fig. 2.
In this embodiment, an execution main body of the power on/off method is a power on/off device, and the power on/off device may operate in the desktop cloud server in fig. 1, or may operate on a physical server equipped with a virtual machine separately, where the method specifically includes:
step S10, detecting whether the thin client executes the power on/off operation;
the thin client is provided with an on-off button, a user executes on-off operation by pressing the on-off button, and when the user presses the on-off button, the thin client can be detected to execute the on-off operation.
Step S20, when detecting that the thin client computer executes the power on/off operation, sending a power on/off instruction to the virtual machine;
in this embodiment, when the thin client is detected to execute a power on/off operation, a power on/off instruction is sent to the virtual machine, where the power on/off instruction includes a power on instruction or a power off instruction.
The thin client comprises a plurality of virtual machines, wherein the thin client and the virtual machines are in one-to-one correspondence, that is, when the thin client sends a boot instruction, the instruction may carry a virtual machine identifier corresponding to the thin client, and the boot instruction is sent to a specified virtual machine through the identifier.
And step S30, controlling the virtual machine to start or close according to the power on/off instruction.
The wireless controller is corresponding to the administrator, and different administrator accounts only have the wireless controller for managing a specific area. Such as banks, national chain supermarkets, etc., may have wireless controllers deployed at different outlets or branch allocations. And respectively allocating an administrator account for each network point or branch, wherein each account only has corresponding management authority at a corresponding place.
According to the method for turning on and turning off the thin client, when the thin client is detected to execute the turning on and turning off operation, the turning on and turning off instruction is sent to the virtual machine, so that the virtual machine is started or closed according to the turning on and turning off instruction.
The second embodiment of the power on/off method of the present invention is provided based on the first embodiment. Referring to fig. 3, taking the embodiment based on fig. 2 as an example, step 20 in the method specifically includes:
step S201, when detecting that the thin client executes the boot operation, triggering the thin client to send a boot message to a virtual machine of the desktop cloud server through a client program;
in this embodiment, if the virtual machine is installed or operated in the desktop cloud server, when the thin client executes the boot operation, the boot message is sent to the desktop cloud server, and then the desktop cloud server controls the virtual machine to perform the boot operation.
In other embodiments, in a server in which the virtual machine is installed or operated separately, when the thin client executes a boot operation, the desktop cloud server receives the boot message first, and then the boot message is forwarded by the desktop cloud server to the virtual machine, where the boot message is a boot instruction or an instruction message for instructing the virtual machine to boot after receiving the boot instruction.
Step S202, when the thin client is monitored to send a shutdown broadcast message, the thin client is triggered to send a shutdown request to the virtual machine through a client program.
In this embodiment, the thin client transmits the notification in a broadcast manner, and in practical applications, the notification may be performed in other manners, which is not limited herein.
In this embodiment, specific signaling interaction for the thin client (terminal) to power off is shown in fig. 4.
A third embodiment of the power on/off method of the present invention is proposed based on the first embodiment or the second embodiment. Referring to fig. 5, based on the embodiment shown in fig. 3, the method further includes:
step S40, receiving a network configuration message issued by the desktop cloud server according to the boot message;
in this embodiment, a virtual machine is installed in the desktop cloud server, and after the virtual machine is started up according to a startup message (or a startup instruction), the desktop cloud server issues a network configuration message.
Step S50, sending the network configuration message to the thin client so that the client program of the thin client configures a connection channel between the thin client and the virtual machine based on the network configuration message;
the configuration message carries network configuration parameters, and a connection channel between the thin client and the virtual machine is configured through the network configuration parameters.
And step S60, acquiring cloud desktop data from the virtual machine by using the connecting channel, sending the cloud desktop data to the thin client, and displaying a virtual desktop on a display connected with the thin client according to the cloud desktop data.
A fourth embodiment of the power on/off method of the present invention is proposed based on the first embodiment or the second embodiment. Referring to fig. 6, based on the embodiment shown in fig. 2, the method further includes:
step S70, judging that the virtual machine executes shutdown operation;
optionally, in this embodiment, after the virtual machine is started according to the power-on instruction, if a power-off broadcast message sent by the virtual machine is monitored, it is determined that the virtual machine executes a power-off operation.
And step S80, when judging that the virtual machine executes the shutdown operation, sending a shutdown instruction to the thin client so that the thin client executes the shutdown instruction through the client program and shuts down the thin client by using the shutdown instruction.
In this embodiment, signaling interaction involved in the processes of power on and power off between the thin client and the virtual machine and configuration of the connection channel is shown in fig. 7.
According to the power on/off method provided by the invention, when the thin client is detected to execute the power on/off operation, the power on/off instruction is sent to the virtual machine, so that the virtual machine is started or closed according to the power on/off instruction, compared with the prior art, the power on/off method can integrate the thin client power on/off and the virtual machine, namely when the thin client executes the power on/off operation, the power on/off of the virtual machine is synchronously executed, the operation of the desktop cloud power on/off is simplified, and the experience and the usability of a user are improved; in addition, when the virtual machine executes shutdown operation, a shutdown instruction is sent to the thin client, so that the thin client can be shut down by the aid of the shutdown instruction, synchronous shutdown of the virtual machine and the thin client is achieved, and operation is simple.
The above is a description of the method in the embodiment of the present invention, and the switching device in the embodiment of the present invention is described below from the perspective of the functional module.
The switching device may be a hardware device where the desktop cloud server in fig. 1 is located, or a hardware device where a physical server equipped with a virtual machine is located, as shown in fig. 8, which is a schematic diagram of functional modules of a first embodiment of the switching device of the present invention, and the switching device includes:
the thin client comprises a detection module 10, a processing module and a processing module, wherein the detection module is used for detecting whether the thin client executes a starting operation;
the first sending module 20 is configured to send a power on/off instruction to the virtual machine when the detection module detects that the thin client executes a power on/off operation, so that the virtual machine starts or closes the virtual machine according to the power on/off instruction;
and the control module 30 is configured to control the virtual machine to start or close according to the power on/off instruction.
Optionally, in this embodiment, the first sending module 20 is specifically configured to, when detecting that the thin client executes a boot operation, trigger the thin client to send a boot message to the virtual machine of the desktop cloud server through a client program;
or, the first sending module 20 is specifically configured to, when it is monitored that the thin client sends a shutdown broadcast message, trigger the thin client to send a shutdown request to the virtual machine of the desktop cloud server through a client program.
Compared with the prior art, the on-off device of the thin client and the virtual machine can integrate the on-off of the thin client and the on-off of the virtual machine, namely, the on-off of the virtual machine is synchronously executed when the thin client executes the on-off operation, the operation of switching on and off of a desktop cloud is simplified, and therefore the experience and the usability of a user are improved.
A second embodiment of the switching device according to the invention is proposed based on the first embodiment of the device. In this embodiment, the apparatus further includes a receiving module 40, a second sending module 50, an obtaining module 60, and a third sending module 70.
Referring to fig. 9, the switching device further includes:
a receiving module 40, configured to receive a network configuration message issued by the desktop cloud server according to the boot message;
a second sending module 50, configured to send the network configuration message to the thin client, so that a client program of the thin client configures a connection channel between the thin client and the virtual machine based on the network configuration message;
an obtaining module 60, configured to obtain cloud desktop data from the virtual machine by using the connection channel;
and a third sending module 70, configured to send the acquired cloud desktop data to the thin client, where a display connected to the thin client displays a virtual desktop according to the cloud desktop data.
A third embodiment of the switchgear device according to the invention is proposed on the basis of the first or second embodiment of the device. Referring to fig. 10, the power on/off device further includes a determining module 80 and a fourth sending module 90.
The judging module 80 is configured to judge whether the virtual machine executes a boot operation;
optionally, in this embodiment, the determining module 80 is specifically configured to determine that the virtual machine executes a shutdown operation if a shutdown broadcast message sent by the virtual machine is monitored.
The fourth sending module 90 is configured to send a shutdown instruction to the thin client when the determining module determines that the virtual machine executes a shutdown operation, so that the thin client executes the shutdown instruction through the client program and is turned off by using the shutdown instruction.
Compared with the prior art, the on-off device can integrate the on-off of the thin client and the on-off of the virtual machine, namely synchronously execute the on-off of the virtual machine when the thin client executes the on-off operation, simplifies the operation of desktop cloud on-off, and further improves the experience and the usability of a user; in addition, when the virtual machine executes shutdown operation, a shutdown instruction is sent to the thin client, so that the thin client can be shut down by the aid of the shutdown instruction, synchronous shutdown of the virtual machine and the thin client is achieved, and operation is simple.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
For the specific information interaction among the functional modules and the specific process of the steps executed by the functional modules, reference is made to the method embodiment of the power on/off method, which is not described herein in detail.
In addition, the embodiment of the present invention also protects a server, as shown in fig. 11, the server includes one or more memories 630 and one or more processors 622, and the memories and the processors are connected through a bus. The memory includes a first storage medium 641 and a second storage medium 642, where the first storage medium 641 stores an operating system and an application program, the application program includes a power on/off program, and the second storage medium 642 stores data, the data includes parameters such as a power on/off instruction, and the virtual machine runs on the desktop cloud server. The processor 602 is configured to execute the switch program, and execute the steps executed by the switch apparatus in the above-described method embodiment (the embodiment shown in fig. 2 and fig. 7).
The server may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input-output interfaces 658, and/or one or more operating systems such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The server may be a physical server managed independently of the server, or may be integrated with a physical server of the physical servers managed by the server.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for powering on and powering off, wherein the method is applied to a powering on and powering off device of a desktop cloud, the desktop cloud comprising a thin client and a virtual machine, and the method comprises the following steps:
when detecting that the thin client executes the power on/off operation, sending a power on/off instruction to the virtual machine;
and controlling the virtual machine to start or close according to the startup and shutdown instruction.
2. The method of claim 1, wherein the virtual machine is installed on the desktop cloud server, and wherein sending a power-on/off instruction to the virtual machine when detecting that the thin client performs a power-on/off operation comprises:
when the thin client is detected to execute the starting operation, the thin client is triggered to send a starting message to the virtual machine of the desktop cloud server through a client program;
or,
when the fact that the thin client sends a shutdown broadcast message is monitored, the thin client is triggered to send a shutdown request to the virtual machine of the desktop cloud server through a client program.
3. The method according to claim 1 or 2, wherein after controlling the virtual machine to start according to the power-on/off instruction, the method further comprises:
receiving a network configuration message issued by the desktop cloud server according to the startup message;
sending the network configuration message to the thin client to enable a client program of the thin client to configure a connection channel between the thin client and the virtual machine based on the network configuration message;
and acquiring cloud desktop data from the virtual machine by using the connecting channel, sending the cloud desktop data to the thin client, and displaying a virtual desktop by a display connected with the thin client according to the cloud desktop data.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
and when judging that the virtual machine executes shutdown operation, sending a shutdown instruction to the thin client so that the thin client executes the shutdown instruction through the client program and shuts down the thin client by using the shutdown instruction.
5. The method of claim 4, wherein prior to sending a shutdown instruction to the thin client, the method further comprises:
judging that the virtual machine executes shutdown operation;
the judging that the virtual machine executes shutdown operation comprises the following steps: if a shutdown broadcast message sent by the virtual machine is monitored, judging that the virtual machine executes shutdown operation.
6. A switching device, characterized in that the switching device comprises:
the thin client comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting whether the thin client executes a starting operation;
the first sending module is used for sending a power on/off instruction to the virtual machine when the detection module detects that the thin client executes power on/off operation, so that the virtual machine starts or closes the virtual machine according to the power on/off instruction;
and the control module is used for controlling the virtual machine to be started or closed according to the startup and shutdown instruction.
7. The startup and shutdown device according to claim 6, wherein the desktop cloud server is installed with the virtual machine, and the first sending module is specifically configured to:
when the thin client is detected to execute the starting operation, the thin client is triggered to send a starting message to the virtual machine of the desktop cloud server through a client program;
or,
when the fact that the thin client sends a shutdown broadcast message is monitored, the thin client is triggered to send a shutdown request to the virtual machine of the desktop cloud server through a client program.
8. The switch device according to claim 6 or 7, characterized in that it further comprises:
the receiving module is used for receiving a network configuration message issued by the desktop cloud server according to the starting-up message;
a second sending module, configured to send the network configuration message to the thin client, so that a client program of the thin client configures a connection channel between the thin client and the virtual machine based on the network configuration message;
the acquisition module is used for acquiring cloud desktop data from the virtual machine by using the connection channel;
and the third sending module is used for sending the acquired cloud desktop data to the thin client, and a display connected with the thin client displays a virtual desktop according to the cloud desktop data.
9. The switching apparatus according to claims 6 to 7, wherein the shutdown apparatus further comprises:
the judging module is used for judging whether the virtual machine executes the starting operation;
and the fourth sending module is used for sending a shutdown instruction to the thin client when the judgment module judges that the virtual machine executes shutdown operation, so that the thin client executes the shutdown instruction through the client program and is shut down by using the shutdown instruction.
10. The on-off device according to claim 9, wherein the determining module is specifically configured to determine that the virtual machine executes a shutdown operation if a shutdown broadcast message sent by the virtual machine is monitored.
CN201610643125.5A 2016-08-05 2016-08-05 A kind of method and device of switching on and shutting down Pending CN107689873A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610643125.5A CN107689873A (en) 2016-08-05 2016-08-05 A kind of method and device of switching on and shutting down

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610643125.5A CN107689873A (en) 2016-08-05 2016-08-05 A kind of method and device of switching on and shutting down

Publications (1)

Publication Number Publication Date
CN107689873A true CN107689873A (en) 2018-02-13

Family

ID=61151388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610643125.5A Pending CN107689873A (en) 2016-08-05 2016-08-05 A kind of method and device of switching on and shutting down

Country Status (1)

Country Link
CN (1) CN107689873A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804147A (en) * 2018-05-28 2018-11-13 新华三云计算技术有限公司 Link closedown method, device and client
CN109992343A (en) * 2019-03-27 2019-07-09 上海达龙信息科技有限公司 Control method, control system and the electronic equipment of virtual cloud desktop server
CN114019875A (en) * 2021-11-05 2022-02-08 深圳市精锋医疗科技股份有限公司 Power supply device, method for controlling equipment to be turned on and turned off, working equipment and working system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102439533A (en) * 2011-09-29 2012-05-02 华为终端有限公司 Thin client on-off control method,device and system applying the device
CN103076867A (en) * 2012-12-28 2013-05-01 广州杰赛科技股份有限公司 Cloud terminal processing method and system with function of identifying action of power key
CN105721613A (en) * 2016-04-22 2016-06-29 广州优达信息科技有限公司 Method and system for virtual desktop to close cloud terminal through one touch
CN105763638A (en) * 2016-04-18 2016-07-13 广州优达信息科技有限公司 Cloud terminal reverse control system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102439533A (en) * 2011-09-29 2012-05-02 华为终端有限公司 Thin client on-off control method,device and system applying the device
CN103076867A (en) * 2012-12-28 2013-05-01 广州杰赛科技股份有限公司 Cloud terminal processing method and system with function of identifying action of power key
CN105763638A (en) * 2016-04-18 2016-07-13 广州优达信息科技有限公司 Cloud terminal reverse control system
CN105721613A (en) * 2016-04-22 2016-06-29 广州优达信息科技有限公司 Method and system for virtual desktop to close cloud terminal through one touch

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108804147A (en) * 2018-05-28 2018-11-13 新华三云计算技术有限公司 Link closedown method, device and client
CN108804147B (en) * 2018-05-28 2022-05-10 新华三云计算技术有限公司 Linkage shutdown method and device and client
CN109992343A (en) * 2019-03-27 2019-07-09 上海达龙信息科技有限公司 Control method, control system and the electronic equipment of virtual cloud desktop server
CN114019875A (en) * 2021-11-05 2022-02-08 深圳市精锋医疗科技股份有限公司 Power supply device, method for controlling equipment to be turned on and turned off, working equipment and working system
CN114019875B (en) * 2021-11-05 2023-12-08 深圳市精锋医疗科技股份有限公司 Power supply device, method for controlling equipment to be started and shut down, working equipment and working system

Similar Documents

Publication Publication Date Title
US10592254B2 (en) Technologies for fast low-power startup of a computing device
EP3223152B1 (en) Method and server for presenting initialization degree of hardware in server
CN101989212B (en) Method and device for providing virtual machine management program for starting blade server
CN101788845B (en) For performing the method and system of computer task reducing power consumption state
CN106055440B (en) A kind of test method and system for realizing server exception power-off by BMC
CN109857466B (en) BIOS configuration method, device, server and computer readable storage medium
CN107689873A (en) A kind of method and device of switching on and shutting down
CN105940375B (en) Dynamic reassignment for multiple operating system devices
CN108427885B (en) Basic input output system updating method and device
CN111124508A (en) Method and device for adjusting PXE (PCI extensions for instrumentation) starting sequence of network card
CN105721206A (en) Method for setting BMC (baseboard management controller) network parameters to be immediately effective by BIOS (basic input/output system)
CN103076867A (en) Cloud terminal processing method and system with function of identifying action of power key
CN101877640A (en) Power control system of server
KR20150042643A (en) Terminal appartus and method for connecting to virtual server in a vritual desktop infrastructure
CN111158982B (en) Electronic device, first operating system, data processing method, and storage medium
CN106292989A (en) A kind of information processing method and electronic equipment
JP2009211640A (en) Network boot method using radio lan, and network boot terminal
CN103020068B (en) A kind of synchronous method and synchronous device
CN105100125B (en) A kind of dormancy control method of virtual desktop, apparatus and system
US20230213995A1 (en) Control method and electronic device
EP3252599A1 (en) Method and apparatus for starting application program
CN103795857A (en) Information processing method and electronic equipment
CN105260212B (en) Breaker controller and its method for upgrading software, a kind of breaker
CN109981365B (en) Data monitoring method and device, user equipment and storage medium
CN110413320B (en) Server device and method for changing firmware setting in real time

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180213