CN117891472A - Bare metal mirror image deployment method, device and medium - Google Patents

Bare metal mirror image deployment method, device and medium Download PDF

Info

Publication number
CN117891472A
CN117891472A CN202410274496.5A CN202410274496A CN117891472A CN 117891472 A CN117891472 A CN 117891472A CN 202410274496 A CN202410274496 A CN 202410274496A CN 117891472 A CN117891472 A CN 117891472A
Authority
CN
China
Prior art keywords
image
bare metal
deployment
format
storage space
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.)
Granted
Application number
CN202410274496.5A
Other languages
Chinese (zh)
Other versions
CN117891472B (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.)
Hangzhou Geely Auto Automobile Digital Technology Co ltd
Zhejiang Geely Holding Group Co Ltd
Original Assignee
Hangzhou Geely Auto Automobile Digital Technology Co ltd
Zhejiang Geely Holding Group 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 Hangzhou Geely Auto Automobile Digital Technology Co ltd, Zhejiang Geely Holding Group Co Ltd filed Critical Hangzhou Geely Auto Automobile Digital Technology Co ltd
Priority to CN202410274496.5A priority Critical patent/CN117891472B/en
Publication of CN117891472A publication Critical patent/CN117891472A/en
Application granted granted Critical
Publication of CN117891472B publication Critical patent/CN117891472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the technical field of mirror image deployment, and discloses a bare metal mirror image deployment method, a device and a medium, which are applied to a bare metal service node, wherein the method comprises the following steps: receiving a first mirror image in a first format sent by a bare metal control node; converting the first image into a second image in a second format; the storage space occupation amount of the first mirror image is smaller than that of the second mirror image; and deploying the second mirror image to the local hard disk. Therefore, the technical scheme provided by the application finishes the format conversion and deployment of the mirror image at the bare metal service node, avoids the situation that more network resources are occupied due to the fact that the bare metal control node converts the first mirror image with smaller storage space occupation into the second mirror image with larger storage space occupation, delays the format conversion and deployment of the mirror image to the bare metal service node, can reduce the network bandwidth occupation, reduces the mirror image transmission time length, and further improves the deployment efficiency of the bare metal mirror image.

Description

一种裸金属镜像部署的方法、装置及介质A method, device and medium for bare metal image deployment

技术领域Technical Field

本申请涉及镜像部署技术领域,尤其涉及一种裸金属镜像部署的方法、装置及介质。The present application relates to the technical field of image deployment, and in particular to a method, device and medium for bare metal image deployment.

背景技术Background technique

随着服务器虚拟化技术的不断发展,传统数据中心业务正逐步迁移上云。然而,对于一些重负载业务,例如数据库等,依然需要部署在裸金属基础设施中,从而满足重负载业务的高性能、低延迟需求,其中,裸金属指的是没有操作系统的计算机硬件。With the continuous development of server virtualization technology, traditional data center services are gradually migrating to the cloud. However, some heavy-load services, such as databases, still need to be deployed on bare metal infrastructure to meet the high performance and low latency requirements of heavy-load services. Bare metal refers to computer hardware without an operating system.

在裸金属系统部署中,通常将待部署的操作系统镜像提前安装制作好,以精简的qcow2格式上传至镜像仓库中。部署时,先将操作系统镜像从镜像仓库中下载至裸金属服务器,并转换成raw格式释放至其本地的硬盘中,从而完成快速部署。In bare metal system deployment, the operating system image to be deployed is usually installed and produced in advance, and uploaded to the image warehouse in a streamlined qcow2 format. During deployment, the operating system image is first downloaded from the image warehouse to the bare metal server, converted into raw format and released to its local hard disk, thereby completing rapid deployment.

具体地,基于Openstack Ironic框架裸金属系统部署具有两种实现方式。一种可行的实施方式是,将裸金属服务器上的本地盘以iSCSI协议挂载至Ironic控制节点,Ironic控制节点从镜像仓库中下载qcow2格式的操作系统镜像,并qcow2格式的操作系统镜像转换成raw格式后,复制到已挂载的远程裸金属服务器硬盘上,从而完成部署。Specifically, there are two implementation methods for bare metal system deployment based on the Openstack Ironic framework. One feasible implementation method is to mount the local disk on the bare metal server to the Ironic control node using the iSCSI protocol, and the Ironic control node downloads the operating system image in qcow2 format from the image repository, converts the operating system image in qcow2 format to raw format, and then copies it to the mounted remote bare metal server hard disk to complete the deployment.

另一种可行的实施方式,与上述基于iSCSI协议传输操作系统镜像不同,该方法在Ironic控制节点将qcow2格式的操作系统镜像转换成raw格式后,启动一个代理服务httpserver,在裸金属服务器端通过客户端请求工具http client远程请求下载raw格式操作系统镜像,并复制到裸金属服务器的本地硬盘中,从而完成部署。Another feasible implementation method is different from the above-mentioned iSCSI protocol-based operating system image transmission. After the Ironic control node converts the qcow2 format operating system image into the raw format, a proxy service httpserver is started, and the raw format operating system image is remotely requested to be downloaded through the client request tool http client on the bare metal server, and copied to the local hard disk of the bare metal server to complete the deployment.

以上两种实施方式在裸金属系统部署过程中,均需要在Ironic控制节点先将qcow2格式的操作系统镜像转换成raw格式,再传输至裸金属服务器上。而raw格式的操作系统镜像容量体积往往较大,在传输过程中会占用很多网络带宽资源,传输耗时较长,从而导致部署效率低。In the above two implementation methods, during the bare metal system deployment process, the operating system image in qcow2 format needs to be converted into raw format on the Ironic control node before being transferred to the bare metal server. However, the raw operating system image is often large in size, which will occupy a lot of network bandwidth resources during the transmission process, and the transmission time is long, resulting in low deployment efficiency.

由此可见,如何减少裸金属部署时网络带宽资源占用量,提升部署效率,是本领域技术人员亟待解决的技术问题。It can be seen that how to reduce the network bandwidth resource usage during bare metal deployment and improve deployment efficiency is a technical problem that technical personnel in this field need to solve urgently.

发明内容Summary of the invention

有鉴于此,本申请的一个方面提供一种裸金属镜像部署的方法,应用于裸金属服务节点,所述方法包括:In view of this, one aspect of the present application provides a bare metal image deployment method, which is applied to a bare metal service node, and the method includes:

接收裸金属控制节点发送的第一格式的第一镜像;Receiving a first image in a first format sent by a bare metal control node;

将所述第一镜像转换为第二格式的第二镜像;其中,所述第一镜像的存储空间占用量小于所述第二镜像的存储空间占用量;Converting the first image into a second image in a second format; wherein the storage space occupied by the first image is less than the storage space occupied by the second image;

将所述第二镜像部署于本地硬盘。Deploy the second image on the local hard disk.

本申请的另一个方面提供一种裸金属镜像部署的方法,应用于裸金属控制节点,所述方法包括:Another aspect of the present application provides a bare metal image deployment method, which is applied to a bare metal control node, and the method includes:

发送的第一格式的第一镜像至裸金属服务节点,以便所述裸金属服务节点将所述第一镜像转换为第二格式的第二镜像,并将所述第二镜像部署于本地硬盘;其中,所述第一镜像的存储空间占用量小于所述第二镜像的存储空间占用量。The first image in the first format is sent to the bare metal service node, so that the bare metal service node converts the first image into a second image in the second format and deploys the second image on the local hard disk; wherein the storage space occupied by the first image is less than the storage space occupied by the second image.

本申请的另一个方面提供一种裸金属镜像部署的装置,应用于裸金属服务节点,所述装置包括:Another aspect of the present application provides a bare metal image deployment device, which is applied to a bare metal service node, and the device includes:

接收模块,用于接收裸金属控制节点发送的第一格式的第一镜像;A receiving module, configured to receive a first image in a first format sent by a bare metal control node;

转换模块,用于将所述第一镜像转换为第二格式的第二镜像;其中,所述第一镜像的存储空间占用量小于所述第二镜像的存储空间占用量;A conversion module, used to convert the first image into a second image in a second format; wherein the storage space occupied by the first image is less than the storage space occupied by the second image;

部署模块,用于将所述第二镜像部署于本地硬盘。A deployment module is used to deploy the second image on a local hard disk.

本申请的另一个方面提供一种裸金属镜像部署的装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现所述裸金属镜像部署的方法的步骤。Another aspect of the present application provides a bare metal image deployment device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the bare metal image deployment method when executing the program.

本申请的另一个方面提供一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现所述裸金属镜像部署的方法的步骤。Another aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps of the bare metal image deployment method are implemented.

本申请所提供的一种裸金属镜像部署的方法、装置及介质,在裸金属服务节点完成镜像的格式转换和部署,避免在裸金属控制节点将存储空间占用量更小的第一镜像转换为存储空间占用量较大的第二镜像导致占用较多网络资源,将镜像格式转换和部署延迟至裸金属服务节点,可以降低网络带宽占用量,降低镜像传输时长,进而提升裸金属镜像的部署效率。The present application provides a method, device and medium for bare metal image deployment, which completes the format conversion and deployment of the image at the bare metal service node, avoids converting the first image with a smaller storage space occupancy into the second image with a larger storage space occupancy at the bare metal control node, resulting in more network resources being occupied, and delays the image format conversion and deployment to the bare metal service node, which can reduce the network bandwidth occupancy and the image transmission time, thereby improving the deployment efficiency of the bare metal image.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本申请实施例所提供的一种裸金属镜像部署的方法的流程示意图;FIG1 is a schematic diagram of a process of deploying a bare metal image according to an embodiment of the present application;

图2为本申请实施例所提供的一种裸金属镜像部署的原理框图;FIG2 is a block diagram of a bare metal image deployment provided by an embodiment of the present application;

图3为本申请实施例所提供的一种裸金属镜像部署的装置的结构示意图;FIG3 is a schematic diagram of the structure of a bare metal image deployment device provided in an embodiment of the present application;

图4为本申请另一实施例提供的一种裸金属镜像部署的装置的结构示意图。FIG4 is a schematic diagram of the structure of a bare metal image deployment device provided in another embodiment of the present application.

附图标记如下:1为镜像仓库,2为裸金属控制节点,3为裸金属服务节点,40为存储器,41为处理器,42为显示屏,43为输入输出接口,44为通信接口,45为电源,46为通信总线,401为计算机程序,402为操作系统403为数据。The figure numbers are as follows: 1 is the image repository, 2 is the bare metal control node, 3 is the bare metal service node, 40 is the memory, 41 is the processor, 42 is the display screen, 43 is the input and output interface, 44 is the communication interface, 45 is the power supply, 46 is the communication bus, 401 is the computer program, 402 is the operating system, and 403 is the data.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and/or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.

应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

在汽车的研发过程中,需要通过计算机辅助工程(Computer Aided Engineering,简称CAE)仿真平台对车辆的性能进行验证,例如,验证车辆的底盘舒适性,评估汽车结构部件(如车身、车架、悬挂系统等)在静态载荷(如自重)和动态载荷(如碰撞、路面冲击、扭转等)下的强度、刚度、疲劳耐久性以及NVH(噪声、振动与不平顺性)特性等。具体的,通过CAE仿真平台对车辆的性能进行验证时,需要在物理服务器上安装操作系统,即,需要在裸金属(物理服务器)上部署操作系统镜像,以便在物理服务器上实现CAE仿真。During the development of automobiles, it is necessary to verify the performance of the vehicle through a Computer Aided Engineering (CAE) simulation platform, for example, to verify the chassis comfort of the vehicle, and to evaluate the strength, stiffness, fatigue durability, and NVH (noise, vibration, and harshness) characteristics of the vehicle structural components (such as the body, frame, and suspension system) under static loads (such as deadweight) and dynamic loads (such as collisions, road impacts, and torsion). Specifically, when verifying the performance of the vehicle through the CAE simulation platform, it is necessary to install the operating system on the physical server, that is, it is necessary to deploy the operating system image on the bare metal (physical server) in order to implement CAE simulation on the physical server.

在进行裸金属的镜像部署时,如何降低镜像传输时对网络资源的占用量,并提升镜像部署效率,是至关重要的研究方向。为了解决上述技术问题,本申请实施例提供了一种裸金属镜像部署的方法,将镜像格式转换延迟至裸金属服务节点,即,延迟至物理机服务器进行,从而节约网络资源,提升镜像部署效率。When deploying bare metal images, how to reduce the amount of network resources occupied during image transmission and improve the efficiency of image deployment is a crucial research direction. In order to solve the above technical problems, the embodiment of the present application provides a bare metal image deployment method, which delays the image format conversion to the bare metal service node, that is, delays it to the physical machine server, thereby saving network resources and improving the efficiency of image deployment.

图1为本申请实施例所提供的一种裸金属镜像部署的方法的流程示意图,如图1所示,该方法包括:FIG1 is a flow chart of a method for bare metal image deployment provided in an embodiment of the present application. As shown in FIG1 , the method includes:

S10:接收裸金属控制节点发送的第一格式的第一镜像;S10: receiving a first image in a first format sent by a bare metal control node;

图2为本申请实施例所提供的一种裸金属镜像部署的原理框图,如图2所示,在具体实施例中,裸金属控制节点2从镜像仓库1中下载第一格式的第一镜像,并将第一镜像发送至裸金属服务节点3。Figure 2 is a principle block diagram of a bare metal image deployment provided in an embodiment of the present application. As shown in Figure 2, in a specific embodiment, the bare metal control node 2 downloads a first image in a first format from the image repository 1 and sends the first image to the bare metal service node 3.

在一些可选的实施例中,由于qcow2格式的镜像容易归档和分发,因此,第一镜像的第一格式可以是qcow2格式,当然也可以是其他格式的镜像,对此本申请不做限定。需要说明的是,本申请所提供的裸金属镜像部署的方法,可以同时对多个裸金属进行镜像部署。In some optional embodiments, since images in qcow2 format are easy to archive and distribute, the first format of the first image can be qcow2 format, and of course it can also be images in other formats, which is not limited in this application. It should be noted that the bare metal image deployment method provided in this application can simultaneously deploy images on multiple bare metals.

S11:将第一镜像转换为第二格式的第二镜像;其中,第一镜像的存储空间占用量小于第二镜像的存储空间占用量;S11: converting the first image into a second image in a second format; wherein the storage space occupied by the first image is smaller than the storage space occupied by the second image;

进一步的,裸金属服务节点3通过步骤S10接收到裸金属控制节点2发送的第一格式的第一镜像后,将第一镜像转换为第二格式的第二镜像,可以理解的是,为了减少镜像在传输过程中占用过多的网络资源,第一镜像的存储空间占用量小于第二镜像的存储空间占用量。Furthermore, after the bare metal service node 3 receives the first image in the first format sent by the bare metal control node 2 through step S10, the bare metal service node 3 converts the first image into a second image in the second format. It can be understood that in order to reduce the excessive network resources occupied by the image during the transmission process, the storage space occupied by the first image is less than the storage space occupied by the second image.

在一些可选的实施例中,第二镜像为raw格式镜像,即,裸金属服务节点3正常运行所必须的格式镜像。可以理解的是,raw格式镜像存储空间占用量较大,例如,占用10吉字节(gigabyte,简称GB)实际存储空间的qcow2格式的第一镜像可能标定100GB的raw格式的第二镜像,即,10GB的qcow2格式的第一镜像可以转换为100GB的raw格式的第二镜像。In some optional embodiments, the second image is a raw format image, that is, an image in a format required for the normal operation of the bare metal service node 3. It is understandable that the raw format image occupies a large amount of storage space, for example, a first image in qcow2 format occupying 10 gigabytes (GB) of actual storage space may be marked as a second image in raw format of 100GB, that is, the first image in qcow2 format of 10GB can be converted into a second image in raw format of 100GB.

因此,若在裸金属控制节点2将第一镜像转换为第二镜像后,将第二镜像传输至裸金属服务节点3进行部署,在传输过程中会占用较多网络带宽资源,增加传输的耗时,因此将qcow2格式的第一镜像转换为raw格式的第二镜像在裸金属服务节点3完成,从而节约网络资源。Therefore, if the bare metal control node 2 converts the first image into the second image and then transmits the second image to the bare metal service node 3 for deployment, more network bandwidth resources will be occupied during the transmission process, which will increase the transmission time. Therefore, the conversion of the first image in qcow2 format into the second image in raw format is completed in the bare metal service node 3, thereby saving network resources.

S12:将第二镜像部署于本地硬盘。S12: deploy the second image on the local hard disk.

进一步的,将第二镜像部署至裸金属服务节点3的本地硬盘,从而完成裸金属的镜像部署,通过精简传输和延迟转换节约网络资源和存储空间。Furthermore, the second image is deployed to the local hard disk of the bare metal service node 3, thereby completing the bare metal image deployment, saving network resources and storage space by streamlining transmission and delaying conversion.

由此,本申请实施例所提供的裸金属镜像部署的方法,在裸金属服务节点3完成镜像的格式转换和部署,避免在裸金属控制节点2将存储空间占用量更小的第一镜像转换为存储空间占用量较大的第二镜像导致占用较多网络资源,将镜像格式转换和部署延迟至裸金属服务节点3,可以降低网络带宽占用量,降低镜像传输时长,进而提升裸金属镜像的部署效率。Therefore, the bare metal image deployment method provided in the embodiment of the present application completes the image format conversion and deployment at the bare metal service node 3, avoiding the conversion of the first image with a smaller storage space occupancy into the second image with a larger storage space occupancy at the bare metal control node 2, which results in occupying more network resources, and delays the image format conversion and deployment to the bare metal service node 3, which can reduce the network bandwidth occupancy and the image transmission time, thereby improving the deployment efficiency of the bare metal image.

在一种可选的实施例中,第一镜像是通过预设方式进行压缩后的镜像;其中,预设方式包括zip压缩方式。在上述实施例的基础上,为了进一步降低第一镜像在传输过程中占用的网络资源,将第一镜像进行压缩,具体的,以第一格式为qcow2格式为例进行说明。In an optional embodiment, the first image is an image compressed by a preset method; wherein the preset method includes a zip compression method. Based on the above embodiment, in order to further reduce the network resources occupied by the first image during the transmission process, the first image is compressed, and specifically, the first format is qcow2 format as an example for explanation.

裸金属控制节点2从镜像仓库1中下载qcow2格式的第一镜像后,将qcow2格式的第一镜像进行zip压缩,并将压缩后的第一镜像传输至裸金属服务节点3,值得注意的是,裸金属服务节点3获取到的第一镜像为qcow2格式的镜像,且为zip压缩后的镜像。After bare metal control node 2 downloads the first image in qcow2 format from image repository 1, it zips the first image in qcow2 format and transmits the compressed first image to bare metal service node 3. It is worth noting that the first image obtained by bare metal service node 3 is an image in qcow2 format and is a zip-compressed image.

例如,将10GB的qcow2格式第一镜像压缩为2GB的qcow2格式第一镜像,由此,可进一步节约裸金属控制节点2传输第一镜像时,对网络资源的占用,提升传输速率,从而提升裸金属的镜像部署效率。For example, a 10GB first image in qcow2 format is compressed into a 2GB first image in qcow2 format. This can further save network resources occupied by the bare metal control node 2 when transmitting the first image, improve the transmission rate, and thus improve the bare metal image deployment efficiency.

事实上,本申请对第一镜像的预设压缩方式不做限定,由于zip压缩方式可以压缩得到占用存储空间更小的镜像,因此优选通过zip压缩方式进行压缩。In fact, the present application does not limit the preset compression method of the first image. Since the zip compression method can compress the image to obtain an image that occupies a smaller storage space, it is preferred to compress it using the zip compression method.

由此,在裸金属控制节点2准备向裸金属服务节点3分发传输第一镜像之前,保持精简qcow2格式并压缩,双重措施减少传输磁盘容量。Therefore, before the bare metal control node 2 is ready to distribute and transmit the first image to the bare metal service node 3, the simplified qcow2 format is maintained and compressed, and the dual measures are taken to reduce the transmission disk capacity.

可以理解的是,在上述实施例的基础上,将压缩后第一镜像传输至裸金属服务节点3后,裸金属服务节点3需要先将第一镜像进行解压后,再将第一镜像转换为第二格式的第二镜像。It can be understood that, based on the above embodiment, after the compressed first image is transmitted to the bare metal service node 3, the bare metal service node 3 needs to first decompress the first image and then convert the first image into a second image in a second format.

具体的,以第一格式为qcow2格式,第二格式为raw格式为例进行说明,裸金属控制节点2将10GB的qcow2格式第一镜像压缩为2GB的qcow2格式第一镜像后,传输至裸金属服务节点3,裸金属服务节点3基于unzip解压缩的方式,将2GB的qcow2格式第一镜像解压为10GB的qcow2格式第一镜像。Specifically, taking the first format as qcow2 format and the second format as raw format as an example, the bare metal control node 2 compresses the 10GB first image in qcow2 format into a 2GB first image in qcow2 format, and then transmits it to the bare metal service node 3. The bare metal service node 3 decompresses the 2GB first image in qcow2 format into a 10GB first image in qcow2 format based on the unzip decompression method.

进一步的,再通过qemu-img工具将10GB的qcow2格式第一镜像转换为raw格式的第二镜像。其中,qemu-img是一个命令行工具,它是模拟处理器QEMU(Quick Emulator)虚拟化软件套件的一部分,用于创建、转换和管理磁盘镜像文件。Furthermore, the 10GB first image in qcow2 format is converted into the second image in raw format by using the qemu-img tool. qemu-img is a command line tool that is part of the QEMU (Quick Emulator) virtualization software suite for emulating processors and is used to create, convert, and manage disk image files.

值得注意的是,在一些可选的实施例中,裸金属控制节点2可以是Ironic控制节点,Ironic 是开源社区推出的 Open Stack 架构中的一个项目,用于管理裸金属服务节点3。It is worth noting that in some optional embodiments, the bare metal control node 2 may be an Ironic control node. Ironic is a project in the Open Stack architecture launched by the open source community and is used to manage the bare metal service node 3.

由此,本申请实施例所提供的裸金属镜像部署的方法,通过裸金属控制节点2将第一镜像进行压缩后传输至裸金属服务节点3,由裸金属服务节点3完成第一镜像的解压和格式转换,并将格式转换得到的第二镜像部署至本地硬盘,进而实现裸金属的镜像部署,进一步节约镜像在传输过程中对网络资源的占用量。此外,采用压缩方式存储镜像,可以减少了本地存储空间的占用。Therefore, the bare metal image deployment method provided in the embodiment of the present application compresses the first image and transmits it to the bare metal service node 3 through the bare metal control node 2, and the bare metal service node 3 completes the decompression and format conversion of the first image, and deploys the second image obtained by the format conversion to the local hard disk, thereby realizing the bare metal image deployment, further saving the image in the transmission process. The amount of network resources occupied by the image can be reduced. In addition, the use of compressed storage can reduce the occupation of local storage space.

在一种可选的实施例中,为了进一步提升裸金属的镜像部署效率,减少存储空间占用量,本申请实施例所提供的裸金属镜像部署的方法,对第一镜像进行解压,将第一镜像转换为第二格式的第二镜像,将第二镜像部署于本地硬盘,包括:In an optional embodiment, in order to further improve the bare metal image deployment efficiency and reduce the storage space occupied, the bare metal image deployment method provided in the embodiment of the present application decompresses the first image, converts the first image into a second image in a second format, and deploys the second image on a local hard disk, including:

针对第一镜像和第二镜像中的数据,以流式数据处理的方式,依次将第一镜像中的数据进行解压,将解压后的数据转换为第二镜像中的数据,并将第二镜像的数据部署于本地硬盘。For the data in the first image and the second image, the data in the first image is decompressed in sequence in a streaming data processing manner, the decompressed data is converted into the data in the second image, and the data in the second image is deployed on the local hard disk.

可以理解的是,若将压缩后的第一镜像先解压后存储,然后再将解压后第一镜像转换为第二镜像进行存储,最后将第二镜像部署于本地硬盘,会占用较多存储空间,且镜像部署的效率也较低。It is understandable that if the compressed first image is first decompressed and then stored, and then the decompressed first image is converted into a second image for storage, and finally the second image is deployed on the local hard disk, more storage space will be occupied and the efficiency of image deployment will be low.

因此,本申请实施例所提供的技术方案,在裸金属服务节点3在接收到压缩后的第一镜像的同时,以不落地的方式,即,以流式数据处理的方式,依次对第一镜像进行解压,将解压后的第一镜像转换为第二镜像,并将第二镜像部署于本地硬盘。Therefore, the technical solution provided in the embodiment of the present application is that when the bare metal service node 3 receives the compressed first image, it decompresses the first image in sequence in a non-landing manner, that is, in a streaming data processing manner, converts the decompressed first image into a second image, and deploys the second image on the local hard disk.

也就是说,将第一镜像进行解压后不进行存储,直接转换为第二格式的第二镜像,得到第二镜像后也不进行存储,直接将第二镜像部署于本地硬盘,由此降低裸金属服务节点3存储空间占用量,并提升裸金属部署效率。That is to say, the first image is not stored after being decompressed, but is directly converted into a second image in a second format. After the second image is obtained, it is not stored either, but is directly deployed on the local hard disk, thereby reducing the storage space occupied by the bare metal service node 3 and improving the bare metal deployment efficiency.

在一些可选的实施例中,将第一镜像转换为第二格式的第二镜像,包括:In some optional embodiments, converting the first image into a second image in a second format includes:

通过pxe引导技术从裸金属控制节点下载虚拟内存盘;Download the virtual memory disk from the bare metal control node through the PXE boot technology;

在虚拟内存盘中启动代理服务,以便通过代理服务将第一镜像转换为第二镜像。The proxy service is started in the virtual memory disk so as to convert the first image into the second image through the proxy service.

在具体实施例中,将第一镜像转换为第二格式的第二镜像时,可以通过预设的网络引导技术从裸金属控制节点2下载虚拟内存盘(ramdisk),在一些可选的实施例中,预设的网络引导技术包括但不限于pxe引导技术。In a specific embodiment, when converting the first image into a second image in a second format, a virtual memory disk (ramdisk) can be downloaded from the bare metal control node 2 through a preset network boot technology. In some optional embodiments, the preset network boot technology includes but is not limited to the pxe boot technology.

进一步的,裸金属服务节点3在虚拟内存盘中启动代理服务(http server),通过代理服务通过qemu-img工具将第一镜像转换为第二镜像。Furthermore, the bare metal service node 3 starts a proxy service (http server) in the virtual memory disk, and converts the first image into the second image through the proxy service using the qemu-img tool.

在一些可选的实施例中,代理服务将第一镜像转换为第二镜像,包括:In some optional embodiments, the proxy service converts the first image into the second image, including:

在虚拟内存盘中划分预设大小的存储空间;Divide storage space of preset size in the virtual memory disk;

在预设大小的存储空间中,将第一镜像转换为第二镜像。In a storage space of a preset size, the first image is converted into a second image.

具体的,代理服务http server在虚拟内存盘ramdisk中划分一个预设大小的存储空间,以便在该存储空间中将第一镜像转换为第二镜像。进一步的,代理服务http server通过异步的方式,持续将转换后的第二格式的第二镜像数据写入本地硬盘中,从而完成裸金属的镜像部署。Specifically, the proxy service http server allocates a storage space of a preset size in the virtual memory disk ramdisk so as to convert the first image into the second image in the storage space. Further, the proxy service http server continuously writes the converted second image data in the second format to the local hard disk in an asynchronous manner, thereby completing the bare metal image deployment.

在上述实施例中,对于应用于裸金属服务节点的裸金属镜像部署方法进行了详细说明,本申请实施例还提供了一种应用于裸金属控制节点的裸金属镜像部署的方法对应的实施例,该方法包括:In the above embodiment, a bare metal image deployment method applied to a bare metal service node is described in detail. The embodiment of the present application also provides an embodiment corresponding to a method for bare metal image deployment applied to a bare metal control node, the method comprising:

发送的第一格式的第一镜像至裸金属服务节点,以便裸金属服务节点将第一镜像转换为第二格式的第二镜像,并将第二镜像部署于本地硬盘;其中,第一镜像的存储空间占用量小于第二镜像的存储空间占用量。The first image in the first format is sent to the bare metal service node, so that the bare metal service node converts the first image into a second image in the second format and deploys the second image on the local hard disk; wherein the storage space occupied by the first image is less than the storage space occupied by the second image.

可以理解的是,本申请实施例所提供的裸金属控制节点侧的部署方法,与裸金属服务节点侧的部署方法相对应,因此所产生的有益效果相同,此处暂不赘述。It can be understood that the deployment method on the bare metal control node side provided in the embodiment of the present application corresponds to the deployment method on the bare metal service node side, and therefore the beneficial effects produced are the same and will not be repeated here.

在上述实施例中,对于应用于裸金属服务节点的裸金属镜像部署的方法进行了详细描述,本申请还提供一种应用于裸金属服务节点的裸金属镜像部署的装置对应的实施例。需要说明的是,本申请从两个角度对装置部分的实施例进行描述,一种是基于功能模块的角度,另一种是基于硬件结构的角度。In the above embodiments, the method for bare metal image deployment applied to bare metal service nodes is described in detail, and the present application also provides an embodiment corresponding to a device for bare metal image deployment applied to bare metal service nodes. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is based on the perspective of functional modules, and the other is based on the perspective of hardware structure.

图3为本申请实施例所提供的一种裸金属镜像部署的装置的结构示意图,该装置应用于裸金属服务节点,如图3所示,该装置包括:FIG3 is a schematic diagram of the structure of a bare metal image deployment device provided in an embodiment of the present application. The device is applied to a bare metal service node. As shown in FIG3 , the device includes:

接收模块30,用于接收裸金属控制节点发送的第一格式的第一镜像;A receiving module 30, configured to receive a first image in a first format sent by a bare metal control node;

转换模块31,用于将第一镜像转换为第二格式的第二镜像;其中,第一镜像的存储空间占用量小于第二镜像的存储空间占用量;A conversion module 31, configured to convert the first image into a second image in a second format; wherein the storage space occupied by the first image is smaller than the storage space occupied by the second image;

部署模块32,用于将第二镜像部署于本地硬盘。The deployment module 32 is used to deploy the second image on the local hard disk.

此外,本申请实施例所提供的裸金属镜像部署的装置,还包括:In addition, the bare metal image deployment device provided in the embodiment of the present application also includes:

解压模块,用于对第一镜像进行解压。The decompression module is used to decompress the first image.

数据处理模块,用于针对第一镜像和第二镜像中的数据,以流式数据处理的方式,依次将第一镜像中的数据进行解压,将解压后的数据转换为第二镜像中的数据,并将第二镜像的数据部署于本地硬盘。The data processing module is used to decompress the data in the first image and the second image in a streaming data processing manner, convert the decompressed data into data in the second image, and deploy the data in the second image on a local hard disk.

下载模块,用于通过pxe引导技术从裸金属控制节点下载虚拟内存盘;Download module, used to download virtual memory disk from bare metal control node through PXE boot technology;

启动模块,用于在虚拟内存盘中启动代理服务,以便通过代理服务将第一镜像转换为第二镜像。The startup module is used to start the proxy service in the virtual memory disk so as to convert the first image into the second image through the proxy service.

划分模块,用于在虚拟内存盘中划分预设大小的存储空间;A partitioning module, used to partition storage space of a preset size in the virtual memory disk;

转换模块,用于在预设大小的存储空间中,将第一镜像转换为第二镜像。The conversion module is used to convert the first image into the second image in a storage space of a preset size.

此外,对于应用于裸金属控制节点的裸金属镜像部署的方法进行了详细描述,本申请还提供一种应用于裸金属控制节点的裸金属镜像部署的装置对应的实施例,该装置包括:发送模块,具体的,该发送模块用于,发送的第一格式的第一镜像至裸金属服务节点,以便裸金属服务节点将第一镜像转换为第二格式的第二镜像,并将第二镜像部署于本地硬盘;其中,第一镜像的存储空间占用量小于第二镜像的存储空间占用量。In addition, a method for bare metal image deployment applied to a bare metal control node is described in detail. The present application also provides an embodiment corresponding to a device for bare metal image deployment applied to a bare metal control node, the device comprising: a sending module, specifically, the sending module is used to send a first image in a first format to a bare metal service node, so that the bare metal service node converts the first image into a second image in a second format, and deploys the second image on a local hard disk; wherein the storage space occupied by the first image is less than the storage space occupied by the second image.

对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application. A person of ordinary skill in the art can understand and implement it without creative work.

图4为本申请另一实施例提供的一种裸金属镜像部署的装置的结构示意图,如图4所示,裸金属镜像部署的装置包括:存储器40,用于存储计算机程序;FIG4 is a schematic diagram of the structure of a bare metal image deployment device provided by another embodiment of the present application. As shown in FIG4 , the bare metal image deployment device includes: a memory 40 for storing a computer program;

处理器41,用于执行计算机程序时实现如上述实施例所提到的裸金属镜像部署的方法的步骤。The processor 41 is used to implement the steps of the bare metal image deployment method mentioned in the above embodiment when executing a computer program.

本实施例提供的裸金属镜像部署的装置可以包括但不限于整车控制器、笔记本电脑或台式电脑等。The bare metal image deployment device provided in this embodiment may include but is not limited to a vehicle controller, a laptop computer, or a desktop computer.

其中,处理器41可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器41可以采用数字信号处理器 (Digital Signal Processor,简称DSP)、现场可编程门阵列 (Field-Programmable Gate Array,简称FPGA)、可编程逻辑阵列(Programmable Logic Array,简称PLA)中的至少一种硬件形式来实现。处理器41也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称中央处理器 (Central Processing Unit,简称CPU);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器41可以集成有图像处理器(Graphics Processing Unit,简称GPU),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器41还可以包括人工智能 (Artificial Intelligence,简称AI)处理器,该AI处理器用于处理有关机器学习的计算操作。Among them, the processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 41 can be implemented in at least one hardware form of a digital signal processor (Digital Signal Processor, referred to as DSP), a field programmable gate array (Field-Programmable Gate Array, referred to as FPGA), and a programmable logic array (Programmable Logic Array, referred to as PLA). The processor 41 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (Central Processing Unit, referred to as CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 41 may be integrated with a graphics processing unit (Graphics Processing Unit, referred to as GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 41 may also include an artificial intelligence (Artificial Intelligence, referred to as AI) processor, which is used to process computing operations related to machine learning.

存储器40可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器40还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。本实施例中,存储器40至少用于存储以下计算机程序401,其中,该计算机程序被处理器41加载并执行之后,能够实现前述任一实施例公开的裸金属镜像部署的方法的相关步骤。另外,存储器40所存储的资源还可以包括操作系统402和数据403等,存储方式可以是短暂存储或者永久存储。其中,操作系统402可以包括Windows、Unix、Linux等。数据403可以包括但不限于裸金属镜像部署的方法中所涉及的相关数据等。The memory 40 may include one or more computer-readable storage media, which may be non-transitory. The memory 40 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used to store the following computer program 401, wherein, after the computer program is loaded and executed by the processor 41, it can implement the relevant steps of the bare metal image deployment method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 40 may also include an operating system 402 and data 403, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 402 may include Windows, Unix, Linux, etc. Data 403 may include, but is not limited to, relevant data involved in the bare metal image deployment method, etc.

在一些实施例中,裸金属镜像部署的装置还可包括有显示屏42、输入输出接口43、通信接口44、电源45以及通信总线46。In some embodiments, the bare metal image deployment device may also include a display screen 42 , an input and output interface 43 , a communication interface 44 , a power supply 45 , and a communication bus 46 .

本领域技术人员可以理解,图4中示出的结构并不构成对裸金属镜像部署的装置的限定,可以包括比图示更多或更少的组件。Those skilled in the art will appreciate that the structure shown in FIG. 4 does not constitute a limitation on the apparatus for bare metal image deployment, and may include more or fewer components than those shown in the figure.

本申请实施例提供的裸金属镜像部署的装置,包括存储器和处理器,处理器在执行存储器存储的程序时,能够实现上述实施例中裸金属镜像部署的方法。The device for bare metal image deployment provided in an embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, the method for bare metal image deployment in the above embodiment can be implemented.

最后,本申请还提供一种计算机可读存储介质对应的实施例。计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述方法实施例(可以是裸金属服务节点对应的方法、也可以是裸金属服务节点对应的方法,还可以是裸金属服务节点和裸金属服务节点对应的方法)中记载的步骤。Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the steps recorded in the above method embodiment (which may be a method corresponding to a bare metal service node, a method corresponding to a bare metal service node, or a method corresponding to a bare metal service node and a bare metal service node) are implemented.

虽然本说明书包含许多具体实施细节,但是这些不应被解释为限制任何发明的范围或所要求保护的范围,而是主要用于描述特定发明的具体实施例的特征。本说明书内在多个实施例中描述的某些特征也可以在单个实施例中被组合实施。另一方面,在单个实施例中描述的各种特征也可以在多个实施例中分开实施或以任何合适的子组合来实施。此外,虽然特征可以如上所述在某些组合中起作用并且甚至最初如此要求保护,但是来自所要求保护的组合中的一个或多个特征在一些情况下可以从该组合中去除,并且所要求保护的组合可以指向子组合或子组合的变型。Although this specification includes many specific implementation details, these should not be interpreted as limiting the scope of any invention or the scope of protection claimed, but are mainly used to describe the features of the specific embodiments of a particular invention. Certain features described in multiple embodiments in this specification may also be implemented in combination in a single embodiment. On the other hand, the various features described in a single embodiment may also be implemented separately in multiple embodiments or in any suitable sub-combination. In addition, although features may work in certain combinations as described above and even initially claimed as such, one or more features from the claimed combination may be removed from the combination in some cases, and the claimed combination may point to a sub-combination or a variation of a sub-combination.

类似地,虽然在附图中以特定顺序描绘了操作,但是这不应被理解为要求这些操作以所示的特定顺序执行或顺次执行、或者要求所有例示的操作被执行,以实现期望的结果。在某些情况下,多任务和并行处理可能是有利的。此外,上述实施例中的各种系统模块和组件的分离不应被理解为在所有实施例中均需要这样的分离,并且应当理解,所描述的程序组件和系统通常可以一起集成在单个软件产品中,或者封装成多个软件产品。Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring that these operations be performed in the particular order shown or performed sequentially, or requiring that all illustrated operations be performed to achieve the desired results. In some cases, multitasking and parallel processing may be advantageous. In addition, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product, or packaged into multiple software products.

由此,主题的特定实施例已被描述。其他实施例在所附权利要求书的范围以内。在某些情况下,权利要求书中记载的动作可以以不同的顺序执行并且仍实现期望的结果。此外,附图中描绘的处理并非必需所示的特定顺序或顺次顺序,以实现期望的结果。在某些实现中,多任务和并行处理可能是有利的。Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the particular order or sequential order shown to achieve the desired results. In some implementations, multitasking and parallel processing may be advantageous.

以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims (10)

1.一种裸金属镜像部署的方法,其特征在于,应用于裸金属服务节点,所述方法包括:1. A bare metal image deployment method, characterized in that it is applied to a bare metal service node, and the method comprises: 接收裸金属控制节点发送的第一格式的第一镜像;Receiving a first image in a first format sent by a bare metal control node; 将所述第一镜像转换为第二格式的第二镜像;其中,所述第一镜像的存储空间占用量小于所述第二镜像的存储空间占用量;Converting the first image into a second image in a second format; wherein the storage space occupied by the first image is less than the storage space occupied by the second image; 将所述第二镜像部署于本地硬盘。Deploy the second image on the local hard disk. 2.如权利要求1所述的裸金属镜像部署的方法,其特征在于,所述第一镜像是通过预设方式进行压缩后的镜像;其中,所述预设方式包括zip压缩方式。2. The method for bare metal image deployment according to claim 1, wherein the first image is an image compressed in a preset manner; wherein the preset manner includes a zip compression manner. 3.如权利要求2所述的裸金属镜像部署的方法,其特征在于,在将所述第一镜像转换为第二格式的第二镜像之前,还包括:3. The bare metal image deployment method according to claim 2, characterized in that before converting the first image into a second image in a second format, it further comprises: 对所述第一镜像进行解压。Decompress the first image. 4.如权利要求3所述的裸金属镜像部署的方法,其特征在于,对所述第一镜像进行解压,将所述第一镜像转换为第二格式的第二镜像,将所述第二镜像部署于本地硬盘,包括:4. The method for deploying a bare metal image according to claim 3, characterized in that the first image is decompressed, the first image is converted into a second image in a second format, and the second image is deployed on a local hard disk, comprising: 针对所述第一镜像和第二镜像中的数据,以流式数据处理的方式,依次将所述第一镜像中的数据进行解压,将解压后的数据转换为所述第二镜像中的数据,并将所述第二镜像的数据部署于所述本地硬盘。For the data in the first image and the second image, the data in the first image is decompressed in sequence in a streaming data processing manner, the decompressed data is converted into the data in the second image, and the data in the second image is deployed on the local hard disk. 5.如权利要求1所述的裸金属镜像部署的方法,其特征在于,将所述第一镜像转换为第二格式的第二镜像,包括:5. The bare metal image deployment method according to claim 1, wherein converting the first image into a second image in a second format comprises: 通过pxe引导技术从所述裸金属控制节点下载虚拟内存盘;Downloading a virtual memory disk from the bare metal control node through the pxe boot technology; 在所述虚拟内存盘中启动代理服务,以便通过所述代理服务将所述第一镜像转换为所述第二镜像。An agent service is started in the virtual memory disk, so as to convert the first image into the second image through the agent service. 6.如权利要求5所述的裸金属镜像部署的方法,其特征在于,所述代理服务将所述第一镜像转换为所述第二镜像,包括:6. The bare metal image deployment method according to claim 5, wherein the proxy service converts the first image into the second image, comprising: 在所述虚拟内存盘中划分预设大小的存储空间;Dividing a storage space of a preset size in the virtual memory disk; 在所述预设大小的存储空间中,将所述第一镜像转换为所述第二镜像。In the storage space of the preset size, the first image is converted into the second image. 7.一种裸金属镜像部署的方法,其特征在于,应用于裸金属控制节点,所述方法包括:7. A bare metal image deployment method, characterized in that it is applied to a bare metal control node, and the method comprises: 发送的第一格式的第一镜像至裸金属服务节点,以便所述裸金属服务节点将所述第一镜像转换为第二格式的第二镜像,并将所述第二镜像部署于本地硬盘;其中,所述第一镜像的存储空间占用量小于所述第二镜像的存储空间占用量。The first image in the first format is sent to the bare metal service node, so that the bare metal service node converts the first image into a second image in the second format and deploys the second image on the local hard disk; wherein the storage space occupied by the first image is less than the storage space occupied by the second image. 8.一种裸金属镜像部署的装置,其特征在于,应用于裸金属服务节点,所述装置包括:8. A bare metal image deployment device, characterized in that it is applied to a bare metal service node, and the device comprises: 接收模块,用于接收裸金属控制节点发送的第一格式的第一镜像;A receiving module, configured to receive a first image in a first format sent by a bare metal control node; 转换模块,用于将所述第一镜像转换为第二格式的第二镜像;其中,所述第一镜像的存储空间占用量小于所述第二镜像的存储空间占用量;A conversion module, used to convert the first image into a second image in a second format; wherein the storage space occupied by the first image is less than the storage space occupied by the second image; 部署模块,用于将所述第二镜像部署于本地硬盘。A deployment module is used to deploy the second image on a local hard disk. 9.一种裸金属镜像部署的装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现权利要求1至7任意一项所述裸金属镜像部署的方法的步骤。9. A device for bare metal image deployment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the bare metal image deployment method described in any one of claims 1 to 7 are implemented. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现权利要求1至7任意一项所述裸金属镜像部署的方法的步骤。10. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the steps of the bare metal image deployment method described in any one of claims 1 to 7 are implemented.
CN202410274496.5A 2024-03-11 2024-03-11 A method, device and medium for bare metal image deployment Active CN117891472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410274496.5A CN117891472B (en) 2024-03-11 2024-03-11 A method, device and medium for bare metal image deployment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410274496.5A CN117891472B (en) 2024-03-11 2024-03-11 A method, device and medium for bare metal image deployment

Publications (2)

Publication Number Publication Date
CN117891472A true CN117891472A (en) 2024-04-16
CN117891472B CN117891472B (en) 2024-06-04

Family

ID=90649519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410274496.5A Active CN117891472B (en) 2024-03-11 2024-03-11 A method, device and medium for bare metal image deployment

Country Status (1)

Country Link
CN (1) CN117891472B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7865475B1 (en) * 2007-09-12 2011-01-04 Netapp, Inc. Mechanism for converting one type of mirror to another type of mirror on a storage system without transferring data
CN103620550A (en) * 2011-06-28 2014-03-05 微软公司 Virtual machine image analysis
CN109522088A (en) * 2018-09-30 2019-03-26 华为技术有限公司 A kind of virtual machine migration method and device
CN110780980A (en) * 2019-10-30 2020-02-11 成都无糖信息技术有限公司 Method for quickly restoring images of disks or operating systems from different sources
CN111090439A (en) * 2019-12-13 2020-05-01 苏州浪潮智能科技有限公司 Method, device and device for generating Linux system image of bare metal server
US20200186600A1 (en) * 2018-12-11 2020-06-11 Amazon Technologies, Inc. Mirroring network traffic of virtual networks at a service provider network
CN111475172A (en) * 2020-02-29 2020-07-31 新华三大数据技术有限公司 Bare machine deployment method and device
CN112230940A (en) * 2020-09-18 2021-01-15 苏州浪潮智能科技有限公司 User mirror image making method and system based on Openstack bare computer service
US20210055946A1 (en) * 2019-08-21 2021-02-25 Red Hat, Inc. Minimizing downtime when importing virtual machines from other platforms
CN113127008A (en) * 2019-12-30 2021-07-16 华为技术有限公司 Bare metal server issuing method and related device
CN113626137A (en) * 2021-06-30 2021-11-09 济南浪潮数据技术有限公司 Implementation method, device, equipment and medium supporting multi-format mirror image
CN114416434A (en) * 2022-03-30 2022-04-29 苏州浪潮智能科技有限公司 A bare metal disk backup method, device and computer-readable storage medium
CN115878136A (en) * 2022-12-13 2023-03-31 新华三技术有限公司 Deployment method, device and system based on bare metal server
CN116483382A (en) * 2023-05-11 2023-07-25 济南浪潮数据技术有限公司 Bare metal deployment method, device and medium thereof
CN116755721A (en) * 2023-06-02 2023-09-15 浪潮云信息技术股份公司 Method and device for realizing private mirror image of cloud physical machine local system disk
CN117289956A (en) * 2023-10-12 2023-12-26 北京首都在线科技股份有限公司 Mirror image manufacturing method, apparatus, electronic device and storage medium
CN117453240A (en) * 2023-11-30 2024-01-26 济南浪潮数据技术有限公司 RAID configuration method, device, equipment and medium of bare metal server

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7865475B1 (en) * 2007-09-12 2011-01-04 Netapp, Inc. Mechanism for converting one type of mirror to another type of mirror on a storage system without transferring data
CN103620550A (en) * 2011-06-28 2014-03-05 微软公司 Virtual machine image analysis
CN109522088A (en) * 2018-09-30 2019-03-26 华为技术有限公司 A kind of virtual machine migration method and device
US20200186600A1 (en) * 2018-12-11 2020-06-11 Amazon Technologies, Inc. Mirroring network traffic of virtual networks at a service provider network
US20210055946A1 (en) * 2019-08-21 2021-02-25 Red Hat, Inc. Minimizing downtime when importing virtual machines from other platforms
CN110780980A (en) * 2019-10-30 2020-02-11 成都无糖信息技术有限公司 Method for quickly restoring images of disks or operating systems from different sources
CN111090439A (en) * 2019-12-13 2020-05-01 苏州浪潮智能科技有限公司 Method, device and device for generating Linux system image of bare metal server
CN113127008A (en) * 2019-12-30 2021-07-16 华为技术有限公司 Bare metal server issuing method and related device
CN111475172A (en) * 2020-02-29 2020-07-31 新华三大数据技术有限公司 Bare machine deployment method and device
CN112230940A (en) * 2020-09-18 2021-01-15 苏州浪潮智能科技有限公司 User mirror image making method and system based on Openstack bare computer service
CN113626137A (en) * 2021-06-30 2021-11-09 济南浪潮数据技术有限公司 Implementation method, device, equipment and medium supporting multi-format mirror image
CN114416434A (en) * 2022-03-30 2022-04-29 苏州浪潮智能科技有限公司 A bare metal disk backup method, device and computer-readable storage medium
CN115878136A (en) * 2022-12-13 2023-03-31 新华三技术有限公司 Deployment method, device and system based on bare metal server
CN116483382A (en) * 2023-05-11 2023-07-25 济南浪潮数据技术有限公司 Bare metal deployment method, device and medium thereof
CN116755721A (en) * 2023-06-02 2023-09-15 浪潮云信息技术股份公司 Method and device for realizing private mirror image of cloud physical machine local system disk
CN117289956A (en) * 2023-10-12 2023-12-26 北京首都在线科技股份有限公司 Mirror image manufacturing method, apparatus, electronic device and storage medium
CN117453240A (en) * 2023-11-30 2024-01-26 济南浪潮数据技术有限公司 RAID configuration method, device, equipment and medium of bare metal server

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
徐铁军;李宏波;: "利用开源实现虚拟化平台迁移", 网络安全和信息化, no. 07, 5 July 2020 (2020-07-05) *
李阳阳;: "基于开源KVM的服务器虚拟机迁移方案研究", 计算机安全, no. 08, 15 August 2013 (2013-08-15) *

Also Published As

Publication number Publication date
CN117891472B (en) 2024-06-04

Similar Documents

Publication Publication Date Title
US10275851B1 (en) Checkpointing for GPU-as-a-service in cloud computing environment
US20160314008A1 (en) Method for implementing gpu virtualization and related apparatus, and system
CN107729020B (en) Method for realizing rapid deployment of large-scale container
CN113661485B (en) Domain assisted processor peering for coherency acceleration
US8977828B2 (en) Data recovery using conversion of backup to virtual disk
US9720719B2 (en) Method and system for optimizing virtual disk provisioning
CN106776998B (en) Database service providing method and server
CN115858102B (en) Method for deploying virtual machine supporting virtualized hardware acceleration
US20110047340A1 (en) Proxy Backup of Virtual Disk Image Files on NAS Devices
CN103095834B (en) The online moving method of a kind of virtual machine across Visualized data centre
US10860380B1 (en) Peripheral device for accelerating virtual computing resource deployment
US10802753B2 (en) Distributed compute array in a storage system
CN108469982B (en) A method for online container migration
Kuhn et al. Data compression for climate data
CN113242175B (en) Storage gateway based on SPDK and implementation method thereof
CN115413338A (en) Providing direct data access between an accelerator and a storage device in a computing environment
CN115221089A (en) Apparatus, method and computer program product for efficient software-defined network acceleration processing using storage local to a host
CN107480717A (en) Train job processing method and system, computing device, computer-readable storage medium
JP7233560B2 (en) Method and apparatus for processing workflow
CN115345318A (en) Distributed system for executing multi-machine learning task and method thereof
CN110888599A (en) Interface device, system for virtualizing mass storage
CN115858103B (en) Method, device and medium for virtual machine hot migration of open stack architecture
CN114691286A (en) Server system, virtual machine creation method and device
CN117311896A (en) Method and device for testing direct memory access based on virtual kernel environment
US11281602B1 (en) System and method to pipeline, compound, and chain multiple data transfer and offload operations in a smart data accelerator interface 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