Virtualization method, system and equipment of physical server and medium

By evaluating the physical server hardware configuration and application dependencies in detail, configuring the OpenStack platform, and performing image file backup and conversion, creating and testing virtual machines, and dynamically adjusting resources, the problems of complex and high risk in the physical server virtualization process in the existing technology are solved, efficient and reliable virtualization migration is achieved, and resource utilization and business continuity are improved.

CN120029715APending Publication Date: 2025-05-23SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411863280.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

The prior art has poor universality, complex conversion process and high risk in the virtualization process of physical servers to OpenStack platform, which leads enterprises to face the risk of data loss and business interruption when migrating their businesses.

Method used

By evaluating the hardware configuration and application dependencies of the physical server in detail, configuring the OpenStack platform, backing up and converting system disk and data disk image files, creating and testing virtual machines, dynamically adjusting resources, and using OpenStack's high availability features to ensure the security of data migration.

Benefits of technology

It realizes efficient and reliable virtualization from physical servers to OpenStack platform, simplifies the migration process, reduces the risk of data loss, and improves resource utilization and business continuity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120029715A_ABST
    Figure CN120029715A_ABST
Patent Text Reader

Abstract

The invention provides a virtualization method, system and device of a physical server and a medium, and belongs to the technical field of cloud computing and server virtualization. The method comprises the following steps: carrying out detailed evaluation on hardware configuration of a physical server, and configuring an OpenStack platform; backing up a system disk and a data disk of the physical server, generating a mirror image file and transmitting the mirror image file to the OpenStack platform; creating a virtual machine based on an OpenStack platform, mounting the mirror image file on the virtual machine, starting the virtual machine, and performing network configuration and testing; verifying the started operating system and the application program in the virtual machine, and performing a service function test; adjusting hardware information of the virtual machine according to a service function test result, and dynamically adjusting resources; the security of data migration is guaranteed based on the high availability characteristic of an OpenStack platform, incremental data of a physical server is captured and synchronized, and a performance monitoring and alarm mechanism of a virtual machine is set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of cloud computing and server virtualization, and more specifically relates to a virtualization method, system, device and medium for a physical server. Background Art

[0002] With the continuous advancement of information technology, cloud computing and virtualization technology have become the key driving force for the transformation of enterprise IT architecture. In particular, OpenStack, an open source cloud computing management platform, is widely used in the construction of modern data centers and cloud computing environments due to its powerful feature set and high scalability. The OpenStack platform supports the full life cycle management of virtual machines, including creation, configuration, monitoring, migration and destruction, providing enterprises with flexible and efficient IT resource management capabilities.

[0003] However, enterprises face many challenges in migrating businesses on existing physical servers to the OpenStack platform. Physical to virtual (P2V) conversion is a key link, but existing technologies have obvious deficiencies in this regard. There are many types of P2V conversion tools or software on the market, but most of them rely on specific hardware or operating system environments and have poor versatility. In addition, the conversion process of these tools is often complicated and cumbersome, requiring professional technicians to perform complex configuration and operation, which is not only time-consuming and labor-intensive, but also prone to data loss or business interruption during the conversion process, causing immeasurable losses to enterprises.

[0004] Therefore, related technologies have defects in physical server virtualization, such as poor versatility of conversion tools, complex conversion process and high risk. There is an urgent need for an efficient, reliable and easy-to-implement physical server virtualization method to ensure that enterprise business can be smoothly and securely migrated to the OpenStack platform, so as to fully utilize the advantages brought by cloud computing and virtualization technology and improve the enterprise's IT management level and business operation efficiency. Summary of the invention

[0005] In view of the above problems, the purpose of the present invention is to provide a physical server virtualization method, system, device and medium, which can effectively improve the resource utilization, flexibility and scalability of the data center by seamlessly migrating the services running on traditional physical servers to virtual servers based on the OpenStack platform.

[0006] In order to achieve the above object, the present invention is implemented through the following technical solutions: In a first aspect, an embodiment of the present application provides a method for virtualizing a physical server, comprising: Conduct detailed assessment of physical server hardware configuration, analyze applications and their dependencies, and configure the OpenStack platform; Back up the system disk and data disk of the physical server, generate image files, convert the image files into different formats, and transfer them to the OpenStack platform. Create a virtual machine based on the OpenStack platform, mount the image file to the virtual machine, start the virtual machine, and perform network configuration and testing; Verify the started operating system and applications in the virtual machine and perform business function testing; Adjust the hardware information of the virtual machine and dynamically adjust resources according to the business function test results; The high availability features of the OpenStack platform ensure the security of data migration, capture and synchronize incremental data of physical servers, perform integrity verification on incremental data, and set up performance monitoring and alarm mechanisms for virtual machines.

[0007] In an optional implementation, the detailed evaluation of the hardware configuration of the physical server, the analysis of the applications and their dependencies therein, and the configuration of the OpenStack platform include: Evaluate the physical server's CPU, memory, hard disk, and network interface configuration information; Check the operating system version to confirm its compatibility with the operating system type of the virtual machine running on the OpenStack platform; Analyze the applications running on the physical server and their dependencies, including installation packages, configuration files, dependent libraries, and database connections, and make configuration adjustments based on the analysis results to ensure compatibility with the OpenStack platform and integrity of data migration; Install the OpenStack platform and configure the Keystone authentication service, Glance image service, Nova compute service, Neutron network service, and Cinder block storage service.

[0008] In an optional implementation, backing up the system disk and data disk of the physical server, generating an image file, converting the image file into a format, and then transmitting the format to the OpenStack platform includes: Use P2V tools or built-in tools of the operating system to perform lossless backup of the system disk and data disk of the physical server and generate an image file containing the operating system, application programs, and data; Convert image files to OpenStack-compatible virtual disk formats for data compression and encryption Then a virtual disk file is generated and transferred to the storage system of the OpenStack platform.

[0009] In an optional implementation, the virtual machine is created based on the OpenStack platform, the image file is mounted on the virtual machine, the virtual machine is started, and network configuration and testing are performed; Based on the configuration information of the physical server, create a virtual machine instance with corresponding specifications on the OpenStack platform, allocate CPU, memory, and network card resources to the virtual machine, and set the operating system of the virtual machine; Mount the converted and uploaded virtual disk file to the virtual machine; Start the virtual machine, check whether the operating system boots normally, and confirm that all hardware is correctly identified and working; Configure the network interface parameters of the virtual machine based on the physical server network environment; Perform a network test to verify that the virtual machine's network connection is normal.

[0010] In an optional implementation, verifying the started operating system and application program in the virtual machine and performing a business function test includes: Check whether the operating system boots normally and confirm that all hardware is correctly identified and working; Check the integrity of system files and confirm that the database and Web server can start and run normally; Simulate actual business scenarios and perform functional tests on the migrated virtual machines.

[0011] In an optional implementation, adjusting the hardware information of the virtual machine and dynamically adjusting resources according to the service function test results includes: Adjust the MAC address and CPU model of the virtual machine according to the business function test results, and verify the authorization status of the physical server; Dynamically adjust the CPU, memory allocation, storage I / O configuration, and network configuration of the virtual machine based on business load.

[0012] In an optional implementation, the high availability feature based on the OpenStack platform ensures the security of data migration, captures and synchronizes incremental data of physical servers, performs integrity check on incremental data, and sets performance monitoring and alarm mechanisms for virtual machines, including: Use the OpenStack platform's automatic virtual machine migration, snapshot backup, and fault recovery functions to set up automatic virtual machine migration policies and perform data recovery on a regular basis; Use the log function of the file system or database to capture the incremental data of the synchronized physical server, synchronize the incremental data to the virtual machine, and use the checksum or hash algorithm to verify the integrity of the incremental data blocks; Monitor the CPU usage, memory usage, disk I / O, and network traffic of virtual machines in real time, and use preset alarm thresholds to identify indicator anomalies and trigger alarms.

[0013] In a second aspect, an embodiment of the present application further provides a virtualization system for a physical server, including: Data migration preparation module, which is used to conduct a detailed assessment of the hardware configuration of the physical servers, analyze the applications and their dependencies, and configure the OpenStack platform; The data migration module is used to back up the system disk and data disk of the physical server, generate image files, convert the image files into different formats, and then transfer them to the OpenStack platform. The virtual machine creation and configuration module is used to create a virtual machine based on the OpenStack platform, mount the image file to the virtual machine, start the virtual machine, and perform network configuration and testing; The startup and verification module is used to verify the started operating system and application programs in the virtual machine and perform business function tests; Adjustment and optimization module, used to adjust the hardware information of the virtual machine and dynamically adjust resources according to the business function test results; The data security module is used to ensure the security of data migration based on the high availability characteristics of the OpenStack platform, capture and synchronize incremental data of physical servers, perform integrity verification on incremental data, and set up performance monitoring and alarm mechanisms for virtual machines.

[0014] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for virtualizing a physical server as described in any one of the above items are implemented.

[0015] In a fourth aspect, an embodiment of the present application further provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for virtualizing a physical server as described in any one of the above items are implemented.

[0016] It can be seen from the above technical solutions that the present invention has the following advantages: In the physical server virtualization method provided in the present application, an efficient and reliable method for converting a physical server to a virtual server on the OpenStack platform is provided by installing and configuring the OpenStack platform, backing up and converting data, creating a virtual machine instance, starting the virtual machine and verifying it, and optimizing and adjusting resources. Through a standardized conversion process, the migration process is simplified, the risk of data loss is reduced, resource utilization is improved, and business continuity is enhanced.

[0017] This application provides an intuitive and easy-to-use migration tool that enables users to easily and seamlessly migrate the operating system, applications, and data on a physical server to a virtual server on the OpenStack platform without complex configuration and manual operations. Through a standardized conversion process, the migration process from a physical server to the OpenStack platform is simplified.

[0018] During the migration process, this application uses advanced data synchronization and verification mechanisms to ensure that all data on the physical server can be completely and accurately copied to the virtual server to avoid data loss or damage.

[0019] This application optimizes the migration strategy, realizes online migration, supports rapid migration and backup and recovery of virtual machines, and enhances business continuity and reliability.

[0020] This application uses the powerful functions of the OpenStack platform to dynamically allocate and optimize resources for the migrated virtual servers, improve overall resource utilization, and reduce operating costs.

[0021] This application enables the migrated virtual server to easily expand or reduce resources, such as CPU, memory, and storage, to meet changing business needs while providing greater flexibility and scalability. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0023] Figure 1 A flowchart of a method for virtualizing a physical server provided in this application.

[0024] Figure 2 A schematic diagram of the structure of the virtualization system of the physical server provided in this application.

[0025] Figure 3 A schematic diagram of the structure of the electronic device provided in this application. DETAILED DESCRIPTION

[0026] In the specific steps of the virtualization method of the physical server described in detail below, various embodiments of the present disclosure will be described more fully. The present disclosure may have various embodiments, and adjustments and changes may be made therein. However, it should be understood that there is no intention to limit the various embodiments of the present disclosure to the specific embodiments disclosed herein, but rather the present disclosure should be understood to cover all adjustments, equivalents and / or alternatives that fall within the spirit and scope of the various embodiments of the present disclosure.

[0027] Hereinafter, the terms "include" or "may include" used in various embodiments of the present disclosure indicate the presence of disclosed functions, operations, or elements, and do not limit the addition of one or more functions, operations, or elements. In addition, as used in various embodiments of the present disclosure, the terms "include", "have", and their cognates are intended only to indicate specific features, numbers, steps, operations, elements, components, or a combination of the foregoing, and should not be understood as first excluding the presence of one or more other features, numbers, steps, operations, elements, components, or a combination of the foregoing or the possibility of adding one or more features, numbers, steps, operations, elements, components, or a combination of the foregoing.

[0028] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] See also Figure 1 The figure is a flow chart of a method for virtualizing a physical server in a specific embodiment, the method comprising: S1: Perform a detailed assessment of the hardware configuration of the physical servers, analyze the applications and their dependencies, and configure the OpenStack platform.

[0030] In a specific implementation, first, a detailed evaluation is performed on the hardware configuration of the physical server. This includes but is not limited to key parameters such as CPU model, number of cores, memory size, hard disk type and capacity, network interface, etc. The purpose of the evaluation is to ensure that the target virtual machine can match or exceed the performance of the original physical server to avoid affecting business operations due to performance degradation. At the same time, the operating system version of the physical server must be checked to confirm whether it supports the type of virtual machine operating system running on the OpenStack platform. For unsupported operating systems, you may need to consider upgrading or replacing the operating system to ensure compatibility after migration.

[0031] Next, you need to conduct an in-depth analysis of the applications running on the physical server and their dependencies. This includes the application's installation package, configuration files, dependent libraries, database connections, etc. Through this step, you can assess the complexity and possible risks of the migration. For example, some applications may need to be reconfigured or adjusted in the new environment, and some dependent libraries may need to be reinstalled or updated on the OpenStack platform. In addition, you also need to pay attention to the application's data storage method to ensure the integrity and consistency of the data during the migration process.

[0032] Finally, in the target environment, install and configure the OpenStack platform, including the Keystone authentication service, Glance image service, Nova computing service, Neutron network service, Cinder block storage service and other core components. The collaborative work of these components will provide a stable operating environment for the virtual machine. During the configuration process, it is necessary to ensure the version compatibility of all components and the reasonable configuration of network, storage and other resources. In addition, the security of the OpenStack platform must be considered, such as setting appropriate access control policies and encrypted communications to ensure data security during the migration process.

[0033] S2: Back up the system disk and data disk of the physical server, generate an image file, convert the image file format, and transfer it to the OpenStack platform.

[0034] In a specific implementation, first, a professional P2V (physical to virtual) tool or a tool provided by the operating system is used on the physical server to perform a lossless backup of the entire system disk and data disk of the physical server. The purpose of this step is to generate an original image file containing all contents such as the operating system, application programs, and data. During the backup process, the integrity and consistency of the data must be ensured to avoid data loss or damage.

[0035] Next, convert the original image file obtained from the backup to an OpenStack-compatible virtual disk format, such as qcow2. This step usually requires the use of a specific conversion tool. During the conversion process, it is necessary to ensure the correctness and compatibility of the virtual disk format so that the virtual machine can recognize and load it. After the conversion is complete, the converted virtual disk file is securely transferred to the storage system of the OpenStack platform. During the transmission process, compression and encryption technologies can be used to improve transmission efficiency and security. At the same time, the transmission progress and status must be monitored to ensure the smooth progress of the transmission process.

[0036] S3: Create a virtual machine based on the OpenStack platform, mount the image file to the virtual machine, start the virtual machine, and perform network configuration and testing.

[0037] In a specific implementation, firstly, based on the graphical or command line interface of OpenStack, a virtual machine instance with corresponding specifications can be created according to the configuration information of the physical server. During the creation process, appropriate resources such as CPU, memory, and network card need to be allocated to meet the operation requirements of the virtual machine. At the same time, parameters such as the operating system type and version of the virtual machine need to be set to ensure consistency with the original physical server.

[0038] After creating a virtual machine instance, mount the converted and uploaded virtual disk file to the newly created virtual machine as a system disk or data disk for startup. This step is a key step in the migration process, which determines whether the virtual machine can successfully start and run the operating system and applications on the original physical server. During the mounting process, you need to ensure the correctness and compatibility of the virtual disk file and the correctness of the mount point. After starting the virtual machine, you need to check whether the operating system boots normally and confirm that all hardware (such as network cards and disks) are correctly identified and working.

[0039] Since network configuration is an important part of virtual machine configuration, you need to configure the network interface of the virtual machine, including the network card MAC address, IP address, subnet, routing and other parameters to ensure that the network environment of the virtual machine is the same as that of the physical server. After the configuration is completed, you need to perform a network test to verify whether the network connection of the virtual machine is normal and whether it can communicate with other devices on the original physical server.

[0040] S4: Verify the started operating system and applications in the virtual machine and perform business function testing.

[0041] In a specific implementation, after starting the virtual machine, you first need to check whether the operating system boots normally and confirm that all hardware is correctly identified and working. After entering the system, you need to check the integrity of the system files and confirm that key services (such as databases and web servers) can start and run normally. For some applications that require specific configuration or dependencies, additional configuration and testing are required.

[0042] Then, perform comprehensive business function testing, including simulating actual business scenarios and performing functional testing on the migrated virtual machines to ensure that they can completely replace the original physical servers without any business logic errors. During the testing process, attention should be paid to performance, response time, data accuracy, and other aspects.

[0043] S5: Adjust the hardware information of the virtual machine and dynamically adjust resources according to the business function test results.

[0044] In a specific implementation method, first, the specific situation of the business is obtained according to the business function test results, and the hardware information of the virtual machine is modified based on the specific situation of the business to ensure consistency with the original physical server. For example, some applications may rely on specific hardware information (such as MAC address, CPU model, etc.), which needs to be modified accordingly on the virtual machine. At the same time, attention should also be paid to the authorization issues of the original physical server to ensure that the migrated virtual machine can use the relevant software and services normally.

[0045] In addition, according to the business load, dynamically adjust the CPU and memory allocation of the virtual machine, and optimize the storage I / O performance to achieve the best operating efficiency. The OpenStack platform provides a variety of resource management tools that can monitor the resource usage of the virtual machine in real time and dynamically adjust it according to demand. In addition, you can also improve performance by optimizing the storage configuration and network configuration of the virtual machine.

[0046] S6: Ensure the security of data migration based on the high availability characteristics of the OpenStack platform, capture and synchronize incremental data of physical servers, perform integrity verification on incremental data, and set up performance monitoring and alarm mechanisms for virtual machines.

[0047] In the specific implementation, firstly, by utilizing the high availability features of OpenStack, such as automatic virtual machine migration, snapshot backup, and fault recovery, business continuity and data security can be enhanced. During the migration process, the automatic migration policy of the virtual machine can be set to ensure that it can be automatically migrated to other servers to continue running when a physical server fails. At the same time, snapshot backup operations need to be performed regularly so that data can be quickly restored when it is lost or damaged. In addition, attention should also be paid to data security, such as using encryption technology to protect the secure transmission and storage of sensitive data.

[0048] Secondly, during the migration process, it may be necessary to capture and synchronize the incremental data of the physical server to ensure the integrity and consistency of the data. At this time, use the log function of the file system or database to capture the data changes since the last synchronization, and use compression and encryption technology to package the incremental data into a transmission package and transmit it to the OpenStack platform through a high-speed network. On the OpenStack platform, you need to decompress the transmission package and apply the data to the corresponding location of the virtual server. At the same time, you also need to use a checksum or hash algorithm to verify the data blocks to ensure the integrity and accuracy of the data.

[0049] Third, set up a performance monitoring and alarm mechanism for virtual machines to promptly discover and handle potential problems and ensure stable business operations. Since the OpenStack platform provides a variety of monitoring tools, key indicators such as CPU usage, memory usage, disk I / O, and network traffic of virtual machines can be monitored in real time. By setting alarm thresholds and alarm methods (such as email notifications, SMS notifications, etc.), you can receive alarm information in a timely manner when indicators are abnormal and take corresponding treatment measures.

[0050] In this embodiment, efficient data migration and virtualization deployment are achieved by evaluating hardware configuration in detail, analyzing application dependencies, and configuring the OpenStack platform. The stability, reliability, and business continuity of the virtualization environment are significantly improved by backing up and converting image files, creating and testing virtual machines, flexibly adjusting resources, and using OpenStack's high availability to ensure data security and performance monitoring.

[0051] like Figure 2 As shown, the following is an embodiment of the virtualization system of the physical server provided in the embodiment of the present disclosure. The system and the physical server virtualization method of the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the virtualization system of the physical server, reference can be made to the embodiment of the above-mentioned physical server virtualization method.

[0052] A virtualization system for a physical server includes: a data migration preparation module 1, a data migration module 2, a virtual machine creation and configuration module 3, a startup and verification module 4, an adjustment and optimization module 5 and a data security module 6.

[0053] Data migration preparation module 1 is used to conduct a detailed assessment of the hardware configuration of the physical server, analyze the applications and their dependencies, and configure the OpenStack platform.

[0054] The data migration module 2 is used to back up the system disk and data disk of the physical server, generate an image file, convert the image file format, and then transmit it to the OpenStack platform.

[0055] The virtual machine creation and configuration module 3 is used to create a virtual machine based on the OpenStack platform, mount the image file to the virtual machine, start the virtual machine, and perform network configuration and testing.

[0056] The startup and verification module 4 is used to verify the started operating system and application program in the virtual machine and perform business function testing.

[0057] The adjustment and optimization module 5 is used to adjust the hardware information of the virtual machine and dynamically adjust the resources according to the business function test results.

[0058] Data security module 6 is used to ensure the security of data migration based on the high availability characteristics of the OpenStack platform, capture and synchronize incremental data of physical servers, perform integrity verification on incremental data, and set up performance monitoring and alarm mechanisms for virtual machines.

[0059] The virtualization system of the physical server provided in this embodiment significantly improves the accuracy and efficiency of virtualization implementation through detailed hardware evaluation, application and dependency analysis, and clever configuration of the OpenStack platform. Through the image backup and format conversion of the system disk and data disk, seamless migration to the OpenStack platform is achieved, greatly simplifying the migration steps. The virtual machines created based on the platform not only start quickly, but also undergo careful network configuration and business function testing to ensure stable operation. At the same time, the system can flexibly adjust virtual machine resources based on test results, use the high availability of OpenStack to ensure data security, and set performance monitoring and alarms, which comprehensively enhances the stability of the system and business continuity, and provides a solid guarantee for data migration and virtualization deployment.

[0060] Figure 3 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0061] The virtualization method of the physical server provided in the embodiment of the present application can be applied to electronic devices. It will be appreciated by those skilled in the art that the electronic device structure involved in the embodiment of the present invention does not constitute a limitation on the electronic device, and the electronic device may include more or less components than shown, or combine certain components, or arrange different components. In an embodiment of the present invention, the electronic device includes but is not limited to a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the embodiments of the present application described and / or required herein.

[0062] The electronic device may include a processor, an external memory interface, an internal memory, a universal serial bus (USB) interface, a charging management module, a power management module, a battery, a wireless communication module, an audio module, a speaker, a microphone, a sensor module, buttons, a camera, a display, and a SIM card interface, etc.

[0063] The processor may include one or more processing units, for example, the processor may include a central processing unit (CPU), an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated into one or more processors.

[0064] The processor can be the nerve center and command center of the electronic device. The controller can generate an operation control signal according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0065] A memory may also be provided in the processor for storing instructions and data. In some embodiments, the memory in the processor is a cache memory. The memory may store instructions or data that the processor has just used or is cyclically used. If the processor needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor, and thus improves system efficiency.

[0066] The external memory interface can be used to connect an external memory card, such as a MicroSD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor through the external memory interface to implement data storage functions. For example, files such as music and videos can be saved in the external memory card.

[0067] The internal memory can be used to store computer executable program codes, which include instructions. The processor executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory. The internal memory may include a program storage area and a data storage area. The internal memory may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0068] The wireless communication function of an electronic device can be realized through an antenna, a wireless communication module, a modem processor, and a baseband processor.

[0069] The wireless communication module can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc.

[0070] Electronic devices can implement audio functions, etc. through audio modules, speakers, receivers, microphones, headphone jacks, and application processors.

[0071] Electronic devices can achieve shooting functions through ISP, camera, video codec, GPU, display and application processor.

[0072] Electronic devices can achieve display functions through GPU, display screen and application processor.

[0073] The GPU is a microprocessor for image processing that connects the display screen and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor may include one or more GPUs that execute program instructions to generate or change display information.

[0074] The display screen is used to display images, videos, etc. The display screen includes a display panel.

[0075] The above-mentioned electronic device implements the virtualization method of the physical server of this application through detailed hardware configuration evaluation, application and dependency analysis, and configures the OpenStack platform to achieve efficient and accurate virtualization environment construction. By backing up and converting the physical server image file to the OpenStack platform, the migration process is simplified and the data migration efficiency is improved. The virtual machine created based on the OpenStack platform not only starts quickly, but also undergoes network configuration and business function testing to ensure the stable operation of the operating system and application programs. In addition, the method can also flexibly adjust the virtual machine hardware information and resource allocation according to the test results, and use the high availability characteristics of OpenStack to ensure data migration security. Through incremental data capture, integrity verification, and performance monitoring and alarm mechanisms, the stability and reliability of the system are further improved, providing strong guarantees for business continuity and data security.

[0076] The storage medium provided in the present application stores a program product capable of implementing a method for virtualizing a physical server.

[0077] The virtualization method of the physical server includes: conducting a detailed evaluation of the hardware configuration of the physical server, analyzing the applications and their dependencies therein, and configuring the OpenStack platform; backing up the system disk and data disk of the physical server, generating an image file, converting the image file into a format and transferring it to the OpenStack platform; creating a virtual machine based on the OpenStack platform, mounting the image file on the virtual machine, starting the virtual machine, and performing network configuration and testing; verifying the started operating system and application in the virtual machine, and performing business function testing; adjusting the hardware information of the virtual machine and dynamically adjusting resources based on the business function test results; ensuring the security of data migration based on the high availability characteristics of the OpenStack platform, capturing and synchronizing the incremental data of the physical server, performing integrity verification on the incremental data, and setting up performance monitoring and alarm mechanisms for the virtual machine.

[0078] In some possible implementations, the physical server virtualization method of the present disclosure may be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps described in the above “Exemplary Method” section of this specification according to various exemplary implementations of the present disclosure.

[0079] The storage medium of the present disclosure can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, 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 portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0080] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for virtualizing a physical server, characterized in that: include: Conduct detailed assessment of physical server hardware configuration, analyze applications and their dependencies, and configure the OpenStack platform; Back up the system disk and data disk of the physical server, generate image files, convert the image files into different formats, and transfer them to the OpenStack platform. Create a virtual machine based on the OpenStack platform, mount the image file to the virtual machine, start the virtual machine, and perform network configuration and testing; Verify the started operating system and applications in the virtual machine and perform business function testing; Adjust the hardware information of the virtual machine and dynamically adjust resources according to the business function test results; The high availability features of the OpenStack platform ensure the security of data migration, capture and synchronize incremental data of physical servers, perform integrity verification on incremental data, and set up performance monitoring and alarm mechanisms for virtual machines.

2. The method for virtualizing a physical server according to claim 1, wherein: The detailed evaluation of the hardware configuration of the physical server, analysis of the applications and their dependencies, and configuration of the OpenStack platform include: Evaluate the physical server's CPU, memory, hard disk, and network interface configuration information; Check the operating system version to confirm its compatibility with the operating system type of the virtual machine running on the OpenStack platform; Analyze the applications running on the physical server and their dependencies, including installation packages, configuration files, dependent libraries, and database connections, and make configuration adjustments based on the analysis results to ensure compatibility with the OpenStack platform and integrity of data migration; Install the OpenStack platform and configure the Keystone authentication service, Glance image service, Nova compute service, Neutron network service, and Cinder block storage service.

3. The method for virtualizing a physical server according to claim 1, wherein: The method of backing up the system disk and data disk of the physical server, generating an image file, converting the image file into a format and transmitting it to the OpenStack platform includes: Use P2V tools or built-in tools of the operating system to perform lossless backup of the system disk and data disk of the physical server and generate an image file containing the operating system, application programs, and data; Convert image files to OpenStack-compatible virtual disk formats for data compression and encryption Then a virtual disk file is generated and transferred to the storage system of the OpenStack platform.

4. The method for virtualizing a physical server according to claim 3, characterized in that: The step of creating a virtual machine based on the OpenStack platform, mounting the image file to the virtual machine, starting the virtual machine, and performing network configuration and testing; Based on the configuration information of the physical server, create a virtual machine instance with corresponding specifications on the OpenStack platform, allocate CPU, memory, and network card resources to the virtual machine, and set the operating system of the virtual machine; Mount the converted and uploaded virtual disk file to the virtual machine; Start the virtual machine, check whether the operating system boots normally, and confirm that all hardware is correctly identified and working; Configure the network interface parameters of the virtual machine based on the physical server network environment; Perform a network test to verify that the virtual machine's network connection is normal.

5. The method for virtualizing a physical server according to claim 1, wherein: Verifying the started operating system and application in the virtual machine and performing business function testing include: Check whether the operating system boots normally and confirm that all hardware is correctly identified and working; Check the integrity of system files and confirm that the database and Web server can start and run normally; Simulate actual business scenarios and perform functional tests on the migrated virtual machines.

6. The method for virtualizing a physical server according to claim 5, characterized in that: The adjusting the hardware information of the virtual machine and dynamically adjusting the resources according to the business function test results includes: Adjust the MAC address and CPU model of the virtual machine according to the business function test results, and verify the authorization status of the physical server; Dynamically adjust the CPU, memory allocation, storage I / O configuration, and network configuration of the virtual machine based on business load.

7. The method for virtualizing a physical server according to claim 6, characterized in that: The high availability feature based on the OpenStack platform ensures the security of data migration, captures and synchronizes the incremental data of the physical server, performs integrity verification on the incremental data, and sets up performance monitoring and alarm mechanisms for virtual machines, including: Use the OpenStack platform's automatic virtual machine migration, snapshot backup, and fault recovery functions to set up automatic virtual machine migration policies and perform data recovery on a regular basis; Use the log function of the file system or database to capture the incremental data of the synchronized physical server, synchronize the incremental data to the virtual machine, and use the checksum or hash algorithm to verify the integrity of the incremental data blocks; Monitor the CPU usage, memory usage, disk I / O, and network traffic of virtual machines in real time, and use preset alarm thresholds to identify indicator anomalies and trigger alarms.

8. A virtualization system for a physical server, characterized in that: The system adopts the physical server virtualization method as claimed in any one of claims 1 to 7; The system comprises: Data migration preparation module, which is used to conduct a detailed assessment of the hardware configuration of the physical servers, analyze the applications and their dependencies, and configure the OpenStack platform; The data migration module is used to back up the system disk and data disk of the physical server, generate image files, convert the image files into different formats, and then transfer them to the OpenStack platform. The virtual machine creation and configuration module is used to create a virtual machine based on the OpenStack platform, mount the image file to the virtual machine, start the virtual machine, and perform network configuration and testing; The startup and verification module is used to verify the started operating system and application programs in the virtual machine and perform business function tests; Adjustment and optimization module, used to adjust the hardware information of the virtual machine and dynamically adjust resources according to the business function test results; The data security module is used to ensure the security of data migration based on the high availability characteristics of the OpenStack platform, capture and synchronize incremental data of physical servers, perform integrity verification on incremental data, and set up performance monitoring and alarm mechanisms for virtual machines.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the physical server virtualization method according to any one of claims 1 to 7 are implemented.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the physical server virtualization method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Server information acquisition and updating method and device, system, medium, product and equipment

    CN120915798A