Virtualization system deployment method and device, equipment and medium
By acquiring and installing image packages containing higher version data packages, the problems of low deployment efficiency and untimely patch application in virtualization systems are solved, realizing automated patch application and version updates for virtualization systems, and improving system stability and deployment efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- JINAN INSPUR DATA TECH CO LTD
- Filing Date
- 2026-02-04
- Publication Date
- 2026-05-15
AI Technical Summary
When businesses need to deploy new virtualization systems, existing technologies suffer from low deployment efficiency and system vulnerabilities caused by untimely patch application, which affect business operations.
A method for deploying a virtualization system is provided. By obtaining the image package of the target virtualization system, which includes the base virtualization system package in the base directory, the patch package in the patch directory, the version number file, and the installation source configuration file, a high version data package is used for installation, thereby realizing the automatic application of patches and the automatic update of system version.
It improves the efficiency of virtualization system deployment, avoids missing patches, ensures that patches are automatically applied during the deployment process, reduces vulnerabilities caused by human factors, and improves the stability of business operations.
Smart Images

Figure CN122044754A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of virtualization system deployment technology, and in particular to a virtualization system deployment method, apparatus, device, and medium. Background Technology
[0002] In today's era of smart cities and enterprise digital transformation, various applications and businesses are accelerating their migration to the cloud. Private clouds and virtualization systems are widely used across various industries.
[0003] With the emergence of new features and functionalities in virtualization, as well as known issues and security vulnerabilities, there is a need to release patches promptly to update and deploy new systems with fixes. Ensuring timely and effective delivery of patch information and updates to newly added environments is crucial. The current primary approach is to provide a patch file corresponding to the version of the already released virtualization product system.
[0004] In typical business scenarios, multiple virtualization systems may need to be deployed for a single business function. If a new virtualization system needs to be deployed for that business, the usual procedure is to first install and deploy the initial released version of the system, and then apply patches to the system environment—a two-step process. Virtualization systems are on-premises systems used by enterprises, deployed in data centers and not connected to the internet. Updates require manual notification. Human error can lead to inadequate notification, or notification that technical personnel haven't updated the system, resulting in vulnerabilities in the installed virtualization system and impacting business operations.
[0005] It is evident that improving deployment efficiency is a problem that needs to be solved by those skilled in the art when business needs to deploy new virtualization systems. Summary of the Invention
[0006] The purpose of this invention is to provide a method, apparatus, device, and medium for deploying virtualization systems, which can improve deployment efficiency when new virtualization systems need to be deployed for business purposes.
[0007] In a first aspect, a method for deploying a virtualization system is provided, comprising: obtaining a new system deployment request for a target virtualization system; obtaining an image package of the target virtualization system according to the new system deployment request, wherein the image package of the target virtualization system includes: a base virtualization system package under a base directory, a patch package under a patch directory, a version number file, and an installation source configuration file; the patch package includes a component package consisting of patch fixes for at least one component, the base virtualization system package includes a first data package with the same name but a different version of the component package, a second data package with the same name as the version number file, and a base virtualization system data package; the version number file records the version number of the component package in the patch package; and deploying the target virtualization system according to the image package of the target virtualization system, such that a higher version data package is used for installation during installation.
[0008] In a preferred embodiment, the present invention can be further configured as follows: deploying the target virtualization system based on the image package of the target virtualization system, including: reading the installation source configuration file, determining a list of data packages to be installed and a search directory, wherein the search directory includes: the base directory and the patch directory; determining the data packages to be installed from the search directory based on the list of data packages to be installed, wherein, for data packages with the same name, the data package with the higher version number is installed to facilitate the deployment of the target virtualization system.
[0009] In a preferred embodiment, the present invention may further be configured to include: copying a baseline virtualization system package to a baseline directory; copying a patch package to a patch directory; obtaining a version number file and an installation source configuration file; generating an image package of the target virtualization system based on the baseline virtualization system package in the baseline directory, the patch package and version number file in the patch directory, and the installation source configuration file, and publishing the image package of the target virtualization system.
[0010] In a preferred embodiment, the present invention can be further configured as follows: after copying the patch package to the patch directory, it further includes: verifying the integrity of the patch package; accordingly, based on the baseline virtualization system package in the baseline directory, the patch package and version number file in the patch directory, and the installation source configuration file, generating an image of the target virtualization system, including: after the integrity verification of the patch package passes, generating an image of the target virtualization system based on the baseline virtualization system package in the baseline directory, the patch package and version number file in the patch directory, and the installation source configuration file.
[0011] In a preferred embodiment, the present invention may further be configured to include: generating a component package for at least one component based on the patch repair content of at least one component, generating a patch package based on the component package of at least one component, and compressing the patch package to obtain a patch package compressed file; recording the version number of the component package of at least one component and generating a version number file; generating an installation source configuration file; compressing a baseline virtualization system package to obtain a baseline virtualization system package compressed file; and publishing the patch package compressed file, the version number file, the baseline virtualization system package compressed file, and the installation source configuration file.
[0012] In a preferred embodiment, the present invention can be further configured to: obtain an image package of the target virtualization system according to the deployment request, including: determining whether the required version number in the deployment request is greater than the highest virtualization system version number; if not, obtaining the image package of the target virtualization system according to the deployment request.
[0013] In a preferred embodiment, the present invention may be further configured as follows: after deploying the target virtualization system based on the image package of the target virtualization system, the invention further includes: obtaining the highest version patch package corresponding to the highest virtualization system version number; and upgrading the target virtualization system based on the highest version patch package.
[0014] Secondly, a virtualization system deployment apparatus is provided, comprising: a first acquisition module for acquiring a new system deployment request for a target virtualization system; a second acquisition module for acquiring an image package of the target virtualization system according to the new system deployment request, wherein the image package of the target virtualization system includes: a base virtualization system package under a base directory, a patch package under a patch directory, a version number file, and an installation source configuration file; the patch package includes a component package consisting of patch repair content for at least one component, the base virtualization system package includes a first data package with the same name as the component package but a different version, a second data package with the same name as the version number file, and a base virtualization system data package; the version number file records the version number of the component package in the patch package; and a deployment module for deploying the target virtualization system according to the image package of the target virtualization system, such that a higher version data package is used for installation during installation.
[0015] Thirdly, an electronic device is provided, the electronic device including a memory and a processor, the memory storing a computer program, the processor executing the virtualization system deployment method according to any one of the first aspects when running the computer program.
[0016] Fourthly, a computer-readable storage medium is provided, wherein at least one piece of program code is stored therein, the program code being loaded and executed by a processor to implement the virtualization system deployment method as described in any of the first aspects.
[0017] Fifthly, a computer program product is provided, including a computer program or instructions that, when executed by a processor, implement the virtualization system deployment method as described in any of the first aspects.
[0018] In summary, the virtualization system deployment method provided by this invention has the following beneficial technical effects:
[0019] Obtain the new system deployment request for the target virtualization system; based on the new system deployment request, obtain the image package of the target virtualization system. The image package of the target virtualization system includes: a base virtualization system package in the base directory, a patch package in the patch directory, a version number file, and an installation source configuration file; the patch package includes a component package consisting of patch fixes for at least one component; the base virtualization system package includes a first data package with the same name as the component package but a different version, a second data package with the same name as the version number file, and the base virtualization system data package; the version number file records the version number of the component package in the patch package; based on the image package of the target virtualization system, deploy the target virtualization system so that the higher version data package is used for installation. The target virtualization system image package includes a base virtualization system package and a patch package, managed in two directories. It employs clear partitioning for precise control. Furthermore, this image package carries patches and includes the base virtualization system package, patch package, version number file, and installation source configuration file. Deploying the target virtualization system using this patch-carrying image package automatically installs the target virtualization system and patch files according to a preset mechanism, automatically updating the system version number information during installation. This is equivalent to automatically applying patches during the target virtualization system deployment and installation process, which is more efficient than traditional patching methods and avoids missed patches.
[0020] In addition, the present invention also provides a virtualization system deployment apparatus, device and medium, all of which have the above-mentioned beneficial technical effects. Attached Figure Description
[0021] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a schematic diagram of a virtualization system deployment method provided in an embodiment of the present invention;
[0023] Figure 2 This is a schematic diagram of the structure of a virtualization system deployment device provided in an embodiment of the present invention;
[0024] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0025] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.
[0026] The terms "comprising" and "having," and any variations thereof, in the specification and accompanying drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may include steps or units not listed.
[0027] In typical business scenarios, multiple virtualization systems may need to be deployed for a single business function. If a virtualization system within that business function needs to be upgraded, it can be updated using a released patch.
[0028] When a business needs to deploy a new virtualization system, the conventional approach is to first install and deploy the already released initial version of the system, and then apply patches to the system environment, completing the process in two steps. This approach lacks effective constraints, and often the second step of applying patches is not completed; instead, the patch files are released separately, often going unnoticed and failing to be applied to the virtualization system in a timely manner. This is particularly problematic for critical patches. Often, after problems are discovered, post-incident investigations reveal that the failure to apply these patches in a timely manner resulted in disruptions to production operations, wasted human and material resources, and other negative impacts. Furthermore, the patching process requires business shutdowns and migrations before patching can proceed, leading to low efficiency.
[0029] Because virtualization systems are on-premises systems used by enterprises, deployed in data centers and not connected to the internet, updates require manual notification. Human error can lead to inadequate notification, or notification that technical personnel fail to update the system, resulting in vulnerabilities in the installed virtualization system and impacting business operations.
[0030] Therefore, in order to address the issue of ensuring that the version of the newly added virtualization system is the latest when business needs require the addition of a virtualization system, this invention provides a virtualization system processing method that can solve the above problem.
[0031] Suppose we have a specific service, including System 1, System 2, and System 3. We need to update this service by adding System 4. The conventional approach would be to first deploy the initial version and then apply all the necessary updates sequentially. This invention, however, only requires installing the ISO image, ensuring that the final installed version is the required version, which can be the latest version.
[0032] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0033] The following section details a virtualization system deployment method, apparatus, device, and medium provided by embodiments of the present invention. Figure 1 A virtualization system deployment method provided in this embodiment of the invention includes:
[0034] S101. Obtain the deployment request for a new system from the target virtualization system;
[0035] A New System Deployment Request (DSD) is a user-issued instruction to configure and run a target virtualization system. For example, an administrator might want to deploy a new business management system on an existing virtualization platform, thus issuing a DSD, New System Deployment Request.
[0036] S102. Obtain the image package of the target virtualization system according to the new system deployment request;
[0037] The target virtualization system image package includes: a base virtualization system package in the base directory, a patch package in the patch directory, a version number file, and an installation source configuration file; the patch package includes a component package consisting of patch fixes for at least one component; the base virtualization system package includes a first data package with the same name as the component package but a different version, a second data package with the same name as the version number file, and a base virtualization system data package; the version number file records the version number of the component package in the patch package.
[0038] S103. Deploy the target virtualization system based on the target virtualization system image package, so that a higher version of the data package is used for installation.
[0039] In this embodiment of the invention, with the release of different patch packages, each patch package is accompanied by a corresponding ISO image package. When different ISO image packages (same major version, but different patch version numbers) are used to install and deploy hosts, these hosts can be temporarily used because they are allowed to join the virtualization management system without checks or restrictions. They can then be uniformly upgraded to the same version.
[0040] A virtualization system comprises multiple components (such as the UI components for a messaging team), each corresponding to an installation package. A patch package includes updated RPM installation packages for at least one component. Releasing patch packages serves two purposes: patching older virtualization management systems and building an ISO image when deploying a new virtualization management system, allowing the newly added system to directly upgrade to the corresponding version without needing to first install the initial version and then apply patches sequentially. In one feasible approach, the new system (the target virtualization system) is deployed using an ISO image package containing patches. The installation of the virtualization system and patch files is automated according to a preset mechanism, automatically updating the system version number during installation and using a higher version data package. This achieves the effect of automatically patching the system upon deployment, all seamlessly integrated into the user experience, reducing the complexity of version and patch management.
[0041] In one feasible approach, if the virtualization system already exists in the business, only upgrades and updates based on the patch package are needed. In this embodiment of the invention, the various components and patches of the virtualization system are released and managed in the form of component packages, and all subsequent features are based on this. The base virtualization system package and the patch package are located in the base directory and the upgrade directory, respectively.
[0042] The virtualization system automatically applies patches, deploying the system using an ISO containing patches. The system automatically installs the virtualization system and patch files according to a preset mechanism, automatically updating the system version number during the installation process. Ultimately, this achieves the effect of automatically patching the system upon deployment.
[0043] Understandably, the usual approach is to deploy and use the system first, then patch any issues discovered. In this invention, the patching process is moved from virtualization installation and deployment to the product creation and release stage. This separates the patch package from the base ISO and utilizes a unified package installation mechanism to automate patch application. The patch directory and the Base directory each contain a data package with the same name but different version numbers; the version in the patch directory is larger than the one in the Base directory, and the larger version is installed first. This means that patches are automatically applied during the virtualization deployment and installation process. Compared to traditional patching methods, this invention provides a seamless experience for the user, reduces complex version and patch management, and minimizes the possibility of missed patches.
[0044] As can be seen, in this embodiment of the invention, a new system deployment request for the target virtualization system is obtained; based on the new system deployment request, an image package of the target virtualization system is obtained, the image package of the target virtualization system includes: a base virtualization system package under the base directory, a patch package under the patch directory, a version number file, and an installation source configuration file; the patch package includes a component package consisting of patch repair content for at least one component, the base virtualization system package includes a first data package with the same name as the component package but a different version, a second data package with the same name as the version number file, and the base virtualization system data package; the version number file records the version number of the component package in the patch package; based on the image package of the target virtualization system, the target virtualization system is deployed, so that a higher version data package is used for installation. The target virtualization system image package includes a base virtualization system package and a patch package, managed in two directories. It employs clear partitioning for precise control. Furthermore, this image package carries patches and includes the base virtualization system package, patch package, version number file, and installation source configuration file. Deploying the target virtualization system using this patch-carrying image package automatically installs the target virtualization system and patch files according to a preset mechanism, automatically updating the system version number information during installation. This is equivalent to automatically applying patches during the target virtualization system deployment and installation process, which is more efficient than traditional patching methods and avoids missed patches.
[0045] One possible implementation of this invention involves deploying a target virtualization system based on an image package of that system, including: reading an installation source configuration file to determine a list of data packages to be installed and a search directory, wherein the search directory includes a base directory and a patch directory; and determining the data packages to be installed from the search directory based on the list of data packages to be installed, wherein for data packages with the same name, the data package with the higher version number is installed to facilitate the deployment of the target virtualization system.
[0046] The installation source configuration file controls the automated installation of packages. It specifies the list of packages to be installed and removes unwanted packages. The configuration file also specifies the package search directories: a base directory and a patch directory. During installation, packages with higher version numbers are selected for installation. Furthermore, it specifies which packages with higher version numbers should be installed to achieve the installation of the target virtualization system.
[0047] As can be seen, in this embodiment of the invention, the installation of the image package is realized based on the installation source configuration file, so that the virtualization deployment and installation process automatically applies patches.
[0048] One possible implementation of this invention further includes: copying the baseline virtualization system package to the baseline directory; copying the patch package to the patch directory; obtaining the version number file and the installation source configuration file; generating an image package of the target virtualization system based on the baseline virtualization system package in the baseline directory, the patch package and the version number file in the patch directory, and the installation source configuration file, and publishing the image package of the target virtualization system.
[0049] In this embodiment of the invention, a method for publishing an image package is provided, in which a first software is used to build and publish the image package. It is understood that a second software publishes a baseline virtualization system package and a patch package, thereby enabling the first software to obtain and process the baseline virtualization system package and the patch package.
[0050] Furthermore, after copying the patch package to the patch directory, the process also includes: verifying the integrity of the patch package; correspondingly, based on the baseline virtualization system package in the baseline directory, the patch package and version number file in the patch directory, and the installation source configuration file, generating the image of the target virtualization system, including: after the integrity verification of the patch package passes, generating the image of the target virtualization system based on the baseline virtualization system package in the baseline directory, the patch package and version number file in the patch directory, and the installation source configuration file.
[0051] In this embodiment of the invention, the virtualization system package management is divided into two directories. One directory contains the Base installation package, which is named the Base package directory. The Base package directory contains a collection of packages for the virtualization system that need to be patched. These package collections constitute the complete virtualization system. The other directory is the upgrade directory. The packages in the upgrade directory are the corresponding package collections of the modules to which the patch files belong, that is, the collection of patch packages. The content and number of package collections are different depending on the content that the patch repairs.
[0052] Obtain the compressed packages of the base virtualization system package and the patch package (upgrade compressed package). Then, copy the base virtualization system package to the base directory. Copy and extract the upgrade compressed package to the upgrade directory, ensuring the integrity of the packages in the upgrade directory matches the number and names of the component packages in the module containing the patch files. Verify the integrity of each package to prevent corruption during the copying process. Next, generate an ISO image package. This ISO contains the Base ISO package, patch packages, source configuration files, and files recording patch versions. Rename the files to include patch version number abbreviations. Release the ISO. To distinguish it from the Base ISO, this is called the ISO with patches. The ISO name includes patch version number abbreviations, such as h006-bx, where x represents the last tested and passed version.
[0053] As can be seen, in this embodiment of the invention, the baseline virtualization system package is copied to the baseline directory; the patch package is copied to the patch directory; based on the baseline virtualization system package in the baseline directory, the patch package and version number file in the patch directory, and the installation source configuration file, the image package of the target virtualization system is generated and the image package of the target virtualization system is published; the patch package and the basic ISO are managed separately in form, and the application of patches is automated by means of a unified package installation mechanism.
[0054] One possible implementation of this invention further includes: generating a component package for at least one component based on the patch repair content of at least one component; generating a patch package based on the component package of at least one component; compressing the patch package to obtain a patch package compressed file; recording the version number of the component package of at least one component and generating a version number file; generating an installation source configuration file; compressing a baseline virtualization system package to obtain a baseline virtualization system package compressed file; and publishing the patch package compressed file, the version number file, the baseline virtualization system package compressed file, and the installation source configuration file.
[0055] This invention provides a method for compressing and distributing packages using a second software package. Various business components of the virtualization system are managed and released in package form. Each component and patch of the virtualization system is managed and released in component packages, upon which all subsequent features are based. Based on the patch fix content, an RMP component package for the component containing the patch file is automatically generated. The version of the generated package is higher than the version of the package with the same name in the base virtualization system (i.e., the version of the package in the Base directory). These component packages are automatically packaged into a compressed file to obtain the patch package. The patch fix content is based on the functional module where the defect actually occurred. Each functional module has its own code file, and each fix automatically generates an RMP package for that module.
[0056] Each patch package corresponds to a version number, which is recorded in a dedicated file called `sys_hotfixversion`. This patch number file is also managed and distributed as a package. It's important to note that a patch version package with the same name also exists in the Base package, but since Base contains no patches, its content is empty. Understandably, because the file recording version numbers is also managed as an RPM package, if Base doesn't contain this RPM package (same name but different content), it will be recognized as an extra RPM package. This extra RPM package (which Base assumes doesn't exist) will be considered a new feature, thus contradicting the previously stated claim that only the upgrade differs. Therefore, an empty package with the same name is used. Furthermore, in this embodiment of the invention, each component is managed as an RPM package, and the file recording patch version numbers is also managed by RPM packages.
[0057] Furthermore, in one possible implementation of this invention, obtaining the image package of the target virtualization system according to the deployment request includes: determining whether the required version number in the deployment request is greater than the highest virtualization system version number; if not, obtaining the image package of the target virtualization system according to the deployment request.
[0058] In this embodiment of the invention, when deploying a new virtualization system, it can be deployed using a version number lower than or equal to the highest virtualization system version number. If it is equal to the highest virtualization system version number, no patching is required. If it is lower than the highest virtualization system version number, after installing the target virtualization system, it can be upgraded to the system corresponding to the highest virtualization system version number by applying patches.
[0059] One possible implementation of this invention, after deploying the target virtualization system based on its image package, further includes: obtaining the highest version patch package corresponding to the highest virtualization system version number; and upgrading the target virtualization system based on the highest version patch package. For versions lower than the highest virtualization system version number, a patch package can be downloaded for upgrading.
[0060] Based on any of the above embodiments, the present invention provides a method for automatically applying virtualization patches, the specific implementation steps of which are as follows:
[0061] (1) Version release management of various business components and common basic components of the virtualization system is carried out in the form of packages. Patch updates are also required to be released in the form of packages. The content of the patch package may involve updates of various components and systems in the system, such as computing, storage, network, security, drivers, firmware, etc., and the number is not fixed.
[0062] (2) The virtualization system package management is divided into two directories. One directory contains the Base installation package, which is named the Base package directory. The Base package directory contains the package set of the virtualization system that needs to be patched. These package sets constitute the complete virtualization system. The other is the upgrade directory. The packages in the upgrade directory are the corresponding package set of the module to which the patch file belongs, that is, the set of patch packages. The content and number of package sets are different depending on the content repaired by the patch.
[0063] (3) Automated generation of patch package sets. The package set in the upgrade directory is automatically generated. The packages in the upgrade directory are actually component packages corresponding to the modules where the patch files are located. Because the content repaired by each patch is different, the component packages and their quantities are variable. It is necessary to support the automatic generation of component packages for the modules where the patches are located based on the patch repair content, and to automatically package these component RPM packages into an upgrade compressed file.
[0064] (4) Management of virtualization patch version numbers: The system version number is recorded in a dedicated patch version number file named sys_hotfixversion. This file records the system patch version number information. It is managed through a dedicated rpm package named upgversion. When creating the Base ISO, the contents of the sys_hotfixversion file in the upgversion rpm package are cleared because the Base ISO is the first release version and does not have a patch version number.
[0065] (5) Management of virtualization system automatic installation source configuration files. Installation source configuration files control the automated installation of packages. The list of packages to be installed is specified in the installation source configuration file, and packages that are not needed are removed from the installation source configuration file. The package search directories, namely the Base directory and the upgrade directory, are specified in the installation source configuration file. During installation, packages with higher version numbers will be selected for installation.
[0066] (6) Automatically decompress the upgrade compressed file, copy the module package files in it to the upgrade directory, and ensure that the integrity of the packages in the upgrade directory is verified and that the number and names of the component packages in the module are consistent with those in the patch file.
[0067] (7) Generate ISO, that is, generate and release the above-mentioned engineering process into ISO. In order to distinguish it from the Base ISO, it is called ISO with patch. It contains the Base ISO package, patch package, source configuration file, file recording patch version, etc. The ISO name adds patch version number abbreviation information, such as h006-bx, where x represents the last tested version.
[0068] (8) Hosts with low patch versions are allowed to join the virtualization system. With the release of different patches, each patch release will have a corresponding ISO. When hosts are installed and deployed using different ISOs (same major version but different patch version numbers), these hosts are allowed to join the virtualization management system without checks or restrictions, and can be used temporarily. They can be upgraded to the same version in the future.
[0069] (9) The virtualization system automatically applies patches. The system is deployed using an ISO containing patches, and the system automatically installs the virtualization system and patch files according to a preset mechanism. During installation, the system version number is automatically updated. Ultimately, deployment automatically patches the system, and the entire process is seamless for the user, reducing the complexity of version and patch management.
[0070] In this system, version release management of various business components of the virtualization system in the form of packages is a fundamental technical requirement for subsequent automatic patch application. Virtualization system packages are managed in two directories, clearly distinguishing and managing the base virtualization system and patches for precise control. The automatic generation of rule-based patch packages is crucial because each patch fixes different content. It must support automatically identifying and generating component packages for the modules containing the patches based on these changes, and automatically packaging these component RPM packages into an upgrade compressed file. Version information is recorded in a dedicated patch version file, `sys_hotfixversion`, which is managed as a separate independent package within the Base package collection. The `sys_hotfixversion` content in the Base ISO is empty, while the ISO containing the patch packages records the actual patch version information. The management of the virtualization system's automatic installation source configuration files ensures that high-performance dedicated features of virtual machines only take effect when modified online at boot time or while the machine is already running. The upgrade compressed file is automatically decompressed, reusing the independent upgrade package. The module packages within are decompressed, merged, and copied to the upgrade directory, ensuring the integrity of the packages in the upgrade directory matches the number and names of the component packages in the module containing the patch files. A virtualization system ISO is generated, which is a patched ISO containing a base ISO package, patch packages, source configuration files, and files recording patch versions. Different versions of hosts are added to the virtualization system's access control. When using ISOs with different built-in patch versions (same major version but different patch version numbers) to install and deploy hosts, these patched versions are allowed to join the virtualization management system without checks or restrictions, allowing for temporary use. Subsequent upgrades can be made to the same version. The system is deployed using the patched ISO, and the system automatically installs the virtualization system and patch files according to a preset mechanism, automatically updating the system version number information during installation; achieving the final effect of automatically applying patches to the virtualization system upon deployment.
[0071] In summary, in this embodiment of the invention, by advancing the patch application process from virtualization installation and deployment to the product creation and release stage, the patch package and the base ISO are managed separately in form. Furthermore, a unified package installation mechanism enables automated patch application. The patch directory and the Base directory each contain a package with the same name but different version numbers; that is, the version in the patch directory is larger than the one in the Base directory, and the larger version is installed first. This is equivalent to automatically applying patches during the virtualization deployment and installation process. Compared to traditional patching methods, the entire process of this invention is seamless for the user and reduces complex version and patch management, as well as the possibility of missed patches.
[0072] Furthermore, blockchain is introduced into the virtualization system to create independent data blocks for each user, and smart contracts are used to implement data access control and isolation. During the upgrade process, the blockchain network monitors tenant data access in real time, and the permissions of data blocks are dynamically adjusted. Specifically, when the relevant components of the user involved in the upgrade are identified, the user's data access permissions are restricted to avoid upgrade conflicts. After the upgrade is completed, incremental migration is used to migrate data to the blockchain in batches, reducing the impact on system performance during the migration process. At the same time, data verification algorithms are used to ensure the accuracy and integrity of the migrated data.
[0073] Furthermore, prior to upgrading the virtualization system, global security threat intelligence is collected, including information on known security vulnerabilities, attack methods, and malware. This intelligence is used to conduct dynamic security assessments of the upgraded version, identifying potential security risks. During the upgrade process, the system's security status is monitored in real time, and any vulnerabilities discovered are immediately addressed through measures such as automatic patching and isolating infected nodes.
[0074] Furthermore, a resource awareness module is deployed to monitor the resource usage of each virtual machine in real time, including CPU, memory, and network bandwidth. During the upgrade process, resource allocation for virtual machines is dynamically adjusted based on the resource awareness results, prioritizing the resource needs of critical production applications. Simultaneously, resource reservation and rate limiting mechanisms are used to avoid system performance degradation caused by resource contention, ensuring the stable operation of production processes.
[0075] It is understood that this application is applicable to a variety of scenarios, such as the virtualization system upgrade of large e-commerce platforms, the production management virtualization system upgrade of manufacturing enterprises, the medical record management virtualization system upgrade, etc., and the corresponding data includes product information errors, order data, etc.
[0076] The following describes a device provided by an embodiment of the present invention. The device described below can be referred to in correspondence with the method described above. The device of this embodiment is installed in an electronic device. Figure 2 , Figure 2This is a structural block diagram of an apparatus according to one embodiment of the present invention, comprising: a first acquisition module 210, configured to acquire a new system deployment request for a target virtualization system; a second acquisition module 220, configured to acquire an image package of the target virtualization system according to the new system deployment request, wherein the image package of the target virtualization system includes: a base virtualization system package under a base directory, a patch package under a patch directory, a version number file, and an installation source configuration file; the patch package includes a component package consisting of patch repair content for at least one component, the base virtualization system package includes a first data package with the same name as the component package but a different version, a second data package with the same name as the version number file, and a base virtualization system data package; the version number file records the version number of the component package in the patch package; and a deployment module 230, configured to deploy the target virtualization system according to the image package of the target virtualization system, such that a higher version data package is used for installation during installation.
[0077] In one possible implementation, deployment module 230 is configured to: read the installation source configuration file, determine the list of data packages to be installed and the search directory, wherein the search directory includes: a base directory and a patch directory; and, based on the list of data packages to be installed, determine the data packages to be installed from the search directory, wherein, for data packages with the same name, the data package with the higher version number is installed to facilitate the deployment of the target virtualization system.
[0078] In one possible implementation, the method further includes: a first publishing module, used to copy the base virtualization system package to the base directory; copy the patch package to the patch directory; obtain the version number file and the installation source configuration file; and generate an image package of the target virtualization system based on the base virtualization system package in the base directory, the patch package and the version number file in the patch directory, and the installation source configuration file, and publish the image package of the target virtualization system.
[0079] In one possible implementation, the system further includes: a verification module for verifying the integrity of the patch package; and correspondingly, a first release module for: after the integrity verification of the patch package passes, generating an image of the target virtualization system based on the baseline virtualization system package in the baseline directory, the patch package and version number file in the patch directory, and the installation source configuration file.
[0080] In one possible implementation, the method further includes: a second publishing module, configured to generate a component package for at least one component based on the patch fixes for at least one component, generate a patch package based on the component package for at least one component, compress the patch package to obtain a compressed patch package file; record the version number of the component package for at least one component and generate a version number file; generate an installation source configuration file; compress a baseline virtualization system package to obtain a compressed baseline virtualization system package file; and publish the compressed patch package file, the version number file, the compressed baseline virtualization system package file, and the installation source configuration file.
[0081] In one possible implementation, the second acquisition module is used to: determine whether the required version number in the deployment request is greater than the highest virtualization system version number; if it is not greater, then acquire the image package of the target virtualization system according to the deployment request.
[0082] In one possible implementation, it also includes: a patching module for obtaining the highest version patch package corresponding to the highest virtualization system version number; and upgrading the target virtualization system based on the highest version patch package.
[0083] Figure 3 A structural diagram of an electronic device provided in an embodiment of the present invention, such as... Figure 3 As shown, the electronic device includes: a memory 60 for storing computer programs;
[0084] The processor 61 is used to execute computer programs to implement the steps of the virtualization system deployment method as described in the above embodiments.
[0085] The processor 61 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 61 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 61 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 61 may also include an Artificial Intelligence (AI) processor, which handles computational operations related to machine learning.
[0086] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 60 is used to store at least the following computer program 601, which, after being loaded and executed by the processor 61, is capable of implementing the relevant steps of the virtualization system deployment method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be temporary storage or permanent storage. The operating system 602 may include Windows, Unix, Linux, etc.
[0087] In some embodiments, the electronic device may further include a display screen 62, an input / output interface 63, a communication interface 64, a power supply 65, and a communication bus 66.
[0088] Those skilled in the art will understand that Figure 3 The structures shown do not constitute a limitation on electronic devices and may include more or fewer components than those shown.
[0089] It is understood that if the virtualization system deployment method in the above embodiments is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the current technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods in the various embodiments of the present invention. The aforementioned storage medium includes: USB flash drive, mobile hard drive, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk, or optical disk, and other media capable of storing program code.
[0090] Based on this, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method described above.
[0091] Based on this, embodiments of the present invention also provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the above-described method.
[0092] The foregoing has provided a detailed description of a virtualization system deployment method, apparatus, device, and medium provided by embodiments of the present invention. The various embodiments are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0093] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0094] The present invention has provided a detailed description of a virtualization system deployment method, apparatus, device, and medium. Specific examples have been used to illustrate the principles and implementation methods of the invention. The descriptions of these embodiments are merely illustrative of the method and its core ideas. It should be noted that those skilled in the art can make various improvements and modifications to the invention without departing from its principles, and these improvements and modifications also fall within the scope of protection of the claims.
Claims
1. A method for deploying a virtualization system, characterized in that, include: Obtain the deployment request for a new system from the target virtualization system; According to the new system deployment request, the image package of the target virtualization system is obtained. The image package of the target virtualization system includes: a base virtualization system package under the base directory, a patch package under the patch directory, a version number file, and an installation source configuration file. The patch package includes a component package consisting of patch fixes for at least one component. The base virtualization system package includes a first data package with the same name as the component package but a different version, a second data package with the same name as the version number file, and a base virtualization system data package. The version number file records the version number of the component package in the patch package. Based on the image package of the target virtualization system, deploy the target virtualization system so that a higher version of the data package is used for installation.
2. The virtualization system deployment method according to claim 1, characterized in that, Deploying the target virtualization system based on the image package of the target virtualization system includes: The installation source configuration file is read to determine the list of data packages to be installed and the search directory, wherein the search directory includes: the base directory and the patch directory; Based on the list of data packages that need to be installed, the data packages that need to be installed are determined from the search directory. For data packages with the same name, the data package with the higher version number is installed to facilitate the deployment of the target virtualization system.
3. The virtualization system deployment method according to claim 1, characterized in that, Also includes: Copy the baseline virtualization system package to the baseline directory; Copy the patch package to the patch directory; Obtain the version number file and install the source configuration file; Based on the baseline virtualization system package in the baseline directory, the patch package and version number file in the patch directory, and the installation source configuration file, generate the image package of the target virtualization system and publish the image package of the target virtualization system.
4. The virtualization system deployment method according to claim 3, characterized in that, After copying the patch package to the patch directory, the following is also included: Verify the integrity of the patch package; Accordingly, based on the baseline virtualization system package in the baseline directory, the patch package and version number file in the patch directory, and the installation source configuration file, an image of the target virtualization system is generated, including: After the integrity verification of the patch package passes, an image of the target virtualization system is generated based on the baseline virtualization system package in the baseline directory, the patch package and version number file in the patch directory, and the installation source configuration file.
5. The virtualization system deployment method according to claim 3, characterized in that, Also includes: Based on the patch fixes for at least one component, generate a component package for at least one component, and based on the component package for at least one component, generate a patch package and compress the patch package to obtain a compressed patch package file. Record the version number of the component package for at least one component and generate a version number file; Generate the installation source configuration file; Compress the baseline virtualization system package to obtain a compressed file of the baseline virtualization system package; Release patch package compressed files, version number files, base virtualization system package compressed files, and installation source configuration files.
6. The virtualization system deployment method according to claim 1, characterized in that, Based on the deployment request, obtain the image package of the target virtualization system, including: Determine whether the required version number in the deployment request is greater than the highest virtualization system version number; If the value is not greater than the target virtualization system image package, then obtain the image package of the target virtualization system according to the deployment request.
7. The virtualization system deployment method according to claim 6, characterized in that, After deploying the target virtualization system based on its image package, the process further includes: Obtain the highest version patch package corresponding to the highest virtualization system version number; Upgrade the target virtualization system according to the latest version patch package.
8. A virtualization system deployment apparatus, characterized in that, include: The first acquisition module is used to acquire the new system deployment request of the target virtualization system; The second acquisition module is used to acquire the image package of the target virtualization system according to the new system deployment request. The image package of the target virtualization system includes: a base virtualization system package under the base directory, a patch package under the patch directory, a version number file, and an installation source configuration file. The patch package includes a component package consisting of patch repair content for at least one component. The base virtualization system package includes a first data package with the same name as the component package but a different version, a second data package with the same name as the version number file, and the base virtualization system data package. The version number file records the version number of the component package in the patch package. The deployment module is used to deploy the target virtualization system based on the image package of the target virtualization system, so that a higher version of the data package is used for installation during installation.
9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method as described in any one of claims 1 to 7.