The invention discloses a method and
system for automatically adding a
host machine to a cloud platform. The method comprises the steps of assigning an
IP address to a physical
machine; acquiring the first data of the physical
machine, including hardware information of the physical
machine and connection relationship between a network card of the physical machine and a switch port; updating
network topology; restarting the physical machine after hardware configuration of the physical machine; assigning an
IP address for the physical machine again; installing an
operating system for the physical machine; conducing a basic configuration for the physical machine, switching a
network segment; and conducting an application deployment of the
host machine for the physical machine. By means of the method and
system for automatically adding the
host machine to the cloud platform, a
workflow for deploying the physical machine from a
bare machine to the host machine, a standardized installation configuration is automatically completed, an original cross-group or even the cross-departmental manual
workflow is replaced, the expansion speed of host machine resources of the cloud platform is accelerated, and the stability and
usability of the cloud platform are improved.