WO2024103840A1 - 镜像文件制作方法、装置、设备及非易失性可读存储介质 - Google Patents
镜像文件制作方法、装置、设备及非易失性可读存储介质 Download PDFInfo
- Publication number
- WO2024103840A1 WO2024103840A1 PCT/CN2023/110311 CN2023110311W WO2024103840A1 WO 2024103840 A1 WO2024103840 A1 WO 2024103840A1 CN 2023110311 W CN2023110311 W CN 2023110311W WO 2024103840 A1 WO2024103840 A1 WO 2024103840A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image file
- preset
- file
- package
- server
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000003860 storage Methods 0.000 title claims abstract description 12
- 239000002184 metal Substances 0.000 claims abstract description 44
- 238000009434 installation Methods 0.000 claims abstract description 17
- 238000012858 packaging process Methods 0.000 claims description 70
- 238000004519 manufacturing process Methods 0.000 claims description 36
- 238000004590 computer program Methods 0.000 claims description 27
- 230000006870 function Effects 0.000 claims description 23
- 238000007689 inspection Methods 0.000 claims description 22
- 238000003384 imaging method Methods 0.000 claims description 21
- 230000006837 decompression Effects 0.000 claims description 16
- 241000282326 Felis catus Species 0.000 claims description 11
- 238000001152 differential interference contrast microscopy Methods 0.000 claims 1
- 238000012545 processing Methods 0.000 abstract description 16
- 238000004806 packaging method and process Methods 0.000 abstract description 10
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000005538 encapsulation Methods 0.000 description 5
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
Definitions
- the present application relates to the field of cloud computing, and in particular to a method, device, equipment and non-volatile readable storage medium for producing an image file.
- bare metal service is a computing service that combines the elasticity of virtual machines and the performance of physical machines. It can provide individuals or enterprises with exclusive cloud physical servers. It can provide excellent computing performance and ensure data security for key application systems, high-performance computing, big data, core databases and other businesses.
- the hardware requirements are such as CPU (central processing unit) memory, and users can apply flexibly and apply for use on demand.
- the Overlay implementation of bare metal is different from the Overlay solution of virtual machines on Openstack (a cloud computing open source infrastructure project).
- the Overlay network is a virtual network built on an existing physical network with an independent control and forwarding plane. For terminal devices connected to the Overlay, such as servers, the physical network is transparent, so that the bearer network and the business network can be separated.
- the other is to use soft SDN, with the help of smart network cards, to implement the encapsulation and decapsulation of bare metal in and out messages in the operating system of the smart network card.
- After making the image file it is also necessary to use the full life cycle management function of the cloud physical machine to use the image file to implement the installation and deployment of the bare metal server.
- the current image file does not contain the functions related to the subsequent installation and deployment required when making the image file, and it is also necessary to install and deploy manually, which is costly.
- the purpose of this application is to provide a method, device, equipment and non-volatile readable storage medium for making an image file, which can use the image file to reduce the installation and deployment cost of the bare metal server.
- the optional solutions are as follows:
- a base image file in a preset format is obtained, and the base image file is copied to obtain a first base image file and a second base image file.
- a base image file in a preset format including:
- connect the SmartNIC to a preset server including:
- the smart network card is connected to the preset server by using the preset universal serial bus.
- One end is connected to the smart network card in the bare metal server through the universal serial bus, and the other end is connected to a Linux server.
- using a preset re-imaging instruction to write the first basic image file in the preset server to the smart network card includes:
- the first basic image file in the preset server is written into the smart network card using the preset re-imaging instruction.
- install the ofed driver to the preset server so that the ofed driver can generate a drive letter including:
- using a preset re-imaging instruction to write the first basic image file in the preset server into the smart network card includes:
- the first basic image file in the preset server is written into the smart network card using the Concatenate instruction.
- using a Concatenate instruction to write the first basic image file in the preset server into the smart network card includes:
- use the cat command to cat the bfb image file of the arm system to the smart NIC through the rshim port including:
- adding a function file for supporting the full lifecycle management of a cloud physical machine to the first basic image file to obtain a post-addition image file includes:
- deployment files and inspection files for supporting the full lifecycle management of cloud physical machines including:
- performing a first packaging process on the added image file to obtain a first compressed package includes:
- a first packaging process is performed on the files in the target directory in the added image file to obtain a first compressed package.
- performing a first packaging process on the files in the target directory in the added image file to obtain a first compressed package includes:
- exclude means to exclude files that are not included
- /tmp/image.tar.xz means that the directory of the generated first compressed package is in the /tmp/directory of the current arm system
- the name of the first compressed package is image.tar.xz.
- decompressing the second basic image file in the preset server to obtain a first decompressed package, and performing a first packaging process on the first compressed package and the first decompressed package to obtain a target file system includes:
- a first packaging process is performed on the first compressed package and the first decompressed package to obtain a target file system.
- decompressing the second basic image file in the preset server to obtain a first decompressed package and a second decompressed package includes:
- a second decompression process is performed on the file to be replaced corresponding to the target directory in the file system to be replaced to obtain a first decompressed package and a second decompressed package.
- performing a second packaging process on the target file system using a preset repackaging instruction to obtain a target image file includes:
- the target file system is subjected to a second packaging process using the preset repackaging instruction mlx-mkbfb to obtain a target image file.
- a mirror file production device including:
- a writing module is configured to connect the smart network card to a preset server and write the first basic image file in the preset server to the smart network card using a preset re-imaging instruction;
- a sending module is configured to add a function file for supporting full life cycle management of a cloud physical machine to a first basic image file to obtain an added image file, perform a first packaging process on the added image file to obtain a first compressed package, and then send the first compressed package to a preset server;
- the target system acquisition module is configured to decompress the second basic image file in the preset server to obtain a first decompressed package, and perform a first packaging process on the first compressed package and the first decompressed package to obtain a target file system;
- the target image acquisition module is configured to perform a second packaging process on the target file system using a preset repackaging instruction to obtain a target image file.
- an electronic device comprising:
- a memory arranged to store a computer program
- the processor is configured to execute a computer program to implement the steps of the aforementioned disclosed image file production method.
- the present application discloses a computer non-volatile readable storage medium, which is configured to store a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned disclosed image file production method are implemented.
- the present application connects the smart network card with the preset server, and uses the preset re-imaging instruction to write the first basic image file in the preset server to the smart network card; adds a functional file for supporting the full life cycle management of the cloud physical machine to the first basic image file to obtain the added image file, and performs a first packaging process on the added image file to obtain a first compressed package, and then sends the first compressed package to the preset server; decompresses the second basic image file in the preset server to obtain a first decompressed package, and performs a first packaging process on the first compressed package and the first decompressed package to obtain a target file system; uses the preset repackaging instruction to perform a second packaging process on the target file system to obtain the target image file.
- the present application utilizes an intelligent network card to add functional files that support the full life cycle management of cloud physical machines to the first basic image file to obtain an added image file that can support the full life cycle management of cloud physical machines, and performs a first packaging process on the added image file to obtain a first compressed package, and then performs a first packaging process on the first compressed package that will not support the full life cycle management of cloud physical machines to obtain a target file system that can support the full life cycle management of cloud physical machines, and utilizes preset repackaging instructions to perform a second packaging process on the target file system to obtain a target image file that can support the full life cycle management of cloud physical machines.
- FIG1 is a flow chart of a method for producing an image file disclosed in the present application.
- FIG2 is a flow chart of an optional image file production method disclosed in the present application.
- FIG3 is a schematic diagram of an optional connection disclosed in the present application.
- FIG4 is a flow chart of another optional image file production method disclosed in the present application.
- FIG5 is a schematic diagram of the structure of an image file production device disclosed in the present application.
- FIG. 6 is a structural diagram of an electronic device disclosed in this application.
- the other is to use soft SDN, with the help of smart network cards, to implement the encapsulation and decapsulation of the messages entering and leaving the bare metal in the operating system of the smart network card.
- After making the image file it is also necessary to use the full life cycle management function of the cloud physical machine to use the image file to realize the installation and deployment of the bare metal server.
- the current image file production does not contain the functions related to the required subsequent installation and deployment, and it is also necessary to install and deploy manually, which is costly.
- the present application provides a corresponding solution for producing an image file, which can utilize the image file to reduce the installation and deployment cost of the bare metal server.
- an embodiment of the present application discloses a method for producing an image file, including:
- Step S11 Connect the smart network card to the preset server, and use the preset re-imaging instruction to write the first basic image file in the preset server to the smart network card.
- the bare metal server (Bare Metal) is generally used to indicate a physical server that has not yet installed an operating system, which can be referred to as bare metal.
- SDN is an Overlay network, which is a virtual network built on an existing physical network. It has independent control and forwarding planes. For terminal devices (such as servers) connected to the Overlay, the physical network is transparent, thereby achieving the separation of the bearer network and the business network.
- Ironic a component that provides management and orchestration of bare metal servers
- OpenStack Deploying a network is a concept in ironic. The bare metal inspection process can be implemented by inspecting the network bare metal.
- the smart network card is, for example, the bluefield2 (an intelligent network processor that integrates Arm processors and network accelerators) smart network card launched by Mellanox (a supplier of end-to-end connection solutions for servers and storage).
- Step S12 Add a functional file for supporting the full life cycle management of a cloud physical machine to the first basic image file to obtain an added image file, perform a first packaging process on the added image file to obtain a first compressed package, and then send the first compressed package to a preset server.
- a cloud physical machine refers to a server that can be finally presented to users after the user operating system is deployed and installed on the bare metal server.
- the functions of the full life cycle management of the cloud physical machine include obtaining the specifications of the current bare metal server, such as CPU, memory, hard disk, and port, and also includes Yunhai OS (a cloud data center operating system) issuing image files to the bare metal server according to the specifications of the bare metal server to complete the entire process of user system installation and deployment of the bare metal server, where Yunhai OS is a cloud data center operating system.
- Yunhai OS a cloud data center operating system
- Step S13 decompress the second basic image file in the preset server to obtain a first decompressed package, and perform a first packaging process on the first compressed package and the first decompressed package to obtain a target file system.
- the files in the directory corresponding to the target directory in the second base image file need to be decompressed to obtain a first decompressed package and a second decompressed package, wherein the second decompressed package is replaced by the first compressed package, and then the first compressed package and the first decompressed package are packaged to obtain the target file system.
- Step S14 performing a second packaging process on the target file system using a preset repackaging instruction to obtain a target image file.
- the target file system is subjected to a second packaging process using a preset repackaging instruction to obtain a target image file.
- the target image file can support the function of full life cycle management of cloud physical machines, that is, it can obtain the specifications of the current bare metal server, and Yunhai OS can issue the image file to the bare metal server according to the specifications of the bare metal server to complete the entire process of user system installation and deployment of the bare metal server.
- the present application connects the smart network card with the preset server, and uses the preset re-imaging instruction to write the first basic image file in the preset server to the smart network card; adds the functional file for supporting the full life cycle management of the cloud physical machine to the first basic image file to obtain the added image file, and performs a first packaging process on the added image file to obtain a first compressed package, and then sends the first compressed package to the preset server; decompresses the second basic image file in the preset server to obtain a first decompressed package, and performs a first packaging process on the first compressed package and the first decompressed package to obtain the target file system; uses the preset repackaging instruction to perform a second packaging process on the target file system to obtain the target image file.
- the present application uses the smart network card to add the functional file supporting the full life cycle management of the cloud physical machine to the first basic image file to obtain the added image file that can support the full life cycle management of the cloud physical machine, and performs a first packaging process on the added image file to obtain a first compressed package, and then the first compressed package will not be able to support the full life cycle management of the cloud physical machine.
- the first decompressed package of the cycle management is subjected to the first packaging process to obtain a target file system that can support the full life cycle management of the cloud physical machine.
- the target file system is subjected to the second packaging process using the preset repackaging instructions to obtain a target image file that can support the full life cycle management of the cloud physical machine. In this way, there is no need to manually install and deploy subsequent bare metal servers. Instead, it can be automatically implemented using the full life cycle management function of the cloud physical machine, effectively reducing time and labor costs.
- the embodiment of the present application discloses a method for producing an image file, including:
- Step S21 obtaining a base image file in a preset format, and copying the base image file to obtain a first base image file and a second base image file.
- obtaining a basic image file in a preset format may include: obtaining a basic image file in a bfb (Binary File Briefcase) format.
- the bfb format is a binary file format used to package multiple files into a single binary file.
- Step S22 Connect the smart network card to the preset server, and install the ofed (OpenFabrics Enterprise Distribution) driver to the preset server so that the ofed driver can generate a drive letter.
- the ofed OpenFabrics Enterprise Distribution
- the above-mentioned ofed driver is an open source software suite for supporting and managing network interconnection and communication in a high-performance computing cluster.
- connecting the smart network card with the preset server may include: connecting the smart network card with the preset server using a preset universal serial bus.
- a preset universal serial bus For example, an optional connection diagram shown in FIG3 connects the smart network card in the bare metal server at one end through a USB (Universal Serial Bus) line, and connects the other end to a Linux (Linux operating system) server.
- USB Universal Serial Bus
- Linux Linux
- installing the ofed driver into the preset server so that the ofed driver generates a drive letter can include: installing the ofed driver into the preset server and starting the rshim (Remote Shared Memory) service so that the ofed driver generates an rshim port.
- rshim Remote Shared Memory
- the rshim service is a remote shared memory technology
- the rshim port is a specific port used for remote shared memory operation and communication.
- Step S23 Based on the drive letter and using a preset re-imaging instruction, the first basic image file in the preset server is written into the smart network card.
- using a preset re-imaging instruction to write the first basic image file in the preset server into the smart network card may include: using a Concatenate instruction to write the first basic image file in the preset server into the smart network card.
- the rshim service After installing the ofed driver on the Linux server, the rshim service will be started.
- the bfb image file of the arm (Advanced RISC Machines) system can be cat to the smart network card through the rshim port through the cat (Concatenate) instruction, thereby completing the installation of the smart network card.
- CentOS7.6-5.4.60-mlnx.57.g0ff03f3-MLNX_OFED-5.2-2.2.0.0-3.5.1.11601-1-aarch64.bfb indicates the first basic image file in bfb format
- /dev/rshimX/boot indicates the address where the first basic image file is written to the smart network card.
- Step S24 Add the functional files for supporting the full life cycle management of the cloud physical machine to the first basic image file to obtain the added image file, and perform the first packaging processing on the added image file to obtain the first compressed package, and then send the first compressed package to the preset server.
- Step S25 decompress the second basic image file in the preset server to obtain a first decompressed package, and perform a first packaging process on the first compressed package and the first decompressed package to obtain a target file system.
- Step S26 Use the preset repackaging instruction to perform a second packing process on the target file system to obtain the target image file. Piece.
- the present application installs the ofed driver on the preset server, and the rshim port will be generated after the installation.
- the preset server On the preset server, the first basic image file of the arm system in the preset server is written into the arm of the smart network card through the rshim port using the cat command, and the installation of the first basic image file has been completed. Then, the function file for supporting the full life cycle management of the cloud physical machine is added to the first basic image file of the smart network card to realize that the added image file can support the function of the full life cycle management of the cloud physical machine.
- the embodiment of the present application discloses another optional method for producing an image file, including:
- Step S31 Connect the smart network card to the preset server, and use the preset re-imaging instruction to write the first basic image file in the preset server to the smart network card.
- Step S32 Add deployment files and inspection files used to support the full life cycle management of cloud physical machines to the first basic image file to obtain the added image file, and execute the deployment service corresponding to the deployment file and the inspection service corresponding to the inspection file, so that the added image file supports the full life cycle management of cloud physical machines.
- the smart network card system can be accessed through the network or the rshim port to perform customized curing operations.
- the smart network card arm system can add files necessary to support the full life cycle management of cloud physical machines, such as the inspur-baremetal-deploy.py deployment file and the inspur-baremetal-inspect.py inspection file, and add inspur-baremetal-deploy.service and inspur-baremetal-inspect.service, and then perform the enable operation on the deployment service and the inspection service.
- Step S33 performing a first packaging process on the added image file to obtain a first compressed package, and then sending the first compressed package to a preset server.
- performing a first packaging process on the added image file to obtain a first compressed package may include: performing a first packaging process on the files in the target directory of the added image file to obtain a first compressed package. After the relevant files in the current smart network card arm system are added, the following instructions can be used to package the files of the current arm system:
- Step S34 decompress the second basic image file in the preset server to obtain a first decompressed package, and perform a first packaging process on the first compressed package and the first decompressed package to obtain a target file system.
- the second base image file in the preset server is decompressed to obtain a first decompressed package
- the first compressed package and the first decompressed package are first packaged to obtain a target file system, which may include: decompressing the second base image file in the preset server to obtain a first decompressed package and a second decompressed package, and replacing the second decompressed package with the first compressed package; performing a first package on the first compressed package and the first decompressed package to obtain the target file system.
- the second base image file in the preset server is decompressed to obtain a first decompressed package and a second decompressed package, which may include: performing a first decompression process on the second base image file in the preset server to obtain a file system to be replaced; performing a second decompression process on the file to be replaced corresponding to the target directory in the file system to be replaced to obtain a first decompressed package and a second decompressed package.
- the second basic image file in the preset server is first decompressed to obtain the file system to be replaced, that is, the second basic image file is decompressed on the host node Linux server, for example, the following command is executed:
- the files to be replaced corresponding to the target directory in the file system to be replaced are subjected to a second decompression process to obtain a first decompression package and a second decompression package, that is, the file system to be replaced dump-initramfs-v0 is decompressed by executing the following command:
- the second decompressed package image.tar.xz replaces the first compressed package image.tar.xz
- the first compressed package image.tar.xz and the first decompressed package are subjected to the first packaging process to obtain the target file system.
- the following command is used to perform the first packaging process:
- Step S35 Use mlx-mkbfb (preset repackaging instruction) to perform a second packaging process on the target file system to obtain a target image file.
- the target file system is subjected to a second packaging process using a preset repackaging instruction mlx-mkbfb to obtain a target image file, wherein the preset repackaging instruction mlx-mkbfb is as follows:
- the present application utilizes the preset repackaging instruction mlx-mkbfb to perform a second packaging process on the target file system that supports the function of full life cycle management of cloud physical machines, thereby obtaining a target image file that supports the function of full life cycle management of cloud physical machines, so that the function of full life cycle management of cloud physical machines can be automatically realized in the future, thereby reducing manual labor costs.
- the embodiment of the present application discloses a device for producing an image file, including:
- the writing module 11 is configured to connect the smart network card with the preset server and write the first basic image file in the preset server to the smart network card using the preset re-imaging instruction;
- the sending module 12 is configured to add a functional file for supporting the full life cycle management of a cloud physical machine to the first basic image file to obtain an added image file, perform a first packaging process on the added image file to obtain a first compressed package, and then send the first compressed package to a preset server;
- the target system acquisition module 13 is configured to decompress the second basic image file in the preset server to obtain a first decompressed package, and perform a first packaging process on the first compressed package and the first decompressed package to obtain a target file system;
- the target image acquisition module 14 is configured to perform a second packaging process on the target file system using a preset repackaging instruction to obtain a target image file.
- the present application connects the smart network card with the preset server, and uses the preset re-imaging instruction to write the first basic image file in the preset server to the smart network card; adds a functional file for supporting the full life cycle management of the cloud physical machine to the first basic image file to obtain the added image file, and performs a first packaging process on the added image file to obtain a first compressed package, and then sends the first compressed package to the preset server; decompresses the second basic image file in the preset server to obtain a first decompressed package, and performs a first packaging process on the first compressed package and the first decompressed package to obtain the target image file.
- Target file system use the preset repackaging instruction to perform a second packaging process on the target file system to obtain a target image file.
- the present application uses the intelligent network card to add the functional file supporting the full life cycle management of the cloud physical machine to the first basic image file to obtain the added image file that can support the full life cycle management of the cloud physical machine, and the added image file is subjected to a first packaging process to obtain a first compressed package, and then the first compressed package is subjected to a first packaging process on the first decompressed package that cannot support the full life cycle management of the cloud physical machine to obtain a target file system that can support the full life cycle management of the cloud physical machine, and the target file system is subjected to a second packaging process using the preset repackaging instruction to obtain a target image file that can support the full life cycle management of the cloud physical machine. Then, there is no need to manually perform the subsequent installation and deployment of the bare metal server, but it is automatically realized by using the full life cycle management function of the cloud physical machine, effectively
- the image file production device includes:
- the copying unit is configured to obtain a base image file in a preset format and copy the base image file to obtain a first base image file and a second base image file.
- the replication unit includes:
- the acquisition unit is configured to acquire a basic image file in bfb format.
- the writing module 11 includes:
- connection unit is configured to connect the smart network card to a preset server using a preset universal serial bus.
- the writing module 11 includes:
- the image file writing unit is configured to install the ofed driver into the preset server so that the ofed driver generates a drive letter; based on the drive letter, and using the preset re-imaging instruction, the first basic image file in the preset server is written into the smart network card.
- the image file writing unit includes:
- the port generation unit is configured to install the ofed driver into a preset server and start the rshim service so that the ofed driver generates the rshim port.
- the image file writing unit includes:
- the first basic image file writing unit is configured to use a Concatenate instruction to write the first basic image file in the preset server into the smart network card.
- the sending module 12 includes:
- the adding unit is configured to add deployment files and inspection files for supporting the full life cycle management of cloud physical machines to the first basic image file to obtain an added image file, and execute deployment services corresponding to the deployment files and inspection services corresponding to the inspection files, so that the added image file supports the full life cycle management of cloud physical machines.
- the sending module 12 includes:
- the first packaging processing unit is configured to perform a first packaging process on the files in the target directory of the added image file to obtain a first compressed package.
- the target system acquisition module 13 includes:
- the second packaging processing unit is configured to decompress the second basic image file in the preset server to obtain a first decompressed package and a second decompressed package, and replace the second decompressed package with the first compressed package; perform a first packaging process on the first compressed package and the first decompressed package to obtain a target file system.
- the second packaging processing unit includes:
- the decompression processing unit is configured to perform a first decompression process on the second basic image file in the preset server to obtain the file system to be replaced; and perform a second decompression process on the file to be replaced corresponding to the target directory in the file system to be replaced to obtain a first decompression package and a second decompression package.
- the target image acquisition module 14 includes:
- the second packaging processing unit is configured to perform a second packaging process on the target file system by using mlx-mkbfb to obtain a target image file.
- FIG6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
- the electronic device may include: at least one processor 21, At least one memory 22, a power supply 23, a communication interface 24, an input/output interface 25 and a communication bus 26.
- the memory 22 is configured to store a computer program, which is loaded and executed by the processor 21 to implement the following steps:
- the target file system is subjected to a second packaging process using a preset repackaging instruction to obtain a target image file.
- the processor may implement the following steps by executing a computer program stored in the memory:
- a base image file in a preset format is obtained, and the base image file is copied to obtain a first base image file and a second base image file.
- the processor may implement the following steps by executing a computer program stored in the memory:
- the processor may implement the following steps by executing a computer program stored in the memory:
- the smart network card is connected to the preset server by using the preset universal serial bus.
- the processor may implement the following steps by executing a computer program stored in the memory:
- the first basic image file in the preset server is written into the smart network card using the preset re-imaging instruction.
- the processor may implement the following steps by executing a computer program stored in the memory:
- the processor may implement the following steps by executing a computer program stored in the memory:
- the processor may implement the following steps by executing a computer program stored in the memory:
- the processor may implement the following steps by executing a computer program stored in the memory:
- a first packaging process is performed on the files in the target directory in the added image file to obtain a first compressed package.
- the processor may implement the following steps by executing a computer program stored in the memory:
- a first packaging process is performed on the first compressed package and the first decompressed package to obtain a target file system.
- the processor can implement the following steps by executing the computer program stored in the memory: Steps:
- a second decompression process is performed on the file to be replaced corresponding to the target directory in the file system to be replaced to obtain a first decompressed package and a second decompressed package.
- the processor may optionally include the following steps by executing the computer program stored in the memory:
- the power supply 23 is configured to provide working voltage for each hardware device on the electronic device;
- the communication interface 24 can create a data transmission channel between the electronic device and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not limited here;
- the input and output interface 25 is configured to obtain external input data or output data to the outside world, and its interface type can be selected according to application needs and is not limited here.
- the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc.
- the processor 21 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array).
- the processor 21 may also include a main processor and a coprocessor.
- the main processor is a processor configured to process data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor configured to process data in a standby state.
- the processor 21 may be integrated with a GPU (Graphics Processing Unit), and the GPU is configured to be responsible for rendering and drawing the content to be displayed on the display screen.
- the processor 21 may also include an AI (Artificial Intelligence) processor, which is configured to process computing operations related to machine learning.
- AI Artificial Intelligence
- the memory 22, as a carrier for storing resources can be a read-only memory, a random access memory, a disk or an optical disk, etc.
- the resources stored thereon include an operating system 221, a computer program 222 and data 223, etc.
- the storage method can be temporary storage or permanent storage.
- the operating system 221 is configured to manage and control the hardware devices and computer programs 222 on the electronic device to realize the operation and processing of the processor 21 on the massive data 223 in the memory 22, which can be Windows, Unix, Linux, etc.
- the computer program 222 can also optionally include a computer program that can be configured to complete other specific tasks.
- the data 223 can also include data collected by its own input and output interface 25, etc.
- an embodiment of the present application further discloses a computer non-volatile readable storage medium, in which a computer program is stored.
- a computer program is stored.
- the method steps performed in the image file production process disclosed in any of the aforementioned embodiments are implemented.
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 Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本申请公开了一种镜像文件制作方法、装置、设备及非易失性可读存储介质,涉及云计算领域,包括:连接智能网卡与预设服务器,利用预设重镜像指令将预设服务器中第一基础镜像文件写入至智能网卡;添加用于支持云物理机全生命周期管理的功能文件至第一基础镜像文件得到添加后镜像文件,并对添加后镜像文件进行第一打包处理得到第一压缩包,发送第一压缩包至预设服务器;将预设服务器中的第二基础镜像文件进行解压处理得到第一解压包,对第一压缩包和第一解压包进行第一打包处理得到目标文件***;利用预设重打包指令将目标文件***进行第二打包处理得到目标镜像文件。利用镜像文件降低裸金属服务器的安装部署的成本。
Description
相关申请的交叉引用
本申请要求于2022年11月15日提交中国专利局,申请号为202211422916.7,申请名称为“镜像文件制作方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及云计算领域,特别涉及镜像文件制作方法、装置、设备及非易失性可读存储介质。
随着云计算领域的快速发展,裸金属服务是一款兼具虚拟机弹性和物理机性能的计算类服务,可以为个人或者企业提供专属的云上物理服务器。可以为关键应用***、高性能计算、大数据、核心数据库等业务提供卓越的计算性能并保证数据安全。在创建裸金属云物理机时可以和创建虚拟机一样,只需指定所需要的硬件要求、镜像文件以及所需要的网络即可创建出所需要的裸金属云物理机,硬件要求例如CPU(central processing unit,即中央处理器)内存,并且用户可以灵活申请,按需申请使用。但是对于裸金属的Overlay(覆盖层)实现方案不同于Openstack(一种云计算开源基础设施项目)上的虚拟机Overlay的方案,其中Overlay网络是建立在已有物理网络上的虚拟网络,具有独立的控制和转发平面,对于连接到Overlay的终端设备来说,例如服务器,物理网络是透明的,从而可以实现承载网络和业务网络的分离。
现有技术中,对于Openstack虚拟机共享占用计算节点的资源,但是计算节点不会对最终用户暴露。因此可以在计算节点上部署隧道,实现虚拟机的Overlay封装与解封装。但对于裸金属场景下,裸金属独占一个计算节点,这个计算节点需要完全对最终用户暴露,因此那种在计算节点上部署隧道的虚拟机Overlay实现方式不能应用在裸金属场景下。对于裸金属的Overlay目前主要有两种主流的实现方案,一种是采用硬SDN(Software Defined Network,即软件定义网络),即通过控制物理交换机,对从裸金属进出的报文在物理交换机上进行Overlay的封装与解封装。另一种采用软SDN,借助于智能网卡,在智能网卡的操作***中实现对裸金属进出报文的封装与解封装。制作镜像文件后,还需通过云物理机全生命周期管理功能,利用镜像文件实现对裸金属服务器的安装部署,而目前的镜像文件制作时不包含所需后续安装部署相关的功能,还需要人工去进行安装部署,成本较大。
综上可见,如何利用镜像文件降低安装部署的成本是本领域有待解决的问题。
发明内容
有鉴于此,本申请的目的在于提供一种镜像文件制作方法、装置、设备及非易失性可读存储介质,能够利用镜像文件降低裸金属服务器的安装部署的成本。其可选方案如下:
根据第一方面,本申请公开了一种镜像文件制作方法,包括:
连接智能网卡与预设服务器,并利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡;
添加用于支持云物理机全生命周期管理的功能文件至第一基础镜像文件中,以得到添加后镜像文件,并对添加后镜像文件进行第一打包处理,以得到第一压缩包,然后发送第一压缩包至预设服务器;
将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***;
利用预设重打包指令将目标文件***进行第二打包处理,以得到目标镜像文件。
可选的,连接智能网卡与预设服务器之前,还包括:
获取预设格式的基础镜像文件,并将基础镜像文件进行复制,以得到第一基础镜像文件和第二基础镜像文件。
可选的,获取预设格式的基础镜像文件,包括:
获取bfb格式的基础镜像文件。
可选的,连接智能网卡与预设服务器,包括:
利用预设通用串行总线将智能网卡与预设服务器进行连接。
可选的,利用预设通用串行总线将智能网卡与预设服务器进行连接,包括:
通过通用串行总线一端连接到裸金属服务器中的智能网卡,另一端连接到一台linux服务器。
可选的,利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡,包括:
安装ofed驱动至预设服务器中,以便ofed驱动生成盘符;
基于盘符,并利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡中。
可选的,安装ofed驱动至预设服务器中,以便ofed驱动生成盘符,包括:
安装ofed驱动至预设服务器中,并拉起rshim服务,以便ofed驱动生成rshim端口。
可选的,利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡中,包括:
利用合并Concatenate指令将预设服务器中的第一基础镜像文件写入至智能网卡中。
可选的,利用合并Concatenate指令将预设服务器中的第一基础镜像文件写入至智能网卡中,包括:
在linux服务器上通过rshim端口通过cat指令将arm***的bfb镜像文件cat到智能网卡中,从而完成智能网卡的装机。
可选的,在linux服务器上通过rshim端口通过cat指令将arm***的bfb镜像文件cat到智能网卡中,包括:
在linux服务器上通过rshim端口以及usb线执行如下指令给智能网卡进行装机:
Cat CentOS7.6-5.4.60-mlnx.57.g0ff03f3-MLNX_OFED-5.2-2.2.0.0-3.5.1.11601-1-aarch64.bfb>/dev/rshimX/boot。
可选的,添加用于支持云物理机全生命周期管理的功能文件至第一基础镜像文件中,以得到添加后镜像文件,包括:
添加用于支持云物理机全生命周期管理的部署文件和检查文件至第一基础镜像文件,以得到添加后镜像文件,并执行与部署文件对应的部署服务以及与检查文件对应的检查服务,以便添加后镜像文件支持云物理机全生命周期管理。
可选的,添加用于支持云物理机全生命周期管理的部署文件和检查文件至第一基础镜像文件,包括:
通过网络或者rshim端口进入到智能网卡***,执行定制固化操作,在智能网卡arm系
统中添加inspur-baremetal-deploy.py部署文件以及inspur-baremetal-inspect.py检查文件。
可选的,对添加后镜像文件进行第一打包处理,以得到第一压缩包,包括:
对添加后镜像文件中目标目录下的文件进行第一打包处理,以得到第一压缩包。
可选的,对添加后镜像文件中目标目录下的文件进行第一打包处理,以得到第一压缩包,包括:
在当前智能网卡arm***中的相关文件添加完成之后,采用以下指令对当前arm***的文件进行打包:
XZ_OPT=″--threads=0-9--verbose″tar-cJpf/tmp/image.tar.xz-C/.--exclude=’./tmp/*’--exclude=’./sys/*’--exclude=’./proc/*’--exclude=’./.dockerenv’--exclude=’./root/rpmbuild’--exclude=’./root/.rpmmacros’--exclude=’./root/.bash_history’--exclude=’./var/tmp/*’--exclude=’./bin/qemu-aarch64-static’--exclude=’./var/log/ovn/*’;
其中,exclude表示剔除不打入的文件,--exclude=’./tmp/*’表示当前arm***中/tmp/目录下的所有文件都不打入,/tmp/image.tar.xz表示生成的第一压缩包的目录在当前arm***的/tmp/目录下,第一压缩包名称为image.tar.xz。
可选的,将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***,包括:
将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包和第二解压包,并利用第一压缩包替换第二解压包;
对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***。
可选的,将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包和第二解压包,包括:
将预设服务器中的第二基础镜像文件进行第一解压处理,以得到待替换文件***;
对待替换文件***中与目标目录对应的待替换文件进行第二解压处理,以得到第一解压包和第二解压包。
可选的,利用预设重打包指令将目标文件***进行第二打包处理,以得到目标镜像文件,包括:
利用预设重打包指令mlx-mkbfb将目标文件***进行第二打包处理,以得到目标镜像文件。
根据第二方面,本申请公开了一种镜像文件制作装置,包括:
写入模块,被设置为连接智能网卡与预设服务器,并利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡;
发送模块,被设置为添加用于支持云物理机全生命周期管理的功能文件至第一基础镜像文件中,以得到添加后镜像文件,并对添加后镜像文件进行第一打包处理,以得到第一压缩包,然后发送第一压缩包至预设服务器;
目标***获取模块,被设置为将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***;
目标镜像获取模块,被设置为利用预设重打包指令将目标文件***进行第二打包处理,以得到目标镜像文件。
根据第三方面,本申请公开了一种电子设备,包括:
存储器,被设置为保存计算机程序;
处理器,被设置为执行计算机程序,以实现前述公开的镜像文件制作方法的步骤。
根据第四方面,本申请公开了一种计算机非易失性可读存储介质,被设置为存储计算机程序;其中,计算机程序被处理器执行时实现前述公开的镜像文件制作方法的步骤。
可见,本申请连接智能网卡与预设服务器,并利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡;添加用于支持云物理机全生命周期管理的功能文件至第一基础镜像文件中,以得到添加后镜像文件,并对添加后镜像文件进行第一打包处理,以得到第一压缩包,然后发送第一压缩包至预设服务器;将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***;利用预设重打包指令将目标文件***进行第二打包处理,以得到目标镜像文件。由此可见,本申请利用智能网卡将支持云物理机全生命周期管理的功能文件添加至第一基础镜像文件,以得到能够支持云物理机全生命周期管理的添加后镜像文件,并将添加后镜像文件进行第一打包处理以得到第一压缩包,然后将第一压缩包将不能支持云物理机全生命周期管理的第一解压包进行第一打包处理,以得到能够支持云物理机全生命周期管理的目标文件***,利用预设重打包指令将目标文件***进行第二打包处理,以得到能够支持云物理机全生命周期管理的目标镜像文件,那么就无需人工进行后续裸金属服务器的安装部署,而是利用云物理机全生命周期管理功能自动实现,有效减少时间成本和人工成本。
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本申请公开的一种镜像文件制作方法流程图;
图2为本申请公开的一种可选的镜像文件制作方法流程图;
图3为本申请公开的一种可选的连接示意图;
图4为本申请公开的另一种可选的镜像文件制作方法流程图;
图5为本申请公开的一种镜像文件制作装置结构示意图;
图6为本申请公开的一种电子设备结构图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
现有技术中,对于Openstack虚拟机共享占用计算节点的资源,但是计算节点不会对最终用户暴露。因此可以在计算节点上部署隧道,实现虚拟机的Overlay封装与解封装。但对于裸金属场景下,裸金属独占一个计算节点,这个计算节点需要完全对最终用户暴露,因此那种在计算节点上部署隧道的虚拟机Overlay实现方式不能应用在裸金属场景下。对于裸金属的Overlay目前主要由两种主流的实现方案,一种是采用硬SDN(Software Defined Network,即软件定义网络),即通过控制物理交换机,对从裸金属进出的报文在物理交换机上进行Overlay的封装与解封装。另一种采用软SDN,借助于智能网卡,在智能网卡的操作***中实现对裸金属进出报文的封装与解封装。制作镜像文件后,还需通过云物理机全生命周期管理功能,利用镜像文件实现对裸金属服务器的安装部署,而目前的镜像文件制作时不包含所需后续安装部署相关的功能,还需要人工去进行安装部署,成本较大。
为此本申请相应的提供了一种镜像文件制作方案,能够利用镜像文件降低裸金属服务器的安装部署的成本。
参见图1所示,本申请实施例公开了一种镜像文件制作方法,包括:
步骤S11:连接智能网卡与预设服务器,并利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡。
本实施例中,裸金属服务器(Bare Metal)一般用来表明还没有安装操作***的物理服务器,可简称为裸金属。SDN是Overlay网络是建立在已有物理网络上的虚拟网络,具有独立的控制和转发平面,对于连接到Overlay的终端设备(例如服务器)来说,物理网络是透明的,从而可以实现承载网络和业务网络的分离。Ironic(提供裸金属服务器的管理和编排的组件)是OpenStack中的裸金属服务,部署网络是ironic中的概念,通过检查网络裸金属可以实现裸金属检查流程。可以表现为裸金属重新PXE(Pre-boot Execution Environment,即预执行环境)启动,DHCP(Dynamic Host Configuration Protocol,即动态主机配置协议)到IP(Internet Protocol,即网际互连协议)地址以及TFTP(Trivial File Transfer Protocol,即简单文件传输协议)server(服务器)地址,进而去获取部署镜像的内存文件***,通过获取到的内存文件***上电之后,会采集当前裸金属的硬件信息并上报。其中智能网卡例如为Mellanox(一个服务器和存储端到端连接解决方案的供应商)推出的bluefield2(一款集成了Arm处理器和网络加速器的智能网络处理器)智能网卡。
步骤S12:添加用于支持云物理机全生命周期管理的功能文件至第一基础镜像文件中,以得到添加后镜像文件,并对添加后镜像文件进行第一打包处理,以得到第一压缩包,然后发送第一压缩包至预设服务器。
本实施例中,云物理机是指在裸金属服务器上部署安装完用户操作***,可对用户最终呈现使用的服务器。云物理机全生命周期管理的功能包含获取当前裸金属服务器的规格,例如为CPU、内存、硬盘、端口,还包括云海OS(一种云数据中心操作***)根据裸金属服务器的规格,发放镜像文件到裸金属服务器,以完成裸金属服务器的用户***安装部署的全部流程,其中云海OS是一种云数据中心操作***。需要注意的是,在对添加后镜像文件进行第一打包处理时,需要将目标目录下的文件进行第一打包处理。
步骤S13:将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***。
本实施例中,将预设服务器中的第二基础镜像文件进行解压处理时,需要将第二基础镜像文件中与目标目录对应的目录的文件进行解压,以得到第一解压包和第二解压包,其中利用第一压缩包将第二解压包替换掉,然后将第一压缩包和第一解压包进行打包处理,以得到目标文件***。
步骤S14:利用预设重打包指令将目标文件***进行第二打包处理,以得到目标镜像文件。
本实施例中,利用预设重打包指令将目标文件***进行第二打包处理,以得到目标镜像文件,可以理解的是,该目标镜像文件可以支持云物理机全生命周期管理的功能,即可以获取当前裸金属服务器的规格、云海OS根据裸金属服务器的规格,发放镜像文件到裸金属服务器,以完成裸金属服务器的用户***安装部署的全部流程。
可见,本申请连接智能网卡与预设服务器,并利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡;添加用于支持云物理机全生命周期管理的功能文件至第一基础镜像文件中,以得到添加后镜像文件,并对添加后镜像文件进行第一打包处理,以得到第一压缩包,然后发送第一压缩包至预设服务器;将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***;利用预设重打包指令将目标文件***进行第二打包处理,以得到目标镜像文件。由此可见,本申请利用智能网卡将支持云物理机全生命周期管理的功能文件添加至第一基础镜像文件,以得到能够支持云物理机全生命周期管理的添加后镜像文件,并将添加后镜像文件进行第一打包处理以得到第一压缩包,然后将第一压缩包将不能支持云物理机全生命
周期管理的第一解压包进行第一打包处理,以得到能够支持云物理机全生命周期管理的目标文件***,利用预设重打包指令将目标文件***进行第二打包处理,以得到能够支持云物理机全生命周期管理的目标镜像文件,那么就无需人工进行后续裸金属服务器的安装部署,而是利用云物理机全生命周期管理功能自动实现,有效减少时间成本和人工成本。
参见图2所示,本申请实施例公开了一种镜像文件制作方法,包括:
步骤S21:获取预设格式的基础镜像文件,并将基础镜像文件进行复制,以得到第一基础镜像文件和第二基础镜像文件。
本实施例中,获取预设格式的基础镜像文件,可以包括:获取bfb(Binary File Briefcase)格式的基础镜像文件。
可选的,在本实施例中,上述bfb格式是一种二进制文件格式,用于将多个文件打包成一个单一的二进制文件。
步骤S22:连接智能网卡与预设服务器,并安装ofed(OpenFabrics Enterprise Distribution)驱动至预设服务器中,以便ofed驱动生成盘符。
可选的,在本实施例中,上述ofed驱动是一种开源的软件套件,用于支持和管理高性能计算集群中的网络互连和通信。
本实施例中,连接智能网卡与预设服务器,可以包括:利用预设通用串行总线将智能网卡与预设服务器进行连接。例如图3所示的一种可选的连接示意图,通过USB(Universal Serial Bus,即通用串行总线)线一端连接到裸金属服务器中的智能网卡,另一端连接到一台linux(Linux操作***)服务器。
本实施例中,安装ofed驱动至预设服务器中,以便ofed驱动生成盘符,可以包括:安装ofed驱动至预设服务器中,并拉起rshim(Remote Shared Memory)服务,以便ofed驱动生成rshim端口。
可选的,在本实施例中,上述rshim服务是一种远程共享内存技术,上述rshim端口是用于远程共享内存操作和通信的特定端口。
步骤S23:基于盘符,并利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡中。
本实施例中,利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡中,可以包括:利用Concatenate(合并)指令将预设服务器中的第一基础镜像文件写入至智能网卡中。在linux服务器上安装ofed驱动之后会拉起rshim服务,在linux服务器上可以通过rshim端口通过cat(Concatenate,连接)指令将arm(Advanced RISC Machines,先进精简指令集计算机)***的bfb镜像文件cat到智能网卡中,从而完成智能网卡的装机。在linux服务器上通过rshim口以及usb线执行例如下所示的指令给智能网卡进行装机:
Cat CentOS7.6-5.4.60-mlnx.57.g0ff03f3-MLNX_OFED-5.2-2.2.0.0-3.5.1.11601-1-aarch64.bfb>/dev/rshimX/boot;
其中,CentOS7.6-5.4.60-mlnx.57.g0ff03f3-MLNX_OFED-5.2-2.2.0.0-3.5.1.11601-1-aarch64.bfb表示为bfb格式的第一基础镜像文件,/dev/rshimX/boot表示将第一基础镜像文件写入智能网卡的地址。
步骤S24:添加用于支持云物理机全生命周期管理的功能文件至第一基础镜像文件中,以得到添加后镜像文件,并对添加后镜像文件进行第一打包处理,以得到第一压缩包,然后发送第一压缩包至预设服务器。
步骤S25:将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***。
步骤S26:利用预设重打包指令将目标文件***进行第二打包处理,以得到目标镜像文
件。
由此可见,本申请在预设服务器上安装ofed驱动,安装以后会生成rshim端口。在预设服务器上通过rshim端口采用cat指令将预设服务器中arm***的第一基础镜像文件写入到智能网卡的arm中,已完成第一基础镜像文件的安装,然后在智能网卡的第一基础镜像文件中添加用于支持云物理机全生命周期管理的功能文件,以实现得到的添加后镜像文件可以支持云物理机全生命周期管理的功能,因为预设服务器中的第二镜像文件不支持云物理机全生命周期管理的功能,所以将支持云物理机全生命周期管理的功能的添加后镜像文件进行压缩之后,发送至预设服务器,以便预设服务器基于该添加后镜像文件与第二基础镜像文件得到目标镜像文件,进而可以自动实现云物理机全生命周期管理的功能,降低人工成本。
参见图4所示,本申请实施例公开了另一种可选的镜像文件制作方法,包括:
步骤S31:连接智能网卡与预设服务器,并利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡。
步骤S32:添加用于支持云物理机全生命周期管理的部署文件和检查文件至第一基础镜像文件,以得到添加后镜像文件,并执行与部署文件对应的部署服务以及与检查文件对应的检查服务,以便添加后镜像文件支持云物理机全生命周期管理。
本实施例中,可以理解的是,智能网卡上电之后,可以通过网络或者rshim端口进入到智能网卡***,执行定制固化操作,在智能网卡arm***能添加支持云物理机全生命周期管理所必需的文件,例如inspur-baremetal-deploy.py部署文件以及inspur-baremetal-inspect.py检查文件,并添加inspur-baremetal-deploy.service以及inspur-baremetal-inspect.service,然后将部署服务和检查服务执行enable(使能)操作。
步骤S33:对添加后镜像文件进行第一打包处理,以得到第一压缩包,然后发送第一压缩包至预设服务器。
本实施例中,对添加后镜像文件进行第一打包处理,以得到第一压缩包,可以包括:对添加后镜像文件中目标目录下的文件进行第一打包处理,以得到第一压缩包。在当前智能网卡arm***中的相关文件添加完成之后,可以用下面指令对当前arm***的文件进行打包:
XZ_OPT=″--threads=0-9--verbose″tar-cJpf/tmp/image.tar.xz-C/.--exclude=’./tmp/*’--exclude=’./sys/*’--exclude=’./proc/*’--exclude=’./.dockerenv’--exclude=’./root/rpmbuild’--exclude=’./root/.rpmmacros’--exclude=’./root/.bash_history’--exclude=’./var/tmp/*’--exclude=’./bin/qemu-aarch64-static’--exclude=’./var/log/ovn/*’;
其中-exclude用来剔除不想打入的文件,如--exclude=’./tmp/*’意思是当前arm***中/tmp/目录下的所有文件都不打入。/tmp/image.tar.xz代表生成的第一压缩包的目录在当前arm***的/tmp/目录下,第一压缩包名称叫image.tar.xz。
步骤S34:将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***。
本实施例中,将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***,可以包括:将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包和第二解压包,并利用第一压缩包替换第二解压包;对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***。
本实施例中,将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包和第二解压包,可以包括:将预设服务器中的第二基础镜像文件进行第一解压处理,以得到待替换文件***;对待替换文件***中与目标目录对应的待替换文件进行第二解压处理,以得到第一解压包和第二解压包。
本实施例中,将预设服务器中的第二基础镜像文件进行第一解压处理,以得到待替换文件***即为在host节点linux服务器上对第二基础镜像文件进行解压操作,例如执行下面命令:
mlx-mkbfb-x../CentOS7.6-5.4.60-mlnx.57.g0ff03f3-MLNX_OFED-5.2-2.2.0.0-3.5.1.11601-1-aarch64.bfb;
对待替换文件***中与目标目录对应的待替换文件进行第二解压处理,以得到第一解压包和第二解压包,即为对待替换文件***dump-initramfs-v0执行下面指令在进行解压:
mkdir rootfs;
cd rootfs;
gunzip-c../dump-initramfs-v0|cpio-idm;
利用第一压缩包替换第二解压包时,即将第二解压包image.tar.xz替换第一压缩包image.tar.xz,然后对第一压缩包image.tar.xz和第一解压包进行第一打包处理,以得到目标文件***,例如利用如下指令进行第一打包处理:
find.|cpio-oc|xz--threads=0-9--verbose--check=crc32--lzma2=dict=32MiB>../updated-initramfs。
步骤S35:利用mlx-mkbfb(预设重打包指令)将目标文件***进行第二打包处理,以得到目标镜像文件。
本实施例中,利用预设重打包指令mlx-mkbfb将目标文件***进行第二打包处理,以得到目标镜像文件,其中预设重打包指令mlx-mkbfb如下所示:
upda ted-install.bfb
cd..
mlx-mkbfb--initramfs updated-initramfs../CentOS7.6-5.4.60-mlnx.57.g0ff03f3-MLNX_OFED-5.2-2.2.0.0-3.5.1.11601-1-aarch64.bfb/root/test_lyf/updated-install.bfb。
由此可见,本申请利用预设重打包指令mlx-mkbfb将支持云物理机全生命周期管理的功能的目标文件***进行第二打包处理,因此可以得到支持云物理机全生命周期管理的功能的目标镜像文件,以便后续可以自动实现云物理机全生命周期管理的功能,降低人工劳动成本。
参见图5所示,本申请实施例公开了一种镜像文件制作装置,包括:
写入模块11,被设置为连接智能网卡与预设服务器,并利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡;
发送模块12,被设置为添加用于支持云物理机全生命周期管理的功能文件至第一基础镜像文件中,以得到添加后镜像文件,并对添加后镜像文件进行第一打包处理,以得到第一压缩包,然后发送第一压缩包至预设服务器;
目标***获取模块13,被设置为将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***;
目标镜像获取模块14,被设置为利用预设重打包指令将目标文件***进行第二打包处理,以得到目标镜像文件。
可见,本申请连接智能网卡与预设服务器,并利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡;添加用于支持云物理机全生命周期管理的功能文件至第一基础镜像文件中,以得到添加后镜像文件,并对添加后镜像文件进行第一打包处理,以得到第一压缩包,然后发送第一压缩包至预设服务器;将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对第一压缩包和第一解压包进行第一打包处理,以得到目
标文件***;利用预设重打包指令将目标文件***进行第二打包处理,以得到目标镜像文件。由此可见,本申请利用智能网卡将支持云物理机全生命周期管理的功能文件添加至第一基础镜像文件,以得到能够支持云物理机全生命周期管理的添加后镜像文件,并将添加后镜像文件进行第一打包处理以得到第一压缩包,然后将第一压缩包将不能支持云物理机全生命周期管理的第一解压包进行第一打包处理,以得到能够支持云物理机全生命周期管理的目标文件***,利用预设重打包指令将目标文件***进行第二打包处理,以得到能够支持云物理机全生命周期管理的目标镜像文件,那么就无需人工进行后续裸金属服务器的安装部署,而是利用云物理机全生命周期管理功能自动实现,有效减少时间成本和人工成本。
在一些可选实施例中,镜像文件制作装置,包括:
复制单元,被设置为获取预设格式的基础镜像文件,并将基础镜像文件进行复制,以得到第一基础镜像文件和第二基础镜像文件。
在一些可选实施例中,复制单元,包括:
获取单元,被设置为获取bfb格式的基础镜像文件。
在一些可选实施例中,写入模块11,包括:
连接单元,被设置为利用预设通用串行总线将智能网卡与预设服务器进行连接。
在一些可选实施例中,写入模块11,包括:
镜像文件写入单元,被设置为安装ofed驱动至预设服务器中,以便ofed驱动生成盘符;基于盘符,并利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡中。
在一些可选实施例中,镜像文件写入单元,包括:
端口生成单元,被设置为安装ofed驱动至预设服务器中,并拉起rshim服务,以便ofed驱动生成rshim端口。
在一些可选实施例中,镜像文件写入单元,包括:
第一基础镜像文件写入单元,被设置为利用Concatenate指令将预设服务器中的第一基础镜像文件写入至智能网卡中。
在一些可选实施例中,发送模块12,包括:
添加单元,被设置为添加用于支持云物理机全生命周期管理的部署文件和检查文件至第一基础镜像文件,以得到添加后镜像文件,并执行与部署文件对应的部署服务以及与检查文件对应的检查服务,以便添加后镜像文件支持云物理机全生命周期管理。
在一些可选实施例中,发送模块12,包括:
第一打包处理单元,被设置为对添加后镜像文件中目标目录下的文件进行第一打包处理,以得到第一压缩包。
在一些可选实施例中,目标***获取模块13,包括:
第二打包处理单元,被设置为将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包和第二解压包,并利用第一压缩包替换第二解压包;对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***。
在一些可选实施例中,第二打包处理单元,包括:
解压处理单元,被设置为将预设服务器中的第二基础镜像文件进行第一解压处理,以得到待替换文件***;对待替换文件***中与目标目录对应的待替换文件进行第二解压处理,以得到第一解压包和第二解压包。
在一些可选实施例中,目标镜像获取模块14,包括:
第二打包处理单元,被设置为利用mlx-mkbfb将目标文件***进行第二打包处理,以得到目标镜像文件。
图6为本申请实施例提供的一种电子设备的结构示意图。可以包括:至少一个处理器21、
至少一个存储器22、电源23、通信接口24、输入输出接口25和通信总线26。其中,存储器22被设置为存储计算机程序,计算机程序由处理器21加载并执行,以实现以下步骤:
连接智能网卡与预设服务器,并利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡;
添加用于支持云物理机全生命周期管理的功能文件至第一基础镜像文件中,以得到添加后镜像文件,并对添加后镜像文件进行第一打包处理,以得到第一压缩包,然后发送第一压缩包至预设服务器;
将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***;
利用预设重打包指令将目标文件***进行第二打包处理,以得到目标镜像文件。
在一些可选实施方式中,处理器通过执行存储器中保存的计算机程序,可以实现以下步骤:
获取预设格式的基础镜像文件,并将基础镜像文件进行复制,以得到第一基础镜像文件和第二基础镜像文件。
在一些可选实施方式中,处理器通过执行存储器中保存的计算机程序,可以实现以下步骤:
获取bfb格式的基础镜像文件。
在一些可选实施方式中,处理器通过执行存储器中保存的计算机程序,可以实现以下步骤:
利用预设通用串行总线将智能网卡与预设服务器进行连接。
在一些可选实施方式中,处理器通过执行存储器中保存的计算机程序,可以实现以下步骤:
安装ofed驱动至预设服务器中,以便ofed驱动生成盘符;
基于盘符,并利用预设重镜像指令将预设服务器中的第一基础镜像文件写入至智能网卡中。
在一些可选实施方式中,处理器通过执行存储器中保存的计算机程序,可以实现以下步骤:
安装ofed驱动至预设服务器中,并拉起rshim服务,以便ofed驱动生成rshim端口。
在一些可选实施方式中,处理器通过执行存储器中保存的计算机程序,可以实现以下步骤:
利用Concatenate指令将预设服务器中的第一基础镜像文件写入至智能网卡中。
在一些可选实施方式中,处理器通过执行存储器中保存的计算机程序,可以实现以下步骤:
添加用于支持云物理机全生命周期管理的部署文件和检查文件至第一基础镜像文件,以得到添加后镜像文件,并执行与部署文件对应的部署服务以及与检查文件对应的检查服务,以便添加后镜像文件支持云物理机全生命周期管理。
在一些可选实施方式中,处理器通过执行存储器中保存的计算机程序,可以实现以下步骤:
对添加后镜像文件中目标目录下的文件进行第一打包处理,以得到第一压缩包。
在一些可选实施方式中,处理器通过执行存储器中保存的计算机程序,可以实现以下步骤:
将预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包和第二解压包,并利用第一压缩包替换第二解压包;
对第一压缩包和第一解压包进行第一打包处理,以得到目标文件***。
在一些可选实施方式中,处理器通过执行存储器中保存的计算机程序,可以实现以下步
骤:
将预设服务器中的第二基础镜像文件进行第一解压处理,以得到待替换文件***;
对待替换文件***中与目标目录对应的待替换文件进行第二解压处理,以得到第一解压包和第二解压包。
在一些可选实施方式中,处理器通过执行存储器中保存的计算机程序,还可以可选的包括以下步骤:
利用mlx-mkbfb将目标文件***进行第二打包处理,以得到目标镜像文件。
本实施例中,电源23被设置为为电子设备上的各硬件设备提供工作电压;通信接口24能够为电子设备创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本申请技术方案的任意通信协议,在此不对其进行限定;输入输出接口25,被设置为获取外界输入数据或向外界输出数据,其接口类型可以根据应用需要进行选取,在此不进行限定。
其中,处理器21可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器21可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器21也可以包括主处理器和协处理器,主处理器是被设置为对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是被设置为对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器21可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU被设置为负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器21还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器被设置为处理有关机器学习的计算操作。
另外,存储器22作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源包括操作***221、计算机程序222及数据223等,存储方式可以是短暂存储或者永久存储。
其中,操作***221被设置为管理与控制电子设备上的各硬件设备以及计算机程序222,以实现处理器21对存储器22中海量数据223的运算与处理,其可以是Windows、Unix、Linux等。计算机程序222除了包括能够被设置为完成前述任一实施例公开的由电子设备执行的镜像文件制作方法的计算机程序之外,还可以可选的包括能够被设置为完成其他特定工作的计算机程序。数据223除了可以包括电子设备接收到的由外部设备传输进来的数据,也可以包括由自身输入输出接口25采集到的数据等。
可选的,本申请实施例还公开了一种计算机非易失性可读存储介质,非易失性可读存储介质中存储有计算机程序,计算机程序被处理器加载并执行时,实现前述任一实施例公开的由镜像文件制作过程中执行的方法步骤。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上对本申请所提供的一种镜像文件制作方法、装置、设备及非易失性可读存储介质进行了详细介绍,本文中应用了可选个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在可选实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。
Claims (20)
- 一种镜像文件制作方法,其特征在于,包括:连接智能网卡与预设服务器,并利用预设重镜像指令将所述预设服务器中的第一基础镜像文件写入至所述智能网卡;添加用于支持云物理机全生命周期管理的功能文件至所述第一基础镜像文件中,以得到添加后镜像文件,并对所述添加后镜像文件进行第一打包处理,以得到第一压缩包,然后发送所述第一压缩包至所述预设服务器;将所述预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对所述第一压缩包和所述第一解压包进行所述第一打包处理,以得到目标文件***;利用预设重打包指令将所述目标文件***进行第二打包处理,以得到目标镜像文件。
- 根据权利要求1所述的镜像文件制作方法,其特征在于,所述连接智能网卡与预设服务器之前,还包括:获取预设格式的基础镜像文件,并将所述基础镜像文件进行复制,以得到第一基础镜像文件和第二基础镜像文件。
- 根据权利要求2所述的镜像文件制作方法,其特征在于,所述获取预设格式的基础镜像文件,包括:获取bfb格式的基础镜像文件。
- 根据权利要求1所述的镜像文件制作方法,其特征在于,所述连接智能网卡与预设服务器,包括:利用预设通用串行总线将智能网卡与预设服务器进行连接。
- 根据权利要求4所述的镜像文件制作方法,其特征在于,所述利用预设通用串行总线将智能网卡与预设服务器进行连接,包括:通过所述通用串行总线一端连接到裸金属服务器中的智能网卡,另一端连接到一台linux服务器。
- 根据权利要求1所述的镜像文件制作方法,其特征在于,所述利用预设重镜像指令将所述预设服务器中的第一基础镜像文件写入至所述智能网卡,包括:安装ofed驱动至所述预设服务器中,以便所述ofed驱动生成盘符;基于所述盘符,并利用预设重镜像指令将所述预设服务器中的第一基础镜像文件写入至所述智能网卡中。
- 根据权利要求6所述的镜像文件制作方法,其特征在于,所述安装ofed驱动至所述预设服务器中,以便所述ofed驱动生成盘符,包括:安装ofed驱动至所述预设服务器中,并拉起rshim服务,以便所述ofed驱动生成rshim端口。
- 根据权利要求7所述的镜像文件制作方法,其特征在于,所述利用预设重镜像指令将所述预设服务器中的第一基础镜像文件写入至所述智能网卡中,包括:利用合并Concatenate指令将所述预设服务器中的第一基础镜像文件写入至所述智能网卡中。
- 根据权利要求8所述的镜像文件制作方法,其特征在于,所述利用合并Concatenate指令将所述预设服务器中的第一基础镜像文件写入至所述智能网卡中,包括:在linux服务器上通过rshim端口通过cat指令将先进精简指令集计算机arm***的bfb镜像文件cat到智能网卡中,从而完成智能网卡的装机。
- 根据权利要求9所述的镜像文件制作方法,其特征在于,所述在linux服务器上通过rshim端口通过cat指令将先进精简指令集计算机arm***的bfb镜像文件cat到 智能网卡中,包括:在linux服务器上通过rshim端口以及通用串行总线usb线执行如下指令给智能网卡进行装机:Cat Cent0S7.6-5.4.60-mlnx.57.g0ff03f3-MLNX_OFED-5.2-2.2.0.0-3.5.1.11601-1-aarch64.bfb>/dev/rshimX/boot。
- 根据权利要求1所述的镜像文件制作方法,其特征在于,所述添加用于支持云物理机全生命周期管理的功能文件至所述第一基础镜像文件中,以得到添加后镜像文件,包括:添加用于支持云物理机全生命周期管理的部署文件和检查文件至所述第一基础镜像文件,以得到添加后镜像文件,并执行与所述部署文件对应的部署服务以及与所述检查文件对应的检查服务,以便所述添加后镜像文件支持所述云物理机全生命周期管理。
- 根据权利要求11所述的镜像文件制作方法,其特征在于,所述添加用于支持云物理机全生命周期管理的部署文件和检查文件至所述第一基础镜像文件,包括:通过网络或者rshim端口进入到智能网卡***,执行定制固化操作,在智能网卡arm***中添加inspur-baremetal-deploy.py部署文件以及inspur-baremetal-inspect.py检查文件。
- 根据权利要求1至12任一项所述的镜像文件制作方法,其特征在于,所述对所述添加后镜像文件进行第一打包处理,以得到第一压缩包,包括:对所述添加后镜像文件中目标目录下的文件进行第一打包处理,以得到第一压缩包。
- 根据权利要求13所述的镜像文件制作方法,其特征在于,所述对所述添加后镜像文件中目标目录下的文件进行第一打包处理,以得到第一压缩包,包括:在当前智能网卡arm***中的相关文件添加完成之后,采用以下指令对当前arm***的文件进行打包:XZ_OPT=″--threads=0-9--verbose″tar-cJpf/tmp/image.tar.xz-C/.--exclude=’./tmp/*’--exclude=’./sys/*’--exclude=’./proc/*’--exclude=’./.dockerenv’--exclude=’./root/rpmbuild’--exclude=’./root/.rpmmacros’--exclude=’./root/.bash_history’--exclude=’./var/tmp/*’--exclude=’./bin/qemu-aarch64-static’--exclude=’./var/log/ovn/*’;其中,exclude表示剔除不打入的文件,--exclude=’./tmp/*’表示当前arm***中/tmp/目录下的所有文件都不打入,/tmp/image.tar.xz表示生成的第一压缩包的目录在当前arm***的/tmp/目录下,所述第一压缩包名称为image.tar.xz。
- 根据权利要求13所述的镜像文件制作方法,其特征在于,所述将所述预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对所述第一压缩包和所述第一解压包进行所述第一打包处理,以得到目标文件***,包括:将所述预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包和第二解压包,并利用所述第一压缩包替换所述第二解压包;对所述第一压缩包和所述第一解压包进行所述第一打包处理,以得到目标文件***。
- 根据权利要求15所述的镜像文件制作方法,其特征在于,所述将所述预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包和第二解压包,包括:将所述预设服务器中的第二基础镜像文件进行第一解压处理,以得到待替换文件***;对所述待替换文件***中与所述目标目录对应的待替换文件进行第二解压处理,以得到第一解压包和第二解压包。
- 根据权利要求1所述的镜像文件制作方法,其特征在于,所述利用预设重打包指 令将所述目标文件***进行第二打包处理,以得到目标镜像文件,包括:利用预设重打包指令mlx-mkbfb将所述目标文件***进行第二打包处理,以得到目标镜像文件。
- 一种镜像文件制作装置,其特征在于,包括:写入模块,被设置为连接智能网卡与预设服务器,并利用预设重镜像指令将所述预设服务器中的第一基础镜像文件写入至所述智能网卡;发送模块,被设置为添加用于支持云物理机全生命周期管理的功能文件至所述第一基础镜像文件中,以得到添加后镜像文件,并对所述添加后镜像文件进行第一打包处理,以得到第一压缩包,然后发送所述第一压缩包至所述预设服务器;目标***获取模块,被设置为将所述预设服务器中的第二基础镜像文件进行解压处理,以得到第一解压包,并对所述第一压缩包和所述第一解压包进行所述第一打包处理,以得到目标文件***;目标镜像获取模块,被设置为利用预设重打包指令将所述目标文件***进行第二打包处理,以得到目标镜像文件。
- 一种电子设备,其特征在于,包括:存储器,被设置为保存计算机程序;处理器,被设置为执行所述计算机程序,以实现如权利要求1至17任一项所述的镜像文件制作方法的步骤。
- 一种计算机非易失性可读存储介质,其特征在于,被设置为存储计算机程序;其中,所述计算机程序被处理器执行时实现如权利要求1至17任一项所述的镜像文件制作方法的步骤。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211422916.7A CN115509563B (zh) | 2022-11-15 | 2022-11-15 | 镜像文件制作方法、装置、设备及介质 |
CN202211422916.7 | 2022-11-15 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024103840A1 true WO2024103840A1 (zh) | 2024-05-23 |
Family
ID=84514244
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/110311 WO2024103840A1 (zh) | 2022-11-15 | 2023-07-31 | 镜像文件制作方法、装置、设备及非易失性可读存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115509563B (zh) |
WO (1) | WO2024103840A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115509563B (zh) * | 2022-11-15 | 2023-02-28 | 济南浪潮数据技术有限公司 | 镜像文件制作方法、装置、设备及介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160378456A1 (en) * | 2013-11-26 | 2016-12-29 | China Unionpay Co., Ltd. | Method for offline updating virtual machine images |
CN114995888A (zh) * | 2022-05-31 | 2022-09-02 | 济南浪潮数据技术有限公司 | 一种智能网卡部署方法、装置及介质 |
CN115098118A (zh) * | 2022-06-29 | 2022-09-23 | 济南浪潮数据技术有限公司 | 一种镜像灌装方法、装置、设备及存储介质 |
CN115509563A (zh) * | 2022-11-15 | 2022-12-23 | 济南浪潮数据技术有限公司 | 镜像文件制作方法、装置、设备及介质 |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10725808B2 (en) * | 2017-01-04 | 2020-07-28 | International Business Machines Corporation | Virtual machine image conversion |
CN109783117B (zh) * | 2019-01-18 | 2023-01-10 | 中国人民解放军国防科技大学 | 一种无盘***的镜像文件制作及启动方法 |
CN109960517B (zh) * | 2019-03-14 | 2022-11-22 | 龙芯中科技术股份有限公司 | 镜像文件的制作方法、装置、***及存储介质 |
CN111090439B (zh) * | 2019-12-13 | 2021-10-22 | 苏州浪潮智能科技有限公司 | 裸金属服务器linux***镜像生成方法、装置及设备 |
CN111835571B (zh) * | 2020-07-20 | 2023-04-07 | 平安科技(深圳)有限公司 | 智能网卡初始化方法、装置、计算机设备和存储介质 |
CN114070723B (zh) * | 2020-07-31 | 2023-11-03 | 中移(苏州)软件技术有限公司 | 裸金属服务器的虚拟网络配置方法、***及智能网卡 |
CN112486522A (zh) * | 2020-12-17 | 2021-03-12 | 济南浪潮数据技术有限公司 | 含智能网卡OpenStack裸机的部署方法及装置 |
CN113608752B (zh) * | 2021-06-30 | 2023-08-11 | 苏州浪潮智能科技有限公司 | 智能网卡***的安装方法、***、装置及可读存储介质 |
CN114172797A (zh) * | 2021-10-26 | 2022-03-11 | 苏州浪潮智能科技有限公司 | 一种主动式智能网卡管理***、方法及装置 |
CN114157639B (zh) * | 2021-11-26 | 2023-07-14 | 苏州浪潮智能科技有限公司 | 服务器智能网卡信息采集的方法、装置、设备及可读介质 |
CN114356357A (zh) * | 2022-01-04 | 2022-04-15 | 北京金山云网络技术有限公司 | 镜像文件处理方法、装置和电子设备 |
-
2022
- 2022-11-15 CN CN202211422916.7A patent/CN115509563B/zh active Active
-
2023
- 2023-07-31 WO PCT/CN2023/110311 patent/WO2024103840A1/zh unknown
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160378456A1 (en) * | 2013-11-26 | 2016-12-29 | China Unionpay Co., Ltd. | Method for offline updating virtual machine images |
CN114995888A (zh) * | 2022-05-31 | 2022-09-02 | 济南浪潮数据技术有限公司 | 一种智能网卡部署方法、装置及介质 |
CN115098118A (zh) * | 2022-06-29 | 2022-09-23 | 济南浪潮数据技术有限公司 | 一种镜像灌装方法、装置、设备及存储介质 |
CN115509563A (zh) * | 2022-11-15 | 2022-12-23 | 济南浪潮数据技术有限公司 | 镜像文件制作方法、装置、设备及介质 |
Also Published As
Publication number | Publication date |
---|---|
CN115509563A (zh) | 2022-12-23 |
CN115509563B (zh) | 2023-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8176153B2 (en) | Virtual server cloning | |
US9292215B2 (en) | Managing virtual hard disk snapshots | |
US8645672B2 (en) | Configuring a computer system for a software package installation | |
US10061665B2 (en) | Preserving management services with self-contained metadata through the disaster recovery life cycle | |
WO2024077885A1 (zh) | 容器集群的管理方法、装置、设备及非易失性可读存储介质 | |
WO2024103840A1 (zh) | 镜像文件制作方法、装置、设备及非易失性可读存储介质 | |
US10346160B2 (en) | Melding of mediation flow service component architecture (SCA) components | |
CN104113574A (zh) | 一种广域网可信虚拟机的安全迁移方法及*** | |
US20130318520A1 (en) | Early configuration in deploying an enterprise application | |
CN113626133B (zh) | 一种虚拟机控制方法、装置、设备及计算机可读存储介质 | |
CN111966465A (zh) | 一种实时修改宿主机配置参数的方法、***、设备及介质 | |
CN115421740A (zh) | 云原生应用的部署方法和装置 | |
JP2024519310A (ja) | デプロイメント構築のためのエージェントレスインストール | |
CN113254156A (zh) | 一种容器组部署方法、装置、电子设备及存储介质 | |
US8630982B2 (en) | Individual object restore | |
CN114995888A (zh) | 一种智能网卡部署方法、装置及介质 | |
WO2024124912A1 (zh) | 冗余固件的数据同步方法、装置及非易失性可读存储介质 | |
CN103389909B (zh) | 一种渲染农场节点虚拟化部署***及其应用 | |
CN110019059B (zh) | 一种定时同步的方法和装置 | |
CN114911421B (zh) | 基于csi插件的数据存储方法、***、装置及存储介质 | |
US20240039825A1 (en) | Network switching method and apparatus, electronic device, and storage medium | |
CN115016862A (zh) | 基于Kubernetes集群的软件启动方法、装置、服务器及存储介质 | |
CN115485677A (zh) | 在分布式数据存储环境中的安全数据复制 | |
CN110837405A (zh) | 基于容器技术的多实例图形桌面运行和切换方法 | |
CN113986358B (zh) | 裸金属实例装机方法、装置及设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23890279 Country of ref document: EP Kind code of ref document: A1 |