CN113821307B - Method, device and equipment for quickly importing virtual machine images - Google Patents

Method, device and equipment for quickly importing virtual machine images Download PDF

Info

Publication number
CN113821307B
CN113821307B CN202111124465.4A CN202111124465A CN113821307B CN 113821307 B CN113821307 B CN 113821307B CN 202111124465 A CN202111124465 A CN 202111124465A CN 113821307 B CN113821307 B CN 113821307B
Authority
CN
China
Prior art keywords
virtual machine
image
uploading
target virtual
empty
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111124465.4A
Other languages
Chinese (zh)
Other versions
CN113821307A (en
Inventor
周鑫勇
***
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202111124465.4A priority Critical patent/CN113821307B/en
Publication of CN113821307A publication Critical patent/CN113821307A/en
Application granted granted Critical
Publication of CN113821307B publication Critical patent/CN113821307B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0667Virtualisation aspects at data level, e.g. file, record or object virtualisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a method, a device and equipment for quickly importing a virtual machine image, wherein the method comprises the following steps: firstly, determining a target virtual machine image, uploading the target virtual machine image to an object storage, uploading an empty image corresponding to the target virtual machine image through a cloud platform, creating an empty image file in a storage node according to the empty image, storing attribute information and metadata information of the target virtual machine image into a database, and copying the target virtual machine image from the object storage to the empty image file of the storage node. Therefore, the virtual machine image can be directly uploaded to the object storage through the storage network, when the cloud platform uploads the virtual machine image, the image data stream transmission link is reduced, the uploading time is shortened, meanwhile, the management network traffic is not occupied, the image uploading success rate is improved, the quick and efficient uploading of the virtual machine image is realized, and the user experience is improved.

Description

Method, device and equipment for quickly importing virtual machine images
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for fast importing a virtual machine image.
Background
Along with the continuous expansion of the internet market scale, a large amount of heterogeneous resources are uniformly managed through the cloud platform. When a virtual machine is created on a cloud platform, a local mirror image needs to be uploaded to the cloud platform.
In the current distributed storage field, ceph becomes an industrial standard pole, is supported by numerous cloud computing and storage manufacturers, and becomes an open source distributed storage platform with the most wide application range. About 75% of the production environment ceph is available as the storage backend of the openstack, including nova, cinder, manila and glance components, where glance uses the block storage of ceph as the mirrored storage backend. The openstack uses ceph as a storage backend, and nova, glance, cinder components generally divide different pool for use. For example, assuming nova uses poolvms and glace uses poolmages, it is necessary to go from images to vms when creating a virtual machine from an image, and to guarantee high performance and not occupy storage space of a computing node, it is necessary to directly use the copy method of ceph to perform operations at ceph level. The current mirror upload flow is shown in fig. 1, but this last approach has three disadvantages: when the mirror image is larger, the call speed of the cloud management platform interface can be influenced by managing the network flow; secondly, the time consumption of the uploading process is relatively high because the middle is subjected to four data carrying processes; thirdly, if the user turns off the browser carelessly in the uploading process or interrupts the uploading process, the user needs to upload again from the beginning, which also results in poor user experience. Therefore, how to optimize the uploading process of the virtual machine image so that the virtual machine image can be quickly imported into the storage node of the database is a problem to be solved at present.
Disclosure of Invention
The main purpose of the embodiment of the application is to provide a method, a device and equipment for quickly importing a virtual machine image, which can quickly and efficiently upload the virtual machine image through a cloud platform, so that user experience is improved.
In a first aspect, an embodiment of the present application provides a method for fast importing a virtual machine image, including:
determining a target virtual machine image, and uploading the target virtual machine image to an object storage;
uploading an empty mirror image corresponding to the target virtual machine mirror image through a cloud platform, creating an empty mirror image file in a storage node according to the empty mirror image, and storing attribute information and metadata information of the target virtual machine mirror image into a database;
copying the target virtual machine image from the object storage to an empty image file of the storage node.
Optionally, uploading, by the cloud platform, an empty image corresponding to the target virtual machine image, creating an empty image file in a storage node according to the empty image, and storing attribute information and metadata information of the target virtual machine image in a database, including:
uploading an empty mirror image corresponding to the target virtual machine mirror image through a cloud platform, acquiring an information flow corresponding to the target virtual machine mirror image according to the empty mirror image, and uploading the information flow to a UI server of the cloud platform after ingress load splitting and gateway authentication;
uploading the information flow to an image module of the cloud platform after gateway authentication through a UI server of the cloud platform, so that the image module stores attribute information and metadata information of the target virtual machine image into a database;
after checking quota validity of the information flow through an image module of the cloud platform, uploading the information flow to a GLANCE module of a cloud operating system OPENSTACK so as to bypass load distribution and key authentication of the GLANCE module;
creating an empty mirror image file in a storage node according to the empty mirror image through the GLANCE module; and through the GLANCE module, the registration of the target virtual machine image in the database is completed by utilizing the attribute information and the metadata information of the target virtual machine image.
Optionally, the uploading the target virtual machine image to an object storage includes:
and directly uploading the target virtual machine mirror to an object storage through a storage network by using an Amazon S3 interface.
Optionally, the empty image file is stored in a ceph image pool configured by the spectrum module.
In a second aspect, an embodiment of the present application further provides a fast importing apparatus of a virtual machine image, including:
the first uploading unit is used for determining a target virtual machine image and uploading the target virtual machine image to the object storage;
the second uploading unit is used for uploading the empty mirror image corresponding to the target virtual machine mirror image through the cloud platform, creating an empty mirror image file in the storage node according to the empty mirror image, and storing attribute information and metadata information of the target virtual machine mirror image into the database;
and the copying unit is used for copying the target virtual machine image from the object storage to an empty image file of the storage node.
Optionally, the second uploading unit includes:
the first uploading subunit is used for uploading an empty mirror image corresponding to the target virtual machine mirror image through the cloud platform, acquiring an information flow corresponding to the target virtual machine mirror image according to the empty mirror image, and uploading the information flow to a UI server of the cloud platform after the information flow is subjected to ingress load splitting and gateway authentication;
the second uploading subunit is used for uploading the information flow to an image module of the cloud platform after gateway authentication through a UI server of the cloud platform, so that the image module stores the attribute information and the metadata information of the target virtual machine image into a database;
the third uploading subunit is configured to upload the information flow to a spectrum module of an operating system operation by checking the quota validity of the information flow through an image module of the cloud platform, so as to perform ingress load splitting and key authentication through the spectrum module;
the creating subunit is used for creating an empty mirror image file in the storage node according to the empty mirror image through the GLANCE module; and through the GLANCE module, the registration of the target virtual machine image in the database is completed by utilizing the attribute information and the metadata information of the target virtual machine image.
Optionally, the first uploading unit is specifically configured to:
and directly uploading the target virtual machine mirror to an object storage through a storage network by using an Amazon S3 interface.
Optionally, the empty image file is stored in a ceph image pool configured by the spectrum module.
The embodiment of the application also provides a device for fast importing the virtual machine image, which comprises: a processor, memory, system bus;
the processor and the memory are connected through the system bus;
the memory is configured to store one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform any one of the implementations of the fast import method of virtual machine mirroring described above.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores instructions, and when the instructions run on the terminal equipment, the terminal equipment is caused to execute any implementation mode of the method for quickly importing the virtual machine image.
According to the method, the device and the equipment for quickly importing the virtual machine image, the target virtual machine image is firstly determined and uploaded to the object storage, then the empty image corresponding to the target virtual machine image is uploaded through the cloud platform, an empty image file is created in the storage node according to the empty image, the attribute information and the metadata information of the target virtual machine image are stored in the database, and then the target virtual machine image can be copied from the object storage to the empty image file of the storage node. Therefore, the virtual machine image can be directly uploaded to the object storage through the storage network, when the cloud platform uploads the virtual machine image, the image data stream transmission link is reduced, the uploading time is shortened, meanwhile, the management network traffic is not occupied, the image uploading success rate is improved, the quick and efficient uploading of the virtual machine image is realized, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of uploading a current virtual machine image according to an embodiment of the present application;
fig. 2 is a flow chart of a method for fast importing a virtual machine image according to an embodiment of the present application;
FIG. 3 is a general flowchart of a method for fast import of virtual machine images based on object storage according to an embodiment of the present application;
fig. 4 is a schematic diagram of a fast boot device for virtual machine mirroring according to an embodiment of the present application.
Detailed Description
In the cloud computing era, along with the continuous expansion of the internet market scale, a large amount of heterogeneous resources are uniformly managed through a cloud platform. When a virtual machine is created on a cloud platform, a local mirror image needs to be uploaded to the cloud platform.
The current mirror image uploading flow is shown in fig. 1, and specifically may include the following 4 steps:
(1) The mirror image stored locally by the user is uploaded to the UI module of the cloud platform through the uploading interface and the management network, and the middle of the mirror image is subjected to gateway shunting, authority authentication and other operations.
(2) And (3) forwarding the data stream checked in the step (1) to the cloud platform IMAGE module through the management network by the UI module of the cloud platform.
(3) And after the IMAGE file is cached by the cloud platform IMAGE module, calling a GLANCE interface of the OPENSTACK through the management network, and uploading the IMAGE to a GLANCE control node. The process requires an INGRESS forwarding of OPENSTACK and KEYSTONE authentication.
(4) The GLANCE control node stores the mirror image to the configured storage node and completes the mirror image registration in the database.
The prior mirror last approach described above has three drawbacks: when the mirror image is larger, the call speed of the cloud management platform interface can be influenced by managing the network flow; secondly, the time consumption of the uploading process is relatively high because the middle is subjected to four data carrying processes; thirdly, if the user turns off the browser carelessly in the uploading process or interrupts the uploading process, the user needs to upload again from the beginning, which also results in poor user experience. Therefore, how to optimize the uploading process of the virtual machine image so that the virtual machine image can be quickly imported into the storage node of the database is a problem to be solved at present.
In order to solve the above-mentioned drawbacks, the present embodiment provides a method for fast importing a virtual machine image, which includes determining a target virtual machine image first, uploading the target virtual machine image to an object storage, uploading an empty image corresponding to the target virtual machine image through a cloud platform, creating an empty image file in a storage node according to the empty image, storing attribute information and metadata information of the target virtual machine image in a database, and copying the target virtual machine image from the object storage to the empty image file of the storage node. Therefore, the virtual machine image can be directly uploaded to the object storage through the storage network, when the cloud platform uploads the virtual machine image, the image data stream transmission link is reduced, the uploading time is shortened, meanwhile, the management network traffic is not occupied, the image uploading success rate is improved, the quick and efficient uploading of the virtual machine image is realized, and the user experience is improved.
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
First embodiment
Referring to fig. 2, a flowchart of a method for fast importing a virtual machine image according to the present embodiment is provided, where the method includes the following steps:
s201: and determining a target virtual machine image, and uploading the target virtual machine image to the object storage.
It should be noted that in the current distributed storage area, there are three disadvantages to the mirror image upload flow shown in fig. 1: when the mirror image is larger, the call speed of the cloud management platform interface can be influenced by managing the network flow; secondly, the time consumption of the uploading process is relatively high because the middle is subjected to four data carrying processes; thirdly, if the user turns off the browser carelessly in the uploading process or interrupts the uploading process, the user needs to upload again from the beginning, which also results in poor user experience.
Therefore, in this embodiment, in order to achieve fast and efficient uploading of the virtual machine image, so as to improve the user experience, the target virtual machine image is first determined, and the target virtual machine image is uploaded to the object storage, so as to continuously execute the subsequent steps S202 and S203.
Object storage refers to mass internet storage of object/file oriented, and can also be directly called as 'cloud storage'. The object is a file, but is a file already encapsulated (the object in programming has the characteristic of encapsulation), that is, in the object storage system, the file cannot be directly opened/modified, but the file can be uploaded, downloaded and the like ftp. In addition, the object storage does not have a file structure with a plurality of levels like a file system, but only has a concept of a bucket (i.e. a storage space), and all the inside of the bucket is an object, so that the object storage is a very flattened storage mode. The biggest feature is that its object name is a domain name address, which can be accessed by all users once the object is set to "public"; its owner may also access objects therein by way of a REST API. Thus, the object stores a more mainstream usage scenario, namely, stores static content (video, picture, file, software installation package, etc.) of internet/mobile internet applications such as websites, mobile apps, etc.
Whereas OpenStack in fig. 1 refers to an open-source cloud computing management platform item.
An optional implementation manner, the implementation process of "upload target virtual machine image to object store" in step S201 may specifically include: and directly uploading the target virtual machine mirror to the object storage through the storage network by using the Amazon S3 interface.
Specifically, in the implementation manner, after the target virtual machine image which needs to be uploaded by the user is determined, the target virtual machine image which needs to be uploaded is directly uploaded to the object for storage through the storage network through the Amazon S3 interface, and the transmission speed is high because the bandwidth of the storage network is relatively large and the process data stream does not pass through other forwarding and shunting.
Wherein Amazon S3 refers to an acronym for Amazon Simple Storage Service, which is also an internet storage solution. The service aims to reduce the difficulty of network scale level computation for developers. Amazon S3 provides a simple Web service interface that can be used to store and retrieve any amount of data anywhere on the Web at any time. The service enables all developers to access the same data storage infrastructure with high expansibility, reliability, security and rapidness and low cost.
S202: uploading an empty mirror image corresponding to the target virtual machine mirror image through the cloud platform, creating an empty mirror image file in the storage node according to the empty mirror image, and storing attribute information and metadata information of the target virtual machine mirror image into a database.
In this embodiment, in order to reduce the transmission link of the target virtual machine image, shorten the uploading time, and meanwhile, not occupy the management network traffic, improve the uploading success rate of the target virtual machine image, after the target virtual machine image is uploaded to the object storage in step S201, further, an empty image corresponding to the target virtual machine image may also be uploaded through the cloud platform, and an empty image file may be created in the storage node according to the empty image, and attribute information (such as the memory size, the hard disk size, and other attribute information required for creating the operating system by using the virtual machine image) and metadata information of the target virtual machine image may be saved in the database, so as to execute the subsequent step S203.
In an alternative implementation manner, the specific implementation process of the step S202 may include the following steps a-D:
step A: uploading an empty mirror image corresponding to the target virtual machine mirror image through the cloud platform, acquiring an information flow corresponding to the target virtual machine mirror image according to the empty mirror image, and uploading the information flow to a UI server of the cloud platform after ingress load splitting and gateway authentication.
In the implementation mode, when the empty mirror image corresponding to the target virtual machine mirror image is uploaded through the cloud platform, the web page reads the target virtual machine mirror image data, obtains the information flow corresponding to the target virtual machine mirror image according to the empty mirror image, shunts the information flow through the ingress load, and finally uploads the information flow to the UI server of the cloud platform through gateway authentication.
And (B) step (B): and uploading the information flow to an image module of the cloud platform after gateway authentication through a UI server of the cloud platform, so that the image module stores the attribute information and the metadata information of the target virtual machine image into a database.
Step C: after checking quota validity of the information flow through an image module of the cloud platform, uploading the information flow to a GLANCE module of the cloud operating system OPENSTACK so as to bypass load distribution and key authentication of the GLANCE module.
Step D: creating an empty mirror image file in the storage node according to the empty mirror image through the GLANCE module; and through the GLANCE module, the registration of the target virtual machine image in the database is completed by utilizing the attribute information and the metadata information of the target virtual machine image.
In this implementation manner, after receiving the information stream data, the enance module stores the empty image file in the rear end configured by the enance module, and registers the image information of the target virtual machine image in the database. That is, at this time, the GLANCE module creates an empty image file at the storage node and stores it in the ceph image pool configured by the GLANCE module.
In this way, the information stream data uploaded in the steps a-D are all empty files, so that no excessive time is spent.
S203: copying the target virtual machine image from the object storage to an empty image file of the storage node.
In this embodiment, after the target virtual machine image is uploaded to the object storage in step S201, and the empty image file is created in the storage node in step S202, further, the target virtual machine image may be copied from the object storage to the empty image file of the storage node.
Specifically, after uploading the target virtual machine image to the object storage and creating the empty image file in the storage node, further, the rbd client of the ceph cluster may be used to copy the target virtual machine image from the object storage to the empty image file in the ceph image pool configured by the glace module, that is, to use the target virtual machine image to cover the empty image file, so as to implement fast import of the target virtual machine image.
Further, after checking whether the state of the mirror image of the target virtual machine is normal, whether the mirror image service can be provided to the outside or not can be judged, namely, when the state of the mirror image of the target virtual machine is normal, the mirror image service can be provided to the outside.
In order to facilitate understanding of the method for fast importing a virtual machine image provided in the present application, next, the present application will introduce, with reference to fig. 3, an overall flow of the method for fast importing a virtual machine image based on object storage provided in the embodiment of the present application:
as shown in fig. 3, the method for fast importing a virtual machine image provided in the embodiment of the present application specifically includes: firstly, a virtual machine image to be uploaded is directly uploaded to an object storage through a storage network through an Amazon S3 interface, as shown in a step 0 marked in fig. 3, the transmission speed is high because the bandwidth of the storage network is relatively large and the process data flow is not subjected to other forwarding and shunting.
Then, uploading an empty mirror image through the cloud management platform, wherein the web page reads local mirror image data of a user, and the local mirror image data is shunted by an ingress load and finally uploaded to a UI server of the cloud management platform through gateway authentication, as shown in a step 1 marked in FIG. 3.
Next, the cloud management platform UI server uploads the data stream to the cloud management platform image module after gateway authentication, and the cloud management platform image module records the information such as the mirror image information and the metadata into the database, as shown in step 2 marked in fig. 3.
Further, the Image module performs verification such as quota validity on the mirror Image data, and then uploads the data to the spectrum module of the OPENSTACK. At this point, the ingress load splitting and key authentication by the OPENSTACK module are required, as shown in step 3 marked in FIG. 3.
Further, after receiving the data stream, the enance module of the OPENSTACK stores the image file in the rear end of the enance module configuration, and registers the image information in the database. At this point, the GLANCE module creates an empty image file at the storage node, and since the data stream uploaded in the steps is the empty file, it does not take too long, as shown in step 4 marked in FIG. 3. And finally, uploading the real mirror image to the object storage, finding the position of the previously uploaded empty file through the rbd client through the storage network, directly using the real mirror image to cover the empty file through copying, and checking whether the mirror image state is normal or not as shown in a step 5 marked in fig. 3, and providing mirror image service to the outside if the mirror image state is normal.
Therefore, after a reasonable mirror image uploading strategy is designed, the virtual machine mirror image can be rapidly and efficiently uploaded through the cloud platform.
In summary, according to the method for fast importing a virtual machine image provided in the present embodiment, a target virtual machine image is first determined, and uploaded to an object store, then an empty image corresponding to the target virtual machine image is uploaded through a cloud platform, an empty image file is created in a storage node according to the empty image, and attribute information and metadata information of the target virtual machine image are stored in a database, and then the target virtual machine image can be copied from the object store to the empty image file of the storage node. Therefore, the virtual machine image can be directly uploaded to the object storage through the storage network, when the cloud platform uploads the virtual machine image, the image data stream transmission link is reduced, the uploading time is shortened, meanwhile, the management network traffic is not occupied, the image uploading success rate is improved, the quick and efficient uploading of the virtual machine image is realized, and the user experience is improved.
Second embodiment
The present embodiment will be described with reference to a fast boot device for virtual machine mirroring, and related content is referred to the above method embodiments.
Referring to fig. 4, a schematic composition diagram of a fast boot device for virtual machine mirroring according to this embodiment is provided, where the device includes:
a first uploading unit 401, configured to determine a target virtual machine image, and upload the target virtual machine image to an object storage;
a second uploading unit 402, configured to upload an empty image corresponding to the target virtual machine image through a cloud platform, create an empty image file in a storage node according to the empty image, and store attribute information and metadata information of the target virtual machine image in a database;
and a copying unit 403, configured to copy the target virtual machine image from the object storage to an empty image file of the storage node.
In one implementation of this embodiment, the second uploading unit 402 includes:
the first uploading subunit is used for uploading an empty mirror image corresponding to the target virtual machine mirror image through the cloud platform, acquiring an information flow corresponding to the target virtual machine mirror image according to the empty mirror image, and uploading the information flow to a UI server of the cloud platform after the information flow is subjected to ingress load splitting and gateway authentication;
the second uploading subunit is used for uploading the information flow to an image module of the cloud platform after gateway authentication through a UI server of the cloud platform, so that the image module stores the attribute information and the metadata information of the target virtual machine image into a database;
the third uploading subunit is configured to upload the information flow to a spectrum module of an operating system operation by checking the quota validity of the information flow through an image module of the cloud platform, so as to perform ingress load splitting and key authentication through the spectrum module;
the creating subunit is used for creating an empty mirror image file in the storage node according to the empty mirror image through the GLANCE module; and through the GLANCE module, the registration of the target virtual machine image in the database is completed by utilizing the attribute information and the metadata information of the target virtual machine image.
In one implementation manner of this embodiment, the first uploading unit 401 is specifically configured to:
and directly uploading the target virtual machine mirror to an object storage through a storage network by using an Amazon S3 interface.
In one implementation of this embodiment, the empty image file is stored in a ceph image pool configured by the GLANCE module.
In summary, according to the fast importing device for virtual machine images provided in this embodiment, a target virtual machine image is first determined, and uploaded to an object store, then an empty image corresponding to the target virtual machine image is uploaded through a cloud platform, an empty image file is created in a storage node according to the empty image, and attribute information and metadata information of the target virtual machine image are stored in a database, and then the target virtual machine image can be copied from the object store to the empty image file of the storage node. Therefore, the virtual machine image can be directly uploaded to the object storage through the storage network, when the cloud platform uploads the virtual machine image, the image data stream transmission link is reduced, the uploading time is shortened, meanwhile, the management network traffic is not occupied, the image uploading success rate is improved, the quick and efficient uploading of the virtual machine image is realized, and the user experience is improved.
Further, the embodiment of the application also provides a device for fast importing virtual machine images, which comprises: a processor, memory, system bus;
the processor and the memory are connected through the system bus;
the memory is configured to store one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform any of the implementations of the fast import method of virtual machine images described above.
Further, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores instructions, and when the instructions run on a terminal device, the terminal device is caused to execute any implementation method of the method for fast importing virtual machine images.
From the above description of embodiments, it will be apparent to those skilled in the art that all or part of the steps of the above described example methods may be implemented in software plus necessary general purpose hardware platforms. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, a server, or a network communication device such as a media gateway, etc.) to perform the methods described in the embodiments or some parts of the embodiments of the present application.
It should be noted that, in the present description, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
It is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. The method for quickly importing the virtual machine image is characterized by comprising the following steps of:
determining a target virtual machine image, and uploading the target virtual machine image to an object storage;
uploading an empty mirror image corresponding to the target virtual machine mirror image through a cloud platform, creating an empty mirror image file in a storage node according to the empty mirror image, and storing attribute information and metadata information of the target virtual machine mirror image into a database;
copying the target virtual machine image from the object storage to an empty image file of the storage node;
uploading an empty mirror image corresponding to the target virtual machine mirror image through a cloud platform, creating an empty mirror image file in a storage node according to the empty mirror image, and storing attribute information and metadata information of the target virtual machine mirror image into a database, wherein the method comprises the following steps:
uploading an empty mirror image corresponding to the target virtual machine mirror image through a cloud platform, acquiring an information flow corresponding to the target virtual machine mirror image according to the empty mirror image, and uploading the information flow to a UI server of the cloud platform after ingress load splitting and gateway authentication;
uploading the information flow to an image module of the cloud platform after gateway authentication through a UI server of the cloud platform, so that the image module stores attribute information and metadata information of the target virtual machine image into a database;
after checking quota validity of the information flow through an image module of the cloud platform, uploading the information flow to a GLANCE module of a cloud operating system OPENSTACK so as to bypass load distribution and key authentication of the GLANCE module;
creating an empty mirror image file in a storage node according to the empty mirror image through the GLANCE module; and through the GLANCE module, the registration of the target virtual machine image in the database is completed by utilizing the attribute information and the metadata information of the target virtual machine image.
2. The method of claim 1, wherein uploading the target virtual machine image to an object store comprises:
and directly uploading the target virtual machine mirror to an object storage through a storage network by using an Amazon S3 interface.
3. The method of claim 1, wherein the empty image file is stored in a ceph image pool of the GLANCE module configuration.
4. A fast boot device for virtual machine mirroring, comprising:
the first uploading unit is used for determining a target virtual machine image and uploading the target virtual machine image to the object storage;
the second uploading unit is used for uploading the empty mirror image corresponding to the target virtual machine mirror image through the cloud platform, creating an empty mirror image file in the storage node according to the empty mirror image, and storing attribute information and metadata information of the target virtual machine mirror image into the database;
a copying unit, configured to copy the target virtual machine image from the object storage to an empty image file of the storage node;
the second uploading unit comprises:
the first uploading subunit is used for uploading an empty mirror image corresponding to the target virtual machine mirror image through the cloud platform, acquiring an information flow corresponding to the target virtual machine mirror image according to the empty mirror image, and uploading the information flow to a UI server of the cloud platform after the information flow is subjected to ingress load splitting and gateway authentication;
the second uploading subunit is used for uploading the information flow to an image module of the cloud platform after gateway authentication through a UI server of the cloud platform, so that the image module stores the attribute information and the metadata information of the target virtual machine image into a database;
the third uploading subunit is configured to upload the information flow to a spectrum module of an operating system operation by checking the quota validity of the information flow through an image module of the cloud platform, so as to perform ingress load splitting and key authentication through the spectrum module;
the creating subunit is used for creating an empty mirror image file in the storage node according to the empty mirror image through the GLANCE module; and through the GLANCE module, the registration of the target virtual machine image in the database is completed by utilizing the attribute information and the metadata information of the target virtual machine image.
5. The apparatus of claim 4, wherein the first uploading unit is specifically configured to:
and directly uploading the target virtual machine mirror to an object storage through a storage network by using an Amazon S3 interface.
6. The apparatus of claim 4, wherein the empty image file is stored in a ceph image pool of the GLANCE module configuration.
7. A fast boot device for virtual machine mirroring, comprising: a processor, memory, system bus;
the processor and the memory are connected through the system bus;
the memory is for storing one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform the method of any of claims 1-3.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein instructions, which when run on a terminal device, cause the terminal device to perform the method of any of claims 1-3.
CN202111124465.4A 2021-09-24 2021-09-24 Method, device and equipment for quickly importing virtual machine images Active CN113821307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111124465.4A CN113821307B (en) 2021-09-24 2021-09-24 Method, device and equipment for quickly importing virtual machine images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111124465.4A CN113821307B (en) 2021-09-24 2021-09-24 Method, device and equipment for quickly importing virtual machine images

Publications (2)

Publication Number Publication Date
CN113821307A CN113821307A (en) 2021-12-21
CN113821307B true CN113821307B (en) 2024-02-23

Family

ID=78915447

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111124465.4A Active CN113821307B (en) 2021-09-24 2021-09-24 Method, device and equipment for quickly importing virtual machine images

Country Status (1)

Country Link
CN (1) CN113821307B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113890881A (en) * 2021-10-13 2022-01-04 济南浪潮数据技术有限公司 Method, system, storage medium and equipment for quickly uploading mirror image of virtual machine
CN117370079A (en) * 2023-10-30 2024-01-09 广州鼎甲计算机科技有限公司 Data recovery method, apparatus, device, storage medium and computer program product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011154522A (en) * 2010-01-27 2011-08-11 Hitachi Ltd System and method for supporting simulation
CN104463012A (en) * 2014-11-24 2015-03-25 东软集团股份有限公司 Virtual machine image file exporting and importing method and device
CN107197022A (en) * 2017-06-02 2017-09-22 华南理工大学 OpenStack storage optimization methods and system
CN111352700A (en) * 2020-02-29 2020-06-30 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for online migration of virtual machine across clouds
CN111414231A (en) * 2020-03-18 2020-07-14 上海云轴信息科技有限公司 Method and equipment for mutual conversion between virtual machine mirror image and container mirror image
CN111427666A (en) * 2020-04-01 2020-07-17 山东汇贸电子口岸有限公司 Method and system for quickly importing virtual machine image in OpenStack environment
CN112445570A (en) * 2019-09-03 2021-03-05 中移(苏州)软件技术有限公司 Cloud platform resource migration method and device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011154522A (en) * 2010-01-27 2011-08-11 Hitachi Ltd System and method for supporting simulation
CN104463012A (en) * 2014-11-24 2015-03-25 东软集团股份有限公司 Virtual machine image file exporting and importing method and device
CN107197022A (en) * 2017-06-02 2017-09-22 华南理工大学 OpenStack storage optimization methods and system
CN112445570A (en) * 2019-09-03 2021-03-05 中移(苏州)软件技术有限公司 Cloud platform resource migration method and device and storage medium
CN111352700A (en) * 2020-02-29 2020-06-30 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for online migration of virtual machine across clouds
CN111414231A (en) * 2020-03-18 2020-07-14 上海云轴信息科技有限公司 Method and equipment for mutual conversion between virtual machine mirror image and container mirror image
CN111427666A (en) * 2020-04-01 2020-07-17 山东汇贸电子口岸有限公司 Method and system for quickly importing virtual machine image in OpenStack environment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于OpenStack的云计算实验平台建设与应用;范久岳;;数字通信世界;20190401(第04期);第143页 *
基于OpenStack的云计算实验平台建设与应用;金永霞;孙宁;;实验技术与管理;20160622(第06期);第145-149页 *

Also Published As

Publication number Publication date
CN113821307A (en) 2021-12-21

Similar Documents

Publication Publication Date Title
US10826799B2 (en) Apparatus for providing cloud service based on cloud service brokerage and method thereof
US9201610B2 (en) Cloud-based storage deprovisioning
US10489476B2 (en) Methods and devices for preloading webpages
CN109639636B (en) Service data forwarding method, service data processing method, service data forwarding device, service data processing device and electronic equipment
US9183072B1 (en) Error troubleshooting using a correlated knowledge base
CN109542361B (en) Distributed storage system file reading method, system and related device
CN113821307B (en) Method, device and equipment for quickly importing virtual machine images
CN113010818B (en) Access current limiting method, device, electronic equipment and storage medium
CN109408751A (en) A kind of data processing method, terminal, server and storage medium
US20180367632A1 (en) Apparatus for providing cloud service using cloud service brokerage based on multiple clouds and method thereof
CN102387172A (en) Method and device for providing or obtaining contents of network resources for mobile equipment
CN110717536A (en) Method and device for generating training sample
CN204695386U (en) Towards the management information system of many tenants
TW201903604A (en) System and method for application navigation
US8352442B2 (en) Determination of an updated data source from disparate data sources
CN104866976A (en) Multi-tenant-oriented information managing system
CN110764930B (en) Request or response processing method and device based on message mode
US9665732B2 (en) Secure Download from internet marketplace
CN112988062B (en) Metadata reading limiting method and device, electronic equipment and medium
US20160028553A1 (en) Network Adaptive Content Download
CN115174158B (en) Cloud product configuration checking method based on multi-cloud management platform
CN113890881A (en) Method, system, storage medium and equipment for quickly uploading mirror image of virtual machine
CN113726855A (en) Service aggregation method, device, electronic equipment and computer-readable storage medium
CN111538926A (en) Automatic offline package publishing method and device, electronic equipment and storage medium
CN117828672B (en) Fine-grained dynamic authorized access control and high concurrency processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant