CN110795201A - Management method and device for server in cloud platform - Google Patents

Management method and device for server in cloud platform Download PDF

Info

Publication number
CN110795201A
CN110795201A CN201810866725.7A CN201810866725A CN110795201A CN 110795201 A CN110795201 A CN 110795201A CN 201810866725 A CN201810866725 A CN 201810866725A CN 110795201 A CN110795201 A CN 110795201A
Authority
CN
China
Prior art keywords
server
target
cloud platform
exclusive
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810866725.7A
Other languages
Chinese (zh)
Other versions
CN110795201B (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.)
Shenzhen Aijieyun Technology Co ltd
Original Assignee
Wangsu 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201810866725.7A priority Critical patent/CN110795201B/en
Publication of CN110795201A publication Critical patent/CN110795201A/en
Application granted granted Critical
Publication of CN110795201B publication Critical patent/CN110795201B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for managing a server in a cloud platform, wherein the method comprises the following steps: determining a server to which a target client belongs in a cloud platform as an exclusive server, wherein the exclusive server is a physical machine or a host machine; receiving a conversion instruction which is sent by a client and used for converting a target exclusive server; when the conversion instruction is a first instruction, converting the target exclusive server serving as a physical machine into a host machine; and when the conversion instruction is a second instruction, converting the target exclusive server serving as the host machine into a physical machine. In the embodiment of the invention, the server special for the client can be flexibly converted between the physical machine and the host machine, and the conversion can be completed only by one-key operation of the client, so that the operation is convenient and quick; the client can select the running state of the server according to the current requirement, and the same server can be used as a physical machine and a host machine, so that the cost can be saved.

Description

Management method and device for server in cloud platform
Technical Field
The invention relates to the technical field of cloud computing, in particular to a method and a device for managing a server in a cloud platform.
Background
With the rapid development of cloud computing, although cloud hosts become more and more mainstream, in some scenarios, such as scenarios requiring ultra-high performance computing, a physical server (hereinafter referred to as a "physical machine") can better meet performance requirements in these scenarios. Currently, cloud service providers are attempting to install virtualization software on physical machines to enable the physical machines to be used as hosts.
However, at present, the operation of installing the virtualization software on the physical machine is often completed manually, and the operation process is complicated, which results in low working efficiency and long time consumption. Meanwhile, even if the virtualization software is installed on the physical machines, another set of system is needed to manage the physical machines, the existing cloud platform cannot be used, the existing cloud platform resources can not be used, the existing cloud platform resources can be intercommunicated, and the like.
Moreover, after the client converts the physical machine into the host machine for use, the physical machine function may need to be reused, but at present, there is no method for freely switching the server between the physical machine mode and the host machine mode.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for managing a server in a cloud platform. The technical scheme is as follows:
in a first aspect, a method for managing servers in a cloud platform is provided, where the method is applied to a control server, and the method includes:
determining a server to which a target client belongs in a cloud platform as an exclusive server, wherein the exclusive server is a physical machine or a host machine;
receiving a conversion instruction which is sent by a client and used for converting a target exclusive server;
when the conversion instruction is a first instruction, converting the target exclusive server serving as a physical machine into a host machine;
and when the conversion instruction is a second instruction, converting the target exclusive server serving as the host machine into a physical machine.
Optionally, converting the target-specific server as a physical machine into a host machine, including:
connecting the target exclusive server through a configuration switch based on the first instruction;
formatting the target-specific server;
installing a cloud platform operating system for the target exclusive server;
and installing a cloud platform software installation package for the target exclusive server and configuring.
Optionally, the formatting the target-specific server comprises:
sending, to the target-specific server, a first IP address allocated for the target-specific server and an IP address of a tftp server;
the target exclusive server receives an IP address of the tftp server and sends a request for acquiring a formatted operating system to the tftp server;
and the target exclusive server receives the formatting operating system sent by the tftp server and formats the disk by using the formatting operating system.
Optionally, the formatting operating system includes a first start script, and the installing the cloud platform operating system for the target exclusive server includes:
after the target exclusive server formats a disk according to the first start script, sending cloud platform operating system request information to the control server according to the first start script;
receiving request information of the cloud platform operating system, and sending the cloud platform operating system to the target exclusive server;
the target exclusive server receives the cloud platform operating system, completes installation of the cloud platform operating system according to the first starting script and sends installation completion information to the control server.
Optionally, the cloud platform operating system includes a second start script, and the installing and configuring the cloud platform software installation package for the target exclusive server includes:
the target exclusive server is restarted after the cloud platform operating system is installed, the second starting script is triggered, and IP address request information is generated;
the target exclusive server sends the IP address request information to the control server;
receiving the IP address request information and sending a second IP address to the target exclusive server;
after the target exclusive server receives the second IP address, cloud platform software installation package request information is sent to the control server according to the second starting script;
the control server receives the cloud platform software installation package request information and sends a cloud platform software installation package to the target exclusive server;
and the target exclusive server receives the cloud platform software installation package and completes the installation and configuration of the cloud platform software.
Optionally, after installing and configuring the cloud platform software installation package for the target dedicated server, the method includes:
and receiving the second IP address sent by the target exclusive server.
Optionally, after receiving the second IP address sent by the target-specific server, the method includes:
and determining a client corresponding to the target exclusive server based on the second IP address, and dividing the target exclusive server into an exclusive set of the client.
Optionally, converting the target-specific server as a host machine into a physical machine, including:
migrating a virtual machine in the target-specific server based on the second instruction;
formatting the target-specific server;
installing a physical machine operating system for the target exclusive server;
and configuring a switch connected with the target exclusive server to enable the target exclusive server to be connected with a preset network.
In a second aspect, an apparatus for managing a server in a cloud platform is provided, the apparatus including:
the system comprises a determining unit, a processing unit and a processing unit, wherein the determining unit is used for determining a server to which a target client belongs in a cloud platform as an exclusive server, and the exclusive server is a physical machine or a host machine;
the receiving unit is used for receiving a conversion instruction which is sent by the client and used for converting the target exclusive server;
the first conversion unit is used for converting the target exclusive server serving as a physical machine into a host machine when the conversion instruction is a first instruction;
and the second conversion unit is used for converting the target exclusive server serving as the host machine into a physical machine when the conversion instruction is a second instruction.
Optionally, the first conversion unit is specifically configured to:
connecting the target exclusive server through a configuration switch based on the first instruction;
formatting the target-specific server;
installing a cloud platform operating system for the target exclusive server;
and installing a cloud platform software installation package for the target exclusive server and configuring.
Optionally, the first conversion unit is configured to:
sending, to the target-specific server, a first IP address assigned for the target-specific server and an IP address of a tftp server, so that the target-specific server requests a formatting operating system from the tftp server, and formats a disk using the formatting operating system.
Optionally, the formatted operating system includes a first start script;
the receiving unit is further configured to receive the cloud platform operating system request information sent by the target dedicated server according to the first start script;
the first conversion unit is used for sending a cloud platform operating system to the target exclusive server based on the cloud platform operating system request information so that the target exclusive server completes installation of the cloud platform operating system according to the first start script and sends installation completion information to the control server.
Optionally, the cloud platform operating system includes a second start script;
the receiving unit is further configured to receive IP address request information sent by the target dedicated server after the second start script is triggered due to restart;
the first conversion unit is further configured to send a second IP address to the target dedicated server based on the IP address request information;
the receiving unit is further configured to receive cloud platform software installation package request information sent by the target dedicated server according to the second start script;
the first conversion unit is further configured to send a cloud platform software installation package to the target dedicated server based on the cloud platform software installation package request information, so that the target dedicated server completes installation and configuration of the cloud platform software.
Optionally, the receiving unit is further configured to receive the second IP address sent by the target-specific server.
Optionally, the determining unit is further configured to determine, based on the second IP address, a client corresponding to the target dedicated server, and divide the target dedicated server into a dedicated set of the client.
Optionally, the second conversion unit is specifically configured to:
migrating a virtual machine in the target-specific server based on the second instruction;
formatting the target-specific server;
installing a physical machine operating system for the target exclusive server;
and configuring a switch connected with the target exclusive server to enable the target exclusive server to be connected with a preset network.
In the embodiment of the invention, the server special for the client can be flexibly converted between the physical machine and the host machine, and the conversion can be completed only by one-key operation of the client, so that the operation is convenient and quick; the client can select the running state of the server according to the current requirement, and the same server can be used as a physical machine and a host machine, so that the cost can be saved; after the physical machine is converted into the host machine, the virtual machine opened on the physical machine is still managed by the current cloud platform, can be communicated with the existing cloud resources, and uses the existing cloud resources and other cloud services.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a block diagram of a cloud platform according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for managing servers in a cloud platform according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for converting a physical machine into a host according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method for converting a host into a physical machine according to an embodiment of the present invention
Fig. 5 is a block diagram of a management apparatus for a server in a cloud platform according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a management method of a server in a cloud platform, which can be applied to the cloud platform shown in fig. 1. The cloud platform may include proprietary servers, switches, control servers, tftp servers, and cloud servers. The cloud platform comprises an exclusive area and a public resource pool, wherein an exclusive server belongs to a server in the exclusive area, and other general cloud servers belong to servers in the public resource pool. The dedicated server is owned by the dedicated client, and the working form thereof includes a physical machine form and a host machine form, that is, the dedicated server includes a dedicated physical machine and a dedicated host machine. When creating a virtual machine for a dedicated client, the creation needs to be performed within the dedicated server of the dedicated client. When creating a virtual machine for a generic customer without a proprietary physical machine, the creation may be performed within a cloud server within a common resource pool. The exclusive server can be connected with the control server through the switch. The dedicated server is dedicated to the dedicated client, so that the dedicated client can determine to perform mutual conversion between the physical machine and the host machine, that is, a conversion instruction can be sent to the control server through the client to instruct the control server to convert the physical machine into the host machine or convert the host machine into the physical machine. the tftp server can send a formatting operating system for the physical machine to be converted into the host machine, and is used for formatting a disk of the physical machine. After a physical machine is converted to a host machine, a virtual machine may be created thereon.
In the embodiment of the invention, the server special for the client can be flexibly converted between the physical machine and the host machine, and the conversion can be completed only by one-key operation of the client, so that the operation is convenient and quick; the client can select the running state of the server according to the current requirement, and the same server can be used as a physical machine and a host machine, so that the cost can be saved; after the physical machine is converted into the host machine, the virtual machine opened on the physical machine is still managed by the current cloud platform, can be communicated with the existing cloud resources, and uses the existing cloud resources and other cloud services.
The following describes the process of inter-conversion between the physical machine and the host machine in detail.
Referring to fig. 2, a flowchart of a management method for a server in a cloud platform according to an embodiment of the present invention is applied to a control server, that is, executed by the control server, and the method may specifically include the following steps.
Step 201, determining a server to which a target client belongs in a cloud platform as an exclusive server, where the exclusive server is a physical machine or a host machine.
In a specific implementation, the server can be allocated to the client according to the requirement of the client, and the server allocated to the client is configured in the cloud platform. After the server to which the client belongs is configured on the cloud platform, the server may be determined as a dedicated server, and a server identifier of the server and a corresponding client identifier may be stored. The initial state of the dedicated server configured in the cloud platform may be a physical machine or a host machine, or may be a bare machine. The bare computers configured on the cloud platform can be configured as physical machines or host machines by the control server according to the requirements of customers.
Step 202, receiving a conversion instruction sent by the client to convert the target dedicated server.
The conversion instruction sent by the client comprises a first instruction and a second instruction, wherein the first instruction is an instruction for converting a target exclusive server serving as a physical machine into a host machine, and the second instruction is a second instruction for converting the target exclusive server serving as the host machine into the physical machine.
Next, a process of converting a physical machine into a host machine will be described in detail.
Step 203, when the conversion instruction is a first instruction, converting the target exclusive server as a physical machine into a host machine.
As shown in fig. 3, step 203 specifically includes the following steps.
And 31, connecting the target exclusive server through a configuration switch based on the first instruction.
The client can convert any exclusive physical machine into the host machine through a first instruction sent by the client. The first instruction may include a server identifier, such as a server number, of a target dedicated server to be converted into a host, so that the control server can determine the server to be converted.
In a specific implementation, the connection state between the control server and the target-specific server can be controlled by configuring a switch between the control server and the target-specific server, and one or more switches can be connected between the control server and the target-specific server. When the target-specific server is used as a physical machine, the control server cannot be connected to the target-specific server through the switch, that is, the control server cannot communicate with the target-specific server. When the target exclusive server needs to be converted into the host, the target exclusive server needs to be connected with the control server, so that the control server controls the target exclusive server to be converted into the host. In the process of connecting the target exclusive server, the control server can use the VLAN ID of the port of the switch connected with the control server to configure the port of the switch connected with the target exclusive server, so that the two ports have the same VLAN ID, and the communication between the control server and the target exclusive server can be realized.
Step 32, formatting the target exclusive server.
After the control server is connected with the target exclusive server, the control server sets the target exclusive server to start from the network and restarts the target exclusive server. And after the target exclusive server is restarted, a pxe service built in a network card of the target exclusive server is started, and IP address request information is sent to the control server. After receiving the IP address request message, the dhcp service in the control server sends the first IP address allocated to the target dedicated server, and sends the IP address of the tftp server to the target dedicated server at the same time. The target exclusive server receives the first IP address and the IP address of the tftp server by using the network card, and configures the first IP address into the network card, so that the target exclusive server can communicate with other servers by using the first IP address. The target-specific server then sends a request to the tftp server to obtain a formatted operating system using the network card. After receiving the request for the formatted operating system, the tftp server sends the formatted operating system, such as the deploy _ os operating system, to the target-specific server. And the target exclusive server receives the formatting operating system sent by the tftp server by using the network card, and formats the disk by using the formatting operating system. The formatted operating system comprises a first startup script, and when the target exclusive server receives the formatted operating system, the first startup script is started to format a disk in the target exclusive server.
It should be noted that, in the embodiment of the present invention, the target dedicated server may also send a request for obtaining the formatted operating system to the control server, so that the control server sends the formatted operating system to the target dedicated server. The embodiment of the invention does not specifically limit the acquisition mode of the formatted operating system.
And step 33, installing a cloud platform operating system for the target exclusive server.
After the target exclusive server formats the disk according to the first start script, the target exclusive server may send request information of the cloud platform operating system to the control server according to the first start script. And the control server receives the request information of the cloud platform operating system and sends the cloud platform operating system to the target exclusive server. The target exclusive server receives the cloud platform operating system, completes installation of the cloud platform operating system according to the first starting script and sends installation completion information to the control server. The target-specific server may write and install the platform operating system in disk.
And step 34, installing a cloud platform software installation package for the target exclusive server and configuring the cloud platform software installation package.
And after receiving the installation completion information of the cloud platform operating system, the control server sets the target exclusive server to start from the disk and restarts the target exclusive server. The cloud platform operating system may include a second start script. And after the target exclusive server is restarted, triggering the second starting script to generate IP address request information. And the target exclusive server sends the IP address request information to the control server. And the control server receives the IP address request information, allocates a second IP address for the target exclusive server by using the dhcp service, and sends the second IP address to the target exclusive server. And after receiving the second IP address, the target exclusive server sends cloud platform software installation package request information to the control server according to the second starting script. And the control server receives the cloud platform software installation package request information and sends a cloud platform software installation package to the target exclusive server. And the target exclusive server receives the cloud platform software installation package and completes the installation and configuration of the cloud platform software according to the second start script.
After the target exclusive server completes the installation and configuration of the cloud platform software, the target exclusive server can be used as a host machine. The cloud platform software can realize any function of the cloud server, such as a function of installing a virtual machine, a function of using cloud resources, and the like, by presetting, wherein the function of using the cloud resources is a function of using a protective wall, for example. In order to implement the functions of the cloud platform software, corresponding configuration needs to be performed, for example, configuring a physical network interface bound to a virtual network card, configuring a virtual bridge driver, or configuring a virtual machine network address. The embodiment of the invention does not specifically limit the configuration of the cloud platform software after installation.
And step 35, receiving a second IP address sent by the target exclusive server.
After the target exclusive server completes the installation and configuration of the cloud platform software, the second start script starts the cloud platform operating system and sends a second IP address of the target exclusive server to the control server so as to inform the control server of the successful conversion of the host machine and report the target exclusive server to the control server. When the target exclusive server sends the second IP address to the control server, the server identifier of the target exclusive server may also be sent at the same time, so that after the control server receives the second IP address sent by the target exclusive server, the control server may determine, according to the server identifier of the target exclusive server, a client corresponding to the target exclusive server, that is, a client to which the target exclusive server belongs, thereby dividing the target exclusive server into an exclusive set of the clients. When creating a virtual machine for an exclusive client, the cloud platform may use a host in the exclusive set of the exclusive client as a host candidate, and when creating a virtual machine for another client, the host in the exclusive set of the exclusive client may not be used as a host candidate.
According to the embodiment of the invention, the conversion from the physical machine to the host machine can be automatically completed according to the current requirements of the customers, the operation is convenient and quick, in the process of converting the physical machine into the host machine, the physical machine is connected to the cloud platform for installation and configuration, after the physical machine is converted into the host machine, the virtual machine which is opened on the physical machine is still managed by the current cloud platform, the physical machine can be communicated with the existing cloud resources, and the existing cloud resources and other cloud services can be used.
The implementation of the invention can also convert the host machine into a physical machine, and the specific process comprises the following steps.
And 204, when the conversion instruction is a second instruction, converting the target exclusive server serving as the host machine into a physical machine.
As shown in fig. 4, step 204 may specifically include the following steps.
And 41, migrating the virtual machine in the target exclusive server based on the second instruction.
When the host machine needs to be converted into a physical machine, the virtual machine in the host machine can be migrated to other cloud servers.
Step 42, formatting the target specific server.
After all the virtual machines in the target exclusive server are migrated, the control server may send a formatting instruction to the target exclusive server, and after the target exclusive server receives the formatting instruction, the target exclusive server performs formatting processing on the disk therein, so as to delete the cloud platform operating system and the cloud platform software therein.
And 43, installing a physical machine operating system for the target exclusive server.
And the control server sends the physical machine operating system to the target exclusive server, and the target exclusive server carries out automatic installation after receiving the physical machine operating system.
And 44, configuring a switch connected with the target exclusive server to enable the target exclusive server to be connected with a preset network.
Each dedicated server of the same client can be located in the same virtual network, and after the target dedicated server is converted into a physical machine, the target dedicated server can be connected into the virtual network, so that the target dedicated server can communicate with other servers in the virtual network. The virtual network is configured with a VLAN ID so that the VLAN ID of the virtual network can be configured to a port of a switch connected to a target dedicated server, thereby connecting the target dedicated server to the virtual network.
In the embodiment of the invention, the server special for the client can be flexibly converted between the physical machine and the host machine, and the conversion can be completed only by one-key operation of the client, so that the operation is convenient and quick; the client can select the running state of the server according to the current requirement, and the same server can be used as a physical machine and a host machine, so that the cost can be saved; after the physical machine is converted into the host machine, the virtual machine opened on the physical machine is still managed by the current cloud platform, can be communicated with the existing cloud resources, and can use the existing cloud resources and other cloud services.
Referring to fig. 5, a block diagram of a management apparatus for a server in a cloud platform according to an embodiment of the present invention may be configured in a control server, or may be the control server itself, and the apparatus may specifically include a determining unit 501, a receiving unit 502, a first converting unit 503, and a second converting unit 504.
The determining unit 501 is configured to determine a server to which a target client belongs in the cloud platform as an exclusive server, where the exclusive server is a physical machine or a host machine.
The receiving unit 502 is configured to receive a conversion instruction for converting a target dedicated server sent by a client.
A first conversion unit 503, configured to convert the target dedicated server as a physical machine into a host machine when the conversion instruction is a first instruction.
A second conversion unit 504, configured to convert the target-specific server as a host into a physical machine when the conversion instruction is a second instruction.
Preferably, the first conversion unit 503 is specifically configured to:
connecting the target exclusive server through a configuration switch based on the first instruction;
formatting the target-specific server;
installing a cloud platform operating system for the target exclusive server;
and installing a cloud platform software installation package for the target exclusive server and configuring.
Preferably, the first conversion unit 503 is configured to:
sending, to the target-specific server, a first IP address assigned for the target-specific server and an IP address of a tftp server, so that the target-specific server requests a formatting operating system from the tftp server, and formats a disk using the formatting operating system.
Preferably, the formatted operating system comprises a first startup script;
the receiving unit 502 is further configured to receive the cloud platform operating system request information sent by the target dedicated server according to the first start script;
the first conversion unit 503 is configured to send a cloud platform operating system to the target dedicated server based on the cloud platform operating system request information, so that the target dedicated server completes installation of the cloud platform operating system according to the first start script and sends installation completion information to the control server.
Preferably, the cloud platform operating system comprises a second start script;
the receiving unit 502 is further configured to receive IP address request information sent by the target dedicated server after the second start script is triggered due to restart;
the first conversion unit 503 is further configured to send a second IP address to the target dedicated server based on the IP address request information;
the receiving unit 502 is further configured to receive cloud platform software installation package request information sent by the target dedicated server according to the second start script;
the first conversion unit 503 is further configured to send a cloud platform software installation package to the target dedicated server based on the cloud platform software installation package request information, so that the target dedicated server completes installation and configuration of the cloud platform software.
Preferably, the receiving unit 502 is further configured to receive the second IP address sent by the target-specific server.
Preferably, the determining unit 501 is further configured to determine a client corresponding to the target-specific server based on the second IP address, and divide the target-specific server into the specific set of clients.
Preferably, the second conversion unit 504 is specifically configured to:
migrating a virtual machine in the target-specific server based on the second instruction;
formatting the target-specific server;
installing a physical machine operating system for the target exclusive server;
and configuring a switch connected with the target exclusive server to enable the target exclusive server to be connected with a preset network.
In the embodiment of the invention, the server special for the client can be flexibly converted between the physical machine and the host machine, and the conversion can be completed only by one-key operation of the client, so that the operation is convenient and quick; the client can select the running state of the server according to the current requirement, and the same server can be used as a physical machine and a host machine, so that the cost can be saved; after the physical machine is converted into the host machine, the virtual machine opened on the physical machine is still managed by the current cloud platform, can be communicated with the existing cloud resources, and can use the existing cloud resources and other cloud services.
It should be noted that: in the foregoing embodiment, when the management device for the server in the cloud platform performs conversion, only the division of the functional units is illustrated, and in practical applications, the function distribution may be completed by different functional units according to needs, that is, the internal structure of the device is divided into different functional units, so as to complete all or part of the functions described above. In addition, the embodiment of the management device for the server in the cloud platform and the embodiment of the management method for the server in the cloud platform provided by the embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment and is not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (16)

1. A management method for a server in a cloud platform is applied to a control server, and comprises the following steps:
determining a server to which a target client belongs in a cloud platform as an exclusive server, wherein the exclusive server is a physical machine or a host machine;
receiving a conversion instruction which is sent by a client and used for converting a target exclusive server;
when the conversion instruction is a first instruction, converting the target exclusive server serving as a physical machine into a host machine;
and when the conversion instruction is a second instruction, converting the target exclusive server serving as the host machine into a physical machine.
2. The method of claim 1, wherein converting the target-specific server as a physical machine to a host machine comprises:
connecting the target exclusive server through a configuration switch based on the first instruction;
formatting the target-specific server;
installing a cloud platform operating system for the target exclusive server;
and installing a cloud platform software installation package for the target exclusive server and configuring.
3. The method of claim 2, wherein the formatting the target-specific server comprises:
sending, to the target-specific server, a first IP address allocated for the target-specific server and an IP address of a tftp server;
the target exclusive server receives an IP address of the tftp server and sends a request for acquiring a formatted operating system to the tftp server;
and the target exclusive server receives the formatting operating system sent by the tftp server and formats the disk by using the formatting operating system.
4. The method of claim 3, wherein the formatting operating system comprises a first boot script, and wherein installing the cloud platform operating system for the target-specific server comprises:
after the target exclusive server formats a disk according to the first start script, sending cloud platform operating system request information to the control server according to the first start script;
receiving request information of the cloud platform operating system, and sending the cloud platform operating system to the target exclusive server;
the target exclusive server receives the cloud platform operating system, completes installation of the cloud platform operating system according to the first starting script and sends installation completion information to the control server.
5. The method of claim 2, wherein the cloud platform operating system includes a second boot script, and wherein installing and configuring the cloud platform software installation package for the target-specific server comprises:
the target exclusive server is restarted after the cloud platform operating system is installed, the second starting script is triggered, and IP address request information is generated;
the target exclusive server sends the IP address request information to the control server;
receiving the IP address request information and sending a second IP address to the target exclusive server;
after the target exclusive server receives the second IP address, cloud platform software installation package request information is sent to the control server according to the second starting script;
the control server receives the cloud platform software installation package request information and sends a cloud platform software installation package to the target exclusive server;
and the target exclusive server receives the cloud platform software installation package and completes the installation and configuration of the cloud platform software.
6. The method of claim 5, wherein after installing and configuring the cloud platform software installation package for the target proprietary server, the method comprises:
and receiving the second IP address sent by the target exclusive server.
7. The method of claim 6, wherein said receiving a second IP address sent by the target-specific server comprises:
and determining a client corresponding to the target exclusive server based on the second IP address, and dividing the target exclusive server into an exclusive set of the client.
8. The method of claim 1, wherein converting the target-specific server as a host to a physical machine comprises:
migrating a virtual machine in the target-specific server based on the second instruction;
formatting the target-specific server;
installing a physical machine operating system for the target exclusive server;
and configuring a switch connected with the target exclusive server to enable the target exclusive server to be connected with a preset network.
9. An apparatus for managing a server in a cloud platform, the apparatus comprising:
the system comprises a determining unit, a processing unit and a processing unit, wherein the determining unit is used for determining a server to which a target client belongs in a cloud platform as an exclusive server, and the exclusive server is a physical machine or a host machine;
the receiving unit is used for receiving a conversion instruction which is sent by the client and used for converting the target exclusive server;
the first conversion unit is used for converting the target exclusive server serving as a physical machine into a host machine when the conversion instruction is a first instruction;
and the second conversion unit is used for converting the target exclusive server serving as the host machine into a physical machine when the conversion instruction is a second instruction.
10. The apparatus according to claim 9, wherein the first conversion unit is specifically configured to:
connecting the target exclusive server through a configuration switch based on the first instruction;
formatting the target-specific server;
installing a cloud platform operating system for the target exclusive server;
and installing a cloud platform software installation package for the target exclusive server and configuring.
11. The apparatus of claim 10, wherein the first conversion unit is configured to:
sending, to the target-specific server, a first IP address assigned for the target-specific server and an IP address of a tftp server, so that the target-specific server requests a formatting operating system from the tftp server, and formats a disk using the formatting operating system.
12. The apparatus of claim 11, wherein the formatted operating system comprises a first start-up script;
the receiving unit is further configured to receive the cloud platform operating system request information sent by the target dedicated server according to the first start script;
the first conversion unit is used for sending a cloud platform operating system to the target exclusive server based on the cloud platform operating system request information so that the target exclusive server completes installation of the cloud platform operating system according to the first start script and sends installation completion information to the control server.
13. The apparatus of claim 10, wherein the cloud platform operating system comprises a second start-up script;
the receiving unit is further configured to receive IP address request information sent by the target dedicated server after the second start script is triggered due to restart;
the first conversion unit is further configured to send a second IP address to the target dedicated server based on the IP address request information;
the receiving unit is further configured to receive cloud platform software installation package request information sent by the target dedicated server according to the second start script;
the first conversion unit is further configured to send a cloud platform software installation package to the target dedicated server based on the cloud platform software installation package request information, so that the target dedicated server completes installation and configuration of the cloud platform software.
14. The apparatus of claim 13, wherein the apparatus is a portable electronic device
The receiving unit is further configured to receive the second IP address sent by the target dedicated server.
15. The apparatus of claim 14,
the determining unit is further configured to determine, based on the second IP address, a client corresponding to the target exclusive server, and divide the target exclusive server into an exclusive set of the clients.
16. The apparatus according to claim 9, wherein the second conversion unit is specifically configured to:
migrating a virtual machine in the target-specific server based on the second instruction;
formatting the target-specific server;
installing a physical machine operating system for the target exclusive server;
and configuring a switch connected with the target exclusive server to enable the target exclusive server to be connected with a preset network.
CN201810866725.7A 2018-08-01 2018-08-01 Management method and device for servers in cloud platform Active CN110795201B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810866725.7A CN110795201B (en) 2018-08-01 2018-08-01 Management method and device for servers in cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810866725.7A CN110795201B (en) 2018-08-01 2018-08-01 Management method and device for servers in cloud platform

Publications (2)

Publication Number Publication Date
CN110795201A true CN110795201A (en) 2020-02-14
CN110795201B CN110795201B (en) 2024-03-26

Family

ID=69425589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810866725.7A Active CN110795201B (en) 2018-08-01 2018-08-01 Management method and device for servers in cloud platform

Country Status (1)

Country Link
CN (1) CN110795201B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735102A (en) * 2013-12-18 2015-06-24 广州岚萃贸易有限公司 Customer relation management system based on cloud platform and cloud computing
US20150347173A1 (en) * 2012-08-30 2015-12-03 Zte Corporation Method, system and device for managing software on virtual machine in cloud environment
CN106789327A (en) * 2017-01-10 2017-05-31 携程旅游信息技术(上海)有限公司 The automatic method and system that host is added for cloud platform
CN106982255A (en) * 2017-03-31 2017-07-25 联想(北京)有限公司 Physical server, cloud scheduler, cloud platform and the method for it

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150347173A1 (en) * 2012-08-30 2015-12-03 Zte Corporation Method, system and device for managing software on virtual machine in cloud environment
CN104735102A (en) * 2013-12-18 2015-06-24 广州岚萃贸易有限公司 Customer relation management system based on cloud platform and cloud computing
CN106789327A (en) * 2017-01-10 2017-05-31 携程旅游信息技术(上海)有限公司 The automatic method and system that host is added for cloud platform
CN106982255A (en) * 2017-03-31 2017-07-25 联想(北京)有限公司 Physical server, cloud scheduler, cloud platform and the method for it

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
党飞;江铭炎;袁东风;: "基于KVM的B/S架构虚拟化管理系统" *

Also Published As

Publication number Publication date
CN110795201B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
US10917291B2 (en) RAID configuration
CN108089913B (en) Virtual machine deployment method of super-fusion system
CN109558212B (en) Virtualization management method and system of physical equipment, physical equipment and medium
WO2014169870A1 (en) Virtual network element automatic loading and virtual machine ip address acquisition method and system, and storage medium
US20190007369A1 (en) Assigning ip addresses and configuration parameters in hyper-converged infrastructure
CN104639378A (en) Automatic server deployment method based on PXE (pre-boot execution environment)
CN104572372A (en) System and method for building server performance testing environment
US11875174B2 (en) Method and apparatus for virtual machine emulator upgrading virtualization emulator
KR20150108230A (en) Cluster construction method and apparatus thereof
CN114024853B (en) Hardware information collection method and system of bare metal node and related components
CN111124437A (en) Bare computer resource configuration information acquisition method, system and equipment based on OpenStack
EP3193253B1 (en) Method, apparatus and system for displaying names of virtual machine
CN111475172A (en) Bare machine deployment method and device
CN113419813B (en) Method and device for deploying bare engine management service based on container platform
CN114443073A (en) Device and method for rapidly deploying bare metal server
CN112948008B (en) Method for managing physical bare machine based on Ironic
CN108234174B (en) Management method and device of virtual network function
CN108737202A (en) A kind of host batch dispositions method, device and system
CN108667750B (en) Virtual resource management method and device
CN111200527B (en) Method for automatically discovering and deploying bare computer based on ironic
CN109495298B (en) Method and device for managing nodes in OpenStack system
CN115333933B (en) Automatic management method, medium and equipment for servers on machine room
CN110795201B (en) Management method and device for servers in cloud platform
CN114995888A (en) Intelligent network card deployment method, device and medium
CN115296994A (en) Starting configuration method, device and medium for pooling heterogeneous computing resources

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210803

Address after: 518000 b1-1302, building B, Kexing Science Park, No. 15, Keyuan Road, Science Park community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Applicant after: Shenzhen aijieyun Technology Co.,Ltd.

Address before: 5 / F, building a, Guangqi Cultural Plaza, 2899 Xietu Road, Xuhui District, Shanghai, 200030

Applicant before: WANGSU SCIENCE & TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant