CN109271204B - Virtual machine on-off control system - Google Patents

Virtual machine on-off control system Download PDF

Info

Publication number
CN109271204B
CN109271204B CN201710586875.8A CN201710586875A CN109271204B CN 109271204 B CN109271204 B CN 109271204B CN 201710586875 A CN201710586875 A CN 201710586875A CN 109271204 B CN109271204 B CN 109271204B
Authority
CN
China
Prior art keywords
virtual machine
client
singlechip
server
power supply
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.)
Active
Application number
CN201710586875.8A
Other languages
Chinese (zh)
Other versions
CN109271204A (en
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.)
Embedway Technologies Shanghai Corp
Original Assignee
Embedway Technologies Shanghai Corp
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 Embedway Technologies Shanghai Corp filed Critical Embedway Technologies Shanghai Corp
Priority to CN201710586875.8A priority Critical patent/CN109271204B/en
Publication of CN109271204A publication Critical patent/CN109271204A/en
Application granted granted Critical
Publication of CN109271204B publication Critical patent/CN109271204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • 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/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation
    • 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/45575Starting, stopping, suspending or resuming virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a virtual machine on-off control system. The system comprises at least one virtual machine client, a virtual machine server and a virtual machine on-off control board, wherein a power supply/LED, a display and a keyboard mouse are arranged on the virtual machine client, a display card, a system control board, a CPU, a PCIe bridge, a serial port and a PCIe-USB are arranged on the virtual machine server, a second power supply/LED, a singlechip, a second serial port, a USB and a VPI are arranged on the virtual machine on-off control board, the keyboard mouse is connected with the PCIe-USB, the display is connected with the display card, the virtual machine server is connected with an ATX power supply, the serial port is connected with the second serial port, and the system control board is connected with the second power supply/LED. The invention does not need to specially configure a user terminal machine, provides a switch button which is the same as a physical machine for the virtual machine, and is convenient for a user to switch the virtual machine under the centralized use scene without a separate client terminal and a network interface.

Description

Virtual machine on-off control system
Technical Field
The invention relates to the technical field of computer virtualization, in particular to management of on-off of a virtual machine.
Background
Conventional servers are designed for a single operating system, and enterprises are often required to purchase a large number of servers in order to meet different application scenarios, and the utilization rate of the servers is usually only 5% to 15%, which is quite inefficient.
Virtualization uses software to simulate hardware and create virtual computer systems so that an enterprise can run multiple virtual systems, i.e., multiple operating systems and applications, on a single server, thereby achieving economies of scale and improving efficiency.
For desktop-level virtual machine application environments (such as cloud desktops and the like), its general topology includes: virtualized server resource layer: the system consists of one or more virtual machine servers, and provides virtualization service, wherein hard disk data of the virtual machine can be stored on the virtual machine servers or on a special storage layer, and the storage layer comprises the following steps: responsible for the security and backup of data. The virtual machine server resource layer and the storage layer are communicated through a network. Client layer: consists of multiple identical virtual machine clients that access the virtualized services provided by the virtual machine server resource layer over a network.
Disclosure of Invention
In view of this, the present invention provides a virtual machine on-off control system, which adds on-off buttons as same as a physical machine to a virtual machine through a hardware design and a matched software control system, so that a user can switch the virtual machine as if switching on or off the physical machine.
The invention solves the technical problems by the following technical means:
the invention discloses a virtual machine on-off control system, which comprises at least one virtual machine client, a virtual machine server and a virtual machine on-off control board, wherein a power supply/LED, a display and a keyboard mouse are arranged on the virtual machine client, a display card, a system control board, a CPU, a PCIe bridge, a serial port and a PCIe-USB are arranged on the virtual machine server, a second power supply/LED, a singlechip, a second serial port, a USB and a VPI are arranged on the virtual machine on-off control board, a VGA/HDMI interface is arranged on the display card, the keyboard mouse is connected with the PCIe-USB through a mouse keyboard line, the display is connected with the display card through the VGA/HDMI line, the virtual machine server is connected with an ATX power supply, the serial port is connected with the second serial port and is used for data communication between the virtual machine server and the virtual machine on-off control board, the system control board is connected with the second power supply/LED and the VPI is used for connecting a power supply line of the virtual machine client, and the virtual machine client controls on-off of the virtual machine server through a button of the power supply/LED on the power supply line.
The virtual machine server is provided with a large-capacity hard disk or external storage equipment, an operating system and application data of the virtual machine client are stored, the virtual machine server supports display cards of a plurality of PCI-E interfaces, each display card is exclusively allocated to one virtual machine client, the virtual machine server supports a plurality of PCIe-USB, and each PCIe-USB is exclusively allocated to one virtual machine client.
The number of the CPUs arranged on the virtual machine server is at least two, the CPUs are interconnected through QPI interfaces, the display card is connected with the CPUs through PCIE3.0 interfaces, the PCIe bridge is respectively connected with the CPUs and the PCIe-USB through PCIE2.0 interfaces, and the system control board is connected with the on-off button and the LED indicator lamp on the virtual machine server.
The ATX power supply is used for supplying power to the virtual machine client, the virtual machine server and the virtual machine on-off control board, and the second power supply/LED is used for providing standard on-off functions for the virtual machine server.
The second power supply/LED is used for powering up and powering down the virtual machine server, when the virtual machine server is in a power-on state, the power supply/LED lights up and lights down, when the virtual machine server is in a power-down state, the system control board monitors a button change event of the second power supply/LED of the virtual machine on-off control board through a serial port, and the on-off of the virtual machine server is determined.
The method comprises the following control flow:
the method comprises the following control flow:
process A1: starting the process, at this time, the virtual machine on-off control board 3 is already powered on, and the control system running on the singlechip 302 is ready;
process A2: the singlechip 302 monitors virtual machine client 1On/Off messages sent by the virtual machine client 1 and the virtual machine server 2;
process A3: the singlechip 302 detects that the virtual machine client 1 presses a power/LED 101 button;
process A4: the single chip microcomputer 302 determines how to process the event in the process A3 according to the saved state of the virtual machine client 1, the event in the process A3, the current power-on and power-off state of the virtual machine server 2 and other information;
process A5: the singlechip 302 determines that the current state of the virtual machine client 1 is a power-off state, and needs to further judge the state of the second power supply/LED 301;
process A6: the singlechip 302 determines that the state of the second power supply/LED 301 is a power-off state, and powers on the virtual machine server 2 through the second power supply/LED 301;
process A7: judging whether the starting of the virtual machine server 2 is completed, wherein the sign of the completion of the starting of the virtual machine server 2 is that the singlechip 302 can communicate with the virtual machine server 2 through the second serial port 303, if the starting of the virtual machine server 2 is completed, returning to a process A4, otherwise, entering a process A8;
process A8: if the virtual machine server 2 is not started to be completed, waiting for self-adjusting time, and returning to the process A7 again;
process A9: the singlechip 302 determines that the state of the second power supply/LED 301 is the power-On state, sends a virtual machine client 1On message to the virtual machine server 2 through the second serial port 303, and the virtual machine server 2 should confirm after receiving the virtual machine client 1On message;
process a10: the singlechip 302 waits for the response of the virtual machine client 1On returned by the virtual machine server 2; if a virtual machine client 1On response is received, entering a process A11; otherwise, returning to process A9, the single-chip microcomputer 302 cannot wait indefinitely for the response returned by the virtual machine server 2, if no response is received within the specified time, or if no response is received after retrying the specified number of times; the singlechip 302 jumps out of the current process and returns to the process A1 again;
process a11: the singlechip 302 receives the response of the virtual machine client 1On, lights up the power supply/LED 101 of the virtual machine client 1, sets the state of the virtual machine client 1 as On, and returns to the process A1;
process a12: the singlechip 302 determines that the current state of the virtual machine client 1 is On, continuously judges whether the time length of pressing the power/LED 101 button of the virtual machine client 1 exceeds 5 seconds, and if the time length exceeds 5 seconds, enters a process A16 to force the virtual machine client 1 to be powered off; if not, entering a process A13, and preparing to close the virtual machine client 1;
process a13: the singlechip 302 determines that the virtual machine client 1 needs to be closed, and sends an Off message of the virtual machine client 1 to the virtual machine server 2 through the second serial port 303; after receiving the Off message of the virtual machine client 1, the virtual machine server 2 confirms the Off message;
process a14: the singlechip 302 waits for the response of the virtual machine client 1Off returned by the virtual machine server 2; if a virtual machine client 1Off response is received, then process A15 is entered; otherwise, returning to process a13, the single-chip microcomputer 302 cannot wait indefinitely for the response returned by the virtual machine server 2, if no response is received within a specified time, or if no response is received after retrying for a specified number of times; the singlechip 302 jumps out of the current process and returns to the process A1 again;
process a15: the singlechip 302 receives an Off response of the virtual machine client 1 returned by the virtual machine server 2, turns Off the power supply/LED 101 of the virtual machine client 1, sets the state of the virtual machine client 1 as Off, and returns to the process A1;
process a16: the singlechip 302 determines that the power/LED 101 button of the virtual machine client 1 is pressed for more than 5 seconds, and sends a Force Off message of the virtual machine client 1 to the virtual machine server 2 through the second serial port 303, and the virtual machine server 2 should confirm after receiving the Force Off message of the virtual machine client 1;
process a17: the singlechip 302 waits for a response of the virtual machine client 1Force Off returned by the virtual machine server 2, if the response of the virtual machine client 1Force Off is received, the process A15 is entered, otherwise, the process A16 is returned, the singlechip 302 does not receive the response in the appointed time or does not receive the response after retrying the appointed times, the singlechip 302 jumps out of the current process and returns to the process A1 again;
process a18: the singlechip 302 receives the virtual machine client 1On message sent by the virtual machine server 2, and enters a process A19;
process a19: the singlechip 302 lights the power supply/LED 101 of the virtual machine client 1, sets the state of the virtual machine client 1 as On, and returns to the process A1;
process a20: the singlechip 302 receives the Off message of the virtual machine client 1 sent by the virtual machine server 2, and enters a process A21;
process a21: the singlechip 302 turns Off the virtual machine client 1 power/LED 101, sets the state of the virtual machine client 1 to Off, and returns to process A1.
The invention has the beneficial effects that: the virtual machine on-off control system is suitable for situations (environments such as a laboratory and an internet bar) in which multiple persons use virtual machines in a centralized mode and a virtual machine server is not far away from the users. In particular, in the target virtual machine system related to the invention, the mouse, the keyboard and the display used by the user are all physically connected to the virtual machine server, a user side machine does not need to be specially configured, an on-off button which is the same as that of the physical machine is provided for the virtual machine, and the user can conveniently switch the virtual machine under the centralized use condition (links such as a laboratory and an internet bar) without a separate client side and a network interface.
Drawings
The invention is further described below with reference to the drawings and examples.
Figure 1 shows a block diagram of the present invention.
FIG. 2 is a flow chart showing the control software of the virtual machine on-off board according to the present invention.
FIG. 3 is a schematic diagram illustrating an embodiment of a virtual machine switch board control system according to the present invention.
Detailed Description
The invention will be described in detail below with reference to the accompanying drawings, as shown in fig. 1, 2 and 3: the virtual machine on-off control system of the embodiment comprises at least one virtual machine client 1, a virtual machine server 2 and a virtual machine on-off control board 3, wherein a power supply/LED 101, a display 102 and a keyboard mouse 103 are arranged on the virtual machine client 1, a display card 201, a system control board 202, a CPU203, a PCIe bridge 204, a serial port 205 and a PCIe-USB206 are arranged on the virtual machine server 2, a second power supply/LED 301, a singlechip 302, a second serial port 303, a USB304 and a VPI305 are arranged on the virtual machine on-off control board 3, a VGA/HDMI interface 4 is arranged on the display card 201, a keyboard mouse 103 is connected with the PCIe-USB206 through a mouse keyboard line, the display 102 is connected with the display card 201 through a VGA/HDMI line, the virtual machine server 2 is connected with an ATX power supply 5, the serial port 205 is connected with the second serial port 303, the system control board 202 is used for data communication between the virtual machine server 2 and the virtual machine on-off control board 3, the system control board 202 is connected with the second power supply/LED 301, the VPI305 is used for connecting the virtual machine client 1, and the virtual machine client 1 is powered off through the power supply line 101.
The virtual machine server 2 is provided with a large-capacity hard disk or external storage device, stores an operating system and application data of the virtual machine client 1, supports display cards 201 of a plurality of PCI-E interfaces, the virtual machine server 2 exclusively distributes each display card 201 to one virtual machine client 1, supports a plurality of PCIe-USB206, and exclusively distributes each PCIe-USB206 to one virtual machine client 1.
The number of the CPUs 203 arranged on the virtual machine server 2 is at least two, the CPUs 203 are interconnected through QPI interfaces, the display card 201 is connected with the CPUs 203 through PCIE3.0 interfaces, the PCIe bridge 204 is respectively connected with the CPUs 203 and PCIe-USB206 through PCIE2.0 interfaces, and the system control board 202 is connected with on-off buttons and LED indicator lamps on the virtual machine server 2.
The ATX power supply 5 supplies power to the virtual machine client 1, the virtual machine server 2 and the virtual machine on-off control board 3, and the second power supply/LED 301 is used to provide standard on-off functions for the virtual machine server 2.
The second power/LED 301 is used for powering up and powering down the virtual machine server 2, when the virtual machine server 2 is in a power-on state, the power/LED 301 is turned on and off, when the virtual machine server 2 is in a power-off state, the power/LED 301 is turned off, and the system control board 202 monitors a button change event of the second power/LED 301 of the virtual machine on-off control board 3 through the serial port 205 to determine on and off of the virtual machine server 2.
As shown in fig. 3, one or more virtual machines are run on the virtual machine server 2, each virtual machine is provided with a separate VGA or HDMI display interface and a USB interface, the virtual machine server 2 supports one or more virtual machine clients 1, and the virtual machine clients 1 are connected to a specific virtual machine through a cable set. The cable group includes 4 cables of different functions, is respectively: mouse line, keyboard line, VGA or HDMI line, virtual machine power line. The virtual machine server 2 controls the on-off actions of each virtual machine through an independent virtual machine power supply control board (VirtualPowerControlBoard, VPCB); the virtual machine power supply control board can obtain power supply from a main board power supply of the virtual machine server 2, and can also obtain power supply from a main board USB interface of the virtual machine server 2 through a USB interface.
The implementation process of the algorithm of the single-chip microcomputer 302 will be described in detail below with reference to the virtual machine client 1 in fig. 2, and in an actual system, the virtual machine on-off control board 3 will monitor on-off actions of a plurality of virtual machine clients 1 according to the algorithm.
The method comprises the following control flow:
process A1: starting the process, at this time, the virtual machine on-off control board 3 is already powered on, and the control system running on the singlechip 302 is ready;
process A2: the singlechip 302 monitors virtual machine client 1On/Off messages sent by the virtual machine client 1 and the virtual machine server 2;
process A3: the singlechip 302 detects that the virtual machine client 1 presses a power/LED 101 button;
process A4: the single chip microcomputer 302 determines how to process the event in the process A3 according to the saved state of the virtual machine client 1, the event in the process A3, the current power-on and power-off state of the virtual machine server 2 and other information;
process A5: the singlechip 302 determines that the current state of the virtual machine client 1 is a power-off state, and needs to further judge the state of the second power supply/LED 301;
process A6: the singlechip 302 determines that the state of the second power supply/LED 301 is a power-off state, and powers on the virtual machine server 2 through the second power supply/LED 301;
process A7: judging whether the starting of the virtual machine server 2 is completed, wherein the sign of the completion of the starting of the virtual machine server 2 is that the singlechip 302 can communicate with the virtual machine server 2 through the second serial port 303, if the starting of the virtual machine server 2 is completed, returning to a process A4, otherwise, entering a process A8;
process A8: if the virtual machine server 2 is not started to be completed, waiting for self-adjusting time, and returning to the process A7 again;
process A9: the singlechip 302 determines that the state of the second power supply/LED 301 is the power-On state, sends a virtual machine client 1On message to the virtual machine server 2 through the second serial port 303, and the virtual machine server 2 should confirm after receiving the virtual machine client 1On message;
process a10: the singlechip 302 waits for the response of the virtual machine client 1On returned by the virtual machine server 2; if a virtual machine client 1On response is received, entering a process A11; otherwise, returning to process A9, the single-chip microcomputer 302 cannot wait indefinitely for the response returned by the virtual machine server 2, if no response is received within the specified time, or if no response is received after retrying the specified number of times; the singlechip 302 jumps out of the current process and returns to the process A1 again;
process a11: the singlechip 302 receives the response of the virtual machine client 1On, lights up the power supply/LED 101 of the virtual machine client 1, sets the state of the virtual machine client 1 as On, and returns to the process A1;
process a12: the singlechip 302 determines that the current state of the virtual machine client 1 is On, continuously judges whether the time length of pressing the power/LED 101 button of the virtual machine client 1 exceeds 5 seconds, and if the time length exceeds 5 seconds, enters a process A16 to force the virtual machine client 1 to be powered off; if not, entering a process A13, and preparing to close the virtual machine client 1;
process a13: the singlechip 302 determines that the virtual machine client 1 needs to be closed, and sends an Off message of the virtual machine client 1 to the virtual machine server 2 through the second serial port 303; after receiving the Off message of the virtual machine client 1, the virtual machine server 2 confirms the Off message;
process a14: the singlechip 302 waits for the response of the virtual machine client 1Off returned by the virtual machine server 2; if a virtual machine client 1Off response is received, then process A15 is entered; otherwise, returning to process a13, the single-chip microcomputer 302 cannot wait indefinitely for the response returned by the virtual machine server 2, if no response is received within a specified time, or if no response is received after retrying for a specified number of times; the singlechip 302 jumps out of the current process and returns to the process A1 again;
process a15: the singlechip 302 receives an Off response of the virtual machine client 1 returned by the virtual machine server 2, turns Off the power supply/LED 101 of the virtual machine client 1, sets the state of the virtual machine client 1 as Off, and returns to the process A1;
process a16: the singlechip 302 determines that the power/LED 101 button of the virtual machine client 1 is pressed for more than 5 seconds, and sends a Force Off message of the virtual machine client 1 to the virtual machine server 2 through the second serial port 303, and the virtual machine server 2 should confirm after receiving the Force Off message of the virtual machine client 1;
process a17: the singlechip 302 waits for a response of the virtual machine client 1Force Off returned by the virtual machine server 2, if the response of the virtual machine client 1Force Off is received, the process A15 is entered, otherwise, the process A16 is returned, the singlechip 302 does not receive the response in the appointed time or does not receive the response after retrying the appointed times, the singlechip 302 jumps out of the current process and returns to the process A1 again;
process a18: the singlechip 302 receives the virtual machine client 1On message sent by the virtual machine server 2, and enters a process A19;
process a19: the singlechip 302 lights the power supply/LED 101 of the virtual machine client 1, sets the state of the virtual machine client 1 as On, and returns to the process A1;
process a20: the singlechip 302 receives the Off message of the virtual machine client 1 sent by the virtual machine server 2, and enters a process A21;
process a21: the singlechip 302 turns Off the virtual machine client 1 power/LED 101, sets the state of the virtual machine client 1 to Off, and returns to process A1.
Finally, it is noted that the above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made thereto without departing from the spirit and scope of the technical solution of the present invention, which is intended to be covered by the scope of the claims of the present invention.

Claims (5)

1. A virtual machine on-off control system is characterized in that: the virtual machine comprises at least one virtual machine client (1), a virtual machine server (2) and a virtual machine on-off control board (3), wherein a power supply and an LED (101), a display (102) and a keyboard and a mouse (103) are arranged on the virtual machine client (1), a display card (201), a system control board (202), a CPU (203), a PCIe bridge (204), a serial port (205) and a PCIe-USB (206) are arranged on the virtual machine server (2), a second power supply and an LED (301), a singlechip (302), a second serial port (303), a USB (304) and a VPI (305) are arranged on the virtual machine on-off control board (3), a VGA or HDMI interface (4) is arranged on the display card (201), the keyboard and the mouse (103) are connected with the PCIe-USB (206) through mouse marks and keyboard lines, the display (102) is connected with the display card (201) through HDMI lines, the virtual machine server (2) is connected with an ATX power supply (5), the serial port (205) is connected with the second serial port (303), the VGA (2) is used for connecting the virtual machine on-off control board (301) with the virtual machine (3) through the HDMI lines, the single chip microcomputer of the control board detects button events of the client, controls the second power supply and the LED (301) according to the state of the client and the state of the server, monitors the second power supply and the LED (301) through a serial port, achieves the purpose of controlling the on-off of the server, the second power supply and the LED (301) are used for providing standard on-off functions for the virtual machine server (2), powering on and off the virtual machine server (2), when the virtual machine server (2) is in a power-on state, the power supply and the LED (301) are powered on, when the virtual machine server (2) is in a power-off state, the power supply and the LED (301) are powered off, and the system control board (202) monitors button change events of the second power supply and the LED (301) of the virtual machine on-off control board (3) through the serial port (205) to determine the on and off of the virtual machine server (2).
2. The virtual machine on-off control system of claim 1, wherein: the virtual machine server (2) is provided with a large-capacity hard disk or external storage equipment, an operating system and application data of the virtual machine client (1) are stored, the virtual machine server (2) supports a plurality of display cards (201) with PCI-E interfaces, each display card (201) is exclusively allocated to one virtual machine client (1) by the virtual machine server (2), the virtual machine server (2) supports a plurality of PCIe-USB (206), and each PCIe-USB (206) is exclusively allocated to one virtual machine client (1).
3. The virtual machine on-off control system according to claim 2, wherein: the number of the CPUs (203) arranged on the virtual machine server (2) is at least two, the CPUs (203) are interconnected through QPI interfaces, the display card (201) is connected with the CPUs (203) through PCIE3.0 interfaces, the PCIe bridge (204) is respectively connected with the CPUs (203) and the PCIe-USB (206) through PCIE2.0 interfaces, and the system control board (202) is connected with on-off buttons on the virtual machine server (2).
4. A virtual machine on-off control system as recited in claim 3, wherein: the ATX power supply (5) supplies power for the virtual machine client (1), the virtual machine server (2) and the virtual machine on-off control board (3).
5. The virtual machine on-off control system according to claim 4, wherein when controlling on-off of the virtual machine server, a flow is performed,
process A1: starting a process, wherein the virtual machine on-off control board (3) is electrified, and a virtual machine on-off control system running on the singlechip (302) is ready;
process A2: the singlechip (302) monitors On information or Off information of the virtual machine client (1) sent by the virtual machine client (1) and the virtual machine server (2);
process A3: the singlechip (302) detects that the virtual machine client (1) presses a power supply and an LED (101) button;
process A4: the singlechip (302) decides how to process the events in the process A3 according to the state of the virtual machine client (1) stored by the singlechip, the events in the process A3 and the current power-on and power-off state information of the virtual machine server (2);
process A5: the singlechip (302) determines that the current state of the virtual machine client (1) is a shutdown state, and needs to further judge the states of the second power supply and the LED (301);
process A6: the singlechip (302) determines that the state of the second power supply and the LED (301) is a power-off state, and the virtual machine server (2) is electrified through the second power supply and the LED (301);
process A7: judging whether the starting of the virtual machine server (2) is finished, wherein a mark for finishing the starting of the virtual machine server (2) is that the singlechip (302) can communicate with the virtual machine server (2) through the second serial port (303), if the starting of the virtual machine server (2) is finished, returning to the process A4, otherwise, entering the process A8;
process A8: if the virtual machine server (2) is not started to be completed, waiting for self-adjusting time, and returning to the process A7 again;
process A9: the singlechip (302) determines that the states of the second power supply and the LEDs (301) are in a power-On state, sends an On message of the virtual machine client (1) to the virtual machine server (2) through the second serial port (303), and confirms after the virtual machine server (2) receives the On message of the virtual machine client (1);
process a10: the singlechip (302) waits for the response of the virtual machine client (1) On returned by the virtual machine server (2); if a virtual machine client (1) On response is received, entering a process A11; otherwise, returning to the process A9, if the singlechip does not receive the response in the appointed time or does not receive the response after retrying the appointed times, the singlechip (302) jumps out of the current process and returns to the process A1 again;
process a11: the singlechip (302) receives the On response of the virtual machine client (1), lightens the power supply and the LEDs (101) of the virtual machine client (1), sets the state of the virtual machine client (1) as On, and returns to the process A1;
process a12: the singlechip (302) determines that the current state of the virtual machine client (1) is On, continuously judges whether the duration of the power supply of the virtual machine client (1) and the pressing of the LED (101) button exceeds 5 seconds, and if the duration exceeds 5 seconds, enters a process A16 to force the virtual machine client (1) to be powered off; if not, entering a process A13, preparing to shut down the virtual machine client (1);
process a13: the singlechip (302) determines that the virtual machine client (1) needs to be closed, and sends an Off message of the virtual machine client (1) to the virtual machine server (2) through the second serial port (303); after receiving the Off message of the virtual machine client (1), the virtual machine server (2) confirms;
process a14: the singlechip (302) waits for an Off response of the virtual machine client (1) returned by the virtual machine server (2); if an Off response is received from the virtual machine client (1), then process A15 is entered; otherwise, returning to the process A13, if the singlechip (302) does not receive the response within the designated time, or does not receive the response after retrying the designated times; the singlechip (302) jumps out of the current process and returns to the process A1 again;
process a15: the singlechip (302) receives an Off response of the virtual machine client (1) returned by the virtual machine server (2), closes the power supply and the LED (101) of the virtual machine client (1), sets the state of the virtual machine client (1) as Off, and returns to the process A1;
process a16: the singlechip (302) determines that the power supply and the LED (101) button of the virtual machine client (1) are pressed for more than 5 seconds, sends a Force Off message of the virtual machine client (1) to the virtual machine server (2) through the second serial port (303), and confirms after the virtual machine server (2) receives the Force Off message of the virtual machine client (1);
process a17: the singlechip (302) waits for a Force Off response of the virtual machine client (1) returned by the virtual machine server (2), if the Force Off response of the virtual machine client (1) is received, the process A15 is entered, otherwise, the process A16 is returned, the singlechip (302) does not receive the response in the appointed time, or the response is not received after the appointed times are retried, the singlechip (302) jumps out of the current process and returns to the process A1 again;
process a18: the singlechip (302) receives the On message of the virtual machine client (1) sent by the virtual machine server (2), and enters a process A19;
process a19: the singlechip (302) lightens the power supply and the LED (101) of the virtual machine client (1), sets the state of the virtual machine client (1) as On, and returns to the process A1;
process a20: the singlechip (302) receives an Off message of the virtual machine client (1) sent by the virtual machine server (2), and enters a process A21;
process a21: the singlechip (302) turns Off the power supply and the LED (101) of the virtual machine client (1), sets the state of the virtual machine client (1) as Off, and returns to the process A1.
CN201710586875.8A 2017-07-18 2017-07-18 Virtual machine on-off control system Active CN109271204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710586875.8A CN109271204B (en) 2017-07-18 2017-07-18 Virtual machine on-off control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710586875.8A CN109271204B (en) 2017-07-18 2017-07-18 Virtual machine on-off control system

Publications (2)

Publication Number Publication Date
CN109271204A CN109271204A (en) 2019-01-25
CN109271204B true CN109271204B (en) 2023-10-10

Family

ID=65152861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710586875.8A Active CN109271204B (en) 2017-07-18 2017-07-18 Virtual machine on-off control system

Country Status (1)

Country Link
CN (1) CN109271204B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200746B (en) * 2019-12-04 2021-06-01 海信视像科技股份有限公司 Method for awakening display equipment in standby state and display equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457512A (en) * 2010-11-08 2012-05-16 中标软件有限公司 Thin client server virtualization method and virtual thin client server
CN103076867A (en) * 2012-12-28 2013-05-01 广州杰赛科技股份有限公司 Cloud terminal processing method and system with function of identifying action of power key
CN103677964A (en) * 2013-12-30 2014-03-26 杭州冰特科技有限公司 Virtual machine control system
CN207182264U (en) * 2017-07-18 2018-04-03 恒为科技(上海)股份有限公司 A kind of virtual machine opening/closing control device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457512A (en) * 2010-11-08 2012-05-16 中标软件有限公司 Thin client server virtualization method and virtual thin client server
CN103076867A (en) * 2012-12-28 2013-05-01 广州杰赛科技股份有限公司 Cloud terminal processing method and system with function of identifying action of power key
CN103677964A (en) * 2013-12-30 2014-03-26 杭州冰特科技有限公司 Virtual machine control system
CN207182264U (en) * 2017-07-18 2018-04-03 恒为科技(上海)股份有限公司 A kind of virtual machine opening/closing control device

Also Published As

Publication number Publication date
CN109271204A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
US8327169B2 (en) Power management to maximize reduced power state for virtual machine platforms
CN102473157B (en) Virtual thermal in share I/O environment inserts function
US20170060211A1 (en) Managing and revoking power allocated through bus interfaces
TW200817887A (en) Power allocation management in an information handling system
CN103986786A (en) Remote cloud desktop operation system
CN102341763A (en) Power management in a virtual machine farm at the local virtual machine platform level by a platform hypervisor extended with farm management server functions
US7584266B2 (en) Autonomous storage for backup, restore, and file access
CN102999385A (en) Multiprocessor co-processing method in computation equipment
US7062668B2 (en) Method and system for information handling system component power management sequencing
CN103002042B (en) Cloud terminal with multiple power supply modes and cloud computing system
CN102023960A (en) Computer network system, computer and hardware equipment remote management method thereof
CN109753138B (en) Power consumption management method and device, electronic equipment and computer readable storage medium
US20160147271A1 (en) Powering nodes
CN105095142A (en) System and method for controlling expander card
US20210232195A1 (en) Systems and methods for communicating power event of display device coupled to information handling system
US20220391188A1 (en) Systems and methods for context-aware firmware update
CN109271204B (en) Virtual machine on-off control system
CN114124968A (en) Load balancing method, device, equipment and medium based on market data
US8086876B2 (en) Static and dynamic power management for a memory subsystem
TW200947204A (en) A power recovery server device and method thereof
CN112181942A (en) Time sequence database system and data processing method and device
CN207182264U (en) A kind of virtual machine opening/closing control device
US9069544B2 (en) Uninterruptible power supply and method for controlling power distribution unit by the same
CN203039727U (en) Cloud terminal with multiple power supply modes and cloud computing system
US10439934B2 (en) Systems and methods for addressing multiple physical and virtual functions in network controller-sideband interface

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
GR01 Patent grant
GR01 Patent grant