CN115202686A - Virtualization system upgrading method and device, electronic equipment and storage medium - Google Patents

Virtualization system upgrading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115202686A
CN115202686A CN202210628616.8A CN202210628616A CN115202686A CN 115202686 A CN115202686 A CN 115202686A CN 202210628616 A CN202210628616 A CN 202210628616A CN 115202686 A CN115202686 A CN 115202686A
Authority
CN
China
Prior art keywords
folder
virtualization system
upgrading
image file
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210628616.8A
Other languages
Chinese (zh)
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.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Ecarx Hubei Tech 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 Ecarx Hubei Tech Co Ltd filed Critical Ecarx Hubei Tech Co Ltd
Priority to CN202210628616.8A priority Critical patent/CN115202686A/en
Publication of CN115202686A publication Critical patent/CN115202686A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The invention discloses an upgrading method and device of a virtualization system, electronic equipment and a storage medium. The method comprises the following steps: acquiring a mirror image file of a version to be upgraded; decompressing the image file to a first folder through a decompression tool; restarting the virtualized system; mounting a firmware file for operating the virtualization system according to the OTA upgrading request, wherein the firmware file is stored in a second folder; and copying the image file decompressed to the first folder to the second folder and covering the firmware file to finish the upgrading of the virtualization system. According to the technical scheme, the image file is obtained and decompressed, and the decompressed image file is used for covering and operating the firmware file of the virtualization system, so that OTA (over the air) upgrading of the virtualization system is realized.

Description

Virtualization system upgrading method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for upgrading a virtualization system, electronic equipment and a storage medium.
Background
The Android (Android) device has a Recovery mode, the Recovery is a backup function of the Android device, the Recovery mode is a mode capable of modifying data or a system in the Android device, and system upgrading can be carried out through a standard Over-the-Air (OTA) upgrade package based on the Recovery mode. The Android virtualization device does not have a Recovery mode and cannot generate an OTA upgrade package, so that OTA upgrade cannot be realized; if the Android virtualization device is upgraded in the running process of an operating system (namely, a virtualization system) of the Android virtualization device, other modules of the system are also running during the upgrading process, useless user data can be generated, and the upgrading mode is not ideal in effect.
Disclosure of Invention
The invention provides an upgrading method, an upgrading device, electronic equipment, a storage medium and an upgrading system of a virtualization system, and aims to realize OTA upgrading of the virtualization system.
In a first aspect, an embodiment of the present invention provides an upgrade method for a virtualization system, including:
acquiring a mirror image file of a version to be upgraded;
decompressing the mirror image file to a first folder through a decompressing tool;
restarting the virtualized system;
according to the OTA upgrading request, mounting a firmware file for operating the virtualization system, wherein the firmware file is in a second folder;
and copying the image file decompressed to the first folder to the second folder and covering the firmware file to finish upgrading the virtualization system.
In a second aspect, an embodiment of the present invention provides an upgrading apparatus for a virtualization system, including:
the acquisition module is used for acquiring the mirror image file of the version to be upgraded;
the decompression module is used for decompressing the mirror image file to a first folder through a decompression tool;
a restart module for restarting the virtualization system;
the mounting module is used for mounting and operating the firmware file of the virtualization system according to the OTA upgrading request, and the firmware file is in a second folder;
and the upgrading module is used for copying the image file decompressed to the first folder to the second folder and covering the firmware file so as to finish upgrading the virtualization system.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the upgrade method for a virtualized system according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the upgrade method for a virtualization system according to the first aspect.
The embodiment of the invention provides an upgrading method and device of a virtualization system, electronic equipment and a storage medium. The method comprises the following steps: acquiring a mirror image file of a version to be upgraded; decompressing the mirror image file to a first folder through a decompressing tool; restarting the virtualized system; according to the OTA upgrading request, mounting a firmware file for operating the virtualization system, wherein the firmware file is in a second folder; and copying the image file decompressed to the first folder to the second folder and covering the firmware file to finish upgrading the virtualization system. According to the technical scheme, the image file is obtained and decompressed, and the decompressed image file is used for covering and operating the firmware file of the virtualization system, so that OTA (over the air) upgrading of the virtualization system is realized.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a flowchart of an upgrade method for a virtualization system according to an embodiment of the present invention;
fig. 2 is a flowchart of an upgrading method for a virtualization system according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an upgrading apparatus of a virtualization system according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict. It should be further noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings, not all of them.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, subprograms, and the like.
It should be noted that the terms "first", "second", and the like in the embodiments of the present invention are only used for distinguishing different apparatuses, modules, units, or other objects, and are not used for limiting the order or interdependence of the functions performed by these apparatuses, modules, units, or other objects.
Example one
Fig. 1 is a flowchart of an upgrade method for a virtualization system according to an embodiment of the present invention, where the embodiment is applicable to OTA upgrade of a virtualization system. Specifically, the upgrade method for the virtualization system may be executed by an upgrade apparatus for the virtualization system, which may be implemented in a software and/or hardware manner and integrated in the electronic device. Further, electronic devices include, but are not limited to: and the Android virtualization system is used for smart phones, mobile terminals or communication equipment and the like.
As shown in fig. 1, the method specifically includes the following steps:
and S110, acquiring the image file of the version to be upgraded.
In particular, mirroring (Mirroring) is a form of file storage. In this embodiment, the image file is mainly for an Android virtualization system, and when the virtualization system has a version to be upgraded, the related file of the version to be upgraded is stored in the image file in a compressed form. The image file is similar to a compressed package, wherein a System file, a boot file, partition table information and the like are stored, and are usually released on a service by a developer, the electronic device can inquire whether the image file of a version to be upgraded exists from a server through an Application program (APP) service of a System level by using a System upgrade (System Update) function, and if the image file exists, the image file is downloaded to the local of the device.
S120, decompressing the mirror image file to a first folder through a decompression tool.
After the image file is downloaded to the local device, the electronic device can decompress the image file to the first folder through a decompression tool (such as decompression software and a virtual optical drive tool). The first folder is used for storing the decompressed image file, and a path of the first folder can be set according to requirements, for example, the path is set as follows: data/ota.
And S130, restarting the virtualization system.
Specifically, after the image file is decompressed, the electronic device may automatically restart the virtualization system, or may prompt the user to restart at a specified time.
S140, mounting and operating the firmware file of the virtualization system according to the OTA upgrading request, wherein the firmware file is in a second folder.
The OTA upgrade request is used for instructing the electronic equipment to update the firmware file of the virtualization system of the version before upgrade based on the decompressed image file. The OTA upgrade request can be input by a user or can be automatically generated by the electronic device upon confirming that the decompressed image file is available.
The firmware is solidified software, and can be understood as a driver stored in the electronic device for operating the virtualization system, and the virtualization system can realize the operation of the machine according to the standard device driver through the firmware. The firmware in this embodiment refers to various firmware required for the operation of the Android virtualization system before upgrading, such as a multiple boot manager (GRUB), isolinux, system. The firmware file may be in a disk image format, such as a QCOW2 format. The node on which the firmware file is mounted may be/dev/blocking/sda [0-9 ]). Mounting (Mounting) refers to the process by which a virtualization system makes firmware files and directories available for a user to access. Specifically, connecting a directory of firmware files to a designated directory, and accessing the designated directory is equivalent to accessing the firmware files.
The second folder is for storing firmware files. The path of the second folder is set to/data/ota _ sda, for example.
Optionally, the OTA upgrade request may be read from the third folder. The path of the third folder is set to/data/recovery, for example.
S150, copying the image file decompressed to the first folder to the second folder and covering the firmware file to finish upgrading the virtualization system.
Specifically, in the copying process, the firmware file in the second folder is covered by the decompressed image file, that is, the firmware file in the version before the update is replaced, so that the firmware is refreshed, that is, the update is equivalent to the update of the virtualization system.
In the upgrading method for the virtualization system provided by the embodiment of the invention, the image file is obtained and decompressed, and the decompressed image file is used for replacing the firmware file which covers and runs the virtualization system, so that the process is equivalent to the creation of an upgrading mode similar to a Recovery mode, and thus the OTA upgrading of the virtualization system is realized.
Example two
Fig. 2 is a flowchart of an upgrade method for a virtualization system according to a second embodiment of the present invention, where the optimization is performed based on the second embodiment, and the verification of the mirror file and the upgrade process of the virtualization system are specifically described in this embodiment. It should be noted that technical details that are not described in detail in the present embodiment may be referred to any of the above embodiments.
Specifically, as shown in fig. 2, the method specifically includes the following steps:
s201, inquiring the image file of the version to be upgraded through the APP service, and downloading the image file to the local.
Specifically, through the APP service, a system upgrading function can be used for inquiring whether an image file of a version to be upgraded exists from a server, and if the image file exists, the image file is downloaded to the local equipment.
S202, decompressing the image file to a first folder through a decompression tool.
The path of the first folder is, for example,/data/ota.
S203, verifying the legality of the mirror image file decompressed to the first folder.
The image files to be checked include GRUB, efi, isolinux, system.
S204, verification is successful? If yes, go to S206; otherwise, S205 is performed.
Specifically, if the verification is successful, it is indicated that the format of the decompressed image file is correct and legal, and the electronic device can generate an OTA upgrade request according to the format; otherwise, if the format of the decompressed image file is abnormal and the decompressed image file cannot be normally used, prompt information is generated to prompt that the image file is abnormal and the image file of the version to be upgraded needs to be obtained again.
And S205, generating prompt information.
And S206, generating an OTA upgrading request.
And S207, recording the OTA upgrading request and the path of the first folder in a third folder.
The path of the third folder can be set as/data/recovery, and the OTA upgrade request and the path of the first folder are recorded in the third folder, so that the format of the decompressed mirror image file is correct and legal; after the virtualization system is restarted, the decompressed image file can be extracted from the first folder according to the OTA upgrading request and used for firmware refreshing.
And S208, restarting the virtualization system.
And S209, reading the OTA upgrading request from the third folder.
Specifically, after the virtualization system is restarted (before the virtualization system is formally started), a file under the data/recovery is read, and whether OTA upgrade is needed or not is judged according to a reading result of the OTA upgrade request. If the OTA upgrading request is not read, the Android virtualization system is started normally; and if the OTA upgrade request is read, entering a Recovery-like mode created by the embodiment of the application.
And S210, mounting and operating the firmware file of the virtualization system according to the OTA upgrading request.
Specifically, the electronic device enters a Recovery-like mode, that is, firmware files for operating the Android virtualization system are mounted, and the firmware files are accessible, wherein part or all of the firmware files can be replaced by firmware files in the decompressed image files.
S211, copying the image file decompressed to the first folder to a second folder and covering the firmware file to finish the upgrading of the virtualization system.
Specifically, the image file under the/data/ota/directory, which is decompressed before, is overlaid under the/data/ota _ sda/folder in a copying mode to replace the firmware of the version before upgrading.
It should be noted that the Android virtualization device is different from an Android real device, a firmware of the Android real device is stored in hardware storage devices such as an Embedded multimedia Card (EMMC) and a computer flash memory device (NAND), and a file System of the storage device is generally divided into a Recovery, a System, a Vendor, a Boot partition, and the like. The system of the Android virtualization device runs in a file in a QCOW2 format, and has more guide modules such as GRUB and isolinux than a partition without a real file system. During the upgrading process, the content in the firmware file in the QCOW2 format is mainly replaced. After the virtualization system is formally started, different partitions can be simulated according to the configuration for mounting.
And S212, displaying the upgrading progress.
Specifically, in the copying process, the upgrading progress of the virtualization system may be displayed in real time, for example, in a percentage manner, the upgrading progress is displayed according to the ratio of the copied file to the decompressed image file.
And S213, saving the upgrading result to a fourth folder.
Specifically, the upgrade result is saved in the fourth folder, and after the system is finally restarted, whether the virtualization system is upgraded successfully can be judged according to the upgrade result. The path of the fourth folder may be the same as the path of the second folder, for example, being/data/recovery.
And S214, restarting the virtualization system.
S215, reading the upgrading result in the fourth folder, and displaying OTA upgrading success information or OTA upgrading failure information according to the upgrading result.
Specifically, after the system is restarted, the upgrade result in the fourth folder is read, and accordingly, OTA upgrade success information or OTA upgrade failure information is displayed. And if the OTA fails to upgrade, the image file of the version to be upgraded can be obtained again.
The upgrading method of the virtualization system provided by the second embodiment of the invention is optimized on the basis of the first embodiment, the validity of the decompressed image file is checked, and the OTA upgrading request is recorded in the third folder after the decompressed image file passes the check, so that the virtualization system is ensured to be upgraded correctly, and the interruption or failure of the upgrading process caused by the abnormality of the image file is avoided; the upgrading progress of the virtualization system is displayed in real time, so that the upgrading progress is visualized, and a user can know the upgrading progress conveniently; by storing the upgrading result in the fourth folder, a basis is provided for displaying OTA upgrading success information or OTA upgrading failure information, and the upgrading process is more convenient and visual.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an upgrading apparatus of a virtualization system according to a third embodiment of the present invention. The upgrade device for a virtualization system provided in this embodiment includes:
an obtaining module 310, configured to obtain an image file of a version to be upgraded;
the decompression module 320 is used for decompressing the image file to a first folder through a decompression tool;
a restart module 330, configured to restart the virtualized system;
a mounting module 340, configured to mount a firmware file for operating the virtualization system according to an over-the-air upgrade request, where the firmware file is in a second folder;
the upgrading module 350 is configured to copy the image file decompressed to the first folder to the second folder and overlay the firmware file, so as to complete upgrading of the virtualization system.
In the third upgrading device for the virtualization system provided by the embodiment of the invention, the OTA upgrading of the virtualization system is realized by acquiring and decompressing the image file and replacing the firmware file of the running virtualization system with the decompressed image file.
On the basis of the foregoing embodiment, the obtaining module 310 is specifically configured to:
and inquiring the image file of the version to be upgraded through the APP service, and downloading the image file to the local.
On the basis of the above embodiment, the apparatus further comprises:
and the request reading module is used for reading the OTA upgrading request from a third folder before the firmware file of the virtualization system is mounted and operated according to the OTA upgrading request.
On the basis of the above embodiment, the apparatus further comprises:
the verification module is used for verifying the validity of the mirror image file decompressed to the first folder before restarting the virtualization system;
the recording module is used for generating the OTA upgrading request if the verification is successful, and recording the OTA upgrading request and the path of the first folder in the third folder;
and the prompting module is used for generating prompting information to prompt that the mirror image file is abnormal if not.
On the basis of the above embodiment, the apparatus further includes:
and the starting module is used for starting the virtualization system if the OTA upgrading request is not read in the third folder.
On the basis of the above embodiment, the apparatus further includes:
and the processing module is used for displaying the upgrading progress of the virtualization system and storing the upgrading result into a fourth folder.
On the basis of the above embodiment, the apparatus further includes:
the result reading module is used for reading the upgrading result in the fourth folder after the virtualization system is restarted;
and the display module is used for displaying OTA upgrade success information or OTA upgrade failure information according to the upgrade result.
The upgrading device of the virtualization system provided by the third embodiment of the invention can be used for executing the upgrading method of the virtualization system provided by any embodiment, and has corresponding functions and beneficial effects.
Example four
FIG. 4 shows a schematic block diagram of an electronic device 10 that may be used to implement an embodiment of the invention. The electronic device 10 may be a smart phone, a mobile terminal, a communication device, or a user equipment using an Android virtualization system. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 may also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication, wireless networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the upgrade method of the virtualization system.
In some embodiments, the upgrade method for a virtualization system may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured by any other suitable means (e.g., by means of firmware) to perform the upgrade method of the virtualization system.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here may be implemented on an electronic device 10, the electronic device 10 having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the electronic device 10. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An upgrade method for a virtualization system, comprising:
acquiring a mirror image file of a version to be upgraded;
decompressing the image file to a first folder through a decompression tool;
restarting the virtualized system;
according to an over-the-air upgrading request, mounting and operating a firmware file of the virtualization system, wherein the firmware file is in a second folder;
and copying the image file decompressed to the first folder to the second folder and covering the firmware file to finish the upgrading of the virtualization system.
2. The method of claim 1, wherein the obtaining the image file of the version to be upgraded comprises:
and inquiring the image file of the version to be upgraded through an application program service, and downloading the image file to the local.
3. The method of claim 1, further comprising, prior to mounting a firmware file running the virtualization system according to an over-the-air upgrade request:
and reading the over-the-air upgrading request from a third folder.
4. The method of claim 3, further comprising, prior to restarting the virtualization system:
verifying the legality of the mirror image file decompressed to the first folder;
if the verification is successful, generating the over-the-air upgrading request, and recording the over-the-air upgrading request and the path of the first folder in the third folder;
otherwise, generating prompt information to prompt the mirror image file to have abnormity.
5. The method of claim 3, further comprising:
and if the over-the-air upgrading request is not read in the third folder, starting the virtualization system.
6. The method of claim 1, further comprising:
and displaying the upgrading progress of the virtualization system, and storing the upgrading result into a fourth folder.
7. The method of claim 6, further comprising:
reading an upgrade result in the fourth folder after restarting the virtualization system;
and displaying the over-the-air upgrading success information or over-the-air upgrading failure information according to the upgrading result.
8. An upgrade apparatus for a virtualization system, comprising:
the acquisition module is used for acquiring the mirror image file of the version to be upgraded;
the decompression module is used for decompressing the mirror image file to the first folder through a decompression tool;
a restart module for restarting the virtualization system;
the mounting module is used for mounting and operating the firmware file of the virtualization system according to the over-the-air upgrading request, wherein the firmware file is in a second folder;
and the upgrading module is used for copying the image file decompressed to the first folder to the second folder and covering the firmware file so as to finish upgrading the virtualization system.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of upgrading a virtualization system as claimed in any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of upgrading a virtualization system according to any one of claims 1-7.
CN202210628616.8A 2022-06-06 2022-06-06 Virtualization system upgrading method and device, electronic equipment and storage medium Pending CN115202686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210628616.8A CN115202686A (en) 2022-06-06 2022-06-06 Virtualization system upgrading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210628616.8A CN115202686A (en) 2022-06-06 2022-06-06 Virtualization system upgrading method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115202686A true CN115202686A (en) 2022-10-18

Family

ID=83575500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210628616.8A Pending CN115202686A (en) 2022-06-06 2022-06-06 Virtualization system upgrading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115202686A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116339781A (en) * 2023-03-29 2023-06-27 安超云软件有限公司 Upgrading method and device for internal software of virtual machine, electronic equipment and storage medium
CN116450184A (en) * 2023-06-09 2023-07-18 联宝(合肥)电子科技有限公司 System upgrading method and device, electronic equipment and storage medium
CN116847019A (en) * 2023-07-12 2023-10-03 荣耀终端有限公司 Communication abnormality processing method, electronic device, and computer-readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116339781A (en) * 2023-03-29 2023-06-27 安超云软件有限公司 Upgrading method and device for internal software of virtual machine, electronic equipment and storage medium
CN116450184A (en) * 2023-06-09 2023-07-18 联宝(合肥)电子科技有限公司 System upgrading method and device, electronic equipment and storage medium
CN116450184B (en) * 2023-06-09 2023-10-13 联宝(合肥)电子科技有限公司 System upgrading method and device, electronic equipment and storage medium
CN116847019A (en) * 2023-07-12 2023-10-03 荣耀终端有限公司 Communication abnormality processing method, electronic device, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN115202686A (en) Virtualization system upgrading method and device, electronic equipment and storage medium
JP5838527B2 (en) Method, apparatus and communication device for updating firmware
CN110825419B (en) Firmware refreshing method and device, electronic equipment and storage medium
WO2018032757A1 (en) Method and device for updating component
CN112882734B (en) Upgrading method and device, computer equipment and medium
CN115794257A (en) System starting method and device, electronic equipment and storage medium
CN111782236A (en) System software upgrading method and device, storage medium and all-in-one machine equipment
CN116880877A (en) Virtual machine enhancement tool upgrading method and device, computer equipment and storage medium
EP3321808B1 (en) Verification system and verification method
KR101461319B1 (en) Methods and device for upgrading firmware of set-top box
CN115174597A (en) Method, system, electronic equipment and storage medium for preventing file data from being lost
CN115344289A (en) Client upgrading method and device, terminal equipment and storage medium
CN112269601B (en) BMC (baseboard management controller) and component asset information management method, device and storage medium thereof
CN112925796A (en) Write consistency control method, device, equipment and storage medium
CN111221556B (en) Remote upgrade RSU mirror image method and system
CN113986385A (en) Item font library loading method and device, electronic equipment and storage medium
CN114296764A (en) System upgrading method and device, storage medium and electronic equipment
CN112988192A (en) Version updating method and device, electronic equipment and storage medium
CN112416394A (en) Service upgrading method and device, storage medium and electronic equipment
CN112379973A (en) Heavy loading method and device
CN112083939A (en) Batch upgrading method, device, system and medium
CN110197067B (en) File searching and killing method, device and storage medium
CN110888665B (en) Method, device, equipment and storage medium for submitting changed content
CN116974635A (en) System start-up guiding method, device, equipment, vehicle and storage medium
CN114326689A (en) Method, device and equipment for flashing firmware of vehicle and storage medium

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