CN109739615B - Mapping method and device of virtual hard disk and cloud computing platform - Google Patents

Mapping method and device of virtual hard disk and cloud computing platform Download PDF

Info

Publication number
CN109739615B
CN109739615B CN201811471746.5A CN201811471746A CN109739615B CN 109739615 B CN109739615 B CN 109739615B CN 201811471746 A CN201811471746 A CN 201811471746A CN 109739615 B CN109739615 B CN 109739615B
Authority
CN
China
Prior art keywords
rdma
block device
target
dms
mapping
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
CN201811471746.5A
Other languages
Chinese (zh)
Other versions
CN109739615A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811471746.5A priority Critical patent/CN109739615B/en
Publication of CN109739615A publication Critical patent/CN109739615A/en
Application granted granted Critical
Publication of CN109739615B publication Critical patent/CN109739615B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a mapping method of a virtual hard disk, which is applied to a virtual machine VM and comprises the following steps: acquiring a first identifier of a remote direct data access device management system (RDMA DMS) issued by a cloud computing platform; searching the RDMA DMS based on the first identification, and acquiring a target RDMA block device distributed by the RDMA DMS for the VM; wherein the RDMA DMS comprises a target RDMA block device; a mapping between the VM and the target RDMA block device is established, and data communication is conducted with the target RDMA block device based on the mapping. The embodiment of the invention also discloses equipment and a cloud computing platform.

Description

Mapping method and device of virtual hard disk and cloud computing platform
Technical Field
The invention relates to the technical field of computers, in particular to a mapping method and device of a virtual hard disk and a cloud computing platform.
Background
Currently, a Cloud computing Infrastructure Platform (ifas Platform) is widely used to manage a public Cloud or a private Cloud (the public Cloud or the private Cloud may be abbreviated as Cloud), and there are many Virtual Machines (VMs) in the Cloud. When the IaaS Platform starts up a VM, a Virtual simulator Hypervisor of a cloud Platform computing node where the VM is located generally maps resources in the IaaS Platform to a Virtual Hard Disk (VHD) of a Virtual machine, so as to provide a "simulated" Hard Disk that a user can see for the Virtual machine. However, since the user of the virtual machine does not have the authority to operate the resources of the cloud platform computing node, the resources of the cloud platform computing node cannot be directly mapped to the VHD of the VM.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention desirably provide a mapping method and device for a virtual hard disk, and a cloud computing platform, so as to solve the problem in the related art that a resource of a cloud platform computing node cannot be directly mapped into a VHD of a VM because a user of a virtual machine does not have a right to operate the resource of the cloud platform computing node, implement that the VM automatically mounts a target RDMA block device, and does not occupy a physical kernel resource of the computing node, reduce memory copy, and simultaneously, fully utilize physical characteristics of the target RDMA block device.
The technical scheme of the invention is realized as follows:
a mapping method of a virtual hard disk is applied to a Virtual Machine (VM), and comprises the following steps:
acquiring a first identifier of a remote direct data access device management system (RDMA DMS) issued by a cloud computing platform;
searching the RDMA DMS based on the first identification, and acquiring a target RDMA block device distributed by the RDMA DMS for the VM; wherein the RDMA DMS comprises the target RDMA block device;
establishing a mapping between the VM and the target RDMA block device, and communicating data with the target RDMA block device based on the mapping.
Optionally, before the obtaining the RDMA DMS is for the target RDMA block device allocated by the VM, the method further includes:
acquiring a block device identification list of the RDMA block device sent by the RDMA DMS; wherein the list of block device identifications includes an identification of at least one RDMA block device;
correspondingly, the obtaining of the target RDMA block device allocated by the RDMA DMS for the VM includes:
selecting a target identifier from the block device identifier list, and sending a request message carrying the target identifier to the RDMA DMS;
receiving response information sent by the RDMA DMS aiming at the request message;
and if the response information indicates that the target identification is successfully verified, determining the RDMA block device corresponding to the target identification as the target RDMA block device.
Optionally, the method further includes:
and if the response information indicates that the target identification fails to be verified, determining not to perform data communication with the target RDMA block device.
Optionally, the performing data communication with the target RDMA block device based on the mapping includes:
communicating data with the target RDMA block device based on the RDMA protocol and the mapping.
A mapping method of a virtual hard disk, applied to a remote direct data access device management system, RDMA DMS, the RDMA DMS including at least one RDMA block device, the method comprising:
sending, by the cloud computing platform, the first identifier of the RDMA DMS to the VM;
allocating a target RDMA block device for the VM; wherein the at least one RDMA block device comprises the target RDMA block device;
reading a mapping between the target RDMA block device and the VM from the VM, and communicating data with the VM through the target RDMA block device based on the mapping.
Optionally, the allocating a target RDMA block device for the VM includes:
generating a block device identification list of an RDMA block device and sending the block device identification list to the VM; wherein the list of block device identifications includes an identification of at least one RDMA block device;
receiving a request message which is sent by the VM and carries a target identifier;
generating a response message based on the request message, and sending the response message to the VM; wherein the response message is used for indicating that the RDMA DMS successfully authenticates the target identity, or the response message is used for indicating that the RDMA DMS fails to authenticate the target identity.
Optionally, the performing data communication with the VM through the target RDMA block device based on the mapping includes:
communicating data with the VM through the target RDMA block device based on an RDMA protocol and the mapping.
A VM, comprising:
a first memory for storing executable instructions;
and the first processor is used for executing the executable instructions stored in the first memory and realizing the steps of the mapping method applied to the virtual hard disk of the virtual machine VM.
An RDMA DMS, comprising:
a second memory for storing executable instructions;
and the second processor is used for executing the executable instructions stored in the second memory to realize the steps of the mapping method applied to the virtual hard disk of the RDMA DMS.
A cloud computing platform, the platform comprising:
an RDMA DMS comprising at least one RDMA block device to send a first identification of the RDMA DMS to a VM through a cloud computing platform; allocating a target RDMA block device for the VM; reading a mapping from the VM between the target RDMA block device and the VM, and communicating data with the VM through the target RDMA block device based on the mapping; wherein the at least one RDMA block device comprises the target RDMA block device;
a VM to obtain a first identity of the RDMA DMS; searching the RDMA DMS based on the first identification, and acquiring a target RDMA block device distributed by the RDMA DMS for the VM; establishing a mapping between the VM and the target RDMA block device, and communicating data with the target RDMA block device based on the mapping.
According to the mapping method, the device and the cloud computing platform of the virtual hard disk, the first identification of the remote direct data access device management system RDMA DMS issued by the cloud computing platform is obtained; searching RDMA DMS based on the first identification, and acquiring a target RDMA block device distributed by the RDMA DMS for the VM; wherein the RDMA DMS comprises a target RDMA block device; establishing mapping between the VM and the target RDMA block device, and performing data communication with the target RDMA block device based on the mapping, so that the VM can find the RDMA DMS by using the first identifier, obtain the target RDMA block device distributed by the RDMA DMS for the VM, further mount the target RDMA block device by the VM, and map a physical hard disk of the target RDMA block device to be a VHD of the VM; the problem that in the related art, as a user of the virtual machine does not have the authority to operate the resources of the cloud platform computing node, the resources of the cloud platform computing node cannot be directly mapped into the VHD of the VM is solved; the method realizes that the VM automatically mounts the target RDMA block device, does not occupy the kernel resource of a physical machine of a computing node, reduces memory copy, and simultaneously can fully utilize the physical characteristics of the target RDMA block device.
Drawings
FIG. 1 is a schematic diagram of a cloud computing platform architecture in the related art;
fig. 2 is a schematic flowchart of a mapping method for a virtual hard disk according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another mapping method for a virtual hard disk according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a mapping method for a virtual hard disk according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating a mapping method for a virtual hard disk according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a virtual machine according to an embodiment of the present invention;
FIG. 7 is a block diagram of a remote direct data access device management system according to an embodiment of the present invention;
fig. 8 is an architecture diagram of a cloud computing platform according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
In the related technology, at present, providing a VHD for a VM can be achieved in two ways, namely, mapping a local Block Device (L clock Block Device) or a local data File (L clock File) of a cloud platform computing node physical machine into a Virtual Hard Disk (VHD) of the VHD through the VM, and mapping a Network Block Device into the VHD of the VM through a Network protocol, such as a Network File System (NFS) protocol, an Internet Small Computer System Interface (iSCSI) protocol, a librbd protocol, and the like.
The first method described above has problems and disadvantages that: generally, a user owner of the VM does not have an operation authority of the local block device or the data file of the computing node physical machine of the cloud platform, and cannot directly map the local block device or the data file of the computing node physical machine of the cloud computing platform into the VHD of the VM. The VM cannot obtain the physical characteristics of the local block equipment of the physical machine of the computing node, so that the capability of the physical characteristics of the local block hard disk cannot be fully exerted; moreover, the computing node where the VM is located occupies more resources, such as kernel resources, memory copy, and the like.
The second method described above has problems and disadvantages that: VM users typically do not have the authority to modify or augment the network block device protocol of the compute node physical machines of the cloud computing platform. NFS/iSCSI and other protocols cannot fully exert the characteristics of remote hardware block equipment; moreover, the computing node where the VM is located occupies more resources, such as kernel computing resources, memory copy, and the like.
Referring to fig. 1, a method for providing a VHD for a VM by an existing cloud computing platform includes a first method in which a Hypervisor of a computing node physical machine where the VM is located maps a local File (L ocal File) or a local Block device (L ocal Block) to the VHD of the VM, and a second method in which the Hypervisor maps a remote network Block device to the VHD of the VM.
The specific scheme comprises the following steps:
adding a local file or a local block device for the physical computer of the computing node by a user with the management authority of the physical computer of the computing node; and modifying the definition file of the VM by a user with the management authority of the physical machine of the computing node, and setting the definition file as the VHD of the VM.
As can be seen from the above, in the related art, when a physical server where a virtual machine is located, that is, a local physical hard disk or a local file on a physical computer of a computing node, is added to the virtual machine as a virtual hard disk, the management authority of a cloud computing platform is required.
An embodiment of the present invention provides a mapping method for a virtual hard disk, where the method is applied to a VM, and as shown in fig. 2, the method includes:
step 101, acquiring a first identifier of a remote direct data access device management system RDMA DMS issued by a cloud computing platform.
In the embodiment of the invention, the first identifier is used for uniquely identifying the RDMA DMS. Illustratively, the first identification may be an IP address of the RDMA DMS.
In practical application, the VM may obtain a first identifier of an RDMA DMS issued by the cloud computing platform.
Step 102, searching the RDMA DMS based on the first identification, and acquiring a target RDMA block device distributed by the RDMA DMS for the VM.
Wherein the RDMA DMS comprises a target RDMA block device.
In the embodiment of the invention, the target RDMA block device refers to a target device to be mounted by a VM. After the VM acquires the first identifier of the RDMA DMS, the RDMA DMS of the identifier can be found based on the first identifier, and then the target RDMA block device distributed to the VM by the RDMA DMS is acquired.
Step 103, establishing a mapping between the VM and the target RDMA block device, and communicating data with the target RDMA block device based on the mapping.
In the embodiment of the invention, the mapping is established by mapping a target RDMA block device into a VHD of a VM; that is to say, in the embodiment of the present invention, the VM directly maps the physical block device as its VHD, so that compared with the related art that the physical device is mapped to its VHD by the Hypervisor, the mapping method of the virtual hard disk provided in the embodiment of the present invention can obtain the physical characteristics of the local block device, thereby fully exerting the physical characteristics of the local block device; moreover, the mapping method of the virtual hard disk provided by the embodiment of the invention does not relate to the physical machine of the computing node, so that resources of the physical machine of the computing node, such as kernel computing resources, memory copy and the like, are not occupied, the authority of the resources of the physical machine of the computing node does not need to be controlled, and the purpose of automatically mounting the target RDMA block device by the VM is realized.
The mapping method of the virtual hard disk, provided by the embodiment of the invention, comprises the steps of obtaining a first identifier of a remote direct data access device management system RDMA DMS (remote direct memory management) issued by a cloud computing platform; searching the RDMA DMS based on the first identification, and acquiring a target RDMA block device distributed by the RDMA DMS for the VM; wherein the RDMA DMS comprises a target RDMA block device; establishing a mapping between the VM and the target RDMA block device, and performing data communication with the target RDMA block device based on the mapping; in this way, the VM may find the RDMA DMS by using the first identifier, obtain a target RDMA block device allocated by the RDMA DMS for the VM, further mount the target RDMA block device by itself, and map a physical hard disk of the target RDMA block device to a VHD of the VM; the problem that in the related art, as a user of the virtual machine does not have the authority to operate the resources of the cloud platform computing node, the resources of the cloud platform computing node cannot be directly mapped into the VHD of the VM is solved; the method realizes that the VM automatically mounts the target RDMA block device, does not occupy the kernel resource of a physical machine of a computing node, reduces memory copy, and simultaneously can fully utilize the physical characteristics of the target RDMA block device.
An embodiment of the present invention provides a mapping method for a virtual hard disk, where the method is applied to a VM, and as shown in fig. 3, the method includes:
step 201, acquiring a first identifier of a remote direct data access device management system RDMA DMS issued by a cloud computing platform.
Step 202, finding the RDMA DMS based on the first identity.
Step 203, obtain the block device identification list of the RDMA block device sent by the RDMA DMS.
Wherein the block device identification list includes an identification of at least one RDMA block device.
In an embodiment of the present invention, the block device identifier list of the RDMA block device includes device identifiers of RDMA block devices to which the VM may grant access.
Step 204, selecting a target identifier from the block device identifier list, and sending a request message carrying the target identifier to the RDMA DMS.
In the embodiment of the present invention, the request message is used to request the block device corresponding to the target identifier to establish mapping. After obtaining the block device identifier list of the RDMA block device, the VM may select a target identifier from the block device identifier list, and send a request message carrying the target identifier to the RDMA DMS.
Step 205, receiving the response information sent by the RDMA DMS for the request message.
In the embodiment of the invention, after the VM sends the request message carrying the target identifier to the RDMA DMS, the response message fed back by the RDMA DMS is received. The response message is a message whether the VM fed back by the RDMA DMS can establish mapping with the RDMA block device corresponding to the target identification.
And step 206, if the response information indicates that the target identification is successfully verified, determining that the RDMA block device corresponding to the target identification is the target RDMA block device.
In the embodiment of the invention, the VM analyzes the response message, and if the response message indicates that the target identifier is successfully verified, the RDMA block device corresponding to the target identifier is determined to be the target RDMA block device.
Step 207, establish a mapping between the VM and the target RDMA block device, and communicate data with the target RDMA block device based on the mapping.
In the embodiment of the invention, after the VM receives the response message sent by the RDMA DMS and indicates that the target identifier is successfully verified, the VM automatically establishes the mapping between the target RDMA block devices corresponding to the target identifier and performs data communication with the target RDMA block devices based on the mapping.
In this embodiment of the present invention, the performing data communication with the target RDMA block device based on mapping in step 207 may include:
data communication is performed with a target RDMA block device based on the RDMA protocol and the mapping.
In the embodiment of the present invention, the VM may perform data communication with a target RDMA block device based on the RDMA protocol and the mapping established by the VM. Thus, the VM may access not only remote physical devices including mechanical hard disks, SSDs, NVMEs, tapes, but also remote physical devices based on RDMA protocol access.
In another embodiment of the present invention, after receiving the response information sent by the RDMA DMS for the request message in step 205, the method may further include the following steps: and if the response information indicates that the target identification fails to be verified, determining not to perform data communication with the target RDMA block device.
Here, when the VM receives the response message sent by the RDMA DMS to indicate that the target identifier authentication fails, it indicates that the target identifier carried in the request message sent by the VM does not exist in the block device identifier list, that is, the VM wants to establish mapping with an RDMA block device to which the RDMA DMS does not authorize, at this time, the RDMA DMS overrules the request, and feeds back the response message indicating that the target identifier authentication fails, so as to notify the VM that the VM cannot establish mapping with the RDMA block device corresponding to the target identifier, and the VM cannot perform data communication with the target RDMA block device corresponding to the target identifier.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
An embodiment of the present invention provides a mapping method for a virtual hard disk, where the method is applied to an RDMA DMS and the RDMA DMS includes at least one RDMA block device, and as shown in fig. 4, the method includes:
step 301, sending a first identifier of the RDMA DMS to the VM through the cloud computing platform.
In the embodiment of the invention, the RDMA DMS sends the first identifier of the RDMA DMS to the VM through the cloud computing platform so as to instruct the VM to search the RDMA DMS based on the first identifier.
In practical applications, the RDMA DMS of the cloud computing platform may manage the at least one RDMA block device by recording a device name, such as a PCI name, a device IP address, an authorized user ID, an authorized user password, or a user public key of the at least one RDMA block device. Further, an authorized user may manage the RDMA block device in the RDMA DMS by logging in the RDMA DMS via an authorized user ID, an authorized user password, or a user public key, and then adding/deleting/modifying an IP address and name of the RDMA block device.
Step 302, allocate a target RDMA block device for the VM.
Wherein the at least one RDMA block device comprises a target RDMA block device.
In an embodiment of the invention, the RDMA DMS may allocate one or more target RDMA block devices to the VM, so that the VM implements an automatic setup of a mapping between the VM to the target RDMA block devices.
Step 303, read the mapping between the target RDMA block device and the VM from the VM, and communicate data with the VM through the target RDMA block device based on the mapping.
In an embodiment of the invention, after the VM establishes a mapping with the target RDMA block device and the VM, the RDMA DMS may read the mapping between the target RDMA block device and the VM from the VM and perform data communication with the VM through the target RDMA block device based on the mapping.
According to the mapping method of the virtual hard disk, the first identification of the RDMA DMS is sent to the VM through the cloud computing platform; allocating a target RDMA block device for the VM; wherein the at least one RDMA block device comprises the target RDMA block device; reading a mapping from the VM between the target RDMA block device and the VM, and communicating data with the VM through the target RDMA block device based on the mapping; in this way, after the VM obtains the first identifier issued by the cloud computing platform, the VM may find the RDMA DMS based on the first identifier, and obtain a target RDMA block device allocated by the RDMA DMS for the VM, further, the VM automatically mounts the target RDMA block device, and maps a physical hard disk of the target RDMA block device to a VHD of the VM; the problem that in the related art, as a user of the virtual machine does not have the authority to operate the resources of the cloud platform computing node, the resources of the cloud platform computing node cannot be directly mapped into the VHD of the VM is solved; the method realizes that the VM automatically mounts the target RDMA block device, does not occupy the kernel resource of a physical machine of a computing node, reduces memory copy, and simultaneously can fully utilize the physical characteristics of the target RDMA block device.
An embodiment of the present invention provides a mapping method for a virtual hard disk, where the method is applied to an RDMA DMS and the RDMA DMS includes at least one RDMA block device, and as shown in fig. 5, the method includes:
step 401, sending the first identifier of the RDMA DMS to the VM through the cloud computing platform.
Step 402, generate a block device identification list for the RDMA block device and send the block device identification list to the VM.
Wherein the block device identification list includes an identification of at least one RDMA block device.
In the embodiment of the present invention, the block device identifier list of the RDMA block device includes the device identifier of the RDMA block device which the VM can authorize to access, for example, the device identifier may be an IP address, and the IP address may be in IP v4/IP v6 format; of course, the block device identification list of the RDMA block device may further include other information, such as Peripheral Component Interconnect identification (PCI id) of the physical machine where the RDMA device is located and/or PCI name information of the physical machine.
Step 403, receiving a request message carrying a target identifier sent by the VM.
In the embodiment of the invention, after the RDMA DMS sends the block device identifier list of the RDMA block device which the VM can authorize to access to the VM, a request message which is sent by the VM and carries the target identifier may be received. It should be noted that the request message with the target identifier sent by the VM may be a mount request of the VM for an RDMA block device in the block device identifier list, or may be a mount request for other RDMA block devices that are not included in the block device identifier list.
Step 404, generating a response message based on the request message, and sending the response message to the VM.
In the embodiment of the invention, after the RDMA DMS receives the request, the RDMA DMS generates a response message based on the request message and sends the response message to the VM to indicate the success or failure of the target identification verification.
That is, in the embodiment of the present invention, the response message may be used to indicate that the RDMA DMS successfully authenticates the target identifier, or may be used to indicate that the RDMA DMS fails to authenticate the target identifier.
Step 405, read the mapping between the target RDMA block device and the VM from the VM, and communicate data with the VM through the target RDMA block device based on the mapping.
In this embodiment of the present invention, the step 405 of performing data communication with the VM through the target RDMA block device based on the mapping includes:
data communication is conducted with the VM through the target RDMA block device based on the RDMA protocol and the mapping.
In an embodiment of the present invention, the RDMA DMS may communicate data with the VM through the target RDMA block device based on the RDMA protocol and the established mapping. In this manner, the remote physical device that the VM accesses based on the RDMA protocol is ensured, i.e., the RDMA block device in the RDMA DMS.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
Based on the foregoing embodiments, an embodiment of the present invention provides a VM, as shown in fig. 6, where the VM6 includes:
a first memory 61 for storing executable instructions.
A first processor 62 for executing the executable instructions stored in the first memory 61 to implement the steps of:
acquiring a first identifier of a remote direct data access device management system (RDMA DMS) issued by a cloud computing platform;
searching the RDMA DMS based on the first identification, and acquiring a target RDMA block device distributed by the RDMA DMS for the VM; wherein the RDMA DMS comprises the target RDMA block device;
establishing a mapping between the VM and the target RDMA block device, and communicating data with the target RDMA block device based on the mapping.
In other embodiments of the present invention, the first processor 62 is configured to execute the executable instructions stored in the first memory 61, and further to implement the following steps:
acquiring a block device identification list of the RDMA block device sent by the RDMA DMS; wherein the list of block device identifications includes an identification of at least one RDMA block device;
correspondingly, the obtaining of the target RDMA block device allocated by the RDMA DMS for the VM includes:
selecting a target identifier from the block device identifier list, and sending a request message carrying the target identifier to the RDMA DMS;
receiving response information sent by the RDMA DMS aiming at the request message;
and if the response information indicates that the target identification is successfully verified, determining that the RDMA block device corresponding to the target identification is the target RDMA block device.
In other embodiments of the present invention, the first processor 62 is configured to execute the executable instructions stored in the first memory 61, and further to implement the following steps:
and if the response information indicates that the target identification fails to be verified, determining not to perform data communication with the target RDMA block device.
In other embodiments of the present invention, the first processor 62, when executing the data communication with the target RDMA block device based on the mapping in the first memory 61, may be implemented by:
communicating data with the target RDMA block device based on the RDMA protocol and the mapping.
It should be noted that, in this embodiment, a specific implementation process of the step executed by the first processor 62 may refer to an implementation process in the mapping method for a virtual hard disk provided in the embodiments corresponding to fig. 2 to 3, and details are not described here.
The VM provided by the embodiment of the invention acquires a first identifier of a remote direct data access device management system (RDMA DMS) issued by a cloud computing platform; searching the RDMA DMS based on the first identification, and acquiring a target RDMA block device distributed by the RDMA DMS for the VM; wherein the RDMA DMS comprises a target RDMA block device; establishing a mapping between the VM and the target RDMA block device, and performing data communication with the target RDMA block device based on the mapping; in this way, the VM may find the RDMA DMS by using the first identifier, obtain a target RDMA block device allocated by the RDMA DMS for the VM, further mount the target RDMA block device by itself, and map a physical hard disk of the target RDMA block device to a VHD of the VM; the problem that in the related art, as a user of the virtual machine does not have the authority to operate the resources of the cloud platform computing node, the resources of the cloud platform computing node cannot be directly mapped into the VHD of the VM is solved; the method realizes that the VM automatically mounts the target RDMA block device, does not occupy the kernel resource of a physical machine of a computing node, reduces memory copy, and simultaneously can fully utilize the physical characteristics of the target RDMA block device.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
An embodiment of the present invention provides an RDMA DMS, as shown in fig. 7, where the RDMA DMS7 includes:
a second memory 71 for storing executable instructions.
A second processor 72 for executing the executable instructions stored in the second memory 71 to implement the steps of:
sending, by the cloud computing platform, the first identifier of the RDMA DMS to the VM;
allocating a target RDMA block device for the VM; wherein the at least one RDMA block device comprises the target RDMA block device;
reading a mapping between the target RDMA block device and the VM from the VM, and communicating data with the VM through the target RDMA block device based on the mapping.
In other embodiments of the present invention, the second processor 72, configured to execute the executable instructions stored in the second memory 71, further implements the following steps:
generating a block device identification list of an RDMA block device and sending the block device identification list to the VM; wherein the list of block device identifications includes an identification of at least one RDMA block device;
receiving a request message which is sent by the VM and carries a target identifier;
generating a response message based on the request message, and sending the response message to the VM; wherein the response message is used for indicating that the RDMA DMS successfully authenticates the target identity, or the response message is used for indicating that the RDMA DMS fails to authenticate the target identity.
In other embodiments of the present invention, the second processor 72, when executing the data communication with the VM through the target RDMA block device based on the mapping in the second memory 71, may be implemented by:
communicating data with the VM through the target RDMA block device based on an RDMA protocol and the mapping.
It should be noted that, in this embodiment, a specific implementation process of the step executed by the second processor 72 may refer to an implementation process in the mapping method for a virtual hard disk provided in the embodiments corresponding to fig. 4 to 5, and details are not described here.
The RDMA DMS provided by the embodiment of the invention sends the first identifier of the RDMA DMS to the VM through the cloud computing platform; allocating a target RDMA block device for the VM; wherein the at least one RDMA block device comprises the target RDMA block device; reading a mapping from the VM between the target RDMA block device and the VM, and communicating data with the VM through the target RDMA block device based on the mapping; in this way, after the VM obtains the first identifier issued by the cloud computing platform, the VM may find the RDMA DMS based on the first identifier, and obtain a target RDMA block device allocated by the RDMA DMS for the VM, further, the VM automatically mounts the target RDMA block device, and maps a physical hard disk of the target RDMA block device to a VHD of the VM; the problem that in the related art, as a user of the virtual machine does not have the authority to operate the resources of the cloud platform computing node, the resources of the cloud platform computing node cannot be directly mapped into the VHD of the VM is solved; the method realizes that the VM automatically mounts the target RDMA block device, does not occupy the kernel resource of a physical machine of a computing node, reduces memory copy, and simultaneously can fully utilize the physical characteristics of the target RDMA block device.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
An embodiment of the present invention provides a cloud computing platform, and as shown in fig. 8, the cloud computing platform 8 includes:
RDMA DMS81, RDMA DMS81 including at least one RDMA block device 801 to send a first identification of RDMA DMS81 to the VM through the cloud computing platform; allocating a target RDMA block device for the VM; the mapping between the target RDMA block device and the VM is read from the VM and data communication is performed with the VM through the target RDMA block device based on the mapping.
Wherein the at least one RDMA block device 801 comprises a target RDMA block device.
In an embodiment of the invention, the RDMA DMS81 of FIG. 8 corresponds to the RDMA DMS7 of FIG. 7.
A VM82 to obtain a first identification of the RDMA DMS 81; looking up the RDMA DMS81 based on the first identification and obtaining a target RDMA block device allocated by the RDMA DMS81 for the VM; a mapping between VM82 and the target RDMA block device is established, and data communication is conducted with the target RDMA block device based on the mapping.
In the embodiment of the present invention, VM82 in fig. 8 corresponds to VM6 in fig. 6.
The cloud computing platform provided by the embodiment of the invention solves the problem that in the related art, because a user of a virtual machine does not have the authority to operate the resources of the computing nodes of the cloud platform, the resources of the computing nodes of the cloud platform cannot be directly mapped into the VHD of the VM, realizes that the VM automatically mounts a target RDMA block device, does not occupy the core resources of a physical machine of the computing nodes, reduces memory copy, and simultaneously can fully utilize the physical characteristics of the target RDMA block device.
It should be noted that, in this embodiment, a specific implementation process of the steps executed by the VM and the RDMA DMS may refer to an implementation process in the mapping method for a virtual hard disk provided in the embodiments corresponding to fig. 2 to 3, and 4 to 5, and details are not described here.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A mapping method of a virtual hard disk is applied to a Virtual Machine (VM), and comprises the following steps:
acquiring a first identifier of a remote direct data access device management system (RDMA DMS) issued by a cloud computing platform;
searching the RDMA DMS based on the first identification, and acquiring a target RDMA block device distributed by the RDMA DMS for the VM; wherein the RDMA DMS comprises the target RDMA block device;
establishing a mapping between the VM and the target RDMA block device, and communicating data with the target RDMA block device based on the mapping.
2. The method of claim 1, wherein prior to the obtaining the RDMA DMS a target RDMA block device allocated for the VM, the method further comprises:
acquiring a block device identification list of the RDMA block device sent by the RDMA DMS; wherein the list of block device identifications includes an identification of at least one RDMA block device;
correspondingly, the obtaining of the target RDMA block device allocated by the RDMA DMS for the VM includes:
selecting a target identifier from the block device identifier list, and sending a request message carrying the target identifier to the RDMA DMS;
receiving response information sent by the RDMA DMS aiming at the request message;
and if the response information indicates that the target identification is successfully verified, determining the RDMA block device corresponding to the target identification as the target RDMA block device.
3. The method of claim 2, further comprising:
and if the response information indicates that the target identification fails to be verified, determining not to perform data communication with the target RDMA block device.
4. The method of claim 1, wherein the data communicating with the target RDMA block device based on the mapping comprises:
communicating data with the target RDMA block device based on the RDMA protocol and the mapping.
5. A mapping method of a virtual hard disk, applied to a remote direct data access device management system, RDMA DMS, the RDMA DMS including at least one RDMA block device, the method comprising:
sending, by the cloud computing platform, the first identifier of the RDMA DMS to the VM;
allocating a target RDMA block device for the VM; wherein the at least one RDMA block device comprises the target RDMA block device;
reading a mapping between the target RDMA block device and the VM from the VM, and communicating data with the VM through the target RDMA block device based on the mapping.
6. The method of claim 5, wherein the allocating a target RDMA block device for the VM comprises:
generating a block device identification list of an RDMA block device and sending the block device identification list to the VM; wherein the list of block device identifications includes an identification of at least one RDMA block device;
receiving a request message which is sent by the VM and carries a target identifier;
generating a response message based on the request message, and sending the response message to the VM; wherein the response message is used for indicating that the RDMA DMS successfully authenticates the target identity, or the response message is used for indicating that the RDMA DMS fails to authenticate the target identity.
7. The method of claim 5, wherein the data communicating with the VM through the target RDMA block device based on the mapping comprises:
communicating data with the VM through the target RDMA block device based on an RDMA protocol and the mapping.
8. A VM, comprising:
a first memory for storing executable instructions;
a first processor for executing executable instructions stored in said first memory to implement the mapping method of a virtual hard disk as claimed in any one of claims 1 to 4.
9. An RDMA DMS, comprising:
a second memory for storing executable instructions;
a second processor for executing the executable instructions stored in said second memory to implement the mapping method of the virtual hard disk according to any of claims 5 to 7.
10. A cloud computing platform, the platform comprising:
an RDMA DMS comprising at least one RDMA block device to send a first identification of the RDMA DMS to a VM through a cloud computing platform; allocating a target RDMA block device for the VM; reading a mapping from the VM between the target RDMA block device and the VM, and communicating data with the VM through the target RDMA block device based on the mapping; wherein the at least one RDMA block device comprises the target RDMA block device;
a VM to obtain a first identity of the RDMA DMS; searching the RDMA DMS based on the first identification, and acquiring a target RDMA block device distributed by the RDMA DMS for the VM; establishing a mapping between the VM and the target RDMA block device, and communicating data with the target RDMA block device based on the mapping.
CN201811471746.5A 2018-12-04 2018-12-04 Mapping method and device of virtual hard disk and cloud computing platform Active CN109739615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811471746.5A CN109739615B (en) 2018-12-04 2018-12-04 Mapping method and device of virtual hard disk and cloud computing platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811471746.5A CN109739615B (en) 2018-12-04 2018-12-04 Mapping method and device of virtual hard disk and cloud computing platform

Publications (2)

Publication Number Publication Date
CN109739615A CN109739615A (en) 2019-05-10
CN109739615B true CN109739615B (en) 2020-07-24

Family

ID=66358493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811471746.5A Active CN109739615B (en) 2018-12-04 2018-12-04 Mapping method and device of virtual hard disk and cloud computing platform

Country Status (1)

Country Link
CN (1) CN109739615B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274176B (en) * 2020-01-15 2022-04-22 联想(北京)有限公司 Information processing method, electronic equipment, system and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1940805A (en) * 2005-09-30 2007-04-04 联想(北京)有限公司 Computer system and its safety encryption
US8225330B2 (en) * 2006-12-14 2012-07-17 Intel Corporation RDMA (remote direct memory access) data transfer in a virtual environment
CN102915285A (en) * 2011-09-14 2013-02-06 微软公司 Application acceleration in a virtualized environment
CN103051687A (en) * 2012-12-10 2013-04-17 浪潮(北京)电子信息产业有限公司 System and method for deploying application service to cloud-storage virtual machine
CN103377330A (en) * 2012-04-23 2013-10-30 佛山市智慧岛信息技术有限公司 Virtual resource distribution method and virtual resource distribution system
CN104468803A (en) * 2014-12-12 2015-03-25 华为技术有限公司 Virtual data center resource mapping method and equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8156503B2 (en) * 2008-02-12 2012-04-10 International Business Machines Corporation System, method and computer program product for accessing a memory space allocated to a virtual machine
US9170950B2 (en) * 2013-01-16 2015-10-27 International Business Machines Corporation Method, apparatus and computer programs providing cluster-wide page management
US9146819B2 (en) * 2013-07-02 2015-09-29 International Business Machines Corporation Using RDMA for fast system recovery in virtualized environments
US9306916B2 (en) * 2013-12-25 2016-04-05 Cavium, Inc. System and a method for a remote direct memory access over converged ethernet

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1940805A (en) * 2005-09-30 2007-04-04 联想(北京)有限公司 Computer system and its safety encryption
US8225330B2 (en) * 2006-12-14 2012-07-17 Intel Corporation RDMA (remote direct memory access) data transfer in a virtual environment
CN102915285A (en) * 2011-09-14 2013-02-06 微软公司 Application acceleration in a virtualized environment
CN103377330A (en) * 2012-04-23 2013-10-30 佛山市智慧岛信息技术有限公司 Virtual resource distribution method and virtual resource distribution system
CN103051687A (en) * 2012-12-10 2013-04-17 浪潮(北京)电子信息产业有限公司 System and method for deploying application service to cloud-storage virtual machine
CN104468803A (en) * 2014-12-12 2015-03-25 华为技术有限公司 Virtual data center resource mapping method and equipment

Also Published As

Publication number Publication date
CN109739615A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
US10909221B2 (en) Container license management method, and apparatus
CN107577516B (en) Virtual machine password resetting method, device and system
US9525592B2 (en) Client/server network environment setup method and system
US8769269B2 (en) Cloud data management
US9882825B2 (en) Method and system for securely transmitting volumes into cloud
WO2018145605A1 (en) Authentication method and server, and access control device
US10958633B2 (en) Method and system for securely transmitting volumes into cloud
EP3618352B1 (en) Virtual machine management
CN106933648B (en) Method and system for multi-tenant container resource management
US20120311575A1 (en) System and method for enforcing policies for virtual machines
CN108092984B (en) Authorization method, device and equipment for application client
CN108768957B (en) Method, equipment and system for managing user information of application
US9639691B2 (en) Dynamic database and API-accessible credentials data store
CN108073423B (en) Accelerator loading method and system and accelerator loading device
CN109542862B (en) Method, device and system for controlling mounting of file system
WO2017101761A1 (en) Method for loading drive program, and server
CN108427677B (en) Object access method and device and electronic equipment
US20190098107A1 (en) Geographic location based user computing asset provisioning in distributed computing systems
CN111865629A (en) Method, apparatus and computer program product for configuring service instances
US20180083940A1 (en) System to resolve multiple identity crisis in indentity-as-a-service application environment
CN113395340A (en) Information updating method, device, equipment, system and readable storage medium
CN108234551B (en) Data processing method and device
WO2018001023A1 (en) Virtual desktop login method and device for cloud terminal
CN109739615B (en) Mapping method and device of virtual hard disk and cloud computing platform
US10972455B2 (en) Secure authentication in TLS sessions

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