CN112230940A - User mirror image making method and system based on Openstack bare computer service - Google Patents

User mirror image making method and system based on Openstack bare computer service Download PDF

Info

Publication number
CN112230940A
CN112230940A CN202010990360.6A CN202010990360A CN112230940A CN 112230940 A CN112230940 A CN 112230940A CN 202010990360 A CN202010990360 A CN 202010990360A CN 112230940 A CN112230940 A CN 112230940A
Authority
CN
China
Prior art keywords
operating system
user
server
openstack
controlling
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.)
Withdrawn
Application number
CN202010990360.6A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010990360.6A priority Critical patent/CN112230940A/en
Publication of CN112230940A publication Critical patent/CN112230940A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The invention relates to the technical field of servers, and provides a method and a system for making a user mirror image based on Openstack bare computer service, wherein the method comprises the following steps: controlling an operating system to be installed on a server appointed by a user, wherein the operating system is provided with a hardware driver; after the installation of the operating system is finished, bringing a server appointed by a user into a network starting environment, and copying the operating system installed in the server; and formatting the copied operating system according to the format requirement of the user image of the Openstack bare machine service, so that the normal operation of a cloud physical machine created by the bare machine service is ensured, the machine cannot be down due to driving and other problems, the customization of the user image is ensured, the requirement of an opentack community is met, and the community popularization is carried out.

Description

User mirror image making method and system based on Openstack bare computer service
Technical Field
The invention belongs to the technical field of servers, and particularly relates to a method and a system for making a user mirror image based on Openstack bare computer service.
Background
In cloud computing Openstack, linux system, CoreOS memory file system, docker container, bare computer (ironic) technology are widely used. Bare metal service (ironic), a product form providing computing resources for users in the cloud computing field; the method aims to meet the requirements of high-performance calculation, calculation service of direct access hardware, exclusive sharing of calculation resources and the like. In an application scene, one bare computer can be finally provided with an operating system to become a cloud physical computer; and the installation of the system for the cloud physical machine requires the support of user images.
At present, an operating system is installed for a bare computer in an Openstack production environment, so that the bare computer becomes a cloud physical computer and provides certain software service, and a user mirror image is needed. The DIB (disk-image-builder) user image making method provided by Openstack officer cannot well solve the problem of customization of client user images, especially the problem of hardware driving. The problem appears as: the mirror image manufactured by the DIB method is taken to a customer site to create a cloud physical machine, and an operating system of the cloud physical machine is lack of hardware drive and cannot run. When the operating system is not running, the cloud physical machine software service cannot be provided, which is obviously not the original design of Openstack and cannot meet the requirements of customers.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides the method for making the user mirror image based on the Openstack bare computer service, which can solve the problem that an operating system is lack of hardware drive and can meet the customization requirements of the user mirror image of a client.
The technical scheme provided by the invention is as follows: a method for making a user image based on Openstack bare metal service comprises the following steps:
controlling an operating system to be installed on a server appointed by a user, wherein the operating system is provided with a hardware driver;
after the installation of the operating system is finished, bringing a server appointed by a user into a network starting environment, and copying the operating system installed in the server;
and formatting the copied operating system according to the format requirement of the user image of the Openstack bare metal service.
As an improved scheme, the step of controlling to install the operating system on the server specified by the user, and installing the hardware driver on the operating system specifically includes the following steps:
manufacturing a system boot disk on the basis of an operating system version specified by a user;
after the system starting disc is manufactured, controlling to install an operating system on the server appointed by the user;
when the installation of the operating system is completed, controlling the execution of an operating system partition action on the operating system installed on the server;
and when the partition of the operating system is finished, installing a hardware driver for the operating system, and closing the server.
As an improved scheme, the step of incorporating a server specified by a user into a network boot environment after the installation of an operating system is completed, and copying the operating system installed in the server includes the following steps:
bringing the server specified by the user into a network starting environment, and setting PXE starting;
controlling a starting server and pulling a self-made memory file system (CoreOS) from the network starting environment;
controlling the pulled self-made memory file system CoreOS to run, and calling a pre-generated operating system copy tool;
and controlling to run the operating system copying tool and copying the installed operating system from the server disk.
As an improved scheme, the control installs the operating system on the server designated by the user, and the step of installing the hardware driver by the operating system further comprises the following steps:
and the operating system copying tool is generated in advance and is used for copying the operating system installed in the server to a specified position.
As an improved scheme, the operating system is installed on the server specified by the user through a U disk or a floppy disk;
the operating system is a Linux operating system or a windows operating system.
Another object of the present invention is to provide a system for making a user image based on an Openstack bare metal service, the system comprising:
the operating system installation module is used for controlling the installation of an operating system on a server appointed by a user, and the operating system is provided with a hardware driver;
the operating system copying module is used for bringing a server appointed by a user into a network starting environment after the operating system is installed, and copying the operating system installed in the server;
and the operating system formatting processing module is used for carrying out formatting operation on the copied operating system according to the format requirement of the user image of the Openstack bare computer service.
As an improved scheme, the operating system installation module specifically includes:
the system starting disc manufacturing module is used for manufacturing a system starting disc on the basis of the operating system version specified by the user;
the installation module is used for controlling the installation of an operating system on the server specified by the user after the system starting disc is manufactured;
the partition control module is used for controlling the execution of the partition action of the operating system on the operating system installed on the server when the installation of the operating system is finished;
and the hardware driver installation module is used for installing a hardware driver for the operating system and closing the server when the partition of the operating system is finished.
As an improved scheme, the operating system copy module specifically includes:
the network starting environment setting module is used for bringing the server specified by the user into a network starting environment and setting PXE starting;
the memory file system pulling module is used for controlling the starting server and pulling the self-made memory file system CoreOS from the network starting environment;
the operating system copying tool calling module is used for controlling the operation of the pulled self-made memory file system CoreOS and calling a pre-generated operating system copying tool;
and the copy operation module is used for controlling the operation of the operating system copy tool and copying the installed operating system from the server disk.
As an improvement, the system further comprises:
and the operating system copying tool generating module is used for generating an operating system copying tool in advance, and the operating system copying tool is used for copying the operating system installed in the server to a specified position.
As an improved scheme, the operating system is installed on the server specified by the user through a U disk or a floppy disk;
the operating system is a Linux operating system or a windows operating system.
In the embodiment of the invention, an operating system is controlled to be installed on a server designated by a user, and the operating system is provided with a hardware driver; after the installation of the operating system is finished, bringing a server appointed by a user into a network starting environment, and copying the operating system installed in the server; and formatting the copied operating system according to the format requirement of the user image of the Openstack bare machine service, so that the normal operation of a cloud physical machine created by the bare machine service is ensured, the machine cannot be down due to driving and other problems, the customization of the user image is ensured, the requirement of an opentack community is met, and the community popularization is carried out.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
FIG. 1 is a flowchart of an implementation of a method for making a user image based on Openstack bare metal service according to the present invention;
FIG. 2 is a flow chart of an implementation of the present invention for controlling an operating system installed on a server specified by a user, and the operating system is installed with a hardware driver;
FIG. 3 is a flowchart illustrating an implementation of incorporating a server specified by a user into a network boot environment and copying an operating system installed in the server when the installation of the operating system is completed according to the present invention;
FIG. 4 is a block diagram of a system for making a user image based on Openstack bare metal services according to the present invention;
FIG. 5 is a block diagram of an operating system installation module provided by the present invention;
FIG. 6 is a block diagram of an operating system copy module according to the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are merely for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby.
Fig. 1 is a flowchart of an implementation of a method for making a user image based on an Openstack bare metal service, which specifically includes the following steps:
in step S101, controlling to install an operating system on a server designated by a user, wherein the operating system is provided with a hardware driver;
in step S102, after the installation of the operating system is completed, bringing a server specified by a user into a network boot environment, and copying the operating system installed in the server;
in step S103, according to a format requirement of a user image of the Openstack bare metal service, performing a formatting operation on the copied operating system.
As shown in fig. 2, the step of controlling the installation of the operating system on the server specified by the user, where the installation of the hardware driver by the operating system specifically includes the following steps:
in step S201, a system boot disk is created based on the os version specified by the user;
in step S202, after the system boot disk is completely manufactured, controlling to install an operating system on the server specified by the user;
in step S203, when the installation of the operating system is completed, controlling the execution of an operating system partitioning action on the operating system installed on the server;
in step S204, when the partition of the operating system is completed, a hardware driver is installed for the operating system, and the server is shut down.
As shown in fig. 3, after the installation of the operating system is completed, the step of incorporating the server specified by the user into the network boot environment, and copying the operating system installed in the server includes the following steps:
in step S301, bringing the server specified by the user into a network boot environment, and setting PXE boot;
in step S302, controlling a boot server and pulling a self-made memory file system CoreOS from the network boot environment;
in step S303, controlling the pulled self-made memory file system CoreOS to run, and calling a pre-generated operating system copy tool;
in step S304, the operating system copying tool is controlled to run, and the installed operating system is copied from the server disk.
In the embodiment of the present invention, the step of controlling the installation of the operating system on the server specified by the user, and installing the hardware driver on the operating system further includes the following steps:
and the operating system copying tool is generated in advance and is used for copying the operating system installed in the server to a specified position.
In this embodiment, an operating system is installed on the server specified by the user via a usb disk or a floppy disk;
the operating system is a Linux operating system or a windows operating system.
In the embodiment of the present invention, the following can be implemented by the above method:
(1) the Openstack community DIB user mirror image making mode cannot completely meet the customized user mirror image requirement, and a new user mirror image making mode needs to be explored urgently;
(2) the new user mirror image making mode needs to meet the requirement of the system on customizable partition and solve the problem of mirror image drive;
(3) operating systems installed on the disks need to be copied out without damage;
(4) the copied operating system needs format conversion to meet the format requirement of the openstack community.
Fig. 4 is a block diagram illustrating a structure of a system for making a user image based on an Openstack bare metal service according to the present invention, where, for convenience of explanation, only the relevant portions of the system are shown.
The system for making the user mirror image based on the Openstack bare computer service comprises:
an operating system installation module 11, configured to control installation of an operating system on a server specified by a user, where the operating system is installed with a hardware driver;
an operating system copying module 12, configured to, after the installation of the operating system is completed, bring a server specified by a user into a network boot environment, and copy the operating system installed in the server;
and the operating system formatting processing module 13 is configured to perform formatting operation on the copied operating system according to a format requirement of a user image of the Openstack bare metal service.
As shown in fig. 5, the operating system installation module 11 specifically includes:
a system boot disk creation module 14 for creating a system boot disk based on the operating system version specified by the user;
the installation module 15 is used for controlling the installation of the operating system on the server specified by the user after the system boot disk is manufactured;
a partition control module 16, configured to control, when the installation of the operating system is completed, an execution of an operating system partition action on the operating system installed on the server;
and the hardware driver installation module 17 is configured to install a hardware driver for the operating system and close the server when the partition of the operating system is completed.
As shown in fig. 6, the os copy module 12 specifically includes:
a network start environment setting module 18, configured to bring the server specified by the user into a network start environment, and set PXE start;
a memory file system pull module 19, configured to control the boot server and pull a self-made memory file system CoreOS from the network boot environment;
an operating system copy tool calling module 20, configured to control the pulled homemade memory file system CoreOS to be run, and call a pre-generated operating system copy tool;
and the copy operation module 21 is configured to control the operating system copy tool to be run, and copy the installed operating system from the server disk.
In an embodiment of the present invention, the system further includes:
an operating system copy tool generation module 22 for generating an operating system copy tool in advance, the operating system copy tool being used for copying the operating system installed in the server to a specified location.
The functions of the modules are described in the above embodiments, and are not described herein again.
In the embodiment of the invention, an operating system is controlled to be installed on a server designated by a user, and the operating system is provided with a hardware driver; after the installation of the operating system is finished, bringing a server appointed by a user into a network starting environment, and copying the operating system installed in the server; and formatting the copied operating system according to the format requirement of the user image of the Openstack bare machine service, so that the normal operation of a cloud physical machine created by the bare machine service is ensured, the machine cannot be down due to driving and other problems, the customization of the user image is ensured, the requirement of an opentack community is met, and the community popularization is carried out.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (10)

1. A method for making a user image based on Openstack bare computer service is characterized by comprising the following steps:
controlling an operating system to be installed on a server appointed by a user, wherein the operating system is provided with a hardware driver;
after the installation of the operating system is finished, bringing a server appointed by a user into a network starting environment, and copying the operating system installed in the server;
and formatting the copied operating system according to the format requirement of the user image of the Openstack bare metal service.
2. The method for making a user image based on an Openstack bare metal service according to claim 1, wherein the step of controlling to install an operating system on a server specified by a user, and the step of installing a hardware driver to the operating system specifically includes the steps of:
manufacturing a system boot disk on the basis of an operating system version specified by a user;
after the system starting disc is manufactured, controlling to install an operating system on the server appointed by the user;
when the installation of the operating system is completed, controlling the execution of an operating system partition action on the operating system installed on the server;
and when the partition of the operating system is finished, installing a hardware driver for the operating system, and closing the server.
3. The method for making a user image based on an Openstack bare metal service according to claim 2, wherein the step of incorporating a server specified by a user into a network boot environment after the installation of the operating system is completed, and copying the operating system installed in the server includes the following steps:
bringing the server specified by the user into a network starting environment, and setting PXE starting;
controlling a starting server and pulling a self-made memory file system (CoreOS) from the network starting environment;
controlling the pulled self-made memory file system CoreOS to run, and calling a pre-generated operating system copy tool;
and controlling to run the operating system copying tool and copying the installed operating system from the server disk.
4. The method for making a user image based on Openstack bare metal service according to claim 3, wherein the step of controlling to install an operating system on a server specified by a user, and installing a hardware driver on the operating system further comprises the following steps:
and the operating system copying tool is generated in advance and is used for copying the operating system installed in the server to a specified position.
5. The method for making a user image based on Openstack bare metal service according to claim 3, wherein an operating system is installed on the server specified by the user through a U disk or a floppy disk;
the operating system is a Linux operating system or a windows operating system.
6. A system for making a user image based on an Openstack bare metal service, the system comprising:
the operating system installation module is used for controlling the installation of an operating system on a server appointed by a user, and the operating system is provided with a hardware driver;
the operating system copying module is used for bringing a server appointed by a user into a network starting environment after the operating system is installed, and copying the operating system installed in the server;
and the operating system formatting processing module is used for carrying out formatting operation on the copied operating system according to the format requirement of the user image of the Openstack bare computer service.
7. The Openstack bare metal service-based user mirroring production system according to claim 6, wherein the operating system installation module specifically comprises:
the system starting disc manufacturing module is used for manufacturing a system starting disc on the basis of the operating system version specified by the user;
the installation module is used for controlling the installation of an operating system on the server specified by the user after the system starting disc is manufactured;
the partition control module is used for controlling the execution of the partition action of the operating system on the operating system installed on the server when the installation of the operating system is finished;
and the hardware driver installation module is used for installing a hardware driver for the operating system and closing the server when the partition of the operating system is finished.
8. The Openstack bare metal service-based user mirroring production system according to claim 7, wherein the operating system copy module specifically comprises:
the network starting environment setting module is used for bringing the server specified by the user into a network starting environment and setting PXE starting;
the memory file system pulling module is used for controlling the starting server and pulling the self-made memory file system CoreOS from the network starting environment;
the operating system copying tool calling module is used for controlling the operation of the pulled self-made memory file system CoreOS and calling a pre-generated operating system copying tool;
and the copy operation module is used for controlling the operation of the operating system copy tool and copying the installed operating system from the server disk.
9. The Openstack bare metal service based user mirroring production system of claim 8, wherein the system further comprises:
and the operating system copying tool generating module is used for generating an operating system copying tool in advance, and the operating system copying tool is used for copying the operating system installed in the server to a specified position.
10. The Openstack bare metal service based user imaging system according to claim 8, wherein the operating system is installed on the server specified by the user through a usb disk or a floppy disk;
the operating system is a Linux operating system or a windows operating system.
CN202010990360.6A 2020-09-18 2020-09-18 User mirror image making method and system based on Openstack bare computer service Withdrawn CN112230940A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010990360.6A CN112230940A (en) 2020-09-18 2020-09-18 User mirror image making method and system based on Openstack bare computer service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010990360.6A CN112230940A (en) 2020-09-18 2020-09-18 User mirror image making method and system based on Openstack bare computer service

Publications (1)

Publication Number Publication Date
CN112230940A true CN112230940A (en) 2021-01-15

Family

ID=74107355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010990360.6A Withdrawn CN112230940A (en) 2020-09-18 2020-09-18 User mirror image making method and system based on Openstack bare computer service

Country Status (1)

Country Link
CN (1) CN112230940A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312064A (en) * 2021-06-01 2021-08-27 中国民航信息网络股份有限公司 Installation configuration method and device of physical machine and computer readable medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312064A (en) * 2021-06-01 2021-08-27 中国民航信息网络股份有限公司 Installation configuration method and device of physical machine and computer readable medium
CN113312064B (en) * 2021-06-01 2024-03-26 中国民航信息网络股份有限公司 Method and device for installing and configuring physical machine and computer readable medium

Similar Documents

Publication Publication Date Title
US8943496B2 (en) Providing a hosted appliance and migrating the appliance to an on-premise environment
US11922182B2 (en) Managing multi-single-tenant SaaS services
CN111614490B (en) Management system and method for managed container cluster based on top-level container cluster
CN107632937B (en) Method and device for testing virtual machine cluster and readable storage medium
CN110083399B (en) Applet running method, computer device and storage medium
CN110737512A (en) Cross-platform virtual machine online migration method and related components
CN114047925A (en) Method, device, equipment and storage medium for constructing isolated compiling environment
EP3435232A1 (en) Application behavior synchronization method and apparatus, terminal, and storage medium.
CN112230940A (en) User mirror image making method and system based on Openstack bare computer service
CN102207876B (en) Streaming client system base images
CN107133067A (en) Cloud platform dispositions method and device
CN114461380A (en) Virtual hardware configuration allocation method of cloud desktop system
CN107526838B (en) Method and device for database cluster capacity expansion
CN110928624A (en) Cloud desktop calling method and device for user terminal and terminal
CN107861761B (en) Starting method and system of physical host
CN103389909A (en) Rendering farm node virtualization deployment system and application thereof
CN115469807A (en) Disk function configuration method, device, equipment and storage medium
EP2588955A1 (en) Virtual machine merging method and system
EP4193225A1 (en) Method and system for providing engineering of an industrial device in a cloud computing environment
CN114217999A (en) Cloud desktop system and method
CN110569107A (en) Real-time online cloud migration method of autonomous controllable operating system
CN104281593A (en) Method for updating fan speed-control table
WO2022088088A1 (en) Application management method and system for terminal
CN115604101B (en) System management method and related equipment
US20230367574A1 (en) Method and mechanism for operating system image installation based on decoupled architecture

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210115