CN112114937A - Virtual system restarting method and device - Google Patents
Virtual system restarting method and device Download PDFInfo
- Publication number
- CN112114937A CN112114937A CN202010994326.6A CN202010994326A CN112114937A CN 112114937 A CN112114937 A CN 112114937A CN 202010994326 A CN202010994326 A CN 202010994326A CN 112114937 A CN112114937 A CN 112114937A
- Authority
- CN
- China
- Prior art keywords
- virtual system
- target virtual
- session
- target
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000012545 processing Methods 0.000 claims description 23
- 230000009471 action Effects 0.000 claims description 20
- 230000007246 mechanism Effects 0.000 claims description 14
- 238000005516 engineering process Methods 0.000 claims description 11
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 8
- 238000004891 communication Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45575—Starting, stopping, suspending or resuming virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The disclosure relates to a method and a device for restarting a virtual system, an electronic device and a computer readable medium. The method is applicable to a physical device comprising a plurality of virtual systems, and comprises the following steps: determining a target virtual system to be restarted; closing an interface under the target virtual system; deleting the session of the target virtual system; removing the information of the logged-in administrator of the target virtual system; initializing the target virtual system; and opening an interface of the target virtual system to complete the restart of the target virtual system. According to the virtual system restarting method, the virtual system restarting device, the electronic equipment and the computer readable medium, the appointed virtual system can be restarted under the condition that the use of other virtual system users is not influenced, the loss of the disconnected network to the users is reduced, and the user experience is improved.
Description
Technical Field
The present disclosure relates to the field of computer information processing, and in particular, to a method and an apparatus for restarting a virtual system, an electronic device, and a computer-readable medium.
Background
With the increasing development of network technology, more and more functions are supported by network devices. The network equipment virtualization application realizes the purpose that the physical equipment has multiple purposes, is beneficial to flexibly allocating resources and improving the resource utilization rate, and each virtual equipment is mutually independent and physically isolated and safely isolated, has independent hardware resources and management authority, can be regarded as the physical equipment and flexibly networked, can allocate exclusive network resources for different network systems, and can also reduce the user fund occupation condition. However, the network device virtualization technology brings convenience, and also has a problem that when data of the virtual system is incorrect or the virtual system is dead, the virtual system needs to be restarted to perform data reset.
In the prior art, when a virtual system is restarted, a physical device needs to be restarted, and then all virtual systems on the physical device are restarted due to the restart of the physical device, which affects the use of a user. The direct restart of the physical equipment can cause network interruption, and particularly for departments with high network requirements, the restart of the physical equipment needs to be subjected to heavy review, so that a large amount of manpower, material resources and financial resources are consumed. Moreover, the physical equipment needs a long time to restart, and other virtual system users cannot normally use the originally normally running virtual system of the physical equipment due to the restart of the physical equipment, so that the user experience is greatly influenced.
Therefore, a new virtual system restart method, apparatus, electronic device and computer readable medium are needed.
The above information disclosed in this background section is only for enhancement of understanding of the background of the disclosure and therefore it may contain information that does not constitute prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of this, the present disclosure provides a method and an apparatus for restarting a virtual system, an electronic device, and a computer readable medium, which can restart a designated virtual system without affecting the use of other virtual system users, reduce the loss of users due to network outage, and improve the user experience.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the present disclosure, a method for restarting a virtual system is provided, where the method is applicable to a physical device including a plurality of virtual systems, and includes: determining a target virtual system to be restarted; closing an interface under the target virtual system; deleting the session of the target virtual system; removing the information of the logged-in administrator of the target virtual system; initializing the target virtual system; and opening an interface of the target virtual system to complete the restart of the target virtual system.
In an exemplary embodiment of the present disclosure, includes: acquiring working states of a plurality of virtual systems in physical equipment; and when the working state of any virtual system in the plurality of virtual systems is not a normal state, determining that the virtual system is a target virtual system.
In an exemplary embodiment of the present disclosure, acquiring the operating states of a plurality of virtual systems in a physical device includes: acquiring a working state of a virtual system generated based on an OVC technology in physical equipment; and/or acquiring the working state of the virtual system generated based on the VRF technology in the physical equipment.
In an exemplary embodiment of the present disclosure, closing an interface under the target virtual system includes: sending a closing instruction to a service group under the target virtual system; the service group determines the action to be executed according to the closing event processing mechanism; and the service group executes the action to close the interface corresponding to the service group.
In an exemplary embodiment of the present disclosure, deleting the session of the target virtual system includes: determining corresponding session information according to the identifier of the target virtual system; and deleting the session information one by one to release session resources.
In an exemplary embodiment of the present disclosure, rejecting logged-in administrator information of the target virtual system includes: and forcibly performing an exit operation on the logged-in administrator of the target virtual system to close the target virtual system.
In an exemplary embodiment of the present disclosure, rejecting logged-in administrator information of the target virtual system includes: removing the administrator information of the target virtual system logged in by the webpage; and/or eliminating the administrator information of the target virtual system logged in by the serial port.
In an exemplary embodiment of the present disclosure, initializing the target virtual system includes: initializing a time of the target virtual system; taking the time as the starting time after restarting; session resources are initialized.
In an exemplary embodiment of the present disclosure, opening an interface of the target virtual system includes: sending an opening instruction to a service group under the target virtual system; the service group determines the action to be executed according to the starting event processing mechanism; and the service group executes the action to open the interface corresponding to the service group.
According to an aspect of the present disclosure, a virtual system restart apparatus is provided, which is applicable to a physical device including a plurality of virtual systems, and includes: the system module is used for determining a target virtual system to be restarted; the closing module is used for closing an interface under the target virtual system; the session module is used for deleting the session of the target virtual system; the information module is used for eliminating the information of the logged-in administrator of the target virtual system; an initialization module for initializing the target virtual system; and the starting module is used for starting an interface of the target virtual system to complete the restart of the target virtual system.
According to an aspect of the present disclosure, an electronic device is provided, the electronic device including: one or more processors; storage means for storing one or more programs; when executed by one or more processors, cause the one or more processors to implement a method as above.
According to an aspect of the disclosure, a computer-readable medium is proposed, on which a computer program is stored, which program, when being executed by a processor, carries out the method as above.
According to the virtual system restarting method, the virtual system restarting device, the electronic equipment and the computer readable medium, a target virtual system to be restarted is determined; closing an interface under the target virtual system; deleting the session of the target virtual system; removing the information of the logged-in administrator of the target virtual system; initializing the target virtual system; the method for restarting the target virtual system by starting the interface of the target virtual system can restart the specified virtual system without influencing the use of other virtual system users, reduce the loss of the user due to network interruption and improve the user experience.
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 above and other objects, features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are merely some embodiments of the present disclosure, and other drawings may be derived from those drawings by those of ordinary skill in the art without inventive effort.
Fig. 1 is a system block diagram illustrating a method and apparatus for restarting a virtual system according to an example embodiment.
FIG. 2 is a flowchart illustrating a method for restarting a virtual system in accordance with an exemplary embodiment.
Fig. 3 is a flowchart illustrating a method of restarting a virtual system in accordance with another illustrative embodiment.
Fig. 4 is a flowchart illustrating a method of restarting a virtual system in accordance with another illustrative embodiment.
Fig. 5 is a block diagram illustrating an apparatus for restarting a virtual system in accordance with an exemplary embodiment.
FIG. 6 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 7 is a block diagram illustrating a computer-readable medium in accordance with an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another. Thus, a first component discussed below may be termed a second component without departing from the teachings of the disclosed concept. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It is to be understood by those skilled in the art that the drawings are merely schematic representations of exemplary embodiments, and that the blocks or processes shown in the drawings are not necessarily required to practice the present disclosure and are, therefore, not intended to limit the scope of the present disclosure.
The technical abbreviations referred to in this specification are as follows:
OVC (OS-levelVirtualContext): an operating system level virtual environment is a novel device virtualization technology for virtualizing a physical device into a plurality of logical devices. When the logic devices are divided, each logic device has independent hardware and software resources, routing and forwarding table items are maintained independently, the logic devices are managed independently through independent administrators, log management mechanisms and the like, and the operation of the logic devices on the same physical device is not affected mutually. In hardware, each virtual device has independent resources such as a main control board, a service board card, a port, a CPU (central processing unit), a memory and the like; in software, each virtual device has an independent control, forwarding, service and management plane, and runs processes independently without mutual interference.
VRF (virtual rout ingress forwarding, virtual routing and forwarding) technology is a novel virtualization technology for virtualizing a physical device into multiple logical devices. When dividing the logic devices, each logic device only has an independent routing table and a set of interfaces. VRF is mainly the isolation of the forwarding layer, and the system resource is shared and preemptive. Since logical devices isolated by the VRF cannot directly communicate with each other, the VRF allows IP addresses to overlap between virtual networks.
Virtual system: the virtual system is that a same environment is virtualized on the existing operating system, and an application program is run in the virtual environment, and all activities of accessing and changing the system are limited in the environment, so that the operation of the virtual system does not affect the physical system. The virtual system divides different resources according to different types, and the current common virtual systems include the following: OVC-based virtual systems, VRF-based virtual systems, interface-based virtual systems.
Conversation: a session refers to the process by which an end user communicates with an interactive system. For example, entering the operating system by entering an account password to exiting the operating system is a session process.
And (4) process: the program in the computer is a basic unit for resource allocation and scheduling of a system with respect to one-time operation activity on a certain data set, and is the basis of an operating system structure.
Command: the command is a row of character string expression formed by combining the keywords and the parameters in a certain sequence. Keywords refer to words that are fixed and invariant, and are used to indicate the specific meaning of subsequent parameters. Parameters refer to variable configuration parameters. For example: noipaddress192.168.0.1/16, wherein no, ip and address are keywords, and 192.168.0.1/16 is a parameter.
Command line: a service program running on a device provides functions of parsing commands, executing commands, and the like.
And (3) system calling: when a user process initiates a system call, the CPU switches to the kernel mode and starts to execute a kernel function. The kernel function is responsible for responding to the requirements of the application program, such as operating a file, performing network communication or applying for memory resources.
Aiming at the technical dilemma in the prior art, the method provides an implementation scheme for restarting the virtual system by using software, and the virtual system can be restarted in two modes, wherein one mode is to restart the virtual system by a command line, and the other mode is to restart the virtual system by a page. The manner of restart is different, but the flow is the same. The virtual system restarting method and the virtual system restarting device can restart the designated virtual system under the condition of not influencing the use of other virtual system users, reduce the loss of the user due to network interruption, and have good application experience for the user because the virtual system is restarted in a short time because the physical device is not restarted. The present disclosure is described in detail below with reference to specific examples.
Fig. 1 is a system block diagram illustrating a method, apparatus, electronic device, and computer-readable medium for restarting a virtual system according to an example embodiment.
As shown in fig. 1, the system architecture 10 may include terminal display devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal display devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may interact with a server 105 over a network 104 using terminal display devices 101, 102, 103 to receive or send messages or the like. The terminal display devices 101, 102, 103 may have various communication client applications installed thereon, such as a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal display devices 101, 102, and 103 may be various electronic devices having display screens, the server 105 may be installed with a plurality of virtual systems for users to use, and the users may log in any virtual system on the server 105 and operate using the terminal display devices 101, 102, and 103, respectively. The server 105 may perform processing such as analysis on the received data based on the virtual system, and feed back the processing result to the terminal device.
The server 105 may, for example, determine a target virtual system to restart; the server 105 may, for example, close the interface under the target virtual system; the server 105 may, for example, delete the session for the target virtual system; server 105 may, for example, cull the logged-in administrator information for the target virtual system; the server 105 may, for example, initialize the target virtual system; the server 105 may, for example, open an interface of the target virtual system to complete the reboot of the target virtual system.
The server 105 may be a physical server, or may be composed of a plurality of servers, for example, it should be noted that the virtual system restart method provided by the embodiment of the present disclosure may be executed by the server 105, and accordingly, the virtual system restart apparatus may be disposed in the server 105. And the terminal display devices 101, 102, 103 may be used for data display.
FIG. 2 is a flowchart illustrating a method for restarting a virtual system in accordance with an exemplary embodiment. The virtual system restart method 20 includes at least steps S202 to S212.
As shown in fig. 2, in S202, a target virtual system to be restarted is determined. The method comprises the following steps: acquiring working states of a plurality of virtual systems in physical equipment; and when the working state of any virtual system in the plurality of virtual systems is not a normal state, determining that the virtual system is a target virtual system.
The method for acquiring the working states of the plurality of virtual systems in the physical device includes: acquiring a working state of a virtual system generated based on an OVC technology in physical equipment; and/or acquiring the working state of the virtual system generated based on the VRF technology in the physical equipment.
In S204, the interface under the target virtual system is closed. The method comprises the following steps: sending a close (down) instruction to a service group under the target virtual system; the service group determines the action to be executed according to the closing event processing mechanism; and the service group executes the action to close the interface corresponding to the service group.
In S206, the session of the target virtual system is deleted. The method comprises the following steps: determining corresponding session information according to the identifier of the target virtual system; and deleting the session information one by one to release session resources. The session has the functions of establishing and managing communication between application programs, deleting the session, namely releasing session resources created by the virtual system to be restarted and not performing message interaction.
In S208, the logged-in administrator information of the target virtual system is rejected. The method comprises the following steps: and forcibly performing an exit operation on the logged-in administrator of the target virtual system to close the target virtual system.
The method for eliminating the logged-in administrator information of the target virtual system comprises the following steps: removing the administrator information of the target virtual system logged in by the webpage; and/or eliminating the administrator information of the target virtual system logged in by the serial port.
More specifically, all interfaces under the virtual system are down, the session is deleted, and at this time, the network is not connected, so that the user needs to be removed from the virtual system in order to provide a better restart experience for the user, and the administrator is forced to exit from the login state, so that the state of closing the virtual system is realized.
In S210, the target virtual system is initialized. The method comprises the following steps: initializing a time of the target virtual system; taking the time as the starting time after restarting; session resources are initialized. But also can apply for certain resources for establishing the session, etc.
In S212, an interface of the target virtual system is opened to complete the restart of the target virtual system. The method comprises the following steps: sending an opening (up) instruction to a service group under the target virtual system; the service group determines the action to be executed according to the starting event processing mechanism; and the service group executes the action to open the interface corresponding to the service group.
According to the virtual system restarting method, a target virtual system to be restarted is determined; closing an interface under the target virtual system; deleting the session of the target virtual system; removing the information of the logged-in administrator of the target virtual system; initializing the target virtual system; the method for restarting the target virtual system by starting the interface of the target virtual system can restart the specified virtual system without influencing the use of other virtual system users, reduce the loss of the user due to network interruption and improve the user experience.
It should be clearly understood that this disclosure describes how to make and use particular examples, but the principles of this disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
Fig. 3 is a flowchart illustrating a method of restarting a virtual system in accordance with another illustrative embodiment. The flow 30 shown in fig. 3 is a detailed description of "close the interface under the target virtual system" in S204 in the flow shown in fig. 2.
As shown in fig. 3, in S302, a close command is sent to the service group under the target virtual system.
In S304, the service group determines an action to be performed according to the close event handling mechanism.
In S306, the service group executes the action to close the interface corresponding to the service group. After the closing instruction is executed, the serial port of the target virtual device cannot receive the message.
Different types of virtual systems contain different resources, such as a virtual system based on VRF, a virtual system based on OVC, and a virtual system based on an interface, but the interaction of messages between the virtual systems is realized through interfaces under the resources, so that the virtual systems directly or indirectly possess the interface resources. In order to prevent the message between the interfaces from being forwarded, all the interfaces under the virtual system need to be down. The interface has a down event processing mechanism, down sends down events to each service group, each service group receives the message and then performs corresponding processing, for example, the routing module deletes the route after receiving the event message, at this time, the message cannot be forwarded.
Fig. 4 is a flowchart illustrating a method of restarting a virtual system in accordance with another illustrative embodiment. The flow 40 shown in fig. 4 is a detailed description of S212 "open the interface of the target virtual system" in the flow shown in fig. 2.
As shown in fig. 4, in S402, an open instruction is sent to the service group under the target virtual system.
In S404, the service group determines an action to be performed according to the start event handling mechanism.
In S406, the service group executes the action to open the interface corresponding to the service group. After the start instruction is executed, the target virtual system is restarted and can receive message information.
The purpose of the up interface is to receive messages, the interface has a set of up event processing mechanism, the up event processing mechanism is sent when the interface is up, the notification of the interface up is sent to each module, after each service module receives the information, corresponding functional processing is carried out, for example, after the routing module receives the information, a default route is established.
According to the virtual system restarting method disclosed by the invention, the restart of the specified virtual system cannot cause the restart of the whole physical equipment, and the restart of the virtual system can be realized only from a software level.
Those skilled in the art will appreciate that all or part of the steps implementing the above embodiments are implemented as computer programs executed by a CPU. When executed by the CPU, performs the functions defined by the above-described methods provided by the present disclosure. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic or optical disk, or the like.
Furthermore, it should be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 5 is a block diagram illustrating an apparatus for restarting a virtual system in accordance with an exemplary embodiment. As shown in fig. 5, the virtual system restart apparatus 50 includes: a system module 502, a close module 504, a session module 506, an information module 508, an initialization module 510, and an open module 512.
The system module 502 is used to determine a target virtual system to be restarted; the system module 502 is further configured to obtain working states of a plurality of virtual systems in the physical device; and when the working state of any virtual system in the plurality of virtual systems is not a normal state, determining that the virtual system is a target virtual system.
The shutdown module 504 is configured to shutdown an interface under the target virtual system; the closing module 504 is further configured to send a closing instruction to the service group in the target virtual system; the service group determines the action to be executed according to the closing event processing mechanism; and the service group executes the action to close the interface corresponding to the service group.
The session module 506 is configured to delete a session of the target virtual system; the session module 506 is further configured to determine session information corresponding to the identifier of the target virtual system according to the identifier of the target virtual system; and deleting the session information one by one to release session resources.
The information module 508 is configured to remove the logged-in administrator information of the target virtual system; the information module 508 is further configured to force a logged-in administrator of the target virtual system to perform a logout operation to close the target virtual system.
The initialization module 510 is used for initializing the target virtual system; the initialization module 510 is further configured to initialize a time of the target virtual system; taking the time as the starting time after restarting; session resources are initialized.
The starting module 512 is configured to start an interface of the target virtual system to complete the restart of the target virtual system. The starting module 512 is further configured to send a starting instruction to the service group in the target virtual system; the service group determines the action to be executed according to the starting event processing mechanism; and the service group executes the action to open the interface corresponding to the service group.
According to the virtual system restarting device disclosed by the invention, a target virtual system to be restarted is determined; closing an interface under the target virtual system; deleting the session of the target virtual system; removing the information of the logged-in administrator of the target virtual system; initializing the target virtual system; the method for restarting the target virtual system by starting the interface of the target virtual system can restart the specified virtual system without influencing the use of other virtual system users, reduce the loss of the user due to network interruption and improve the user experience.
FIG. 6 is a block diagram illustrating an electronic device in accordance with an example embodiment.
An electronic device 600 according to this embodiment of the disclosure is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 that connects the various system components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.
Wherein the storage unit stores program code that is executable by the processing unit 610 such that the processing unit 610 performs the steps described in this specification in accordance with various exemplary embodiments of the present disclosure. For example, the processing unit 610 may perform the steps as shown in fig. 2, 3, 4.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The electronic device 600 may also communicate with one or more external devices 600' (e.g., keyboard, pointing device, bluetooth device, etc.), such that a user can communicate with devices with which the electronic device 600 interacts, and/or any device (e.g., router, modem, etc.) with which the electronic device 600 can communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, as shown in fig. 7, the technical solution according to the embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above method according to the embodiment of the present disclosure.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The computer readable medium carries one or more programs which, when executed by a device, cause the computer readable medium to perform the functions of: determining a target virtual system to be restarted; closing an interface under the target virtual system; deleting the session of the target virtual system; removing the information of the logged-in administrator of the target virtual system; initializing the target virtual system; and opening an interface of the target virtual system to complete the restart of the target virtual system.
Those skilled in the art will appreciate that the modules described above may be distributed in the apparatus according to the description of the embodiments, or may be modified accordingly in one or more apparatuses unique from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Exemplary embodiments of the present disclosure are specifically illustrated and described above. It is to be understood that the present disclosure is not limited to the precise arrangements, instrumentalities, or instrumentalities described herein; on the contrary, the disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims (10)
1. A virtual system restart method operable with a physical device including a plurality of virtual systems, comprising:
determining a target virtual system to be restarted;
closing an interface under the target virtual system;
deleting the session of the target virtual system;
removing the information of the logged-in administrator of the target virtual system;
initializing the target virtual system;
and opening an interface of the target virtual system to complete the restart of the target virtual system.
2. The method of claim 1, wherein determining a target virtual system to restart comprises:
acquiring working states of a plurality of virtual systems in physical equipment;
and when the working state of any virtual system in the plurality of virtual systems is not a normal state, determining that the virtual system is a target virtual system.
3. The method of claim 2, wherein obtaining the operating state of the plurality of virtual systems in the physical device comprises:
acquiring a working state of a virtual system generated based on an OVC technology in physical equipment; and/or
And acquiring the working state of the virtual system generated based on the VRF technology in the physical equipment.
4. The method of claim 1, wherein closing the interface under the target virtual system comprises:
sending a closing instruction to a service group under the target virtual system;
the service group determines the action to be executed according to the closing event processing mechanism;
and the service group executes the action to close the interface corresponding to the service group.
5. The method of claim 1, wherein deleting the session of the target virtual system comprises:
determining corresponding session information according to the identifier of the target virtual system;
and deleting the session information one by one to release session resources.
6. The method of claim 1, wherein culling logged-in administrator information for the target virtual system comprises:
and forcibly performing an exit operation on the logged-in administrator of the target virtual system to close the target virtual system.
7. The method of claim 1, wherein culling logged-in administrator information for the target virtual system comprises:
removing the administrator information of the target virtual system logged in by the webpage; and/or
And eliminating the administrator information of the target virtual system logged in by the serial port.
8. The method of claim 1, wherein initializing the target virtual system comprises:
initializing a time of the target virtual system;
taking the time as the starting time after restarting;
session resources are initialized.
9. The method of claim 1, wherein opening an interface of the target virtual system comprises:
sending an opening instruction to a service group under the target virtual system;
the service group determines the action to be executed according to the starting event processing mechanism;
and the service group executes the action to open the interface corresponding to the service group.
10. A virtual system restart apparatus operable with a physical device including a plurality of virtual systems, comprising:
the system module is used for determining a target virtual system to be restarted;
the closing module is used for closing an interface under the target virtual system;
the session module is used for deleting the session of the target virtual system;
the information module is used for eliminating the information of the logged-in administrator of the target virtual system;
an initialization module for initializing the target virtual system;
and the starting module is used for starting an interface of the target virtual system to complete the restart of the target virtual system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010994326.6A CN112114937A (en) | 2020-09-21 | 2020-09-21 | Virtual system restarting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010994326.6A CN112114937A (en) | 2020-09-21 | 2020-09-21 | Virtual system restarting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112114937A true CN112114937A (en) | 2020-12-22 |
Family
ID=73801483
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010994326.6A Pending CN112114937A (en) | 2020-09-21 | 2020-09-21 | Virtual system restarting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112114937A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20090072742A (en) * | 2007-12-28 | 2009-07-02 | 엘지노텔 주식회사 | Method of resetting an embedded java virtual machine |
WO2009114979A1 (en) * | 2008-03-21 | 2009-09-24 | 中兴通讯股份有限公司 | Method and terminal for network interface restarting |
CN105991345A (en) * | 2015-04-27 | 2016-10-05 | 杭州迪普科技有限公司 | Virtual machine fault processing method and virtual machine fault processing device |
CN108449200A (en) * | 2018-02-02 | 2018-08-24 | 云宏信息科技股份有限公司 | A kind of mask information wiring method and device based on control node |
CN108509249A (en) * | 2017-02-23 | 2018-09-07 | 华为技术有限公司 | A kind of virtual system method for restarting and equipment |
-
2020
- 2020-09-21 CN CN202010994326.6A patent/CN112114937A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20090072742A (en) * | 2007-12-28 | 2009-07-02 | 엘지노텔 주식회사 | Method of resetting an embedded java virtual machine |
WO2009114979A1 (en) * | 2008-03-21 | 2009-09-24 | 中兴通讯股份有限公司 | Method and terminal for network interface restarting |
CN105991345A (en) * | 2015-04-27 | 2016-10-05 | 杭州迪普科技有限公司 | Virtual machine fault processing method and virtual machine fault processing device |
CN108509249A (en) * | 2017-02-23 | 2018-09-07 | 华为技术有限公司 | A kind of virtual system method for restarting and equipment |
CN108449200A (en) * | 2018-02-02 | 2018-08-24 | 云宏信息科技股份有限公司 | A kind of mask information wiring method and device based on control node |
Non-Patent Citations (1)
Title |
---|
张洁 等: "《VB 6_.NET编程实例精选》", 四川电子音像出版中心, pages: 81 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200213404A1 (en) | Integrated user interface for consuming services across different distributed networks | |
US9117019B2 (en) | Debugging remote software applications across WAN connections | |
US10241835B2 (en) | Scheduling storage and computing resources based on task types and service levels | |
US9081750B2 (en) | Recovery escalation of cloud deployments | |
US20150033078A1 (en) | Debugging applications in the cloud | |
CN108604187B (en) | Hosted virtual machine deployment | |
US9535727B1 (en) | Identifying virtual machines that perform inconsistent with a profile | |
US8793688B1 (en) | Systems and methods for double hulled virtualization operations | |
CN109684038B (en) | Docker service container log processing method and device and electronic equipment | |
US10698715B2 (en) | Alert mechanism for VDI system based on social networks | |
US20150067761A1 (en) | Managing security and compliance of volatile systems | |
CN112187799A (en) | Resource access policy generation method and device, storage medium and electronic equipment | |
US20190014018A1 (en) | Mechanism for performance monitoring, alerting and auto recovery in vdi system | |
CN111881387A (en) | Data processing method, device, equipment and medium for small program | |
US9483781B2 (en) | Automatically generating a review rating the performance of a pattern based on pattern deployment, service history and operation of pattern | |
US11816204B2 (en) | Multi-tenant actor systems with web assembly | |
US20170078138A1 (en) | Real-time tagger | |
CN113191889A (en) | Wind control configuration method, configuration system, electronic device and readable storage medium | |
CN113626095A (en) | Switching method and switching system of configuration center, electronic equipment and storage medium | |
CN115665265B (en) | Request processing method, device, equipment, storage medium and system | |
CN111935092A (en) | Information interaction method and device based on third-party application and electronic equipment | |
CN109933444A (en) | A kind of instant communication method between applying of lodging | |
CN112114937A (en) | Virtual system restarting method and device | |
US11132113B1 (en) | Interaction signal processing in distributed computing systems | |
US11650846B2 (en) | Method, device, and computer program product for job processing |
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: 20201222 |