CN106911500B - Physical machine configuration method and device and physical machine - Google Patents

Physical machine configuration method and device and physical machine Download PDF

Info

Publication number
CN106911500B
CN106911500B CN201710090666.4A CN201710090666A CN106911500B CN 106911500 B CN106911500 B CN 106911500B CN 201710090666 A CN201710090666 A CN 201710090666A CN 106911500 B CN106911500 B CN 106911500B
Authority
CN
China
Prior art keywords
user
physical machine
mirror image
server
basic environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710090666.4A
Other languages
Chinese (zh)
Other versions
CN106911500A (en
Inventor
苏保林
蒋旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201710090666.4A priority Critical patent/CN106911500B/en
Publication of CN106911500A publication Critical patent/CN106911500A/en
Application granted granted Critical
Publication of CN106911500B publication Critical patent/CN106911500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The application provides a configuration method and a configuration device of a physical machine and the physical machine, wherein the configuration method of the physical machine comprises the following steps: downloading and installing a standard mirror image from a mirror image storage server of a public cloud; acquiring a basic environment initialization configuration parameter of a user using a physical machine to the physical machine; interacting with a first server for realizing server operation automation in the public cloud, and generating a custom mirror image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine; uploading the user-defined mirror image corresponding to the user to the mirror image storage server, so that other physical machines of the user except the physical machine download and install the user-defined mirror image corresponding to the user from the mirror image storage server, and thus completing basic environment configuration of all the physical machines of the user. The method and the device simplify the operation of initializing the basic environment of the physical machine by the user, and improve the user experience.

Description

Physical machine configuration method and device and physical machine
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for configuring a physical machine, and a physical machine.
Background
A public cloud generally refers to a cloud that can be used by a third party provider for a user, and is generally available through the Internet (Internet), and the core attribute of the public cloud is a shared resource service. Generally, a system which is initially installed on a physical machine of a public cloud is an open-source native system, so that after a user purchases the physical machine of the public cloud, the native system needs to be adjusted based on own habits and requirements, basic software is installed, and finally, the online application is deployed.
Therefore, before the online application is deployed, the user needs to repeatedly perform operations of adjusting the native system and installing the basic software on each purchased physical machine to complete the initial configuration of each physical machine purchased by the user, so that the operation is very complicated, and the user experience is poor.
Content of application
The present application aims to solve at least one of the technical problems in the related art to some extent.
To this end, a first object of the present application is to propose a method of configuration of a physical machine. According to the method, a series of basic environment initialization operations on the physical machine of the user before the user deploys the online application can be integrated into the user-defined mirror image corresponding to the user, and then other physical machines of the user only need to install the user-defined mirror image corresponding to the user to obtain the initialized operating system, so that the operation of initializing the basic environment of the physical machine by the user is simplified, and the user experience is improved.
A second object of the present application is to propose a configuration device of a physical machine.
A third object of the present application is to propose a physical machine.
A fourth object of the present application is to propose a computer readable medium.
In order to achieve the above object, a method for configuring a physical machine according to an embodiment of the first aspect of the present application includes: downloading and installing a standard mirror image from a mirror image storage server of a public cloud; acquiring a basic environment initialization configuration parameter of a user using a physical machine to the physical machine; interacting with a first server for realizing server operation automation in the public cloud, and generating a custom mirror image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine; uploading the user-defined mirror image corresponding to the user to the mirror image storage server, so that other physical machines of the user except the physical machine download and install the user-defined mirror image corresponding to the user from the mirror image storage server, and thus completing basic environment configuration of all the physical machines of the user.
In the configuration method of a physical machine according to the embodiment of the present application, after downloading and installing a standard image from an image storage server of a public cloud, a physical machine obtains configuration parameters of a user using the physical machine for initializing a basic environment of the physical machine, interacts with a first server in the public cloud for automating server operations, generates a customized image corresponding to the user according to the configuration parameters of the physical machine for initializing the basic environment, and finally uploads the generated customized image corresponding to the user to the image storage server, so that other physical machines of the user except the physical machine can download and install the customized image corresponding to the user from the image storage server to complete basic environment configuration of all the physical machines of the user, thereby simplifying the operation of initializing the basic environment of the physical machine by the user, the user experience is improved.
In order to achieve the above object, a configuration apparatus of a physical machine according to an embodiment of the second aspect of the present application includes: the downloading module is used for downloading the standard mirror image from a mirror image storage server of the public cloud; the installation module is used for installing the standard mirror image downloaded by the downloading module; the system comprises an obtaining module, a configuration module and a configuration module, wherein the obtaining module is used for obtaining basic environment initialization configuration parameters of a user using a physical machine to the physical machine; the generating module is used for interacting with a first server for realizing server operation automation in the public cloud, and generating a custom mirror image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine obtained by the obtaining module; and the uploading module is used for uploading the user-defined mirror image corresponding to the user generated by the generating module to the mirror image storage server so that other physical machines of the user except the physical machine can download and install the user-defined mirror image corresponding to the user from the mirror image storage server, so as to complete the basic environment configuration of all the physical machines of the user.
In the configuration apparatus of a physical machine according to the embodiment of the present application, after a download module downloads a standard image from an image storage server of a public cloud, an installation module installs the standard image, an acquisition module acquires initial configuration parameters of a basic environment of a user using the physical machine for the physical machine, a generation module interacts with a first server in the public cloud for implementing automation of server operations, generates a customized image corresponding to the user according to the initial configuration parameters of the basic environment of the physical machine, and finally an upload module uploads the generated customized image corresponding to the user to the image storage server, so that other physical machines of the user except the physical machine can download and install the customized image corresponding to the user from the image storage server to complete basic environment configuration of all the physical machines of the user, therefore, the operation of initializing the basic environment of the physical machine by the user is simplified, and the user experience is improved.
To achieve the above object, a physical machine according to an embodiment of the third aspect of the present application includes: one or more processors; a memory; the input and output device is used for downloading the standard mirror image from a mirror image storage server of the public cloud; one or more programs, stored in the memory, that when executed by the one or more processors perform operations comprising: installing the standard mirror image downloaded by the input device; acquiring a basic environment initialization configuration parameter of a user using a physical machine to the physical machine; interacting with a first server for realizing server operation automation in the public cloud through the input and output device, and generating a custom mirror image corresponding to the user according to basic environment initialization configuration parameters of the physical machine; the input and output device is further configured to upload the user-defined image corresponding to the user to the image storage server, so that other physical machines of the user except the physical machine download and install the user-defined image corresponding to the user from the image storage server, and thus, the basic environment configuration of all the physical machines of the user is completed.
In the physical machine of the embodiment of the application, after the input/output device downloads the standard mirror image from the mirror image storage server of the public cloud, the processor installs the standard mirror image, obtains the initial configuration parameters of the user using the physical machine for the basic environment of the physical machine, interacts with the first server in the public cloud for realizing the automation of the server operation, generates the customized mirror image corresponding to the user according to the initial configuration parameters of the basic environment of the physical machine, and finally uploads the generated customized mirror image corresponding to the user to the mirror image storage server, so that other physical machines of the user except the physical machine can download and install the customized mirror image corresponding to the user from the mirror image storage server to complete the basic environment configuration of all the physical machines of the user, thereby simplifying the operation of the user for initializing the basic environment of the physical machine, the user experience is improved.
To achieve the above object, a computer-readable medium of an embodiment of the fourth aspect of the present application, on which a computer program is stored, is characterized in that the computer program, when executed by a processor, implements the method as described above.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart of one embodiment of a method for configuring a physical machine of the present application;
FIG. 2 is a flow chart of another embodiment of a method for configuring a physical machine of the present application;
FIG. 3 is a flow chart of yet another embodiment of a method for configuring a physical machine of the present application;
FIG. 4 is a schematic diagram of an embodiment of an application scenario of a configuration method of a physical machine according to the present application;
FIG. 5 is a schematic diagram of an embodiment of a configuration device of a physical machine according to the present application;
FIG. 6 is a schematic diagram of another embodiment of a configuration device of a physical machine according to the present application;
fig. 7 is a schematic structural diagram of an embodiment of a physical machine according to the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the application include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a flowchart of an embodiment of a configuration method of a physical machine according to the present application, and as shown in fig. 1, the configuration method of the physical machine may include:
step 101, downloading and installing a standard image from an image storage server of a public cloud.
The image storage server can be a Glance server, the Glance server is an OpenStack image service component, and the OpenStack is an open-source cloud computing management platform project; of course, the embodiment is not limited to this, and the image storage server of the public cloud may also be another server, which is not limited in this embodiment.
Step 102, obtaining the initial configuration parameters of the user using the physical machine to the basic environment of the physical machine.
In this embodiment, after the standard image is installed, the user using the physical machine can perform initialization configuration on the basic environment of the physical machine according to the business requirement of the user.
And 103, interacting with a first server for realizing automatic server operation in the public cloud, and generating a custom mirror image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine.
The first Server for implementing automation of Server operations in the public cloud may be a Server Operation Architecture (SOA) Server, although the embodiment is not limited thereto, and the first Server for implementing automation of Server operations in the public cloud may also be another Server, which is not limited thereto.
And 104, uploading the user-defined mirror image corresponding to the user to the mirror image storage server, so that other physical machines of the user except the physical machine download and install the user-defined mirror image corresponding to the user from the mirror image storage server, and completing basic environment configuration of all the physical machines of the user.
Fig. 2 is a flowchart of another embodiment of a configuration method of a physical machine according to the present application, as shown in fig. 2, in the embodiment shown in fig. 1, step 103 may include:
step 201, sending a call request to a first server in the public cloud for implementing automation of server operation.
Specifically, after the user performs initialization configuration on the basic environment of the physical machine, the user may trigger a request for invoking the first server by clicking a "self-defined mirror" button on the physical machine. Of course, this is only one way for the physical machine of the user to invoke the first server, and the physical machine may also invoke the first server in other ways, which is not limited in this embodiment.
Step 202, receiving a pre-boot execution Environment (PXE) restart task issued by the first server.
In this embodiment, after receiving the trigger request of the physical machine, the first server organizes the custom image parameters, and then issues a PXE restart task to the physical machine.
Step 203, executing the PXE restart task, and downloading the customized image parameters from the first server.
Step 204, after determining that the customized mirror image needs to be generated for the physical machine according to the customized mirror image parameters, calling a mirror image making script, and generating the customized mirror image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine.
Fig. 3 is a flowchart of a configuration method of a physical machine according to still another embodiment of the present application, as shown in fig. 3, after step 104, the method may further include:
step 301, performing a restart operation on the physical machine to recover the basic environment of the physical machine.
In the configuration method of the physical machine, after downloading and installing a standard mirror image from a mirror image storage server of a public cloud, the physical machine acquires a basic environment initialization configuration parameter of a user using the physical machine to the physical machine, then interacts with a first server for realizing server operation automation in the public cloud, generates a customized mirror image corresponding to the user according to the basic environment initialization configuration parameter of the physical machine, and finally uploads the generated customized mirror image corresponding to the user to the mirror image storage server, so that other physical machines except the physical machine of the user can download and install the customized mirror image corresponding to the user from the mirror image storage server to complete basic environment configuration of all the physical machines of the user, thereby simplifying the operation of initializing the basic environment of the physical machine by the user, the user experience is improved.
The configuration method of the physical machine provided in the embodiments shown in fig. 1 to fig. 3 of the present application may be applied to the scenario shown in fig. 4, and fig. 4 is a schematic diagram of an application scenario of the configuration method of the physical machine of the present application.
In fig. 4, C1, C2, …, Cn are n physical machines purchased by a user of the public cloud, the SOA server is a server for implementing automation of server operations in the public cloud, and the liance server is a mirror image storage server in the public cloud.
First, the user can download and install the standard image from the company server by using the physical machine C1, and then the user can perform initial configuration of the basic environment for C1, and after the initial configuration for C1 is completed, the user can trigger a request for calling the SOA server by clicking a button of the "custom image" on C1. Then self-defined image parameters can be organized by an SOA server, a PXE restart task is issued to the C1, the C1 starts to download the self-defined image parameters from the SOA server after executing the PXE restart task, the C1 starts to call an image making script after determining that the self-defined image needs to be generated for the physical machine C1 according to the self-defined image parameters, the self-defined image corresponding to the user is generated according to the basic environment initialization configuration parameters of the C1, the generated self-defined image is uploaded to a Glance server, and then the C1 is restarted to recover the C1 basic environment.
And when the generation of the self-defined mirror image is finished, other physical machines such as C2, … Cn and the like only need to download the self-defined mirror image from the Glance server for installation, and the deployment of the basic environment can be finished.
Through the configuration method of the physical machine, a user only needs to initialize and configure one physical machine, then the user-defined mirror image is generated based on the physical machine, and subsequently, the basic environment configuration of all the physical machines can be completed only by installing the user-defined mirror image on other physical machines, so that the operation of initializing the basic environment of the physical machine by the user is simplified, and the user experience is improved.
Fig. 5 is a schematic structural diagram of an embodiment of a configuration device of a physical machine according to the present application, where the configuration device of the physical machine in the embodiment may implement the processes of the embodiments shown in fig. 1 to fig. 3 of the present invention, and as shown in fig. 5, the configuration device of the physical machine may include: a downloading module 51, an installing module 52, an obtaining module 53, a generating module 54 and an uploading module 55;
the downloading module 51 is configured to download a standard image from an image storage server of a public cloud; the image storage server can be a Glance server, the Glance server is an OpenStack image service component, and the OpenStack is an open-source cloud computing management platform project; of course, the embodiment is not limited to this, and the image storage server of the public cloud may also be another server, which is not limited in this embodiment.
And an installation module 52 for installing the standard image downloaded by the download module 51.
An obtaining module 53, configured to obtain a configuration parameter initialized by a user using a physical machine for a basic environment of the physical machine; in this embodiment, after the installation module 52 installs the standard image, the user using the physical machine can perform initialization configuration on the basic environment of the physical machine according to the business requirement of the user, so that the obtaining module 53 can obtain the initialization configuration parameters of the user using the physical machine on the basic environment of the physical machine.
A generating module 54, configured to interact with a first server in the public cloud for implementing automation of server operations, and generate a customized image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine obtained by the obtaining module 53; the first server for implementing automation of server operations in the public cloud may be an SOA server, but the embodiment is not limited thereto, and the first server for implementing automation of server operations in the public cloud may also be another server, and the embodiment is not limited thereto.
An uploading module 55, configured to upload the customized image corresponding to the user generated by the generating module 54 to the image storage server, so that other physical machines of the user except the physical machine download and install the customized image corresponding to the user from the image storage server, so as to complete basic environment configuration of all the physical machines of the user.
Fig. 6 is a schematic structural diagram of another embodiment of a configuration apparatus of a physical machine according to the present application, and compared with the configuration apparatus of the physical machine shown in fig. 5, a difference is that, in the configuration apparatus of the physical machine shown in fig. 6, the generation module 54 may include: a sending submodule 541, a receiving submodule 542, an execution submodule 543 and a calling submodule 544;
the sending submodule 541 is configured to send a call request to a first server in the public cloud, where server operation automation is implemented; specifically, after the user completes the initial configuration of the basic environment of the physical machine, the user may click a "self-defined mirror image" button on the physical machine to trigger the sending submodule 541 to send a request for calling the first server. Of course, this is only one way for the physical machine of the user to invoke the first server, and the physical machine may also invoke the first server in other ways, which is not limited in this embodiment.
The receiving submodule 542 is configured to receive a PXE restart task issued by a first server; in this embodiment, after receiving the trigger request of the physical machine, the first server organizes the custom image parameters, and then issues a PXE restart task to the physical machine.
The execution submodule 543 is used for executing the PXE restart task received by the receiving submodule 542 and downloading the custom image parameters from the first server;
the invoking sub-module 544 is configured to invoke the image making script after determining that the customized image needs to be generated for the physical machine according to the customized image parameter downloaded by the executing sub-module 543, and generate the customized image corresponding to the user according to the basic environment initialization configuration parameter of the physical machine.
Further, the configuration device of the physical machine may further include:
and a restart module 56, configured to restart the physical machine after the upload module 55 uploads the user-defined image corresponding to the user to the image storage server, so as to recover the basic environment of the physical machine.
In the configuration device of the physical machine, after a downloading module 51 downloads a standard image from an image storage server of a public cloud, an installing module 52 installs the standard image, an obtaining module 53 obtains basic environment initialization configuration parameters of a user using the physical machine for the physical machine, a generating module 54 interacts with a first server in the public cloud for realizing server operation automation, generates a customized image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine, and finally an uploading module 55 uploads the generated customized image corresponding to the user to the image storage server, so that other physical machines except the physical machine of the user can download and install the customized image corresponding to the user from the image storage server to complete basic environment configuration of all the physical machines of the user, therefore, the operation of initializing the basic environment of the physical machine by the user is simplified, and the user experience is improved.
Fig. 7 is a schematic structural diagram of an embodiment of a physical machine according to the present application. The physical machine shown in fig. 7 is only an example, and should not bring any limitation to the function and the use range of the embodiment of the present application.
As shown in FIG. 7, the physical machine 12 is in the form of a general purpose computing device. The components of the physical machine 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
The physical machine 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by physical machine 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system Memory 28 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. The physical machine 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, and commonly referred to as a "hard drive"). Although not shown in FIG. 7, a disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read Only Memory (CD-ROM), a Digital versatile disk Read Only Memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally perform the functions and/or methodologies of the embodiments described herein.
The physical machine 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the physical machine 12, and/or with any devices (e.g., network card, modem, etc.) that enable the physical machine 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the physical machines 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 20. As shown in FIG. 7, the network adapter 20 communicates with the other modules of the physical machine 12 via the bus 18. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the physical machine 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, to implement the configuration method of the physical machine provided in the embodiments shown in fig. 1 to 3 of the present application.
The present application further provides a computer readable medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for configuring a physical machine according to the embodiments shown in fig. 1 to fig. 3 of the present application can be implemented.
The computer-readable media described above may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash Memory, an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic Gate circuit for implementing a logic function on a data signal, an asic having an appropriate combinational logic Gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), and the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (6)

1. A method of configuring a physical machine, comprising:
downloading and installing a standard mirror image from a mirror image storage server of a public cloud;
acquiring a basic environment initialization configuration parameter of a user using a physical machine to the physical machine;
interacting with a first server for realizing server operation automation in the public cloud, and generating a custom mirror image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine;
uploading the user-defined mirror image corresponding to the user to the mirror image storage server, so that other physical machines of the user except the physical machine download and install the user-defined mirror image corresponding to the user from the mirror image storage server, and thus completing basic environment configuration of all the physical machines of the user;
the interacting with a first server in the public cloud for realizing the automation of the server operation, and the generating of the user-defined mirror image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine comprises:
sending a call request to a first server in the public cloud for realizing the automation of the server operation;
receiving a pre-boot execution environment PXE restart task issued by the first server;
executing the PXE restart task, and downloading a custom image parameter from the first server;
and calling a mirror image making script after the user-defined mirror image needs to be generated for the physical machine according to the user-defined mirror image parameters, and generating the user-defined mirror image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine.
2. The method of claim 1, wherein after uploading the custom image corresponding to the user to the image storage server, further comprising:
and restarting the physical machine to recover the basic environment of the physical machine.
3. A configuration device for a physical machine, comprising:
the downloading module is used for downloading the standard mirror image from a mirror image storage server of the public cloud;
the installation module is used for installing the standard mirror image downloaded by the downloading module;
the system comprises an obtaining module, a configuration module and a configuration module, wherein the obtaining module is used for obtaining basic environment initialization configuration parameters of a user using a physical machine to the physical machine;
the generating module is used for interacting with a first server for realizing server operation automation in the public cloud, and generating a custom mirror image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine obtained by the obtaining module;
the uploading module is used for uploading the user-defined mirror image corresponding to the user generated by the generating module to the mirror image storage server so that other physical machines of the user except the physical machine can download and install the user-defined mirror image corresponding to the user from the mirror image storage server to complete basic environment configuration of all the physical machines of the user;
the generation module comprises:
the sending submodule is used for sending a calling request to a first server for realizing server operation automation in the public cloud;
the receiving submodule is used for receiving a pre-starting execution environment PXE restarting task issued by the first server;
the execution submodule is used for executing the PXE restart task received by the receiving submodule and downloading the self-defined mirror image parameters from the first server;
and the calling submodule is used for calling a mirror image making script after determining that the user-defined mirror image needs to be generated on the physical machine according to the user-defined mirror image parameters downloaded by the execution submodule, and generating the user-defined mirror image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine.
4. The apparatus of claim 3, further comprising:
and the restarting module is used for restarting the physical machine after the uploading module uploads the user-defined mirror image corresponding to the user to the mirror image storage server so as to recover the basic environment of the physical machine.
5. A physical machine, comprising:
one or more processors;
a memory;
the input and output device is used for downloading the standard mirror image from a mirror image storage server of the public cloud;
one or more programs, stored in the memory, that when executed by the one or more processors perform operations comprising:
installing the standard mirror image downloaded by the input and output device;
acquiring a basic environment initialization configuration parameter of a user using a physical machine to the physical machine;
interacting with a first server for realizing server operation automation in the public cloud through the input and output device, and generating a custom mirror image corresponding to the user according to basic environment initialization configuration parameters of the physical machine;
the input and output device is further configured to upload the user-defined image corresponding to the user to the image storage server, so that other physical machines of the user except the physical machine download and install the user-defined image corresponding to the user from the image storage server, so as to complete basic environment configuration of all the physical machines of the user;
the interacting with a first server in the public cloud for realizing the automation of the server operation, and the generating of the user-defined mirror image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine comprises:
sending a call request to a first server in the public cloud for realizing the automation of the server operation;
receiving a pre-boot execution environment PXE restart task issued by the first server;
executing the PXE restart task, and downloading a custom image parameter from the first server;
and calling a mirror image making script after the user-defined mirror image needs to be generated for the physical machine according to the user-defined mirror image parameters, and generating the user-defined mirror image corresponding to the user according to the basic environment initialization configuration parameters of the physical machine.
6. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-2.
CN201710090666.4A 2017-02-20 2017-02-20 Physical machine configuration method and device and physical machine Active CN106911500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710090666.4A CN106911500B (en) 2017-02-20 2017-02-20 Physical machine configuration method and device and physical machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710090666.4A CN106911500B (en) 2017-02-20 2017-02-20 Physical machine configuration method and device and physical machine

Publications (2)

Publication Number Publication Date
CN106911500A CN106911500A (en) 2017-06-30
CN106911500B true CN106911500B (en) 2020-12-04

Family

ID=59208501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710090666.4A Active CN106911500B (en) 2017-02-20 2017-02-20 Physical machine configuration method and device and physical machine

Country Status (1)

Country Link
CN (1) CN106911500B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391197A (en) * 2017-07-25 2017-11-24 郑州云海信息技术有限公司 The installation method and device of a kind of (SuSE) Linux OS
CN107438102B (en) * 2017-07-31 2020-04-03 国云科技股份有限公司 Cloud platform mirror image manufacturing system and implementation method thereof
CN108733402A (en) * 2018-05-17 2018-11-02 云宏信息科技股份有限公司 The method and device of quick Fabrication vdisk files
CN110221869B (en) * 2019-06-10 2022-10-18 北京百度网讯科技有限公司 Method and device for configuring data center operating environment
CN110908675B (en) * 2019-11-15 2023-10-24 北京百度网讯科技有限公司 Method and device for acquiring running environment and electronic equipment
CN113312064B (en) * 2021-06-01 2024-03-26 中国民航信息网络股份有限公司 Method and device for installing and configuring physical machine and computer readable medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1467632A (en) * 2002-06-12 2004-01-14 微软公司 Image-based software installation
CN1916861A (en) * 2006-07-21 2007-02-21 华为技术有限公司 Method for modifying configuration information of computer
CN102520989A (en) * 2011-12-01 2012-06-27 浪潮电子信息产业股份有限公司 Intelligent colony system deployment method based on U disk
CN102622247A (en) * 2012-02-27 2012-08-01 北京百度网讯科技有限公司 Basic input / output system (BIOS) information allocation system and method of server
CN102880515A (en) * 2012-09-07 2013-01-16 浪潮电子信息产业股份有限公司 Method for deploying virtual machine rapidly in smart cloud OS (operating system)
CN103092650A (en) * 2013-01-09 2013-05-08 华中科技大学 Virtual machine mirror image generating method and device based on software preinstallation in cloud environment
CN104866391A (en) * 2015-05-13 2015-08-26 三星电子(中国)研发中心 Terminal information backup method and apparatus based on incremental information system
CN105005471A (en) * 2015-06-24 2015-10-28 北京百度网讯科技有限公司 Method, device, server and system for modifying configuration parameters of BIOS
CN105138369A (en) * 2015-08-25 2015-12-09 北京百度网讯科技有限公司 Method and device for installing operation systems
CN105528237A (en) * 2015-12-10 2016-04-27 国云科技股份有限公司 Openstack-based physical machine system packaging method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160026492A1 (en) * 2014-07-24 2016-01-28 Samsung Electronics Co., Ltd. Electronic apparatus for executing virtual machine and method for executing virtual machine

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1467632A (en) * 2002-06-12 2004-01-14 微软公司 Image-based software installation
CN1916861A (en) * 2006-07-21 2007-02-21 华为技术有限公司 Method for modifying configuration information of computer
CN102520989A (en) * 2011-12-01 2012-06-27 浪潮电子信息产业股份有限公司 Intelligent colony system deployment method based on U disk
CN102622247A (en) * 2012-02-27 2012-08-01 北京百度网讯科技有限公司 Basic input / output system (BIOS) information allocation system and method of server
CN102880515A (en) * 2012-09-07 2013-01-16 浪潮电子信息产业股份有限公司 Method for deploying virtual machine rapidly in smart cloud OS (operating system)
CN103092650A (en) * 2013-01-09 2013-05-08 华中科技大学 Virtual machine mirror image generating method and device based on software preinstallation in cloud environment
CN104866391A (en) * 2015-05-13 2015-08-26 三星电子(中国)研发中心 Terminal information backup method and apparatus based on incremental information system
CN105005471A (en) * 2015-06-24 2015-10-28 北京百度网讯科技有限公司 Method, device, server and system for modifying configuration parameters of BIOS
CN105138369A (en) * 2015-08-25 2015-12-09 北京百度网讯科技有限公司 Method and device for installing operation systems
CN105528237A (en) * 2015-12-10 2016-04-27 国云科技股份有限公司 Openstack-based physical machine system packaging method

Also Published As

Publication number Publication date
CN106911500A (en) 2017-06-30

Similar Documents

Publication Publication Date Title
CN106911500B (en) Physical machine configuration method and device and physical machine
US11513809B2 (en) Kernel-integrated instance-specific operational resources with virtualization
US10387199B2 (en) Container chaining for automated process completion
US20170185431A1 (en) Method and apparatus for dynamically implementing application function
US9542174B2 (en) Deployment of software images with distinct configuration logic
US10282185B2 (en) Method and apparatus for firmware virtualization
CN111930521A (en) Method and device for deploying application, electronic equipment and readable storage medium
JP2018537783A (en) Run the application using pre-generated components
CN108897575B (en) Configuration method and configuration system of electronic equipment
WO2015192608A1 (en) Method for updating app in android system, terminal and storage medium
CN110647332A (en) Software deployment method and device based on container cloud
CN111865629B (en) Method, apparatus and computer program product for configuring service instances
CN107844306B (en) Application program repairing method and device, storage medium and terminal
CN108279882B (en) Framework generation method, device, equipment and computer readable medium
US20170033980A1 (en) Agent manager for distributed transaction monitoring system
CN106815055B (en) Method and system for dynamic layout of mobile application
US20190310882A1 (en) Multiple application instances in operating systems that utilize a single process for application execution
CN113900721A (en) Operating system starting method and device and electronic equipment
CN106020901A (en) Application entry configuration method and terminal
CN105468504A (en) Program test method and device
CN111885114A (en) Method, device and storage medium for upgrading application program interface module in gateway
CN113468067B (en) Application program debugging method and device, electronic equipment and computer readable medium
CN106951265B (en) Development environment building method and device
CN111782231B (en) Service deployment method and device
US20240078072A1 (en) Method and apparatus for displaying message box, terminal device and non-transitory computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant