CN115794132A - Operating system deployment method, device, equipment and storage medium - Google Patents

Operating system deployment method, device, equipment and storage medium Download PDF

Info

Publication number
CN115794132A
CN115794132A CN202111063133.XA CN202111063133A CN115794132A CN 115794132 A CN115794132 A CN 115794132A CN 202111063133 A CN202111063133 A CN 202111063133A CN 115794132 A CN115794132 A CN 115794132A
Authority
CN
China
Prior art keywords
mirror image
physical machine
compressed
partition
image
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.)
Pending
Application number
CN202111063133.XA
Other languages
Chinese (zh)
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.)
China United Network Communications Group Co Ltd
Unicom Cloud Data Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Unicom Cloud Data 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 China United Network Communications Group Co Ltd, Unicom Cloud Data Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202111063133.XA priority Critical patent/CN115794132A/en
Publication of CN115794132A publication Critical patent/CN115794132A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for deploying an operating system, wherein the method adds a memory file system mirror image and a compressed mirror image on a cloud mirror image service to a local node, wherein the compressed mirror image is a compressed mirror image obtained by extracting an effective file from a user mirror image; controlling a physical machine to start a pre-starting execution environment, and loading a memory file system mirror image in a memory of the physical machine; adding the compressed mirror image into a memory of the physical machine, and carrying out partition operation on a system disk of the physical machine to obtain a root partition; and decompressing the compressed mirror image to the corresponding root partition so as to realize the deployment of the operating system of the physical machine, shorten the transmission speed of the mirror image, shorten the deployment time of the operating system and improve the deployment flexibility of the operating system under the condition of ensuring the transmission quality of the mirror image file.

Description

Operating system deployment method, device, equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for deploying an operating system.
Background
In recent years, cloud computing service demands are rapidly developed, cloud computing is gradually formed from a concept and is integrated into daily life, a cloud computing management platform OpenStack is a relatively mature cloud computing management platform at present, a bare metal ironic service of the OpenStack is a service for managing a physical host on the cloud, and managing various resources such as a network of the physical host and the like and managing the life cycle of a server, wherein the management of the life cycle comprises writing a cloud mirror image into a system disk of the physical machine so as to achieve the purpose of installing an operating system.
In the conventional method, the bare metal installs the operating system as follows: firstly, an ironic service writes a mirror image, a physical host is started by a Preboot eXecution Environment (PXE), then a user mirror image is pulled into a physical machine memory or a System disk is exposed in a network Small Computer System Interface (iSCSI) mode through a memory file System image, and then the ironic service or the memory file System image realizes copying of a block device of the mirror image to a disk in a mode of an instruction dd, so that the installation of an operating System is realized.
However, in the prior art, the time consumed in the step of writing the mirror image when the bare computer installs the operating system is long, so that the time for installing the operating system is long, the file system and the partition are fixed, the adjustment cannot be performed according to the user requirements, and the flexibility is poor.
Disclosure of Invention
The application provides an operating system deployment method, an operating system deployment device and a storage medium, so that the technical problems that effective identification of a cell scene is difficult to perform in a complex communication environment, operating system deployment efficiency is low, and accuracy is poor in the prior art are solved.
In a first aspect, the present application provides a method for deploying an operating system, including:
adding a memory file system mirror image and a compressed mirror image on a cloud mirror image service to a local node, wherein the compressed mirror image is a compressed mirror image obtained by extracting an effective file from a user mirror image;
controlling a physical machine to start a pre-starting execution environment, and loading the memory file system mirror image in the memory of the physical machine;
adding the compressed mirror image into a memory of the physical machine, and performing partition operation on a system disk of the physical machine to obtain a root partition;
and decompressing the compressed image to a corresponding root partition so as to realize the operating system deployment of the physical machine.
Here, this application is through extracting the effective file of user's mirror image, draws out the effective file of mirror image and makes into the compression package and make the compression mirror image, under the circumstances of guaranteeing mirror image file transmission quality, has shortened the transmission rate of mirror image, has shortened operating system's deployment time, efficiency when having promoted the deployment system, and carry out the partition operation to the system dish of physics machine, when facing customer's diversity demand, can be better support, the flexibility that operating system deployed has been improved.
Optionally, before the adding the memory file system image and the compressed image on the cloud image service to the local node, the method further includes:
and extracting effective files in the user mirror image through virtualization management software to obtain a compressed mirror image.
The method and the device can remove the invalid holes in the original image file and extract the valid files in the user image through virtualization management software in advance, so that the accuracy and the integrity of file compression are guaranteed, the stability of deploying the operating system is improved, and the time of deploying the operating system is effectively shortened.
Optionally, before the adding the memory file system image and the compressed image on the cloud image service to the local node, the method further includes:
adding an attribute identifier for the compressed mirror image;
correspondingly, the performing a partition operation on the system disk of the physical machine to obtain a root partition includes:
and performing partition operation and file system division operation according to the attribute identification of the compressed mirror image to obtain a root partition.
According to the method and the device, the attribute identification is added to the compressed mirror image in advance, and accurate and rapid partition operation and file system partition operation can be performed through the attribute identification, so that the accuracy of system deployment is improved.
Optionally, the partitioning the system disk of the physical machine to obtain a root partition includes:
and determining a partition format according to the starting mode of the physical machine, and performing partition operation on a system disk of the physical machine according to the partition format to obtain a root partition.
In this case, the format of the partition may be determined according to the starting mode of the physical machine, so that the flexibility of operating system deployment is further improved.
Optionally, before the adding the compressed image to the memory of the physical machine and performing a partition operation on the system disk of the physical machine to obtain a root partition, the method further includes:
modifying a configuration of a virtual memory disk of the physical machine to support partition operations on the physical machine.
In order to ensure the realizability of partition operation, the partition operation on the physical machine is supported by modifying the configuration of the virtual memory disk of the physical machine in advance, so that the flexibility of operating system deployment is further improved.
Optionally, after decompressing the compressed image to the corresponding root partition, the method further includes:
and installing a multi-operating-system starting program on the physical machine according to the decompressed compressed mirror image, modifying configuration information and system starting items, and starting up the hard disk.
Here, after the image file is successfully written into the memory, the deployment of the operating system is realized through the image file.
The application provides an operating system deploys device, includes:
the system comprises a first processing module, a second processing module and a third processing module, wherein the first processing module is used for adding a memory file system mirror image and a compressed mirror image on a cloud mirror image service to a local node of a physical machine, and the compressed mirror image is a compressed mirror image obtained by extracting an effective file from a user mirror image;
the control module is used for controlling a physical machine to carry out pre-boot execution environment boot, and loading the memory file system mirror image in the memory of the physical machine;
the second processing module is used for adding the compressed mirror image into the memory of the physical machine and carrying out partition operation on a system disk of the physical machine to obtain a root partition;
and the decompression module is used for decompressing the compressed image to the corresponding root partition so as to realize the deployment of the operating system of the physical machine.
Optionally, before the first processing module adds the memory file system image and the compressed image on the cloud image service to the local node, the apparatus further includes:
and the compression module is used for extracting the effective files in the user mirror image through the virtualization management software to obtain a compressed mirror image.
Optionally, before the first processing module adds the memory file system image and the compressed image on the cloud image service to the local node, the apparatus further includes:
adding an attribute identifier for the compressed mirror image;
correspondingly, the second processing module is specifically configured to:
and performing partition operation and file system partition operation according to the attribute identification of the compressed mirror image to obtain a root partition.
Optionally, the first processing module is specifically configured to:
and determining a partition format according to the starting mode of the physical machine, and performing partition operation on a system disk of the physical machine according to the partition format to obtain a root partition.
Optionally, before the second processing module adds the compressed image to the memory of the physical machine, and performs a partition operation on a system disk of the physical machine to obtain a root partition, the apparatus further includes:
a modification module, configured to modify a configuration of a virtual memory disk of the physical machine, so as to support a partition operation on the physical machine.
Optionally, after the decompression module decompresses the compressed image to the corresponding root partition, the apparatus further includes:
and the third processing module is used for installing a multi-operating-system starting program on the physical machine according to the decompressed compressed mirror image, modifying configuration information and system starting items and starting up the hard disk.
In a third aspect, the present application provides an operating system deployment device, including: at least one processor and memory;
the memory stores computer-executable instructions;
execution of the computer-executable instructions stored by the memory by the at least one processor causes the at least one processor to perform the method of operating system deployment described above in the first aspect and the various possible designs of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement the method for deploying an operating system as set forth in the first aspect and various possible designs of the first aspect.
In a fifth aspect, the present invention provides a computer program product comprising a computer program which, when executed by a processor, implements a method of operating system deployment as described above in the first aspect and in various possible designs of the first aspect.
The method extracts the effective files of the user images, extracts the effective files of the images and packs the effective files into the compression package to form the compression images, shortens the transmission speed of the images, shortens the deployment time of the operating system, improves the efficiency of deploying the system, and performs partition operation on a system disk of a physical machine under the condition of ensuring the transmission quality of the image files, can better support the system disk when facing the diversity requirements of customers, and improves the deployment flexibility of the operating system.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of an operating system deployment system architecture according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for deploying an operating system according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a process for training a preset classification model according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an operating system deployment apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an operating system deployment device according to an embodiment of the present application.
Specific embodiments of the present disclosure have been shown by way of example in the drawings and will be described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
The terms "first," "second," "third," and "fourth," if any, in the description and claims of this application and the above-described figures are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In recent years, the cloud computing service has been rapidly developed, cloud computing has gradually formed a product from a concept and is integrated into daily life, openStack is a relatively mature cloud computing management platform, an ironic service of OpenStack is a service for managing a physical host on a cloud, managing various resources such as a network of the physical host and managing a life cycle of a server, wherein the management of the life cycle includes writing a cloud mirror image into a system disk of the physical host to achieve the purpose of installing an operating system. The cloud mirror image is an image used by creating an example in the field of cloud computing, is different from an ISO mirror image file in the traditional concept, and is a raw image raw format or qcow2 format file with an installed operating system.
In the conventional method, a bare metal installs an operating system as follows: firstly, an ironic service writes a mirror image, a physical host is subjected to PXE starting, then a user mirror image is pulled into a physical host memory through a memory file system image or a system disk is exposed in an iSCSI mode, and then a block device which is mirrored to the disk is copied through the ironic service or the memory file system image in a dd mode, so that the installation of an operating system is realized. For cloud environments, especially public clouds, the size of a mirror image is often more than tens of G, the current disc writing mode of openstack ironic service requires several minutes or even tens of minutes, and the perception of a user is not friendly; and because the block device of the mirror image is copied, the file system and the partition are fixed, the same mirror image cannot flexibly adjust different requirements of users.
However, in the prior art, the time consumed in the step of writing the mirror image when the bare computer installs the operating system is long, so that the time for installing the operating system is long, the file system and the partition are fixed, the adjustment cannot be performed according to the user requirements, and the flexibility is poor.
In order to solve the above problems, embodiments of the present application provide a method, an apparatus, a device, and a storage medium for deploying an operating system, where a manufacturing manner of a physical machine image and a manner of an OpenStack ironic service disk are improved, so that a speed of deploying the operating system by a bare metal server on a cloud is increased from several minutes to a second level, and flexible adjustment of a partition and a file system of the operating system by using the same image is achieved.
Optionally, fig. 1 is a schematic diagram of an operating system deployment system architecture provided in an embodiment of the present application. In fig. 1, the architecture includes a cloud computing management platform OpenStack101, a physical machine 102, and a cloud mirror service glance103, where OpenStack101 includes a bare metal Ironic, physical machine 102 registers on an Ironic1010 service to be managed by the Ironic1010, and the Ironic1010 service pulls an image file from the glance103 to a local node to implement deployment of a bare machine operating system of physical machine 102 through the image file.
It is to be understood that the illustrated architecture of the embodiments of the present application does not constitute a specific limitation on the operating system deployment system architecture. In other possible embodiments of the present application, the foregoing architecture may include more or less components than those shown in the drawings, or combine some components, or split some components, or arrange different components, which may be determined according to practical application scenarios, and is not limited herein. The components shown in fig. 1 may be implemented in hardware, software, or a combination of software and hardware.
In addition, the network architecture and the service scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not constitute a limitation to the technical solution provided in the embodiment of the present application, and it can be known by a person of ordinary skill in the art that, along with the evolution of the network architecture and the occurrence of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
The technical scheme of the application is described in detail by combining specific embodiments as follows:
optionally, fig. 2 is a flowchart illustrating an operating system deployment method according to an embodiment of the present application. The execution subject in the embodiment of the present application may be an Ironic1010 in fig. 1, and the specific execution subject may be determined according to an actual application scenario. As shown in fig. 2, the method comprises the steps of:
s201: and adding the memory file system mirror image and the compressed mirror image on the cloud mirror image service to the local node.
The compressed mirror image is obtained by extracting effective files of the user mirror image.
Optionally, before adding the memory file system image and the compressed image on the cloud image service to the local node, the method further includes:
and extracting effective files in the user mirror image through virtualization management software to obtain a compressed mirror image.
Specifically, the compressed image is an extracted compressed package of valid files of the cloud image, and the extracted compressed package contains all files of a complete physical machine linux system except a multi-operating system boot loader (grub). The manufacturing method comprises the following steps:
firstly, acquiring an available common user mirror image of a physical machine; secondly, extracting all effective files of the mirror image through virtualization management software libvirt tools such as guestmount or virt-copy-out, and compressing and packaging the effective files to form a compressed mirror image.
The embodiment of the application can remove the invalid holes in the original image file in advance through virtualization management software, extract the valid files in the user image, ensure the accuracy and integrity of file compression, improve the stability of the deployed operating system, and effectively shorten the time of deploying the operating system.
S202: and controlling the physical machine to start a pre-starting execution environment, and loading a memory file system mirror image in a memory of the physical machine.
Specifically, a physical machine is set to start pxe; the physical machine acquires a memory file system mirror image through the pxe, loads the mirror image in the memory, and starts an ironic-python-agent service in the mirror image; a write disk request is sent to the ironic-python-agent.
S203: and adding the compressed mirror image into a memory of the physical machine, and carrying out partition operation on a system disk of the physical machine to obtain a root partition.
Optionally, the embodiment of the present application may partition and divide the file system according to the attribute of the mirror in the cloud mirror service.
Optionally, before adding the memory file system image and the compressed image on the cloud image service to the local node, the method further includes: and adding attribute identification to the compressed image.
Correspondingly, performing partition operation on a system disk of the physical machine to obtain a root partition, including:
and performing partition operation and file system partition operation according to the attribute identification of the compressed mirror image to obtain a root partition.
For example, a compressed image needs to specify a series of attributes for partitioning and creating a file system when uploading, such as: the attribute 'boot _ mb' is used for setting the size of the boot partition when writing the disk; the attribute 'root _ mb' is used for setting the size value of the root partition; the attribute 'root _ fstype' is used for setting the file system types of the root partition and the boot partition; the attribute "use _ LVM" is used to set whether Logical Volume Management (LVM) is used.
The attribute identification is added to the compressed mirror image in advance, and accurate and rapid partition operation and file system partition operation can be performed through the attribute identification, so that the accuracy of system deployment is improved.
Optionally, performing a partition operation on a system disk of the physical machine to obtain a root partition, including:
and determining a partition format according to the starting mode of the physical machine, and performing partition operation on a system disk of the physical machine according to the partition format to obtain a root partition.
In an optional implementation manner, whether to set an Extensible Firmware Interface (efi) partition and whether to use a gpt (GUID partition table) partition format may be determined according to whether a physical machine is a Basic Input Output System (bios) boot or a Unified Extensible Firmware Interface (uefi) boot.
Here, the embodiment of the application may determine the format of the partition according to the starting mode of the physical machine, thereby further improving the flexibility of operating system deployment.
Optionally, before adding the compressed image to a memory of the physical machine and performing a partition operation on a system disk of the physical machine to obtain a root partition, the method further includes:
the configuration of the virtual memory disk of the physical machine is modified to support partition operations on the physical machine.
In an optional manner, a virtual disk Ramdisk image is set, where the Ramdisk image is an execution program used by the physical machine to interact with an ironic service and perform operations on the physical machine when the pxe is started, and the ironic-python-agent code of the Ramdisk needs to be modified to functionally support operations such as partitioning, file system creation, grub installation, rewriting/etc/fstab and grub file on the physical machine.
In order to ensure the realizability of the partition operation, the embodiment of the present application supports the partition operation on the physical machine by modifying the configuration of the virtual memory disk of the physical machine in advance, and further improves the flexibility of operating system deployment.
S204: and decompressing the compressed image to the corresponding root partition so as to realize the operating system deployment of the physical machine.
Optionally, after decompressing the compressed image to the corresponding root partition, the method further includes:
and installing a multi-operating-system starting program on the physical machine according to the decompressed compressed mirror image, modifying configuration information and system starting items, and starting the hard disk.
Here, in the embodiment of the present application, after the image file is successfully written into the memory, the deployment of the operating system is implemented through the image file.
Optionally decompressing the compressed image to the root partition by an Ironic-python-agent; the Ironic-python-agent is switched to a root partition mounting point through a chroma instruction, and grub, modification/etc/fstab, modification/etc/default/grub and the like are installed; and completing disk writing, and starting up the hard disk of the physical server.
The embodiment of the application extracts the effective files of the user images, extracts the effective files of the images and makes the effective files into the compression package to be made into the compression images, under the condition that the transmission quality of the image files is guaranteed, the transmission speed of the images is shortened, the deployment time of an operating system is shortened, the efficiency of the system deployment is improved, the system disk of a physical machine is subjected to partition operation, when the diversity requirements of customers are met, better support can be achieved, and the deployment flexibility of the operating system is improved.
Exemplarily, fig. 3 is an application schematic diagram of an operating system deployment provided in an embodiment of the present application, and as shown in fig. 3, in an actual application, the application schematic diagram includes the following steps:
first, a physical machine server registers on an ironic service to be managed by the ironic.
Second, the Ironic pxe starts the physical server and writes the image. As shown in fig. 3, the process is as follows:
a: the user issues a request to create a physical machine instance.
b: after the Nova service selects a proper node, the request is issued to the bare metal ironic node.
c: the Ironic service will pull the memory file system image and compress the image from the cloud image service to the local node.
d: the Ironic service sets the physical server for pxe startup.
e: and the physical server acquires the memory file system mirror image through the pxe and loads the mirror image in the memory, and starts the ironic-python-agent service in the memory.
f: the Ironic service sends a write disk request to the proxy Ironic-python-agent.
g: the Ironic-python-agent pulls the compressed image to the memory; and partitioning and dividing the file system according to the attributes of the mirror image in the angle.
h: the Ironic-python-agent decompresses the compressed image to the root partition.
i: the Ironic-python-agent switches to the root partition mount point through a chroma instruction, and installs grub, modify/etc/fstab, modify/etc/default/grub, etc.
j: and completing disk writing, and starting up the hard disk of the physical server.
The cloud mirror image is improved, effective files of the mirror image are extracted and packed into a compression packet to be made into a compression mirror image, and the compression mirror image is only 400-500M generally, so that the transmission speed of the mirror image is greatly reduced; secondly, modifying the mirror image of the memory file system to support the operations of partitioning, making a file system and installing grub on the bare computer system disk; when the user mirror image is uploaded to the cloud mirror image server, the attribute of the mirror image is set, the transmission speed is shortened, and the flexibility of deploying the operating system is improved.
Fig. 4 is a schematic structural diagram of an operating system deployment apparatus provided in an embodiment of the present application, and as shown in fig. 4, the apparatus in the embodiment of the present application includes: a first processing module 401, a control module 402, a second processing module 403 and a decompression module 404. The operating system deployment device may be the aforementioned Ironic1010 itself, or a chip or an integrated circuit that implements the function of the Ironic 1010. It should be noted here that the division of the first processing module 401, the control module 402, the second processing module 403 and the decompression module 404 is only a division of logical functions, and the two may be integrated or independent physically.
The system comprises a first processing module, a second processing module and a third processing module, wherein the first processing module is used for adding a memory file system mirror image and a compressed mirror image on a cloud mirror image service to a local node of a physical machine, and the compressed mirror image is a compressed mirror image obtained by extracting an effective file from a user mirror image;
the control module is used for controlling the physical machine to carry out pre-starting execution environment starting and loading a memory file system mirror image in a memory of the physical machine;
the second processing module is used for adding the compressed mirror image into a memory of the physical machine and carrying out partition operation on a system disk of the physical machine to obtain a root partition;
and the decompression module is used for decompressing the compressed mirror image to the corresponding root partition so as to realize the deployment of the operating system of the physical machine.
Optionally, before the first processing module adds the memory file system image and the compressed image on the cloud image service to the local node, the apparatus further includes:
and the compression module is used for extracting the effective files in the user mirror image through the virtualization management software to obtain a compressed mirror image.
Optionally, before the first processing module adds the memory file system image and the compressed image on the cloud image service to the local node, the apparatus further includes:
adding an attribute identifier for the compressed mirror image;
correspondingly, the second processing module is specifically configured to:
and performing partition operation and file system division operation according to the attribute identification of the compressed mirror image to obtain a root partition.
Optionally, the first processing module is specifically configured to:
and determining a partition format according to the starting mode of the physical machine, and performing partition operation on a system disk of the physical machine according to the partition format to obtain a root partition.
Optionally, before the second processing module adds the compressed image to the memory of the physical machine and performs a partition operation on the system disk of the physical machine to obtain the root partition, the apparatus further includes:
and the modification module is used for modifying the configuration of the virtual memory disk of the physical machine so as to support the partition operation of the physical machine.
Optionally, after the decompressing module decompresses the compressed image to the corresponding root partition, the apparatus further includes:
and the third processing module is used for installing a multi-operating-system starting program on the physical machine according to the decompressed compressed mirror image, modifying the configuration information and the system starting item, and starting the hard disk.
Fig. 5 is a schematic structural diagram of an operating system deployment device provided in an embodiment of the present application, where the operating system deployment device may be an Ironic, and the components shown herein, their connections and relationships, and their functions are merely examples, and do not limit implementations of the present application described and/or claimed herein.
As shown in fig. 5, the operating system deployment apparatus includes: a processor 501 and a memory 502, the various components being interconnected using different buses, and may be mounted on a common motherboard or in other manners as desired. The processor 501 may process instructions for execution within the operating system deployment device, including instructions for graphical information stored in or on a memory for display on an external input/output device (such as a display device coupled to an interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories, as desired. In fig. 5, one processor 501 is taken as an example.
The memory 502, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method of operating system deployment device in the embodiments of the present application (for example, the first processing module 401, the control module 402, the second processing module 403, and the decompression module 404 shown in fig. 4). The processor 501 executes various functional applications of the server and data processing by running non-transitory software programs, instructions, and modules stored in the memory 502, that is, implements the method of the operating system deployment device in the above-described method embodiments.
The operating system deploying device may further include: an input device 503 and an output device 504. The processor 501, the memory 502, the input device 503 and the output device 504 may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the operating system deployment apparatus, such as a touch screen, a keypad, a mouse, or a plurality of mouse buttons, a trackball, a joystick, or other input devices. Output device 504 may be an output device such as a display device of an operating system deployment apparatus. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
The operating system deployment device in the embodiment of the present application may be configured to execute the technical solutions in the method embodiments of the present application, and the implementation principle and the technical effect are similar, which are not described herein again.
Embodiments of the present application further provide a computer-readable storage medium, in which computer-executable instructions are stored, and when executed by a processor, the computer-executable instructions are used to implement any one of the operating system deployment methods described above.
The present application further provides a computer program product, which includes a computer program and is used for implementing the operating system deployment method described in any one of the above when the computer program is executed by a processor.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method of operating system deployment, comprising:
adding a memory file system mirror image and a compressed mirror image on a cloud mirror image service to a local node, wherein the compressed mirror image is a compressed mirror image obtained by extracting an effective file from a user mirror image;
controlling a physical machine to start a pre-starting execution environment, and loading the memory file system mirror image in the memory of the physical machine;
adding the compressed mirror image into a memory of the physical machine, and performing partition operation on a system disk of the physical machine to obtain a root partition;
and decompressing the compressed image to a corresponding root partition so as to realize the deployment of the operating system of the physical machine.
2. The method of claim 1, further comprising, prior to the adding the memory file system image and the compressed image on the cloud image service to the local node:
and extracting effective files in the user mirror image through virtualization management software to obtain a compressed mirror image.
3. The method of claim 1, prior to adding the memory file system image and the compressed image on the cloud image service to the local node, further comprising:
adding an attribute identifier for the compressed mirror image;
correspondingly, the performing a partition operation on the system disk of the physical machine to obtain a root partition includes:
and performing partition operation and file system division operation according to the attribute identification of the compressed mirror image to obtain a root partition.
4. The method of claim 1, wherein the partitioning the system disk of the physical machine to obtain a root partition comprises:
and determining a partition format according to the starting mode of the physical machine, and performing partition operation on a system disk of the physical machine according to the partition format to obtain a root partition.
5. The method of claim 1, wherein before the adding the compressed image to the memory of the physical machine and performing a partition operation on a system disk of the physical machine to obtain a root partition, the method further comprises:
modifying a configuration of a virtual memory disk of the physical machine to support a partition operation on the physical machine.
6. The method of any of claims 1 to 5, further comprising, after said decompressing the compressed image to the corresponding root partition:
and installing a multi-operating-system starting program on the physical machine according to the decompressed compressed mirror image, modifying configuration information and system starting items, and starting up the hard disk.
7. An operating system deployment apparatus, comprising:
the system comprises a first processing module, a second processing module and a third processing module, wherein the first processing module is used for adding a memory file system mirror image and a compressed mirror image on a cloud mirror image service to a local node of a physical machine, and the compressed mirror image is a compressed mirror image obtained by extracting an effective file from a user mirror image;
the control module is used for controlling a physical machine to carry out pre-boot execution environment boot, and loading the memory file system mirror image in the memory of the physical machine;
the second processing module is used for adding the compressed mirror image into the memory of the physical machine and carrying out partition operation on a system disk of the physical machine to obtain a root partition;
and the decompression module is used for decompressing the compressed image to the corresponding root partition so as to realize the deployment of the operating system of the physical machine.
8. An operating system deployment device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of operating system deployment of any one of claims 1 to 6.
9. A computer-readable storage medium having computer-executable instructions stored thereon for performing the method of operating system deployment of any one of claims 1 to 6 when executed by a processor.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the operating system deployment method of any one of claims 1 to 6 when executed by a processor.
CN202111063133.XA 2021-09-10 2021-09-10 Operating system deployment method, device, equipment and storage medium Pending CN115794132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111063133.XA CN115794132A (en) 2021-09-10 2021-09-10 Operating system deployment method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111063133.XA CN115794132A (en) 2021-09-10 2021-09-10 Operating system deployment method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115794132A true CN115794132A (en) 2023-03-14

Family

ID=85417160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111063133.XA Pending CN115794132A (en) 2021-09-10 2021-09-10 Operating system deployment method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115794132A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116661951A (en) * 2023-06-02 2023-08-29 北京首都在线科技股份有限公司 Mirror image file processing method and device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116661951A (en) * 2023-06-02 2023-08-29 北京首都在线科技股份有限公司 Mirror image file processing method and device, electronic equipment and storage medium
CN116661951B (en) * 2023-06-02 2024-05-14 北京首都在线科技股份有限公司 Mirror image file processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106445576B (en) Motherboard and its computer implemented method and the readable storage device of non-transient computer
US11132450B2 (en) Accessing file systems in a virtual environment
US9720719B2 (en) Method and system for optimizing virtual disk provisioning
TW200818011A (en) Method and apparatus for virtualization of appliances
CN104580399A (en) OpenStack and Spice-based cloud desktop implementation method
CN110825419B (en) Firmware refreshing method and device, electronic equipment and storage medium
CN112486522A (en) Deployment method and device of OpenStack bare machine with intelligent network card
CN115220797B (en) Operating system starting and deploying method, device, equipment, medium and program product
CN111209080A (en) Transparent transmission method for graphic processor
CN115269025A (en) Kernel quick starting method and device, electronic equipment and storage medium
WO2022199335A1 (en) Method, apparatus and device for controlling firmware upgrade of server component, and storage medium
CN111124437A (en) Bare computer resource configuration information acquisition method, system and equipment based on OpenStack
CN114185607A (en) Starting control method, device and equipment for PCI (peripheral component interconnect) equipment in ARM (advanced RISC machines) server
CN115794132A (en) Operating system deployment method, device, equipment and storage medium
CN113821220A (en) Installation method and device of linux operating system
WO2023066246A1 (en) Method and system for installing application on cloudphone, and client cloudphone
US11822499B1 (en) Dynamic slot mapping
US20230325198A1 (en) Coordinated boot synchronization and startup of information handling system subsystems
CN113703805A (en) Upgrading method, system, terminal and storage medium of arm64 architecture virtualization system
CN113296802B (en) Virtual machine hot upgrading method, host device and storage medium
CN114281442A (en) Cloud desktop client and method thereof
CN114281444A (en) Arrangement method for implementing cloud desktop client
US11238015B2 (en) Instant hyper-v streaming
CN106886373B (en) Physical machine and magnetic disk operation method and device thereof
CN114090329A (en) Server restarting method under full-unloading architecture and related equipment

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