Virtual machine snapshot-based OpenStack practice platform construction method
By using virtual machine snapshot technology in the OpenStack practice platform, the problems of high hardware cost and low learning efficiency during the deployment and implementation of multi-host nodes are solved, and more efficient platform sharing and skill training are achieved.
Patent Information
- Application Number
- CN202510290197.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-12
- Publication Date
- 2025-06-27
AI Technical Summary
During the joint deployment and implementation of multiple host nodes, existing OpenStack private cloud IaaS technicians face large hardware investment, low management efficiency and sharing, and the lack of key state preservation and recovery mechanisms, resulting in low learning efficiency.
Through a virtual machine snapshot method, an OpenStack practice platform is built to create control, computing and network node virtual machines, and the snapshot method is used to save the key stage status of virtual machines of each node, so as to realize the switching of multi-host states and avoid repetitive configuration.
It reduces hardware investment, improves platform sharing and learning efficiency, simplifies multi-host state management, and improves the efficiency of OpenStack private cloud skills training.
Smart Images

Figure CN120216100A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of virtual machine snapshots, and in particular to a method for constructing an OpenStack practice platform based on virtual machine snapshots. Background Art
[0002] As an industry-leading, highly scalable, feature-rich, and standardized cloud computing management platform, the open-source cloud computing platform OpenStack has become the core of private cloud development for many manufacturers; for OpenStack private cloud IaaS practitioners, their skills training and practice require the joint deployment and implementation of multiple host nodes; however, installing and deploying the OpenStack system by component and by host usually has great difficulty, and there are mainly two deficiencies in the current practice platform environment: First, building a platform based on a multi-physical host system requires a large investment in hardware costs, and the management efficiency and sharing degree are not high; Second, in the multi-host linked deployment environment, the key state saving and recovery mechanism is missing. After an error occurs, it is often necessary to start from scratch and repeat the heavy and worthless preparatory work in the early stage, resulting in low learning efficiency.
[0003] The patent with the publication number CN114629789A constructs an IaaS logical resource pool through computing, storage integration, and virtualization; assigns the logical resources to the training group to support the autonomous definition and modification of the practice environment within the group, effectively isolating the logical resources between groups and avoiding conflicts; batch manages the virtual machine resources in the experimental environment through functions such as orchestration and script design to improve the platform management efficiency; but does not consider how to improve learning efficiency. Summary of the Invention
[0004] In view of the deficiencies of the existing methods, the present invention associates multiple node virtual machines based on the snapshot state group, constructs the system states of multiple stages of the practice platform, facilitates users to switch the multi-host states through snapshots, avoids repetitive configurations, improves learning efficiency, and enhances the platform sharing; creates control, computing, and network node virtual machines in the ordinary host virtualization platform to construct the OpenStack basic practice platform architecture, reduces hardware investment, and improves the platform sharing degree; installs and deploys control, image, computing, and network components in sequence, and uses the snapshot method to superimpose and save the key stage states of each node virtual machine.
[0005] The technical solution adopted by the present invention is that the method for constructing an OpenStack practice platform based on virtual machine snapshots includes the following steps:
[0006] Step 1: Construct a control node, a computing node, and a local source node between the management and provider virtual networks, configure the basic parameters of the virtual network, deploy the source service on the local source node, and construct the OpenStack platform;
[0007] As a preferred embodiment of the present invention, the source services include: deploying local pip sources and yum sources, installing offline software installation packages, and installing offline source codes.
[0008] Step 2: Install and configure general components, authentication service databases, and keystone software on the control node; create a snapshot of the installation, deployment, and operation and maintenance configuration status of keystone on the control node.
[0009] As a preferred embodiment of the present invention, the general components include mysql, rabbitmq, and memcached services.
[0010] Step 3: Install and configure the image service database, glance users, and service credentials on the control node; create a snapshot of the installation, deployment, and operation and maintenance configuration status of glance on the control node.
[0011] As a preferred embodiment of the present invention, the image service API endpoints include configuring database connections, identity access, local storage methods, and image storage locations.
[0012] Step 4: Create placement service databases, unit databases, and compute service databases and install Nova software on the control node, create snapshots of the installation, deployment status of Nova on the control node and compute nodes; create snapshots of the Nova cloud host status on the control node and compute nodes.
[0013] Step 5: Create a network service database and configuration on the control node, create neutron service credentials and API endpoints; create snapshots of the installation, deployment status of neutron on the control node and compute nodes; create providers, internal networks, and routers, and create the operation and maintenance configuration of neutron on the control node and compute nodes.
[0014] As a preferred embodiment of the present invention, the service credentials refer to the API of three endpoints: public, internal, and management.
[0015] As a preferred embodiment of the present invention, the network service database is the database used by Neutron.
[0016] As a preferred embodiment of the present invention, the provider is the external network for user services.
[0017] As a preferred embodiment of the present invention, the internal network is the network for OpenStack private cloud projects.
[0018] Step 6: Build a snapshot matrix of the control node and compute nodes based on the status snapshots; package, copy, and unpack the snapshot matrix for transplantation and sharing on different virtual machine platforms.
[0019] As a preferred embodiment of the present invention, a system for constructing an OpenStack practice platform based on virtual machine snapshots includes: a memory for storing instructions executable by a processor; and a processor for executing the instructions to implement a method for constructing an OpenStack practice platform based on virtual machine snapshots.
[0020] A computer-readable medium storing computer program code, characterized in that the computer program code, when executed by a processor, implements the method for constructing an OpenStack practice platform based on virtual machine snapshots according to any one of claims 1-8.
[0021] Advantages of the present invention:
[0022] 1. By creating control, computing, and network node virtual machines in a general host virtualization platform, an OpenStack basic practice platform architecture is constructed, reducing hardware investment and improving platform sharing; installing and deploying control, image, computing, and network components according to standards, and using the snapshot method to superimpose and save the key stage states of each node virtual machine; associating multiple node virtual machines based on the snapshot state group to construct multiple stage system states, facilitating users to switch the states of multiple hosts through snapshots, avoiding repetitive configurations, and providing learning efficiency.
[0023] 2. The present invention is applied to the fields of education and IT training, can intuitively and efficiently construct an OpenStack private cloud basic practice platform, support the switching and use of typical configuration states, provide an important basis for the construction and optimization of a private cloud skills training platform, and has important guiding significance for guiding the product development of cloud platform education manufacturers and improving the practical skills training level of training students. Description of the Drawings
[0024] Figure 1 is a flowchart of the method for constructing an OpenStack practice platform based on virtual machine snapshots of the present invention;
[0025] Figure 2 are the configuration parameters of the node virtual machine in the present invention;
[0026] Figure 3 is the connection between the node virtual machine and the network in the present invention;
[0027] Figure 4 is the multi-node snapshot matrix of the practice platform in the present invention;
[0028] Figure 5 is the process of platform packaging, transplantation, and unpacking in the present invention. Detailed Embodiments
[0029] The present invention will be further described below in conjunction with the accompanying drawings and embodiments. This figure is a simplified schematic diagram, which only illustrates the basic structure of the present invention in a schematic manner. Therefore, it only shows the components related to the present invention.
[0030] As Figure 1 shown, the method for constructing an OpenStack practice platform based on virtual machine snapshots includes the following steps:
[0031] Step 1: In the host virtualization platform, create virtual machines for the control node controller, compute node compute, and local source node lcl_src according to the configuration parameters, as Figure 2 shown;
[0032] Create two virtual networks, namely management VMnet8 and provider VMnet10, connect the node virtual machines to the two networks, install the Centos system on the virtual machines, configure basic parameters such as IP addresses, and complete the connection between the virtual machines; install and deploy the source service in the local source node, configure other nodes to use the local source node, and build the OpenStack basic practice platform architecture, as Figure 3 shown; save the initialization state of each virtual machine by snapshot;
[0033] The host virtualization platform is VMWare WorkStation 15 or above, and the virtual machine configuration includes CPU, memory, hard disk, and network card parameters; the management network and provider modes are NAT and host-only respectively; the installed system is the minimized installation of Centos7 or above; the configured basic parameters include disabling the NetworkManager and firewalld services, installing the NTP service, configuring the IP address, and adding the corresponding relationship between the host name and IP address in the host file.
[0034] Installing and deploying the source service means deploying the local pip source and yum source to achieve the installation of offline software installation packages and offline source code; other nodes using the local source node means modifying their repo files in the control node and compute node, and configuring the baseurl of base, updates, and extras to point to the corresponding directories under the local source http service.
[0035] Step 2: Install general components on the control node, create an authentication service database, configure authorized access, install the keystone software package, connect to and initialize the database, create a key repository, bootstrap identity authentication, complete the installation of the authentication service keystone, and create a status snapshot K_ist; Under the default domain, create two projects, service and selfproject, create an account and role named selfuser, add selfuser to the selfproject project and assign the role of myrole, create client environment scripts for the administrator admin and the user selfuser, complete the configuration of projects, accounts, and roles, etc., and create a status snapshot K_ist_mng;
[0036] K_ist is used for the installation and deployment of keystone on the control node; K_ist_mng is used for the operation and maintenance configuration of keystone on the control node.
[0037] Installing general components includes mysql, rabbitmq, and memcached services; The authentication service database refers to the database used by keystone; Authorized access means authorizing the keystone account to access locally and from any location; The keystone software package refers to OpenStack-keystone, httpd, mod_wsgi, and OpenStack-utils; Bootstrap identity authentication is based on two types: administrator and user.
[0038] service and selfproject refer to the system project and the user project respectively; The administrator admin and the user selfuser refer to the project administrator and the ordinary user respectively; Project configuration means adding a new project; User configuration means adding a new user; Role configuration means adding a new role.
[0039] Step 3: Create an image service database on the control node, configure authorized access, create a glance user and service credentials, create an image service API endpoint, install the glance software package, configure and start the API and registry services, initialize the image service database, complete the installation of the image service Glance, and create a status snapshot K+G_ist; Download the image img file, create the image file, and create a status snapshot K+G_ist_mng;
[0040] K+G_ist is used for the installation and deployment of glance on the control node; K+G_ist_mng is used for the operation and maintenance configuration of glance on the control node;
[0041] The mirror service database refers to the database used by Glance; authorized access means authorizing the Glance account to access locally and from any location; service credentials refer to the public, internal, and management API endpoints; the Glance software package refers to the three packages OpenStack - Glance, python - Glance, and python - Glanceclient; configuring API endpoints includes configuring database connections, identity access, local storage methods, and mirror storage locations; configuring the Registry service includes database connections and identity access.
[0042] The mirror img file refers to cirros - 0.3.4 - x86_64 - disk.img; creating a mirror means using the qcow2 disk format and being visible to other projects.
[0043] Step 4: Create the compute placement service database placement on the control node, configure authorized access, create service credentials and API endpoints, install the placement - api software package, configure and initialize the placement database; create nova_api, nova, and cell0, configure authorized access, create compute service credentials and API endpoints, install the nova software package, synchronously create the placement service database, cell database, and compute service database, start the nova service, complete the installation of compute service components on the control node, and create a status snapshot K + G + Nv_ist.
[0044] K + G + Nv_ist is used for the nova installation and deployment on the control node.
[0045] On the compute node, install the nova software package and start the nova service to complete the installation of the compute service on the compute node and create a status snapshot Nv_ist; on the control node, add the compute node to the cell database; create a key pair and create a status snapshot K + G + Nv_ist_mng.
[0046] K + G + Nv_ist_mng is used for the Nova software installation of cloud hosts on the control node; Nv_ist is used for the Nova software installation of cloud hosts on the compute node.
[0047] The placement service database refers to the database used by Placement; authorized access means authorizing the Placement account to access locally and from any location; service credentials refer to the public, internal, and management API endpoints; adding the compute node to the cell database means adding the compute node to the compute service database list and starting the nova - conductor, nova - scheduler, and nova - compute services.
[0048] Step 5: Create a network service database on the control node, configure authorized access, create Neutron service credentials and API endpoints, install network service components, configure the services, complete the installation of computing service components on the control node, and create a status snapshot K+G+Nv+Nv_ist;
[0049] On the compute node, install and configure components and configure the agent; complete the installation of computing service components on the compute node and create a status snapshot Nv+Nt_ist; on the control node, create a provider, internal network, and router, create a host instance using the project user identity, complete the instance deployment, and create a status snapshot K+G+Nv+Nt_ist_mng; on the compute node, create a status snapshot Nv+Nt_ist_mng;
[0050] K+G+Nv+Nv_ist is used for the installation and deployment of the Neutron service on the control node;
[0051] K+G+Nv+Nt_ist_mng is used for the installation and deployment of the Neutron service on the compute node;
[0052] The network service database refers to the database used by the network service Neutron; authorized access means authorizing the neutron local and any location access; service credentials refer to the API of the public, internal, and management endpoints; configuring the services includes ML2 plugins, bridge agents, L3 agents, DHCP agents, and metadia services; installing and configuring components refer to common components such as authentication mechanisms, message queues, and plugins; configuring the agent means configuring the network services used by the bridge agent and computing services;
[0053] The provider refers to the external network of the user service; the internal network refers to the internal network in the OpenStack private cloud project; the router refers to the virtual router connecting the provider network and the internal network; creating a host instance means creating a host instance to a specific internal network based on existing preset types, key pairs, group policies, images, etc.; completing the instance deployment includes configuring a floating IP address for the host instance to support access to the provider network;
[0054] Step 6: Build a node host snapshot matrix. According to the deployment order of the OpenStack basic practice, define the virtual machine snapshots of the nodes as 9 snapshot status groups and build 8 key stage platform statuses; as Figure 4 shown;
[0055] Among them, in the status snapshot, K represents the keystone service; G represents the glance service; Nv represents the nova service, and Nt represents the neutron service; the "+" sign represents the cumulative status of multiple service deployments; ist represents install, and mng represents manage. The word abbreviations represent the installation and deployment sub-states under the current service.
[0056] Package and transplant 3 virtual machines to other host machines of the same type of virtualization platform, and open the virtual machine package on other host machines, as Figure 5 shown.
[0057] The snapshot status group refers to the combination of control node and compute node status snapshots preset according to the key status; transplantation means that after suspending or shutting down the virtual machine, the three nodes of control, compute, and local source under VMWare WorkStation are packaged and moved or copied to the enterprise host.
[0058] The method for constructing an OpenStack practice platform based on virtual machine snapshots of the present invention is as follows: First, based on the host virtualization platform, create virtual machines and virtual networks for control nodes, compute nodes, and local sources, install and deploy local source services, construct the architecture of the OpenStack basic practice platform, and create its snapshot; then, on the control node, install the authentication service, deploy projects, roles, and users, and create its snapshot; then, on the control node, install the image service, create image files, and create its snapshot; install the compute service on the control node, install the compute service on the compute node, associate the compute node with the control node, and create snapshots of the control node and the compute node; install the network service on the control node, deploy internal and external networks and routers, create host instances, and create snapshots of the control node and the compute node; finally, form a snapshot matrix, package the virtual machines, transplant and unpack them to run on other host machines.
[0059] The present invention is applied to the fields of education and IT training, and can intuitively and efficiently construct the basic practice platform of the OpenStack private cloud, support the switching and use of typical configuration states, provide an important basis for the construction and optimization of the private cloud skills training platform, and have important guiding significance for guiding the product development of cloud platform education manufacturers and improving the practical skills training level of training students.
[0060] Inspired by the ideal embodiments of the present invention described above, through the above description, relevant staff can completely make various changes and modifications without departing from the technical idea of the present invention. The technical scope of the present invention is not limited to the content in the specification, and its technical scope must be determined according to the scope of the claims.
Claims
1. A method for constructing an OpenStack practice platform based on virtual machine snapshots, characterized in that: The following steps are involved: Step 1: Build control nodes, computing nodes, and local source nodes between the management and provider virtual networks, deploy source services on local source nodes, and build the OpenStack platform. Step 2: Install common components, authentication service database, and keystone software on the control node; Create a snapshot of the keystone installation, deployment, and operation and maintenance configuration status of the control node; Step 3: Install the Image Service database, glance user, and service credentials on the control node; create a snapshot of the glance installation deployment and operation and maintenance configuration status of the control node; Step 4: Create a Nova installation and deployment status snapshot for the control node and computing node; Create a Nova cloud host status snapshot for the control node and computing node; Step 5: Create a network service database on the control node, create neutron service credentials and API endpoints; create neutron installation and deployment status snapshots for the control node and compute node; create providers, internal networks and routers, and create neutron operation and maintenance configurations for the control node and compute node; Step 6: Construct snapshot matrices of control nodes and computing nodes based on the state snapshot; Pack, copy, and unpack the snapshot matrix for porting and sharing on different virtual machine platforms.
2. The method for constructing an OpenStack practice platform based on virtual machine snapshots according to claim 1, characterized in that: Source services include: deploying local pip sources and yum sources, offline software installation package installation, and offline source code installation.
3. The method for constructing an OpenStack practice platform based on virtual machine snapshots according to claim 1, characterized in that: Common components include mysql, rabbitmq, and memcached services.
4. The method for constructing an OpenStack practice platform based on virtual machine snapshots according to claim 1, characterized in that: The Image service API endpoints include configuration database connection, identity access, local storage method, and image storage location.
5. The method for constructing an OpenStack practice platform based on virtual machine snapshots according to claim 1, characterized in that: Service credentials refer to the three endpoint APIs: public, internal, and management.
6. The method for constructing an OpenStack practice platform based on virtual machine snapshots according to claim 1, characterized in that: The network service database is the database used by Neutron.
7. The method for constructing an OpenStack practice platform based on virtual machine snapshots according to claim 1, characterized in that: The provider provides services to users on the extranet.
8. The method for constructing an OpenStack practice platform based on virtual machine snapshots according to claim 1, characterized in that: The internal network is the OpenStack private cloud project network.
9. A system is built based on the OpenStack practice platform of virtual machine snapshots, characterized in that: include: a memory for storing instructions executable by a processor; A processor, configured to execute instructions to implement the method for constructing an OpenStack practice platform based on virtual machine snapshots as described in any one of claims 1 to 8.
10. A computer readable medium storing computer program code, characterized in that: When the computer program code is executed by a processor, the method for constructing an OpenStack practice platform based on virtual machine snapshots as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Private cloud IaaS practice platform construction method based on OpenStack architecture
CN114629789A