CN112667361B - Management method and device based on system virtual machine, electronic equipment and storage medium - Google Patents

Management method and device based on system virtual machine, electronic equipment and storage medium Download PDF

Info

Publication number
CN112667361B
CN112667361B CN202011644412.0A CN202011644412A CN112667361B CN 112667361 B CN112667361 B CN 112667361B CN 202011644412 A CN202011644412 A CN 202011644412A CN 112667361 B CN112667361 B CN 112667361B
Authority
CN
China
Prior art keywords
client system
target
simulator
list
response
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
CN202011644412.0A
Other languages
Chinese (zh)
Other versions
CN112667361A (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.)
Beijing VRV Software Corp Ltd
Original Assignee
Beijing VRV Software Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing VRV Software Corp Ltd filed Critical Beijing VRV Software Corp Ltd
Priority to CN202011644412.0A priority Critical patent/CN112667361B/en
Publication of CN112667361A publication Critical patent/CN112667361A/en
Application granted granted Critical
Publication of CN112667361B publication Critical patent/CN112667361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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 application provides a management method and device based on a system virtual machine, electronic equipment and a storage medium, and relates to the technical field of virtualization. The method comprises the following steps: displaying a list of simulators in response to a creation instruction of the client system; responding to a selection instruction for the target simulator identification in the simulator list, determining starting parameters of the target simulator, and starting the target simulator according to the starting parameters of the target simulator; determining an image file of the target client system in response to an installation instruction of the client system; according to the mirror image file of the target client system, the target client system is installed in the target simulator, and the configuration parameter information of the installed target client system is stored in the corresponding client system configuration file, so that different processor architectures can be simulated through the simulator, the installed client system does not depend on the processor architecture of the host machine, and the applicability of the management method can be improved.

Description

Management method and device based on system virtual machine, electronic equipment and storage medium
Technical Field
The present application relates to the field of virtualization technologies, and in particular, to a management method and apparatus based on a system virtual machine, an electronic device, and a storage medium.
Background
Virtualization technology (Virtualization Technology, VT) simply allows one CPU to operate as if multiple CPUs are running in parallel, thereby allowing multiple operating systems to be run simultaneously in one computer. In practical application, a complete operating system is installed and operated through a virtual processor and peripherals by a virtualization technology, so that the problems of testing and development without hardware support can be solved.
Conventionally, when a processor and a peripheral are virtualized by a virtualization technology, the virtual processor is generally implemented based on a KVM virtual machine, wherein the KVM virtual machine is implemented as a conventional Linux process, and is scheduled by a standard Linux scheduler, and each virtual CPU of the virtual machine is implemented as a conventional Linux thread.
However, the existing virtual method is relatively simple, so that the applicability is poor.
Disclosure of Invention
The present application has been made in view of the above-described drawbacks of the related art, and an object of the present application is to provide a management method, a management device, an electronic device, and a storage medium based on a system virtual machine, which can improve the applicability of the management method. In order to achieve the above purpose, the technical scheme adopted by the embodiment of the application is as follows:
in a first aspect, the present application provides a management method based on a system virtual machine, including:
In response to a creation instruction of the client system, displaying a simulator list, the simulator list comprising at least one simulator identification of a simulatable processor architecture;
responding to a selection instruction for identifying a target simulator in the simulator list, determining a starting parameter of the target simulator, and starting the target simulator according to the starting parameter of the target simulator;
determining an image file of a target client system in response to an installation instruction of the client system, the client system installation instruction including a target client system identification;
and installing the target client system in the target simulator according to the mirror image file of the target client system, and storing the configuration parameter information of the installed target client system into the corresponding client system configuration file.
In an alternative embodiment, the method further comprises:
in response to a start-up instruction of the client system, displaying a client system list, the client system list comprising at least one installed client system identification;
determining configuration parameter information of the target client system and starting parameters of a target simulator corresponding to the target client system in response to a selection instruction of the target client system identifier in the client system list;
And starting the target simulator according to the starting parameters of the target simulator, and starting the target client system in the target simulator according to the configuration parameter information of the target client system.
In an alternative embodiment, the method further comprises:
in response to a client system export instruction, displaying a client system export list that includes all client system identifications installed;
responding to a selection instruction of the target client system identification in the client system export list, respectively acquiring a client system configuration file and a target simulator starting configuration file corresponding to the target client system, wherein the target simulator starting configuration file comprises starting parameters of the target simulator;
and packaging the client system configuration file corresponding to the target client system and the target simulator starting configuration file, generating a target file, and exporting the target file to a preset position.
In an alternative embodiment, the method further comprises:
in response to a load instruction of a client system, displaying a client system load list, the client system load list including at least one client system identification that is loadable;
Determining a target file corresponding to the target client system identifier in response to a selection instruction of the target client system identifier in the client system loading list;
decompressing the target file and loading the target client system according to the decompressed target file.
In an alternative embodiment, before the displaying of the simulator list in response to the creation instruction of the client system, the method further comprises:
responding to a simulator compiling instruction, and displaying a simulation support list based on a preset virtual operating system simulator, wherein the simulation support list comprises simulator identifications corresponding to at least one processor architecture supported by the preset virtual operating system simulator;
determining a source code file corresponding to the target simulator in response to a selection instruction for the target simulator identification in the simulation support list;
and compiling and generating the target simulator according to the source code file corresponding to the target simulator, and adding the target simulator identification into a simulator list.
In an alternative embodiment, the method further comprises:
in response to a client system shutdown instruction, displaying a client system startup list, the client system startup list including all client system identifications that have been currently started;
And closing the target client system in response to a selection instruction of the target client system identification in the client system operation list.
In an alternative embodiment, the method further comprises:
in response to a deletion instruction of the client system, displaying a client system installation list, wherein the client system installation list comprises all installed client system identifications;
determining a client system configuration file and an image file corresponding to the target client system in response to a selection instruction of the target client system identification in the client system installation list;
and deleting the client system configuration file and the mirror image file corresponding to the target client system.
In a second aspect, the present invention provides a management apparatus based on a system virtual machine, including:
a display module for displaying a simulator list in response to a creation instruction of the client system, the simulator list comprising at least one simulator identification of a simulatable processor architecture;
the response module is used for responding to a selection instruction of the target simulator identification in the simulator list, determining starting parameters of the target simulator and starting the target simulator according to the starting parameters of the target simulator;
A determining module for determining an image file of a target client system in response to an installation instruction of the client system, the client system installation instruction including a target client system identification;
and the installation module is used for installing the target client system in the target simulator according to the mirror image file of the target client system and storing the configuration parameter information of the installed target client system into the corresponding client system configuration file.
In an alternative embodiment, the management device further includes: a startup module for displaying a client system list in response to a startup instruction of the client system, the client system list including at least one installed client system identification;
determining configuration parameter information of the target client system and starting parameters of a target simulator corresponding to the target client system in response to a selection instruction of the target client system identifier in the client system list;
and starting the target simulator according to the starting parameters of the target simulator, and starting the target client system in the target simulator according to the configuration parameter information of the target client system.
In an alternative embodiment, the management device further includes: an export module for displaying a client system export list in response to export instructions of the client systems, the client system export list including all client system identifications installed;
responding to a selection instruction of the target client system identification in the client system export list, respectively acquiring a client system configuration file and a target simulator starting configuration file corresponding to the target client system, wherein the target simulator starting configuration file comprises starting parameters of the target simulator;
and packaging the client system configuration file corresponding to the target client system and the target simulator starting configuration file, generating a target file, and exporting the target file to a preset position.
In an alternative embodiment, the management device further includes: a loading module for displaying a client system load list in response to a load instruction of a client system, the client system load list including at least one client system identification that is loadable;
determining a target file corresponding to the target client system identifier in response to a selection instruction of the target client system identifier in the client system loading list;
Decompressing the target file and loading the target client system according to the decompressed target file.
In an alternative embodiment, the management device further includes: the compiling module is used for responding to a simulator compiling instruction, displaying a simulation support list based on a preset virtual operating system simulator, wherein the simulation support list comprises simulator identifications corresponding to at least one processor architecture supported by the preset virtual operating system simulator;
determining a source code file corresponding to the target simulator in response to a selection instruction for the target simulator identification in the simulation support list;
and compiling and generating the target simulator according to the source code file corresponding to the target simulator, and adding the target simulator identification into a simulator list.
In an alternative embodiment, the management device further includes: a closing module, configured to respond to a closing instruction of a client system, and display a client system startup list, where the client system startup list includes all client system identifiers that have been started currently;
and closing the target client system in response to a selection instruction of the target client system identification in the client system operation list.
In an alternative embodiment, the management device further includes: a deletion module for displaying a client system installation list including all client system identifications installed in response to a deletion instruction of the client system;
determining a client system configuration file and an image file corresponding to the target client system in response to a selection instruction of the target client system identification in the client system installation list;
and deleting the client system configuration file and the mirror image file corresponding to the target client system.
In a third aspect, the present invention provides an electronic device comprising: a processor, a storage medium, and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor in communication with the storage medium via the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the system virtual machine-based management method as in any of the previous embodiments.
In a fourth aspect, the present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the system virtual machine based management method according to any of the previous embodiments.
The beneficial effects of the application are as follows:
in the management method, the device, the electronic equipment and the storage medium based on the system virtual machine provided by the embodiment of the application, by responding to the creation instruction of the client system, a simulator list is displayed, wherein the simulator list comprises at least one simulator identifier capable of simulating the processor architecture; responding to a selection instruction for the target simulator identification in the simulator list, determining starting parameters of the target simulator, and starting the target simulator according to the starting parameters of the target simulator; determining an image file of the target client system in response to an installation instruction of the client system, the client system installation instruction including a target client system identification; according to the image file of the target client system, the target client system is installed in the target simulator, and the configuration parameter information of the installed target client system is stored in the corresponding client system configuration file.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a management method based on a system virtual machine according to an embodiment of the present application;
FIG. 2 is a flowchart of another management method based on a system virtual machine according to an embodiment of the present application;
FIG. 3 is a flowchart of another management method based on a system virtual machine according to an embodiment of the present application;
FIG. 4 is a flowchart of another management method based on a system virtual machine according to an embodiment of the present application;
FIG. 5 is a flowchart of another management method based on a system virtual machine according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating another management method based on a system virtual machine according to an embodiment of the present application;
FIG. 7 is a flowchart of another management method based on a system virtual machine according to an embodiment of the present application;
Fig. 8 is a schematic functional block diagram of a management device based on a system virtual machine according to an embodiment of the present application;
FIG. 9 is a schematic functional block diagram of another management device based on a system virtual machine according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
Fig. 1 is a schematic diagram of a management method based on a system virtual machine according to an embodiment of the present application, where an execution subject of the method is a host computer capable of installing a host system, such as a notebook computer, a tablet computer, a desktop computer, a palm computer, etc., where the host system may be understood as a system in which an operating system is directly installed and used on a physical host computer, and optionally, a system type of the host system may include, but is not limited to: unix operating system, linux operating system, windows operating system, VMS operating system, etc., are not limited herein. As shown in fig. 1, the method may include:
s101, responding to a creation instruction of a client system, displaying a simulator list, wherein the simulator list comprises at least one simulator identifier capable of simulating a processor architecture.
Among other things, a client system may be understood as an operating system running in a host system, and the system types of the client system may include, but are not limited to: unix operating system, linux operating system, windows operating system, VMS operating system, etc. Alternatively, the system type of the client system may be different from the system type of the host system, for example, the system type of the host system may be a Windows operating system, and the system type of the client system may be a Unix operating system, but is not limited thereto.
Processor architectures can include, but are not limited to, the X86_64, ARM (Advanced RISC Machines) architectures, the MIPS architecture (Millions of Instructions Per Second), DEC alpha (alpha), powerPC (Performance Optimization With Enhanced RISC-Performance Computing), and the like.
For a host machine running a host system, the creation instructions of the client system are used to create the client system on the host system, and in some embodiments, the user may generate by clicking, long pressing, double clicking the creation control, without limitation; in response to a client system creation instruction, a simulator list may be displayed, which may include at least one simulator identifier that may simulate a processor architecture, so that a user may select a target simulator to launch based on the displayed simulator list, by launching the target simulator, different processor architectures and hardware devices may be virtualized on a host environment, providing a customized virtualized installation environment for certain operating systems that are highly dependent on a particular hardware facility, further providing a system foundation for application testing thereon, development, and also improving utilization of resources on a host.
S102, responding to a selection instruction of the target simulator identification in the simulator list, determining starting parameters of the target simulator, and starting the target simulator according to the starting parameters of the target simulator.
For the simulator list, a user can select any simulator identifier in the simulator list as a target simulator identifier, and determine starting parameters of the target simulator according to the selected target simulator identifier, so that the target simulator can be started according to the starting parameters of the target simulator.
Alternatively, the start-up parameters of the target simulator may include, but are not limited to: simulator memory parameters, simulator kernel parameters, simulator version number, simulator image parameters, simulator network parameters, etc., such that a target simulator may be started according to the start-up parameters.
S103, determining an image file of the target client system in response to an installation instruction of the client system, wherein the installation instruction of the client system comprises a target client system identification.
The installation instructions of the client system are used to instruct the installation of the target client system, in response to which an image file of the target client system may be determined from the target client system identification, the image file of the target client system may include, but is not limited to: system files, boot files, partition table information, etc. for the target client system.
In some embodiments, the image files of the plurality of client systems may be pre-imported under a preset directory, and then at the time of installation, the image files of the target client system may be determined under the preset directory according to the installation instruction of the client system.
S104, installing the target client system in the target simulator according to the mirror image file of the target client system, and storing the configuration parameter information of the installed target client system into the corresponding client system configuration file.
Based on the above description, after determining the image file of the target client system, the image file of the target client system may be loaded in the started target simulator to install the target client system, wherein the configuration information of the installed target client system may be stored to the configuration file of the target client system. For example, when the first client system is installed, the configuration parameter information of the first client system may be stored in a configuration file of the first client system, and when the second client system is installed, the configuration parameter information of the second client system may be stored in a configuration file of the second client system, so as to implement file-by-file management of the configuration parameter information corresponding to different client systems.
Of course, it should be noted that, according to an actual application scenario, the host may also start multiple simulators at the same time, and one or more client systems may be installed in each simulator, which is not limited herein. It can be understood that when the client system is installed according to the embodiment of the application, the installed client system does not need to depend on the processor architecture of the host machine, so that the applicability of the management method and the resource utilization rate of the host machine can be improved; and the method does not need a user to configure complicated installation starting parameters, and has the characteristics of rapidness and high efficiency in installation.
In summary, the management method based on the system virtual machine provided by the embodiment of the application comprises the following steps: in response to a creation instruction of the client system, displaying a simulator list comprising at least one simulator identification of a simulatable processor architecture; responding to a selection instruction for the target simulator identification in the simulator list, determining starting parameters of the target simulator, and starting the target simulator according to the starting parameters of the target simulator; determining an image file of the target client system in response to an installation instruction of the client system, the client system installation instruction including a target client system identification; according to the image file of the target client system, the target client system is installed in the target simulator, and the configuration parameter information of the installed target client system is stored in the corresponding client system configuration file.
Fig. 2 is a flow chart of another management method based on a system virtual machine according to an embodiment of the present application. Optionally, as shown in fig. 2, the method further includes:
s201, responding to a starting instruction of the client system, displaying a client system list, wherein the client system list comprises at least one installed client system identifier.
S202, in response to a selection instruction of the client system list on the target client system identification, configuration parameter information of the target client system and starting parameters of a target simulator corresponding to the target client system are determined.
Based on the above embodiment, after at least one client system is installed by the target simulator, any client system may be further started, alternatively, the user may act on the start control by clicking, long pressing, or the like to generate a start instruction of the client system, and in response to the start instruction of the client system, a client system list may be displayed, where the client system list may include at least one client system identifier installed on the current host system.
In some embodiments, based on the displayed client system list, a user may select any client system identifier in the client system list as a target client system identifier, and in response to a selection instruction, may determine configuration parameter information of the target client system, and a start-up parameter of a target simulator corresponding to the target client system. It can be appreciated that, when determining the configuration parameter information of the target client system, the configuration parameter information can be obtained through the configuration file of the target client system; the target simulator corresponding to the target client system, that is, the target client system is installed in the target simulator.
S203, starting the target simulator according to the starting parameters of the target simulator, and starting the target client system in the target simulator according to the configuration parameter information of the target client system.
Based on the above description, after the starting parameters of the target simulator are determined, the target simulator can be started according to the starting parameters of the target simulator, and after the target simulator is started, the target client system is started in the target simulator according to the configuration parameter information of the target client system, so that the target client system can be started at any time.
It can be seen that by applying the embodiment of the application, a user can quickly and efficiently start one or more installed client systems according to the needs, so that a plurality of client operating systems can be intensively operated on a host system, and the overall power consumption and the system maintenance cost are reduced.
In some embodiments, the user may also update the configuration parameter information of the target client system, for example, may modify the memory size of the target client system, and obtain the updated configuration parameter information of the target client system, and may further start the target client system in the target simulator according to the updated configuration parameter information of the target client system.
Fig. 3 is a flowchart of another management method based on a system virtual machine according to an embodiment of the present application. Optionally, as shown in fig. 3, to implement fast migration of the client system, the method further includes:
s301, in response to a export instruction of the client system, displaying a client system export list, wherein the client system export list comprises all installed client system identifications.
In some application scenarios, if a user needs to migrate an installed client system, that is, migrate an installed client system on a current host system to another host, optionally, the user may act on the export control by clicking, long-pressing, or the like to generate an export instruction, and in response to the export instruction, a client system export list may be displayed, where the client system export list may include all installed client system identifiers, so as to facilitate quick selection by the user.
S302, respectively acquiring a client system configuration file and a target simulator starting configuration file corresponding to a target client system in response to a selection instruction of the target client system identification in the client system export list.
The target simulator starting configuration file comprises starting parameters of the target simulator.
Based on the displayed client system export list, a user may select any client system identifier as a target client system identifier, generate a selection instruction, and respond to the selection instruction by respectively acquiring a client system configuration file corresponding to the target client system and a target simulator start configuration file corresponding to the target client system, where the target simulator start configuration file may include start parameters of the target simulator. Optionally, each simulator can correspond to a corresponding simulator starting configuration file, so that when starting parameters of any simulator are acquired, the starting configuration file of the simulator corresponding to the simulator can be quickly acquired, and the acquisition efficiency is improved.
S303, packaging the client system configuration file corresponding to the target client system and the target simulator starting configuration file, generating a target file, and exporting the target file to a preset position.
After the client system configuration file and the target simulator starting configuration file corresponding to the target client system are obtained, the two configuration files can be packaged to generate the target file, and the target file is exported to a preset position.
Fig. 4 is a flowchart of another management method based on a system virtual machine according to an embodiment of the present application. Optionally, as shown in fig. 4, the method further includes:
s401, in response to a loading instruction of the client system, displaying a client system loading list, wherein the client system loading list comprises at least one loadable client system identifier.
S402, responding to a selection instruction of the target client system identification in the client system loading list, and determining a target file corresponding to the target client system identification.
S403, decompressing the target file and loading the target client system according to the decompressed target file.
Based on the above embodiment, if the target file is obtained through other host systems, optionally, the user may copy the target file to a preset loading location, and in response to the copy operation, the target client system identifier may be added to the client system loading list, so that the user may preview all loadable client system identifiers through the client system loading list.
When the client system is further installed, a user can act on the loading control in a clicking, long-acting and other modes to generate a loading instruction, a client system loading list can be displayed in response to the loading instruction, a user can select a target client system identifier in the client system loading list to generate a selection instruction, a target file corresponding to the target client system identifier can be determined in response to the selection instruction, the target file is decompressed, it can be understood that the decompression can be performed in a corresponding mode according to the mode of packaging the target file, the decompressed target file is obtained, and then the corresponding target client system can be loaded based on the decompressed target file. It can be understood that, specifically, when loading is performed, the target simulator can be started according to the starting configuration file of the target simulator in the target file, and then the target client system is started in the target simulator according to the client system configuration file corresponding to the target client system in the target file, so that the client system can be ensured to be started correctly based on the virtual environment simulated by the target simulator.
Fig. 5 is a flowchart of another management method based on a system virtual machine according to an embodiment of the present application. Optionally, as shown in fig. 5, before displaying the simulator list in response to a creation instruction of the client system, the method further includes:
s501, responding to a simulator compiling instruction, and displaying a simulation support list based on a preset virtual operating system simulator, wherein the simulation support list comprises simulator identifications corresponding to at least one processor architecture supported by the preset virtual operating system simulator.
Alternatively, the preset virtual operating system simulator may be a QEMU simulation processor, which is a general-purpose open source computer simulator and virtualizer, including two modes of operation: a user mode and a system mode, wherein in the user mode, linux programs compiled for different central processing units can be started; in the system mode, the whole computer system can be simulated, including a central processing unit and other peripheral equipment.
The present application is described herein with reference to a QEMU simulation processor, where a simulator compiling instruction is used to instruct compiling a simulator, and a user may act on a compiling control by clicking, long pressing, etc. to generate a simulator compiling instruction, and respond to the simulator compiling instruction, optionally, based on that the QEMU simulation processor may display, in a system mode, a simulator identifier corresponding to at least one processor architecture supported by the QEMU simulation processor, for example, QEMU simulation processor support: when the x86_64 architecture, the ARM architecture, the MIPS architecture, and the DEC alpha architecture are implemented, the corresponding simulator identifications can be displayed in sequence in the simulation support list, where the simulator identifications can be respectively: qemu-system-x86_64, qemu-system-arm, qemu-system-mips, and qemu-system-alpha, although the actual supported processor architecture and corresponding simulator identification is not limited thereto.
Optionally, according to an actual application scenario, the above management method may be implemented based on a preset virtual operating system simulator and virtualization technology (Virtualization Technology, VT), alternatively, VT may be an Intel virtualization technology (IntelVT), or may be an AMD virtualization technology (AMD-V technology), where IntelVT may enable one CPU to operate like multiple CPUs running in parallel; AMD-V technology is a group of hardware expansion and hardware auxiliary virtualization technology for an x86 processor system architecture, and corresponding virtualization technology can be selected according to actual application scenarios, so that acceleration can be realized through the virtualization technology, the AMD-V technology can be used for relatively complex CPU and memory virtualization, a preset virtual operating system simulator can be used for I/O virtualization, so that the running performance of a client system can be improved, and of course, the actual implementation mode is not limited to this.
S502, responding to a selection instruction for identifying the target simulator in the simulation support list, and determining a source code file corresponding to the target simulator.
S503, compiling and generating a target simulator according to the source code file corresponding to the target simulator, and adding the target simulator identification into a simulator list.
Based on the displayed simulation instruction list, a user can select any simulator identifier in the simulation support list as a target simulator identifier to generate a selection instruction for the target simulator identifier, and a source code file corresponding to the target simulator can be determined in response to the selection instruction; and the source code file can be compiled, a target simulator is installed and generated, and the target simulator identification is added into a simulator list, so that a user can preview at least one simulator identification capable of simulating a processor architecture through the simulator list, and the user can conveniently start different simulators according to actual application requirements.
In summary, by applying the embodiment of the application, the installation process of the simulator can be simplified, so that a user can quickly compile and install the simulator without configuring a plurality of parameters in a manual compiling mode when compiling the simulator, and the user experience is improved.
Fig. 6 is a flowchart of another management method based on a system virtual machine according to an embodiment of the present application. Optionally, as shown in fig. 6, the method further includes:
s601, in response to a closing instruction of the client system, displaying a client system starting list, wherein the client system running list comprises all client system identifiers which are started currently.
S602, closing the target client system in response to a selection instruction of the target client system identification in the client system operation list.
Based on the above embodiments, it may be appreciated that for a client system that has been started, the user may also turn it off, alternatively the user may act on a turn-off control by clicking, long pressing, etc. to generate a turn-off instruction, in response to which a client system start-up list may be displayed in which the user may preview all client system identifications that have been currently started, the user may select at least one client system identification in the client system list as a target client system identification to generate a selection instruction for the target client system identification, and in response to which the target client system may be turned off.
Fig. 7 is a flowchart of another management method based on a system virtual machine according to an embodiment of the present application. Optionally, as shown in fig. 7, the method further includes:
s701, in response to a deletion instruction of the client system, displaying a client system installation list including all the client system identifications installed.
S702, determining a client system configuration file and an image file corresponding to the target client system in response to a selection instruction of the target client system identification in the client system installation list.
S703, deleting the client system configuration file and the image file corresponding to the target client system.
In some embodiments, according to the needs of the user, the installed client system may also be deleted by the user, alternatively, the user may click, long press, etc. on a deletion control to generate a deletion instruction of the client system, in response to the deletion instruction of the client system, a client system installation list may be displayed, through which the user may preview all installed client system identifiers, and then the user may select at least one client system identifier in the client system list as a target client system identifier to generate a corresponding selection instruction, in response to the selection instruction, may determine a client system configuration file and an image file corresponding to the target client system, and may further delete the client system configuration file and the image file corresponding to the target client system.
When the user selects the target client system identifier from the client system operation list or the client system installation list, the user may select a plurality of client system identifiers as the target client system identifier, and further, when the closing operation or the deleting operation is performed, the plurality of client systems may be simultaneously closed or deleted, thereby improving the closing or deleting efficiency of the user. In an alternative implementation manner, the user can also select all client system identifiers which are started or installed in the client system operation list or the client system installation list, so that all client systems can be quickly closed or deleted, and the operation efficiency of the user is improved.
In some embodiments, the management method based on the system virtual machine may be installed in the host machine in a management system, a management application, or the like, which is not limited herein.
In summary, in the management method based on the system virtual machine provided by the embodiment of the application, different processor architectures can be simulated through the simulator, so that the creation, starting, closing, deleting and migration operations of the client system are quicker, and the operation efficiency and the user experience are improved.
Fig. 8 is a schematic diagram of a functional module of a management device based on a system virtual machine according to an embodiment of the present application, where the basic principle and the technical effects of the device are the same as those of the foregoing corresponding method embodiment, and for brevity, no part is mentioned in this embodiment, and reference may be made to corresponding contents in the method embodiment. As shown in fig. 8, the system virtual machine-based management apparatus 200 includes:
a display module 210 for displaying a simulator list in response to a creation instruction of the client system, the simulator list comprising at least one simulator identification of the simulatable processor architecture;
a response module 220, configured to determine a start parameter of the target simulator in response to a selection instruction for the target simulator identifier in the simulator list, and start the target simulator according to the start parameter of the target simulator;
a determining module 230 for determining an image file of the target client system in response to an installation instruction of the client system, the client system installation instruction including the target client system identification;
and the installation module 240 is configured to install the target client system in the target simulator according to the image file of the target client system, and store the configuration parameter information of the installed target client system into the corresponding client system configuration file.
Fig. 9 is a schematic functional block diagram of another management apparatus based on a system virtual machine according to an embodiment of the present application. In an alternative embodiment, as shown in fig. 9, the management device 200 further includes: a startup module 250 for displaying a client system list in response to a startup instruction of the client system, the client system list including at least one installed client system identification; determining configuration parameter information of a target client system and starting parameters of a target simulator corresponding to the target client system in response to a selection instruction of the target client system identifier in the client system list; and starting the target simulator according to the starting parameters of the target simulator, and starting the target client system in the target simulator according to the configuration parameter information of the target client system.
In an alternative embodiment, the management device further includes: an export module 260 for displaying a client system export list in response to export instructions of the client systems, the client system export list including all client system identifications installed; responding to a selection instruction for a target client system identifier in a client system export list, respectively acquiring a client system configuration file and a target simulator starting configuration file corresponding to the target client system, wherein the target simulator starting configuration file comprises starting parameters of a target simulator; and packaging the client system configuration file corresponding to the target client system and the target simulator starting configuration file, generating a target file, and exporting the target file to a preset position.
In an alternative embodiment, the management device further includes: a loading module for displaying a client system load list in response to a load instruction of the client system, the client system load list including at least one client system identification loadable; determining a target file corresponding to the target client system identifier in response to a selection instruction of the target client system identifier in the client system loading list; decompressing the target file and loading the target client system according to the decompressed target file.
In an alternative embodiment, the management device further includes: the compiling module is used for responding to a compiling instruction of the simulator, displaying a simulation support list based on a preset virtual operating system simulator, wherein the simulation support list comprises simulator identifications corresponding to at least one processor architecture supported by the preset virtual operating system simulator; responding to a selection instruction for identifying a target simulator in the simulation support list, and determining a source code file corresponding to the target simulator; and compiling and generating a target simulator according to the source code file corresponding to the target simulator, and adding the target simulator identification into a simulator list.
In an alternative embodiment, the management device further includes: a closing module, configured to display a client system startup list in response to a closing instruction of the client system, where the client system startup list includes all client system identifiers that have been currently started; the target client system is shut down in response to a selection instruction identified to the target client system in the client system playlist.
In an alternative embodiment, the management device further includes: a deletion module for displaying a client system installation list including all client system identifications installed in response to a deletion instruction of the client system; determining a client system configuration file and an image file corresponding to the target client system in response to a selection instruction of the target client system identification in the client system installation list; and deleting the client system configuration file and the mirror image file corresponding to the target client system.
The foregoing apparatus is used for executing the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
The above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more microprocessors (Digital Signal Processor, abbreviated as DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), or the like. For another example, when a module above is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 10, the electronic device may include: processor 510, storage medium 520, and bus 530, storage medium 520 storing machine-readable instructions executable by processor 510, processor 510 and storage medium 520 communicating over bus 530 when the electronic device is running, processor 510 executing machine-readable instructions to perform the steps of the method embodiments described above. The specific implementation manner and the technical effect are similar, and are not repeated here.
Optionally, the present application further provides a storage medium, on which a computer program is stored, which when being executed by a processor performs the steps of the above-described method embodiments. The specific implementation manner and the technical effect are similar, and are not repeated here.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform part of the steps of the methods of the embodiments of the application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The above is only a preferred embodiment of the present application, and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application. It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. The above is only a preferred embodiment of the present application, and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (8)

1. The management method based on the system virtual machine is characterized by comprising the following steps:
in response to a creation instruction of the client system, displaying a simulator list, the simulator list comprising at least one simulator identification of a simulatable processor architecture;
responding to a selection instruction for identifying a target simulator in the simulator list, determining a starting parameter of the target simulator, and starting the target simulator according to the starting parameter of the target simulator;
determining an image file of a target client system in response to an installation instruction of the client system, the client system installation instruction including a target client system identification;
installing the target client system in the target simulator according to the mirror image file of the target client system, and storing the configuration parameter information of the installed target client system into a corresponding client system configuration file;
in response to a client system export instruction, displaying a client system export list that includes all client system identifications installed;
responding to a selection instruction of the target client system identification in the client system export list, respectively acquiring a client system configuration file and a target simulator starting configuration file corresponding to the target client system, wherein the target simulator starting configuration file comprises starting parameters of the target simulator;
Packaging a client system configuration file corresponding to the target client system and a target simulator starting configuration file, generating a target file, and exporting the target file to a preset position;
the method further comprises, before displaying the list of simulators in response to the creation instruction of the client system:
responding to a simulator compiling instruction, and displaying a simulation support list based on a preset virtual operating system simulator, wherein the simulation support list comprises simulator identifications corresponding to at least one processor architecture supported by the preset virtual operating system simulator;
determining a source code file corresponding to the target simulator in response to a selection instruction for the target simulator identification in the simulation support list;
and compiling and generating the target simulator according to the source code file corresponding to the target simulator, and adding the target simulator identification into a simulator list.
2. The method according to claim 1, wherein the method further comprises:
in response to a start-up instruction of the client system, displaying a client system list, the client system list comprising at least one installed client system identification;
Determining configuration parameter information of the target client system and starting parameters of a target simulator corresponding to the target client system in response to a selection instruction of the target client system identifier in the client system list;
and starting the target simulator according to the starting parameters of the target simulator, and starting the target client system in the target simulator according to the configuration parameter information of the target client system.
3. The method according to claim 1, wherein the method further comprises:
in response to a load instruction of a client system, displaying a client system load list, the client system load list including at least one client system identification that is loadable;
determining a target file corresponding to the target client system identifier in response to a selection instruction of the target client system identifier in the client system loading list;
decompressing the target file and loading the target client system according to the decompressed target file.
4. The method according to claim 2, wherein the method further comprises:
in response to a client system shutdown instruction, displaying a client system startup list, the client system startup list including all client system identifications that have been currently started;
And closing the target client system in response to a selection instruction of the target client system identification in the client system operation list.
5. The method according to any one of claims 1-4, further comprising:
in response to a deletion instruction of the client system, displaying a client system installation list, wherein the client system installation list comprises all installed client system identifications;
determining a client system configuration file and an image file corresponding to the target client system in response to a selection instruction of the target client system identification in the client system installation list;
and deleting the client system configuration file and the mirror image file corresponding to the target client system.
6. A system virtual machine-based management apparatus, comprising:
a display module for displaying a simulator list in response to a creation instruction of the client system, the simulator list comprising at least one simulator identification of a simulatable processor architecture;
the response module is used for responding to a selection instruction of the target simulator identification in the simulator list, determining starting parameters of the target simulator and starting the target simulator according to the starting parameters of the target simulator;
A determining module for determining an image file of a target client system in response to an installation instruction of the client system, the client system installation instruction including a target client system identification;
the installation module is used for installing the target client system in the target simulator according to the mirror image file of the target client system and storing the configuration parameter information of the installed target client system into the corresponding client system configuration file;
the display module is further used for responding to the export instruction of the client system, and displaying a client system export list, wherein the client system export list comprises all installed client system identifications;
the determining module is further configured to, in response to a selection instruction for the target client system identifier in the client system export list, respectively obtain a client system configuration file and a target simulator start configuration file corresponding to the target client system, where the target simulator start configuration file includes start parameters of the target simulator;
the response module is further used for packaging the client system configuration file corresponding to the target client system and the target simulator starting configuration file, generating a target file and exporting the target file to a preset position;
The display module is further used for responding to a simulator compiling instruction, displaying a simulation support list based on a preset virtual operating system simulator, wherein the simulation support list comprises simulator identifications corresponding to at least one processor architecture supported by the preset virtual operating system simulator;
the determining module is further configured to determine a source code file corresponding to the target simulator in response to a selection instruction for the target simulator identifier in the simulation support list;
and the response module is also used for compiling and generating the target simulator according to the source code file corresponding to the target simulator, and adding the target simulator identification into a simulator list.
7. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the system virtual machine-based management method of any one of claims 1-5.
8. A storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the system virtual machine based management method of any of claims 1-5.
CN202011644412.0A 2020-12-31 2020-12-31 Management method and device based on system virtual machine, electronic equipment and storage medium Active CN112667361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011644412.0A CN112667361B (en) 2020-12-31 2020-12-31 Management method and device based on system virtual machine, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011644412.0A CN112667361B (en) 2020-12-31 2020-12-31 Management method and device based on system virtual machine, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112667361A CN112667361A (en) 2021-04-16
CN112667361B true CN112667361B (en) 2023-10-17

Family

ID=75412476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011644412.0A Active CN112667361B (en) 2020-12-31 2020-12-31 Management method and device based on system virtual machine, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112667361B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113391879A (en) * 2021-06-16 2021-09-14 锐捷网络(苏州)有限公司 Virtual system switching method and host machine
CN114579193B (en) * 2022-03-08 2024-01-12 国泰新点软件股份有限公司 Multi-system loading method, device, equipment and storage medium
CN116302209B (en) * 2023-05-15 2023-08-04 阿里云计算有限公司 Method for accelerating starting of application process, distributed system, node and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088367A (en) * 2010-12-10 2011-06-08 北京世纪互联工程技术服务有限公司 Method for quickly deploying in virtualization environment
CN102968331A (en) * 2012-11-27 2013-03-13 中标软件有限公司 Virtual machine management system and file access method
CN103777999A (en) * 2014-01-09 2014-05-07 深圳市星策网络科技有限公司 Android software simulation method and device
CN105426753A (en) * 2015-11-18 2016-03-23 北京北信源软件股份有限公司 Method, device and system for detecting installed software in agentless guest virtual machine
CN107463427A (en) * 2017-06-29 2017-12-12 北京北信源软件股份有限公司 The acquisition methods and device of a kind of VME operating system type and version
CN107844362A (en) * 2017-11-14 2018-03-27 浪潮(北京)电子信息产业有限公司 Virtualize system, method, virtual machine and the readable storage medium storing program for executing of TPM equipment
WO2018090528A1 (en) * 2016-11-21 2018-05-24 杨正 Method and system for mirror image package preparation and application operation
CN109144776A (en) * 2018-07-20 2019-01-04 新华三技术有限公司 Virtual machine image file processing method and processing device
CN111796912A (en) * 2020-07-09 2020-10-20 山东省计算中心(国家超级计算济南中心) Virtualization performance optimization method and system for storage input/output device of Shenwei platform
CN111831395A (en) * 2020-07-09 2020-10-27 西安交通大学 Behavior monitoring and analyzing method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9317314B2 (en) * 2010-06-29 2016-04-19 Microsoft Techology Licensing, Llc Techniques for migrating a virtual machine using shared storage
CN104298559B (en) * 2014-09-30 2018-03-02 深信服科技股份有限公司 The method and device of physical host system virtualization

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102088367A (en) * 2010-12-10 2011-06-08 北京世纪互联工程技术服务有限公司 Method for quickly deploying in virtualization environment
CN102968331A (en) * 2012-11-27 2013-03-13 中标软件有限公司 Virtual machine management system and file access method
CN103777999A (en) * 2014-01-09 2014-05-07 深圳市星策网络科技有限公司 Android software simulation method and device
CN105426753A (en) * 2015-11-18 2016-03-23 北京北信源软件股份有限公司 Method, device and system for detecting installed software in agentless guest virtual machine
WO2018090528A1 (en) * 2016-11-21 2018-05-24 杨正 Method and system for mirror image package preparation and application operation
CN107463427A (en) * 2017-06-29 2017-12-12 北京北信源软件股份有限公司 The acquisition methods and device of a kind of VME operating system type and version
CN107844362A (en) * 2017-11-14 2018-03-27 浪潮(北京)电子信息产业有限公司 Virtualize system, method, virtual machine and the readable storage medium storing program for executing of TPM equipment
CN109144776A (en) * 2018-07-20 2019-01-04 新华三技术有限公司 Virtual machine image file processing method and processing device
CN111796912A (en) * 2020-07-09 2020-10-20 山东省计算中心(国家超级计算济南中心) Virtualization performance optimization method and system for storage input/output device of Shenwei platform
CN111831395A (en) * 2020-07-09 2020-10-27 西安交通大学 Behavior monitoring and analyzing method and system

Also Published As

Publication number Publication date
CN112667361A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN112667361B (en) Management method and device based on system virtual machine, electronic equipment and storage medium
CN111492347B (en) System and method for updating a container
Sahni et al. A hybrid approach to live migration of virtual machines
CN107577475B (en) Software package management method and system of data center cluster system
US8949585B2 (en) In-place conversion of virtual machine state
EP1380947B1 (en) Method for forking or migrating a virtual machine
Graziano A performance analysis of Xen and KVM hypervisors for hosting the Xen Worlds Project
US11665064B2 (en) Utilizing machine learning to reduce cloud instances in a cloud computing environment
US9588793B2 (en) Creating new virtual machines based on post-boot virtual machine snapshots
EP1615126A2 (en) Systems and methods for development of emulated devices in a virtual machine environment
US20120167090A1 (en) Hypervisor for starting a virtual machine
CN115269057B (en) Method for generating configuration file of isolation system based on equipment tree
Lim et al. NEVE: Nested virtualization extensions for ARM
US11693722B2 (en) Fast memory mapped IO support by register switch
CN107077379A (en) A kind of virtual machine creation method and device
KR101665976B1 (en) Apparatus and Method for Para-Virtualizing Automatically OS Kernel
CN116755713A (en) Application program generation method, device, equipment and storage medium
CN111459606A (en) Method for quickly creating virtual machine under virtualization and server
US9436489B2 (en) Virtual machine data replication with shared resources
Sun et al. Performance Comparison of Multiple Containers Running Artificial Intelligence Applications
CN114237814A (en) Virtual machine migration method and device across virtualization platforms and computer equipment
Kumar et al. An open source and practical approach to X2X linux workload migration
Zhang et al. Applying Embedded Virtualization Technologies for the Next Generation Industrial Edge Applications
US20220405242A1 (en) Method for processing a system image
US10956175B2 (en) Boot process modification

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