CN112667361A - 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
CN112667361A
CN112667361A CN202011644412.0A CN202011644412A CN112667361A CN 112667361 A CN112667361 A CN 112667361A CN 202011644412 A CN202011644412 A CN 202011644412A CN 112667361 A CN112667361 A CN 112667361A
Authority
CN
China
Prior art keywords
client system
target
simulator
list
instruction
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.)
Granted
Application number
CN202011644412.0A
Other languages
Chinese (zh)
Other versions
CN112667361B (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 North Source Software Co ltd
Original Assignee
Beijing North Source Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing North Source Software Co ltd filed Critical Beijing North Source Software Co 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

Images

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 simulator list in response to a creation instruction of the client system; responding to a selection instruction of the target simulator identifier 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 a target client system in response to an installation instruction of the client system; 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, 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, an electronic device, and a storage medium based on a system virtual machine.
Background
Virtualization Technology (VT), in short, allows a CPU to work as if multiple CPUs are running in parallel, so that multiple operating systems can run simultaneously in one computer. In practical application, a complete operating system is installed and operated by a virtual processor and a peripheral device through a virtualization technology, so that the problems of testing and development without hardware support can be solved.
Currently, when a processor and peripherals are virtualized by a virtualization technology, the virtualization technology is generally implemented based on a KVM virtual machine, the virtual machine in the KVM is implemented as a conventional Linux process, the virtual machine 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 problem of poor applicability exists.
Disclosure of Invention
In view of the above-mentioned shortcomings in the prior art, an object of the present application is to provide a management method, an apparatus, 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 solutions adopted in the embodiments of the present application are as follows:
in a first aspect, the present invention provides a management method based on a system virtual machine, including:
displaying a simulator list in response to a create instruction of the client system, the simulator list including a simulator identification of at least one simulatable processor architecture;
responding to a selection instruction of a target simulator identifier in the simulator list, determining starting parameters of a target simulator, and starting the target simulator according to the starting parameters of the target simulator;
determining an image file of a target client system in response to an installation instruction of the client system, wherein the installation instruction of the client system comprises an identification of the target client system;
and installing the target client system in the target simulator according to the 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 an alternative embodiment, the method further comprises:
displaying a client system list in response to a start instruction of a client system, wherein the client system list comprises at least one client system identifier which is installed;
responding to a selection instruction of the target client system identification in the client system list, and determining configuration parameter information of the target client system and starting parameters of a target simulator corresponding to the target client system;
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:
displaying a client system export list in response to an export instruction of a client system, the client system export list including all client system identifications installed;
responding to a selection instruction of the target client system identifier in the client system export list, and 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 to generate a target file, and exporting the target file to a preset position.
In an alternative embodiment, the method further comprises:
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;
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;
and decompressing the target file, and loading the target client system according to the decompressed target file.
In an alternative embodiment, before displaying 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;
responding to a selection instruction of the target simulator identification in the simulation support list, and determining a source code file corresponding to the target simulator;
and compiling and generating the target simulator according to the source code file corresponding to the target simulator, and adding the target simulator identifier to a simulator list.
In an alternative embodiment, the method further comprises:
displaying a client system startup list in response to a shutdown instruction of a client system, wherein the client system startup list comprises all client system identifications which are started currently;
shutting down the target client system in response to a selection instruction of the target client system identification in the client system playlist.
In an alternative embodiment, the method further comprises:
displaying a client system installation list in response to a deletion instruction of a client system, wherein the client system installation list comprises all client system identifications installed;
responding to a selection instruction of the target client system identifier in the client system installation list, and determining a client system configuration file and an image file corresponding to the target client system;
and deleting the client system configuration file and the 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 create instruction of a client system, the simulator list including simulator identifications of at least one simulatable processor architecture;
the response module is used for responding to a selection instruction of the target simulator identifier 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 optional embodiment, the management apparatus further comprises: a start module for displaying a client system list in response to a start instruction of a client system, the client system list including at least one client system identifier that has been installed;
responding to a selection instruction of the target client system identification in the client system list, and determining configuration parameter information of the target client system and starting parameters of a target simulator corresponding to the target client system;
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 optional embodiment, the management apparatus further comprises: a export module to display a client system export list in response to an export instruction of a client system, the client system export list including all client system identifications installed;
responding to a selection instruction of the target client system identifier in the client system export list, and 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 to generate a target file, and exporting the target file to a preset position.
In an optional embodiment, the management apparatus further comprises: a loading module for displaying a client system loading list in response to a loading instruction of a client system, the client system loading list including at least one client system identifier that is loadable;
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;
and decompressing the target file, and loading the target client system according to the decompressed target file.
In an optional embodiment, the management apparatus further comprises: the simulator comprises a compiling module, a simulation module and a simulation module, wherein the compiling module is used for responding to simulator compiling instructions, displaying a simulation support list based on a preset virtual operating system simulator, and 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 of the target simulator identification in the simulation support list, and determining a source code file corresponding to the target simulator;
and compiling and generating the target simulator according to the source code file corresponding to the target simulator, and adding the target simulator identifier to a simulator list.
In an optional embodiment, the management apparatus further comprises: a shutdown module, configured to respond to a shutdown instruction of a client system, to display a client system startup list, where the client system running list includes all client system identifiers that have been currently started;
shutting down the target client system in response to a selection instruction of the target client system identification in the client system playlist.
In an optional embodiment, the management apparatus further comprises: a deletion module for displaying a client system installation list in response to a deletion instruction of a client system, the client system installation list including all client system identifications installed;
responding to a selection instruction of the target client system identifier in the client system installation list, and determining a client system configuration file and an image file corresponding to the target client system;
and deleting the client system configuration file and the image file corresponding to the target client system.
In a third aspect, the present invention provides an electronic device comprising: the system comprises a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when an electronic device runs, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the steps of the system virtual machine-based management method according to any one of the preceding embodiments.
In a fourth aspect, the present invention provides a storage medium, on which a computer program is stored, where the computer program is executed by a processor to execute the steps of the management method based on a system virtual machine according to any one of the foregoing embodiments.
The beneficial effect of this application is:
in the management method, the management device, the electronic device and the storage medium based on the system virtual machine provided by the embodiment of the application, a simulator list is displayed by responding to a creation instruction of a client system, wherein the simulator list comprises at least one simulator identifier capable of simulating a processor architecture; responding to a selection instruction of the target simulator identifier 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 a target client system in response to an installation instruction of the client system, wherein the installation instruction of the client system comprises an identification of the target client system; according to the method and the system for simulating the configuration parameters of the target client system, the target client system is installed in the target simulator according to the mirror image file of the target client system, 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 required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic flowchart of a management method based on a system virtual machine according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another management method based on a system virtual machine according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another management method based on a system virtual machine according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another management method based on a system virtual machine according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another management method based on a system virtual machine according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another management method based on a system virtual machine according to an embodiment of the present application;
fig. 7 is a schematic flowchart of another management method based on a system virtual machine according to an embodiment of the present application;
fig. 8 is a functional module schematic diagram of a management apparatus based on a system virtual machine according to an embodiment of the present application;
fig. 9 is a functional module schematic diagram of another management apparatus 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
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Fig. 1 is 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 any host that can be installed with a host system, such as a notebook computer, a tablet computer, a desktop computer, a palmtop computer, and the like, where the host system may be understood as a system that is directly installed and used on a physical host, and optionally, the system type of the host system may include but is not limited to: a Unix operating system, a Linux operating system, a Windows operating system, a VMS operating system, etc., without limitation. 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 a simulator identification of at least one simulatable processor architecture.
Where a client system may be understood as an operating system running in a host system, the system types of the client system may include, but are not limited to: a Unix operating system, a Linux operating system, a Windows operating system, a VMS operating system, and the like. Optionally, the system type of the client system may be different from that 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 not limited thereto.
Processor architectures may include, but are not limited to, X86_64, ARM (advanced RISC machines) architectures, MIPS architectures (Millons of instruments Per Second), DEC alpha (alpha), PowerPC (Performance Optimization With Enhanced RISC-Performance Computing), and the like.
For a host running a host system, the creation instruction of the client system is used to create the client system on the host system, and in some embodiments, the user may create the control by clicking, long-pressing, or double-clicking, which is not limited herein; in response to a creation instruction of a client system, a simulator list may be displayed, where the simulator list may include at least one simulator identifier capable of simulating a processor architecture, so that a user may select a target simulator to start based on the displayed simulator list, and may virtualize different processor architectures and hardware devices in a host environment by starting the target simulator, thereby providing a customized virtualized installation environment for some operating systems highly dependent on a special hardware facility, further providing a system foundation for application testing and development thereon, and also improving the utilization rate of resources on the 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, determine starting parameters of a target simulator according to the selected target simulator identifier, and further start the target simulator according to the starting parameters of the target simulator.
Alternatively, the startup parameters of the target simulator may include, but are not limited to: simulator memory parameters, simulator kernel parameters, simulator version numbers, simulator image parameters, simulator network parameters and the like, so that the target simulator can be started according to the starting parameters.
S103, in response to the installation instruction of the client system, determining the image file of the target client system, wherein the installation instruction of the client system comprises the identification of the target client system.
The installation instructions of the client system are used to instruct installation of the target client system, and in response to the installation instructions, the image file of the target client system may be determined according to the target client system identification, and 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 multiple client systems may be pre-imported in a preset directory, and at installation, the image file of the target client system may be determined in the preset directory according to an 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 in the configuration file of the target client system. For example, when a first client system is installed, the configuration parameter information of the first client system may be stored in a first client system configuration file, and when a second client system is installed, the configuration parameter information of the second client system may be stored in a second client system configuration file, so that the configuration parameter information corresponding to different client systems can be managed in a file-by-file manner.
Of course, it should be noted that, according to an actual application scenario, the host may also start multiple simulators simultaneously, and each simulator may have one or more client systems installed therein, which is not limited herein. It can be understood that, when the client system is installed based on the embodiment of the present application, the installed client system does not need to depend on the processor architecture of the host, and the applicability of the management method and the resource utilization rate of the host can be improved; and the user is not required to configure complicated installation starting parameters, and the method has the characteristics of quick and efficient installation.
To sum up, the management method based on the system virtual machine provided by the embodiment of the present application includes: displaying a simulator list in response to a create instruction of the client system, the simulator list including a simulator identification of at least one simulatable processor architecture; responding to a selection instruction of the target simulator identifier 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 a target client system in response to an installation instruction of the client system, wherein the installation instruction of the client system comprises an identification of the target client system; according to the method and the system for simulating the configuration parameters of the target client system, the target client system is installed in the target simulator according to the mirror image file of the target client system, and the configuration parameter information of the installed target client system is stored in the corresponding client system configuration file.
Fig. 2 is a schematic flowchart of another management method based on a system virtual machine according to an embodiment of the present disclosure. 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 client system identifier which is installed.
S202, in response to a selection instruction of the target client system identification in the client system list, determining configuration parameter information of the target client system and starting parameters of a target simulator corresponding to the target client system.
Based on the above embodiment, after at least one client system is installed through the target simulator, any client system may be further started, optionally, 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 list of client systems may be displayed, where the list of client systems may include at least one client system identifier that is installed on the current host system.
In some embodiments, based on the displayed list of client systems, the user may select any client system identifier in the list of client systems as the target client system identifier, and in response to the selection instruction, configuration parameter information of the target client system and start-up parameters of a target simulator corresponding to the target client system may be determined. It can be understood 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 simulator has the target client system installed therein.
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 start parameters of the target simulator are determined, the target simulator may be started according to the start 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 as to implement the instant start of the target client system.
By applying the embodiment of the application, a user can quickly and efficiently start one or more installed client systems according to 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, the memory size of the target client system may be modified, the updated configuration parameter information of the target client system is obtained, and the target client system may be started in the target simulator according to the updated configuration parameter information of the target client system.
Fig. 3 is a schematic 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, in order to implement fast migration of the client system, the method further includes:
s301, responding to the export instruction of the client system, displaying a client system export list, wherein the client system export list comprises all client system identifications installed.
In some application scenarios, if the user needs to migrate the installed client system, that is, migrate the installed client system on the 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, an export list of the client system may be displayed, where the export list of the client system may include all client system identifiers that have been installed, so that the user may make a quick selection.
S302, responding to a selection instruction of the target client system identifier in the client system export list, and respectively acquiring a client system configuration file and a target simulator starting configuration file corresponding to the target client system.
Wherein the target simulator start-up profile includes start-up parameters of the target simulator.
Based on the displayed client system export list, the user can select any client system identifier as a target client system identifier, generate a selection instruction, and in response to the selection instruction, can respectively acquire a client system configuration file corresponding to the target client system and a target simulator starting configuration file corresponding to the target client system, wherein the target simulator starting configuration file can include starting parameters of the target simulator. Optionally, each simulator may correspond to a corresponding simulator start configuration file, so that when the start parameter of any simulator is acquired, the simulator start configuration file 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 to generate a target file, and exporting the target file to a preset position.
After a client system configuration file corresponding to a target client system and a target simulator starting configuration file are obtained, the two configuration files can be packaged to generate a target file, and the target file is exported to a preset position.
Fig. 4 is a schematic 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, responding to a loading instruction of the client system, displaying a client system loading list, wherein the client system loading list comprises at least one client system identification which can be loaded.
S402, in response to the selection instruction of the target client system identification in the client system loading list, 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 foregoing embodiment, if the target file is obtained through another host system, optionally, the user may copy the target file to a preset loading position, and add the target client system identifier to the client system loading list in response to the copy operation, so that the user may preview all the loadable client system identifiers through the client system loading list.
When the target file is further installed, a user can act on a loading control to generate a loading instruction by clicking, long pressing and the like, a client system loading list can be displayed in response to the loading instruction, the 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 decompression can be performed in a corresponding mode according to a target file packaging mode, 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, during loading, the target simulator may be started first according to the target simulator start configuration file in the target file, and then the target client system may be started in the target simulator according to the client system configuration file corresponding to the target client system in the target file, so as to ensure that the client system may be started correctly based on the virtual environment simulated by the target simulator.
Fig. 5 is a schematic 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, 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.
Optionally, the preset virtual operating system emulator may be a QEMU emulation processor, and the QEMU is used as a general open-source computer emulator and virtualizer, and includes two operating modes: the system comprises a user mode and a system mode, wherein in the user mode, Linux programs compiled for different central processing units can be started; under the system mode, the system can simulate the whole computer system, including a central processing unit and other peripheral equipment.
The application is described by taking a QEMU simulation processor as an example, where the simulator compiling instruction is used to instruct to compile the simulator, a user may act on the compiling control by clicking, long pressing, and the like to generate the simulator compiling instruction, and in response 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, the QEMU simulation processor supports: x86_64, ARM, MIPS and DEC alpha, the corresponding simulator id can be sequentially displayed in the simulation support list as: qemu-system-x86_64, qemu-system-arm, qemu-system-mips and qemu-system-alpha, although the actual supported processor architecture and corresponding simulator identification content are not limited thereto.
Optionally, according to an actual application scenario, the management method may be implemented based on a predetermined virtual operating system simulator and Virtualization Technology (VT), and optionally, the VT may be Intel Virtualization Technology (Intel VT) or AMD Virtualization Technology (AMD-V Technology), where the Intel VT may make one CPU operate as if multiple CPUs are operating in parallel; the AMD-V technology is a set of hardware extension and hardware-assisted virtualization technologies for an x86 processor system architecture, and a corresponding virtualization technology may be selected according to an actual application scenario, so that acceleration may be realized by the virtualization technology, and may be used for relatively complicated CPU and memory virtualization, while a preset virtual operating system simulator may be used for I/O virtualization, so that the operating performance of a client system may be improved, and of course, an actual implementation manner is not limited thereto.
And S502, responding to a selection instruction of the target simulator identifier in the simulation support list, and determining a source code file corresponding to the target simulator.
S503, compiling to generate a target simulator according to the source code file corresponding to the target simulator, and adding the target simulator identifier to the 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 of the target simulator identifier, and in response to the selection instruction, a source code file corresponding to the target simulator can be determined; and then compiling the source code file, installing and generating a target simulator, and adding the target simulator identifier into a simulator list, so that a user can preview the simulator identifier of at least one simulatable processor framework 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 when a user compiles the simulator, the simulator can be quickly compiled and installed without configuring a plurality of parameters in a manual compiling mode, and the user experience is improved.
Fig. 6 is a schematic 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, responding to a closing instruction of the client system, displaying a client system starting list, wherein the client system running list comprises all client system identifications which are started currently.
S602, responding to a selection instruction of the target client system identification in the client system running list, and closing the target client system.
Based on the above embodiments, it can be understood that, for a client system that has already been started, the user may also close the client system, and optionally, the user may act on the close control by clicking, long pressing, or the like to generate a close instruction, in response to the close instruction, a client system start list may be displayed, in the client system start list, the user may preview all client system identifications that have been currently started, and then 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 the selection instruction, the target client system may be closed.
Fig. 7 is a schematic 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, responding to a deletion instruction of the client system, and displaying a client system installation list, wherein the client system installation list comprises all client system identifications installed.
S702, in response to the selection instruction of the target client system identifier in the client system installation list, determining a client system configuration file and an image file corresponding to the target client system.
And S703, deleting the client system configuration file and the mirror image file corresponding to the target client system.
In some embodiments, the user may also be deleted for the installed client system, alternatively, the user may act on the delete control by clicking, long-pressing, etc. to generate a delete instruction for the client system, responsive to the delete instruction for the client system, a client system installation list may be displayed through which the user may preview all client system identifications installed, the user may select at least one client system identification in the list of client systems as a target client system identification to generate a corresponding selection instruction, in response to which client system configuration files and image files corresponding to the target client system may be determined, and further, the client system configuration file and the image file corresponding to the target client system can be deleted.
It should be noted that, when the user selects the target client system identifier in the client system run list or the client system installation list, multiple client system identifiers may also be selected as the target client system identifier, and then when the closing operation or the deleting operation is performed, multiple client systems may be closed or deleted at the same time, so that the closing or deleting efficiency of the user is improved. In an alternative embodiment, the user may also select all client system identifiers that have been started or installed in the client system run list or client system installation list, so that all client systems can be quickly closed or deleted, thereby improving the operating efficiency of the user.
In some embodiments, the management method based on the system virtual machine may be installed in the host in the form of a management system, a management application, and the like, which is not limited herein.
In summary, in the management method based on the system virtual machine provided in the embodiment of the present application, it is achieved that different processor architectures can be simulated through the simulator, so that the creation, start, close, delete, and migration operations of the client system are faster, and the operation efficiency and the user experience are improved.
Fig. 8 is a functional module schematic diagram of a management device based on a system virtual machine according to an embodiment of the present application, the basic principle and the generated technical effect of the management device are the same as those of the corresponding method embodiment, and for brief description, reference may be made to corresponding contents in the method embodiment for a part not mentioned in this 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 client system creation instruction, the simulator list including simulator identifications of at least one simulatable processor architecture;
a response module 220, configured to determine, in response to the selection instruction for the target simulator identifier in the simulator list, a starting parameter of the target simulator, and start the target simulator according to the starting 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 installation instruction of the client system including an identification of the target client system;
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 in the corresponding client system configuration file.
Fig. 9 is a functional module schematic 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 start module 250 for displaying a client system list in response to a start instruction of the client system, the client system list including at least one client system identifier that has been installed; responding to a selection instruction of the client system list to the target client system identification, and determining configuration parameter information of the target client system and starting parameters of a target simulator corresponding to the target client system; 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 optional embodiment, the management apparatus further comprises: an export module 260 for displaying a client system export list in response to an export instruction of the client system, the client system export list including all client system identifications installed; responding to a selection instruction of a target client system identifier in a client system export list, and 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 to generate a target file, and exporting the target file to a preset position.
In an optional embodiment, the management apparatus further comprises: the loading module is used for responding to a loading instruction of the client system and displaying a client system loading list, and the client system loading list comprises at least one client system identification which can be loaded; 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; and decompressing the target file, and loading the target client system according to the decompressed target file.
In an optional embodiment, the management apparatus further comprises: the simulator comprises a compiling module, a simulation module and a simulation module, wherein the compiling module is used for responding to a simulator compiling instruction and displaying a simulation support list based on a preset virtual operating system simulator, and 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 of the target simulator identifier in the simulation support list, and determining a source code file corresponding to the target simulator; and compiling to generate the target simulator according to the source code file corresponding to the target simulator, and adding the target simulator identifier to the simulator list.
In an optional embodiment, the management apparatus further comprises: the shutdown module is used for responding to a shutdown instruction of the client system and displaying a client system startup list, wherein the client system running list comprises all client system identifications which are started currently; the target client system is shut down in response to a selection instruction for the target client system identification in the client system playlist.
In an optional embodiment, the management apparatus further comprises: a deletion module for displaying a client system installation list in response to a deletion instruction of the client system, the client system installation list including all client system identifications installed; responding to a selection instruction of the target client system identifier in the client system installation list, and determining a client system configuration file and an image file corresponding to the target client system; and deleting the client system configuration file and the image file corresponding to the target client system.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules 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 (CPU) or other processor capable of calling program code. For another example, these 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: a processor 510, a storage medium 520, and a bus 530, the storage medium 520 storing machine-readable instructions executable by the processor 510, the processor 510 communicating with the storage medium 520 via the bus 530 when the electronic device is operating, the processor 510 executing the machine-readable instructions to perform the steps of the above-described method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program performs the steps of the above method embodiments. The specific implementation and technical effects are similar, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A management method based on a system virtual machine is characterized by comprising the following steps:
displaying a simulator list in response to a create instruction of the client system, the simulator list including a simulator identification of at least one simulatable processor architecture;
responding to a selection instruction of a target simulator identifier in the simulator list, determining starting parameters of a target simulator, and starting the target simulator according to the starting parameters of the target simulator;
determining an image file of a target client system in response to an installation instruction of the client system, wherein the installation instruction of the client system comprises an identification of the target client system;
and installing the target client system in the target simulator according to the 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.
2. The method of claim 1, further comprising:
displaying a client system list in response to a start instruction of a client system, wherein the client system list comprises at least one client system identifier which is installed;
responding to a selection instruction of the target client system identification in the client system list, and determining configuration parameter information of the target client system and starting parameters of a target simulator corresponding to the target client system;
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 of claim 1, further comprising:
displaying a client system export list in response to an export instruction of a client system, the client system export list including all client system identifications installed;
responding to a selection instruction of the target client system identifier in the client system export list, and 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 to generate a target file, and exporting the target file to a preset position.
4. The method of claim 3, further comprising:
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;
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;
and decompressing the target file, and loading the target client system according to the decompressed target file.
5. The method of claim 1, wherein prior to displaying the list of simulators in response to a client system creation instruction, 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;
responding to a selection instruction of the target simulator identification in the simulation support list, and determining a source code file corresponding to the target simulator;
and compiling and generating the target simulator according to the source code file corresponding to the target simulator, and adding the target simulator identifier to a simulator list.
6. The method of claim 2, further comprising:
displaying a client system startup list in response to a shutdown instruction of a client system, wherein the client system startup list comprises all client system identifications which are started currently;
shutting down the target client system in response to a selection instruction of the target client system identification in the client system playlist.
7. The method according to any one of claims 1-6, further comprising:
displaying a client system installation list in response to a deletion instruction of a client system, wherein the client system installation list comprises all client system identifications installed;
responding to a selection instruction of the target client system identifier in the client system installation list, and determining a client system configuration file and an image file corresponding to the target client system;
and deleting the client system configuration file and the image file corresponding to the target client system.
8. A system virtual machine-based management apparatus, comprising:
a display module for displaying a simulator list in response to a create instruction of a client system, the simulator list including simulator identifications of at least one simulatable processor architecture;
the response module is used for responding to a selection instruction of the target simulator identifier 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.
9. An electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the electronic device runs, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to execute the steps of the system virtual machine based management method according to any one of claims 1 to 7.
10. A storage medium having stored thereon a computer program for performing the steps of the system virtual machine based management method according to any one of claims 1 to 7 when executed by a processor.
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 true CN112667361A (en) 2021-04-16
CN112667361B 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)

Cited By (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
CN114579193A (en) * 2022-03-08 2022-06-03 国泰新点软件股份有限公司 Multi-system loading method, device, equipment and storage medium
CN116302209A (en) * 2023-05-15 2023-06-23 阿里云计算有限公司 Method for accelerating starting of application process, distributed system, node and storage medium

Citations (12)

* 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
US20110320556A1 (en) * 2010-06-29 2011-12-29 Microsoft Corporation Techniques For Migrating A Virtual Machine Using Shared Storage
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
US20160092261A1 (en) * 2014-09-30 2016-03-31 Sangfor Technologies Company Limited Method and system for physical computer system virtualization
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

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110320556A1 (en) * 2010-06-29 2011-12-29 Microsoft Corporation Techniques For Migrating A Virtual Machine Using Shared Storage
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
US20160092261A1 (en) * 2014-09-30 2016-03-31 Sangfor Technologies Company Limited Method and system for physical computer system virtualization
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

Cited By (5)

* 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
CN114579193A (en) * 2022-03-08 2022-06-03 国泰新点软件股份有限公司 Multi-system loading method, device, equipment and storage medium
CN114579193B (en) * 2022-03-08 2024-01-12 国泰新点软件股份有限公司 Multi-system loading method, device, equipment and storage medium
CN116302209A (en) * 2023-05-15 2023-06-23 阿里云计算有限公司 Method for accelerating starting of application process, distributed system, node and storage medium
CN116302209B (en) * 2023-05-15 2023-08-04 阿里云计算有限公司 Method for accelerating starting of application process, distributed system, node and storage medium

Also Published As

Publication number Publication date
CN112667361B (en) 2023-10-17

Similar Documents

Publication Publication Date Title
CN112667361B (en) Management method and device based on system virtual machine, electronic equipment and storage medium
Sahni et al. A hybrid approach to live migration of virtual machines
Graziano A performance analysis of Xen and KVM hypervisors for hosting the Xen Worlds Project
Rodríguez-Haro et al. A summary of virtualization techniques
EP1380947B1 (en) Method for forking or migrating a virtual machine
US9588793B2 (en) Creating new virtual machines based on post-boot virtual machine snapshots
US20060004554A1 (en) Systems and methods for development of emulated devices in a virtual machine environment
CN104951694A (en) Isolation method and apparatus for management virtual machine
CN115269057B (en) Method for generating configuration file of isolation system based on equipment tree
KR101665976B1 (en) Apparatus and Method for Para-Virtualizing Automatically OS Kernel
US10664299B2 (en) Power optimizer for VDI system
Vallée et al. System management software for virtual environments
CN111459606A (en) Method for quickly creating virtual machine under virtualization and server
Wang Can “micro VM” become the next generation computing platform?: Performance comparison between light weight Virtual Machine, container, and traditional Virtual Machine
Deka et al. Application of virtualization technology in IaaS cloud deployment model
Campbell et al. An introduction to virtualization
Wang et al. Reg: An ultra-lightweight container that maximizes memory sharing and minimizes the runtime environment
Sun et al. Performance Comparison of Multiple Containers Running Artificial Intelligence Applications
Kumar et al. An open source and practical approach to X2X linux workload migration
Lubin VM2Docker: automating the conversion from virtual machine to docker container
Mbongue et al. Performance exploration of virtualization systems
Zhang et al. Applying Embedded Virtualization Technologies for the Next Generation Industrial Edge Applications
Wu et al. Vshadow: Promoting Physical Servers into Virtualization World
US10956175B2 (en) Boot process modification
Ray Server Virtualization and Virtual Machine Operating Systems

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