Method for heterogeneous production and operation of loong64 virtual machine
By opening the virtualization acceleration function in the X86 architecture environment, the inter -compilation system kernel and software package, and the operating environment of the virtual machine, the problem of the acquisition and development of the Loong64 architecture hardware environment is solved, and the Loong64 virtual machine is efficiently run under the X86 architecture. The method.
Patent Information
- Application Number
- CN202411410961.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-01-28
AI Technical Summary
Due to the unique design and application fields of the loong64 architecture, there are high costs and technical difficulties in obtaining and developing the hardware environment of the loong64 architecture, which leads to challenges in the development of embedded systems.
Provide a method for providing a heterogeneous production and running Loong64 virtual machine, including opening the virtualization acceleration function on the X86 architecture or the derivative system. Compressed mirror and final root file system, obtain the firmware guidance file and modify the boost menu configuration file, make the Loong64 system mirror through the production tool, and configure the operating environment of the virtual machine to build a installation and operation script to complete the system installation and operation.
The efficient simulation and running Loong64 architecture system in the common X86 architecture environment are realized. It does not need to rely on specific actual hardware servers or desktops to reduce the cost and difficulty of development and debugging.
Smart Images

Figure CN119376855A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of computer virtualization, for example, to a method for heterogeneously producing and running a loong64 virtual machine. Background Art
[0002] The loong64 architecture is a high-performance processor architecture independently developed by China, designed to meet the domestic information industry's demand for independent, secure, and controllable high-performance computing. The loong64 architecture is based on the MIPS instruction set, and has been extensively optimized and expanded on this basis to improve computing performance and energy efficiency. The architecture is widely used in desktop computing, servers, and embedded systems, and has gradually become one of the important computing platforms in China. However, due to its relatively new market position and unique design, there are still certain challenges in obtaining related hardware resources and building a development environment.
[0003] In the prior art, the development of embedded systems usually depends on the hardware environment of the target architecture. However, obtaining the hardware environment of a specific architecture may be costly or technically difficult. In particular, the loong64 architecture faces great challenges in the actual development and debugging process due to its unique design and application field.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may not constitute information of the prior art known to ordinary technicians in the field. Summary of the invention
[0005] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0006] The present disclosure provides a method for heterogeneously creating and running a loong64 virtual machine, the method comprising:
[0007] Enable virtualization acceleration on Debian 12 or derivative systems with x86 architecture;
[0008] Compile the system kernel and software packages through cross-compilation;
[0009] Make a small root file system compressed image required for system startup;
[0010] Create the final root file system that carries basic software and user software;
[0011] Get the firmware boot file and modify the corresponding boot menu configuration file;
[0012] Use the production tool to create the loong64 system image;
[0013] Configure the environment required for running the loong64 virtual machine on the system;
[0014] Build the installation script and running script of the loong64 system virtual machine, and set the virtual hardware and related configuration parameters required by the virtual machine in the installation script;
[0015] Execute the system installation script to complete the system installation;
[0016] Execute system operation scripts and run the virtual machine of the loong64 architecture system heterogeneously.
[0017] In some embodiments, the virtualization acceleration function is enabled on a debian 12 or derivative system of an x86 architecture, including:
[0018] If it is a physical machine, enable the virtualization function in the BIOS;
[0019] If it is a virtual machine, the host machine BIOS turns on the virtualization function, and sets the corresponding virtual machine to enable the virtualization function in the virtual machine management software.
[0020] In some embodiments, compiling the system kernel and software package by cross-compiling includes:
[0021] Use the cross-compilation toolchain to compile the kernel;
[0022] Configure the lauosc software source to provide download and installation of most commonly used dependency packages, and use the dependency packages to compile the software packages;
[0023] For software packages that are not available in the lauosc source, download the source code for cross-compilation, and modify the source code that does not support the loong64 system to support the loong64 system.
[0024] In some embodiments, the step of making a small root file system compressed image required for system startup includes:
[0025] When making the small root file system compressed image initrd.img, put the modules installed by compiling the kernel in the previous step into the lib / modules directory.
[0026] In some embodiments, the step of making a final root file system carrying basic software and user software includes:
[0027] Use the loong64-based root file system as the final root file system. The loong64-based root file system is obtained from the FTP server under the Debian upstream ports using the debootstrap tool.
[0028] In some embodiments, the firmware boot file uses BOOTLOONGARCH64.EFI, the firmware supported is the new world firmware using the physical address, and the kernel supported is the new world kernel using the EFI stub boot protocol.
[0029] In some embodiments, the method further comprises:
[0030] When using the xorriso tool to create a system image file, use the -e parameter to specify the boot file location so that the system image can be installed in UEFI mode;
[0031] Install virt-manager and binfmt on debian12 or its derivative systems with x86 architecture to support running virtual machines.
[0032] In some embodiments, the installation script and the running script of the loong64 system virtual machine are constructed, and the virtual hardware and related configuration parameters required by the virtual machine are set in the installation script, including:
[0033] Build a system installation script, where the key parameter configuration methods correspond to the cpu type of la464, the machine type of virt, configure spice to support interaction, the BIOS firmware is edk2-loongarch64-code.fd, configure a qcow2 disk image to simulate the system disk, configure the cd device to point to the loong64 system image and set it as the first startup item;
[0034] Build the system running script. The key parameter configuration method corresponds to the CPU type of la464, the machine type of virt, configure spice to support interaction, the BIOS firmware is edk2-loongarch64-code.fd, configure a qcow2 disk image to simulate the system disk, and set the qcow2 disk image to simulate the system disk as the first startup item.
[0035] In some embodiments, executing the system installation script to complete the system installation includes:
[0036] Run Remote Viewer on the host machine to connect to the spice port of the virtual machine to perform human-computer interaction during the loong64 system installation process.
[0037] In some embodiments, the execution system runs a script, heterogeneously running a virtual machine of a loong64 architecture system, including:
[0038] For the running loong64 system that supports ssh remote connection and does not require a graphical interface, delete the spice configuration in the system running script to reduce performance overhead.
[0039] The method for heterogeneously creating and running a loong64 virtual machine provided in the embodiments of the present disclosure can achieve the following technical effects:
[0040] Through cross-compilation and heterogeneous operation, a method is implemented to efficiently simulate and run the loong64 architecture system in a common x86 architecture environment without relying on specific actual hardware servers or desktops. It has important practical significance and application value.
[0041] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0043] Figure 1 It is a flowchart of a method for heterogeneously making and running a loong64 virtual machine provided by an embodiment of the present disclosure;
[0044] Figure 2 It is a structural diagram of a system for heterogeneously manufacturing and running a loong64 virtual machine provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0045] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0046] The terms "first", "second", etc. in the embodiments of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0047] Unless otherwise stated, the term "plurality" means two or more.
[0048] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0049] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0050] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0051] The following describes the method and system for heterogeneously producing and running a loong64 virtual machine provided by the embodiments of the present disclosure in conjunction with the accompanying drawings.
[0052] Figure 1 It is a flowchart of a method for heterogeneously making and running a loong64 virtual machine provided by an embodiment of the present disclosure.
[0053] like Figure 1 As shown, the method for heterogeneously making and running a loong64 virtual machine may include:
[0054] S01, enable virtualization acceleration function on Debian 12 or derivative systems of x86 architecture;
[0055] S02, compile the system kernel and software packages by cross-compiling;
[0056] S03, making a small root file system compressed image required for system startup;
[0057] S04, making a final root file system carrying basic software and user software;
[0058] S05, obtaining a firmware boot file and modifying a corresponding boot menu configuration file;
[0059] S06, make the loong64 system image using the production tool;
[0060] S07, configuring the environment required for running the loong64 virtual machine on the system;
[0061] S08, constructing an installation script and a running script for the loong64 system virtual machine, and setting virtual hardware and related configuration parameters required by the virtual machine in the installation script;
[0062] S09, execute the system installation script to complete the system installation;
[0063] S10, execute the system operation script, and run the virtual machine of the loong64 architecture system heterogeneously.
[0064] In the present disclosure, in the first stage, the virtualization acceleration function is first enabled on the debian12 or derivative system of the x86 architecture, and then the system kernel and software package are compiled by cross-compilation, and then the small root file system compression image required for system startup is produced, and then the final root file system carrying the basic software and user software is produced, and then the system startup boot image file is obtained and the corresponding startup menu configuration file is modified, and finally the loong64 system image is produced by the production tool; in the second stage, the environment required for the operation of the loong64 virtual machine is first configured on the system, and then the installation script and the running script of the loong64 system virtual machine are constructed, and the virtual hardware and related configuration parameters required by the virtual machine are set in the installation script, and then the installation script is executed to start the system installation process, and finally the system running script is executed to heterogeneously run the virtual machine of the loong64 architecture system. The present invention can complete the production and operation of the loong64 architecture system from scratch without relying on a hardware server or desktop computer of a specific architecture, and has important practical significance and application value.
[0065] In some embodiments, the virtualization acceleration function is enabled on a debian 12 or derivative system of an x86 architecture, including:
[0066] If it is a physical machine, enable the virtualization function in the BIOS;
[0067] If it is a virtual machine, the host machine BIOS turns on the virtualization function, and sets the corresponding virtual machine to enable the virtualization function in the virtual machine management software.
[0068] In some embodiments, the system kernel and software packages are compiled by cross-compiling, including:
[0069] Use the cross-compilation toolchain to compile the kernel;
[0070] Configure the lauosc software source to provide download and installation of most commonly used dependency packages, and use the dependency packages to compile the software packages;
[0071] For software packages that are not available in the lauosc source, download the source code for cross-compilation, and modify the source code that does not support the loong64 system to support the loong64 system.
[0072] In some embodiments, making a small root file system compressed image required for system startup includes:
[0073] When making the small root file system compressed image initrd.img, put the modules installed by compiling the kernel in the previous step into the lib / modules directory.
[0074] In some embodiments, making a final root file system carrying basic software and user software includes:
[0075] Use the loong64-based root file system as the final root file system. The loong64-based root file system is obtained from the FTP server under the Debian upstream ports using the debootstrap tool.
[0076] In some embodiments, the firmware boot file uses BOOTLOONGARCH64.EFI, the firmware supported is the new world firmware using the physical address, and the kernel supported is the new world kernel using the EFI stub boot protocol.
[0077] In some embodiments, the above method further comprises:
[0078] When using the xorriso tool to create a system image file, use the -e parameter to specify the boot file location so that the system image can be installed in UEFI mode;
[0079] Install virt-manager and binfmt on debian12 or its derivative systems with x86 architecture to support running virtual machines.
[0080] In some embodiments, the installation script and the running script of the loong64 system virtual machine are constructed, and the virtual hardware and related configuration parameters required by the virtual machine are set in the installation script, including:
[0081] Build a system installation script, where the key parameter configuration methods correspond to the cpu type of la464, the machine type of virt, configure spice to support interaction, the BIOS firmware is edk2-loongarch64-code.fd, configure a qcow2 disk image to simulate the system disk, configure the cd device to point to the loong64 system image and set it as the first startup item;
[0082] Build the system running script. The key parameter configuration method corresponds to the CPU type of la464, the machine type of virt, configure spice to support interaction, the BIOS firmware is edk2-loongarch64-code.fd, configure a qcow2 disk image to simulate the system disk, and set the qcow2 disk image to simulate the system disk as the first startup item.
[0083] In some embodiments, executing the system installation script to complete the system installation includes:
[0084] Run Remote Viewer on the host machine to connect to the spice port of the virtual machine to perform human-computer interaction during the loong64 system installation process.
[0085] In some embodiments, executing a system operation script to heterogeneously run a virtual machine of a loong64 architecture system includes:
[0086] For the running loong64 system that supports ssh remote connection and does not require a graphical interface, delete the spice configuration in the system running script to reduce performance overhead.
[0087] In a specific embodiment, in S01, for debian12 or derivative systems of x86 architecture, if it is a physical machine, the virtualization function needs to be enabled in the BIOS; if it is a virtual machine, in addition to enabling the virtualization function in the host machine BIOS, the virtual machine must also be set to enable the virtualization function in the virtual machine management software.
[0088] In S02, kernel compilation requires the use of a cross-compilation tool chain, which can be downloaded from the open source community or the kernel official website; software package compilation requires the use of dependency packages. Loong64 is a new world system and there is no official debian12 software source support. Therefore, it is necessary to configure the lauosc software source to provide download and installation of most commonly used dependency packages; for software packages that are not available in the lauosc source, it is necessary to download the source code for cross-compilation, and some of the source code needs to be modified to support the loong64 system.
[0089] In S03, when making initrd.img, you need to put the modules installed by compiling the kernel in the previous step into the lib / modules directory.
[0090] In S04, the loong64-based root file system is used as the final root file system, and the debootstrap tool needs to be used to obtain it from the ftp server under the debian upstream ports.
[0091] In S05, the firmware boot file uses BOOTLOONGARCH64.EFI, the supported firmware is the new world firmware using the physical address, and the supported kernel is the new world kernel using the EFI stub boot protocol.
[0092] In S06, when using the xorriso tool to create a system image file, use the -e parameter to specify the boot file location so that the system image is installed using the UEFI method.
[0093] In S07, install virt-manager and binfmt on debian12 or derivative systems of x86 architecture to support running virtual machines.
[0094] In S08, it includes, 1) building a system installation script, and configuring key parameters as follows: cpu type is la464, machine type is virt, configuring spice to support interaction, bios firmware is edk2-loongarch64-code.fd, configuring a qcow2 disk image to simulate a system disk (bootindex=2), configuring the cd device to point to the loong64 system image and setting it as the first startup item (bootindex=1);
[0095] 2) Build the system running script. The key parameter configuration method is the same as above. The difference is to delete the cd device and set the qcow2 system disk as the first startup item (bootindex=1).
[0096] In S09, the installation process of the loong64 system requires human-computer interaction, so you need to run Remoteviewer on the host machine to connect to the spice port of the virtual machine.
[0097] In S10, for the running loong64 system that supports ssh remote connection and does not require a graphical interface, delete the spice configuration in the system running script to reduce performance overhead.
[0098] The present invention realizes a method for efficiently simulating and running a loong64 architecture system in a common x86 architecture environment through cross-compilation and heterogeneous operation, without relying on specific actual hardware servers or desktops, and has important practical significance and application value.
[0099] Combination Figure 2As shown, the embodiment of the present disclosure also provides a system 200 for heterogeneously making and running a loong64 virtual machine, including a processor 204 and a memory 201. Optionally, the system may also include a communication interface 202 and a bus 203. The processor 204, the communication interface 202, and the memory 201 may communicate with each other through the bus 203. The communication interface 202 may be used for information transmission. The processor 204 may call the logic instructions in the memory 201 to execute the method for heterogeneously making and running a loong64 virtual machine of the above embodiment.
[0100] In addition, the logic instructions in the memory 201 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.
[0101] The memory 201 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 204 executes the program instructions / modules stored in the memory 201 to execute functional applications and data processing, that is, to implement the method of heterogeneously making and running the loong64 virtual machine in the above embodiment.
[0102] The memory 201 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 201 may include a high-speed random access memory and may also include a non-volatile memory.
[0103] The embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute a method for heterogeneously producing and running a loong64 virtual machine.
[0104] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0105] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method of the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0106] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, separate components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. As used in the description of the embodiments, unless the context clearly indicates otherwise, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or including (comprising) refer to the existence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or these groups. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same or similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0107] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the systems, devices and units described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0108] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0109] The flowchart and block diagram in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for heterogeneously making and running a loong64 virtual machine, characterized in that: The method comprises: Enable virtualization acceleration on Debian 12 or derivative systems with x86 architecture; Compile the system kernel and software packages through cross-compilation; Make a small root file system compressed image required for system startup; Create the final root file system that carries basic software and user software; Get the firmware boot file and modify the corresponding boot menu configuration file; Use the production tool to create the loong64 system image; Configure the environment required for running the loong64 virtual machine on the system; Build the installation script and running script of the loong64 system virtual machine, and set the virtual hardware and related configuration parameters required by the virtual machine in the installation script; Execute the system installation script to complete the system installation; Execute system operation scripts and run the virtual machine of the loong64 architecture system heterogeneously.
2. The method according to claim 1, characterized in that The virtualization acceleration function is enabled on the x86 architecture Debian 12 or derivative system, including: If it is a physical machine, enable the virtualization function in the BIOS; If it is a virtual machine, the host machine BIOS turns on the virtualization function, and sets the corresponding virtual machine to enable the virtualization function in the virtual machine management software.
3. The method according to claim 1, characterized in that Compiling the system kernel and software package by cross-compiling includes: Use the cross-compilation toolchain to compile the kernel; Configure the lauosc software source to provide download and installation of most commonly used dependency packages, and use the dependency packages to compile the software packages; For software packages that are not available in the lauosc source, download the source code for cross-compilation, and modify the source code that does not support the loong64 system to support the loong64 system.
4. The method according to claim 1, characterized in that: The small root file system compressed image required for system startup is produced, including: When making the small root file system compressed image initrd.img, put the modules installed by compiling the kernel in the previous step into the lib / modules directory.
5. The method according to claim 1, characterized in that The step of making the final root file system carrying the basic software and the user software includes: Use the loong64-based root file system as the final root file system. The loong64-based root file system is obtained from the FTP server under the Debian upstream ports using the debootstrap tool.
6. The method according to claim 1, characterized in that The firmware boot file uses BOOTLOONGARCH64.EFI, and the firmware it supports is the new world firmware using the physical address, and the kernel it supports is the new world kernel using the EFI stub boot protocol.
7. The method according to claim 6, characterized in that The method further comprises: When using the xorriso tool to create a system image file, use the -e parameter to specify the boot file location so that the system image can be installed in UEFI mode; Install virt-manager and binfmt on debian12 or its derivative systems with x86 architecture to support running virtual machines.
8. The method according to claim 1, characterized in that The installation script and running script of the loong64 system virtual machine are constructed, and the virtual hardware and related configuration parameters required by the virtual machine are set in the installation script, including: Build a system installation script, where the key parameter configuration methods correspond to the cpu type of la464, the machine type of virt, configure spice to support interaction, the BIOS firmware is edk2-loongarch64-code.fd, configure a qcow2 disk image to simulate the system disk, configure the cd device to point to the loong64 system image and set it as the first startup item; Build the system running script. The key parameter configuration method corresponds to the CPU type of la464, the machine type of virt, configure spice to support interaction, the BIOS firmware is edk2-loongarch64-code.fd, configure a qcow2 disk image to simulate the system disk, and set the qcow2 disk image to simulate the system disk as the first startup item.
9. The method according to claim 1, characterized in that: The execution of the system installation script completes the system installation, including: Run Remote Viewer on the host machine to connect to the spice port of the virtual machine to perform human-computer interaction during the loong64 system installation process.
10. The method according to claim 1, characterized in that The execution system runs the script and heterogeneously runs the virtual machine of the loong64 architecture system, including: For the running loong64 system that supports ssh remote connection and does not require a graphical interface, delete the spice configuration in the system running script to reduce performance overhead.