CN107861761B - Starting method and system of physical host - Google Patents

Starting method and system of physical host Download PDF

Info

Publication number
CN107861761B
CN107861761B CN201711050681.2A CN201711050681A CN107861761B CN 107861761 B CN107861761 B CN 107861761B CN 201711050681 A CN201711050681 A CN 201711050681A CN 107861761 B CN107861761 B CN 107861761B
Authority
CN
China
Prior art keywords
physical host
block device
image file
host
management node
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
CN201711050681.2A
Other languages
Chinese (zh)
Other versions
CN107861761A (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 Qingyun Science And Technology Co ltd
Original Assignee
Beijing Qingyun 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 Qingyun Science And Technology Co ltd filed Critical Beijing Qingyun Science And Technology Co ltd
Priority to CN201711050681.2A priority Critical patent/CN107861761B/en
Publication of CN107861761A publication Critical patent/CN107861761A/en
Application granted granted Critical
Publication of CN107861761B publication Critical patent/CN107861761B/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/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a starting method and a system of a physical host, wherein the method comprises the following steps: the management node is in communication connection with the physical host and starts the physical host through PXE; the block device server exports the virtual host image file pre-stored in the memory into a first block device; the management node remotely accesses the physical host and controls the physical host to establish communication connection with the first block device; and the management node copies the data containing the virtual host image file of the first block of equipment to a hard disk of the physical host, adaptively modifies the data and starts the physical host. The invention has the beneficial effects that: 1. the cloud platform user can start the physical host by using the virtual host image file without preparing two sets of image libraries for the physical host and the virtual host, so that the storage space is saved, and the use and maintenance are convenient; 2. both the boot image and the virtual host image may be dynamically configured at deployment time.

Description

Starting method and system of physical host
Technical Field
The invention relates to the technical field of computers, in particular to a starting method and a starting system of a physical host.
Background
With the popularization and development of cloud computing technology, more and more applications and services are running on a virtual host created based on a virtual host image file. The user can create new virtual host image files for the virtual hosts according to the requirements in aspects of deployment, maintenance and the like. Virtual hosts can meet the needs of a large portion of applications, however, some applications, such as database services, high performance computing clusters, etc., need to run on physical hosts for performance considerations; still other applications may rely on special hardware devices or may require management, security, etc. to run on the physical host. However, there are distinct implementation mechanisms for physical hosts and virtual hosts, and they also have large differences in hardware configuration, system configuration, and network configuration. These differences result in virtual host image files not being directly applicable to the physical host.
To solve this problem, the mainstream method at present is to generate an image file suitable for the physical host by using an image production tool or an image conversion tool. The tools support common operating system releases, can generate image files in various formats, and are convenient to use. The virtual host image file is made into an ISO file and installed on the physical host, so that the physical host can be compatible with the virtual host image file, but a large amount of storage space is additionally occupied, the required processing time is longer, and the customization is poorer.
Disclosure of Invention
Aiming at the technical problems in the prior art, the invention provides a starting method and a starting system of a physical host.
The technical scheme for solving the technical problems is as follows: a starting method of a physical host comprises the following steps:
the management node is in communication connection with the physical host, starts the physical host through PXE, and enters a first system of the physical host;
the block device server exports a first virtual host image file pre-stored in a memory into a first block device;
the management node remotely accesses the physical host and controls the physical host to establish communication connection with the first block device;
and the management node copies the data containing the first virtual host image file of the first block of equipment to a hard disk of the physical host, adaptively modifies the data, restarts the physical host and enters a second system of the physical host.
The invention has the beneficial effects that:
1. a cloud platform user can start the physical host by using the virtual host image file without preparing two sets of image libraries for the physical host and the virtual host, so that the storage space is saved, and the use and the maintenance are convenient.
2. Both the boot image and the virtual host image may be dynamically configured at deployment time.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the adapting comprises: and executing a remote command, connecting the hard disk on the physical host computer or remotely, and modifying the data content of the hard disk.
The invention also provides another starting method of the physical host, which comprises the following steps:
the management node is in communication connection with the physical host, starts the physical host through PXE, and enters a first system of the physical host;
the block device server adaptively modifies a first virtual host image file which is stored in a memory in advance;
the block device server exports the modified first virtual host image file into a first block device;
the management node remotely accesses the physical host and controls the physical host to establish communication connection with the first block device;
and the management node copies the data of the first block of equipment containing the modified first virtual host image file to a hard disk of the physical host, restarts the physical host and enters a second system of the physical host.
The invention has the beneficial effects that:
1. a cloud platform user can start the physical host by using the virtual host image file without preparing two sets of image libraries for the physical host and the virtual host, so that the storage space is saved, and the use and the maintenance are convenient.
2. Both the boot image and the virtual host image may be dynamically configured at deployment time.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the block device server adaptively modifies the first virtual host image file pre-stored in the memory, specifically including:
the method comprises the steps that a block device server connects a first virtual image file stored in a memory in advance to a second block device of the block device server;
mounting the second block device to a directory of the block device server;
and configuring the second piece of equipment.
The invention also provides another starting method of the physical host, which comprises the following steps:
the management node is in communication connection with the physical host, starts the physical host through PXE, and enters a first system of the physical host;
the method comprises the steps that a block device server takes a first virtual host image file stored in a memory in advance as a back-end image file to create a second virtual host image file, and adaptively modifies the second virtual host image file;
the block device server exports the modified second virtual host image file into a first block device;
the management node remotely accesses the physical host and controls the physical host to establish communication connection with the first block device;
and the management node copies the data of the first block of equipment containing the modified second virtual host image file to a hard disk of the physical host, restarts the physical host and enters a second system of the physical host.
The invention has the beneficial effects that:
1. a cloud platform user can start the physical host by using the virtual host image file without preparing two sets of image libraries for the physical host and the virtual host, so that the storage space is saved, and the use and the maintenance are convenient.
2. Both the boot image and the virtual host image may be dynamically configured at deployment time.
3. The first virtual host image file in the memory is not modified, so that the first virtual host image file can be repeatedly used, and the maintenance cost is reduced.
4. The second virtual host image file only records the difference part of the first virtual host image file serving as the back-end image file, and the occupied storage space is small.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, adaptively modifying the second virtual host image file specifically includes:
connecting the second virtual host image file to a second block device of the block device server by the block device server;
mounting the second block device to a directory of the block device server;
and configuring the second piece of equipment.
Further, the starting the physical host by the PXE includes:
the management node connects the boot image file stored in the management node to a third piece of equipment of the management node;
mounting the third piece of equipment to a directory of the management node;
and executing the step of starting the physical host computer through the PXE based on the data of the third block device containing the starting image file.
Further, the method also includes:
the management node configuring the third block device;
and executing the step of starting the physical host computer through the PXE based on the data containing the boot image file of the configured third block device.
Further, the memory comprises a file server, a hard disk, an optical disk or a U disk.
In order to achieve the above object, the present invention further provides a system for starting a physical host, which is characterized by comprising a management node, a block device server, and a memory;
the block device server is used for exporting the first virtual host image file pre-stored in the memory into a first block device;
the management node is in communication connection with a physical host, and is configured to start the physical host through PXE, enter a first system of the physical host, and is further configured to remotely access the physical host, control establishment of communication connection between the physical host and the first block device, and also configured to copy data of the first block device, which contains the first virtual host image file, to a hard disk of the physical host, and adaptively modify, restart the physical host, and enter a second system of the physical host.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, the adapting comprises: and executing a remote command, connecting the hard disk on the physical host computer or remotely, and modifying the data content of the hard disk.
The invention also provides another starting system of the physical host, which comprises a management node, a block device server and a memory;
the block device server is used for adaptively modifying a first virtual host image file which is stored in the memory in advance and exporting the modified first virtual host image file into a first block device;
the management node is in communication connection with a physical host, and is configured to start the physical host through PXE to enter a first system of the physical host, and is further configured to remotely access the physical host, control establishment of communication connection between the physical host and the first block device, and also configured to copy data of the first block device, which contains the modified first virtual host image file, to a hard disk of the physical host, restart the physical host, and enter a second system of the physical host.
Further, the block device server is specifically configured to connect the first virtual image file pre-stored in the memory to a second block device of the block device server, mount the second block device to a directory of the block device server, and configure the second block device.
The invention also provides another starting system of the physical host, which comprises a management node, a block device server and a memory;
the block device server is used for creating a second virtual host image file by taking a first virtual host image file which is stored in the memory in advance as a back-end image file, adaptively modifying the second virtual host image file and exporting the modified second virtual host image file into a first block device;
the management node is in communication connection with a physical host, and is configured to start the physical host through PXE to enter a first system of the physical host, and is further configured to remotely access the physical host, control the physical host to establish communication connection with the first block device, and is further configured to copy data of the first block device, which contains the modified second virtual host image file, to a hard disk of the physical host, restart the physical host, and enter a second system of the physical host.
Further, the block device server is specifically configured to connect the second virtual host image file to a second block device of the block device server, mount the second block device to a directory of the block device server, and configure the second block device.
Further, the management node is specifically configured to connect the boot image file stored in the management node to a third device of the management node, mount the third device to a directory of the management node, and boot a physical host through PXE based on the data of the third device that includes the boot image file.
Further, the management node is further configured to configure the third block device, and start a physical host through the PXE based on the data of the configured third block device, which contains the boot image file.
Further, the memory comprises a file server, a hard disk, an optical disk or a U disk.
Drawings
Fig. 1 is a flowchart of a method for starting a physical host according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating booting a physical host over PXE according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for starting a physical host according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating an adaptive modification of a first virtual host image file by a block device server according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for starting a physical host according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating an adaptation of a second virtual host image file by a block device server according to an embodiment of the present invention;
fig. 7 is a block diagram of a boot system of a physical host according to an embodiment of the present invention;
fig. 8 is a block diagram of a boot system of a physical host according to an embodiment of the present invention;
fig. 9 is a block diagram of a boot system of a physical host according to an embodiment of the present invention.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
Fig. 1 is a flowchart of a method for starting a physical host according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
101. the management node is in communication connection with the physical host, starts the physical host through PXE, and enters a first system of the physical host;
specifically, PXE (preboot execution environment) is the latest technology developed by Intel corporation, and includes a server side and a client side, in this embodiment, the client side is a physical host, the server side is a management node, and in a PXE starting mode, the management node may download an image from a remote server through a network, and thus start the physical host through the network.
Optionally, in this embodiment, as shown in fig. 2, the starting of the physical host over the PXE includes:
201. the management node connects the boot image file stored in the management node to a third piece of equipment of the management node;
specifically, the management node may connect the boot image file in the qcow2 format to a block device (block device) of the management node by executing the disk image export command qemu-nbd, so that the operation on the block device may be reflected in the boot image file.
202. Mounting the third piece of equipment to a directory of the management node;
203. and executing the step of starting the physical host computer through the PXE based on the data of the third block device containing the starting image file.
Optionally, in this embodiment, after the management node connects the boot image file stored in the management node to a third piece of equipment of the management node, the third piece of equipment is configured;
and executing the step of starting the physical host computer through the PXE based on the data containing the boot image file of the configured third block device.
Specifically, after the block device is mounted to the directory of the management node, the management node may modify the start-up image file as if the local file is operated. For example, by executing tune2fs commands to adjust file system UUID, configure SSH services, configure networks, etc., physical hosts that are booted via PXE after configuration can be accessed remotely.
102. The block device server exports a first virtual host image file pre-stored in a memory into a first block device;
specifically, for example, the block device server may export a hard disk image in qcow2 format to the block device by executing the nbd-server. The block device server is typically co-located with the memory and communicates with the management node. The first Block Device adopts a Network Block Device (Network Block Device).
Optionally, in this embodiment, the storage is a file server, a hard disk, an optical disk, a usb disk, or other storage media.
103. The management node remotely accesses the physical host and controls the physical host to establish communication connection with the first block device;
104. and the management node copies the data containing the first virtual host image file of the first block of equipment to a hard disk of the physical host, adaptively modifies the data, restarts the physical host and enters a second system of the physical host.
Specifically, the physical host and the virtual host have different implementation mechanisms, and they have great differences in hardware configuration, system configuration, and network configuration, so that the physical host cannot be directly compatible with the virtual host image file, and in step 104, after the first virtual host image file is adaptively modified, the physical host can be compatible with the virtual host image file.
Optionally, in this embodiment, the adaptive modifying includes: and executing a remote command, connecting the hard disk on the physical host computer or remotely, and modifying the data content of the hard disk.
Specifically, the adaptive modification includes the following two ways:
1. executing the remote command, updating the configuration or installation program on the physical host. For example, the management node accesses the physical host through the SSH service, and may implement expanding the file system storage space by executing fdisk, e2fsck, resize2fs, and other commands according to the hard disk space, loading the MegaRAID series SAS controller module into initramfs through draut command, adjusting the physical host time through date command, and the like.
2. The configuration or installation program is updated by remotely operating the physical hard disk. For example, the management node uses the ISCSI protocol to remotely connect a physical host hard disk and mount the physical host hard disk to a local directory, and then can modify the data of the physical host hard disk as operating a local file, thereby implementing configuration of a file system, a host login mode, a network and the like, and installation of programs of network bond configuration tools, such as ifenslave and zabbix agent monitoring service.
Because the virtual host image file is usually large, the original image file is copied on the physical host, and the image data is modified on the management node by executing a remote command or remotely operating a physical hard disk, so that the physical host resources are fully utilized, and the configuration flexibility is greatly improved.
After the modification is completed, the hard disk starts the physical host, and then the physical host can be started through the virtual host image file.
Optionally, as an embodiment of the present invention, fig. 3 is a flowchart of a starting method of another physical host provided in the embodiment of the present invention, and as shown in fig. 3, the method includes the following steps:
301. the management node is in communication connection with the physical host, starts the physical host through PXE, and enters a first system of the physical host;
specifically, PXE (preboot execution environment) is the latest technology developed by Intel corporation, and includes a server side and a client side, in this embodiment, the client side is a physical host, the server side is a management node, and in a PXE starting mode, the management node may download an image from a remote server through a network, and thus start the physical host through the network.
302. The block device server adaptively modifies a first virtual host image file which is stored in a memory in advance;
specifically, the adaptive modification mainly includes configuration of a file system, a host login mode, a network and the like of the first virtual host image file, and installation of programs such as an ifenslave and a zabbixagent monitoring service of a network bond configuration tool. The block device server is typically disposed at the management node, and the block device server is typically co-located with the memory and in communication with the management node.
303. The block device server exports the modified first virtual host image file into a first block device;
specifically, for example, the block device server may export a hard disk image in qcow2 format to the block device by executing the nbd-server.
304. The management node remotely accesses the physical host and controls the physical host to establish communication connection with the first block device;
305. and the management node copies the data of the first block of equipment containing the modified first virtual host image file to a hard disk of the physical host, restarts the physical host and enters a second system of the physical host.
Optionally, in this embodiment, as shown in fig. 4, the step 302 specifically includes:
401. the method comprises the steps that a block device server connects a first virtual image file stored in a memory in advance to a second block device of the block device server;
specifically, the block device server may connect the first virtual image file in the qcow2 format to a second block device (block device) of the block device server by executing the disk image export command qemu-nbd, so that the operation on the second block device may be reflected in the first virtual image file.
402. Mounting the second block device to a directory of the block device server;
403. and configuring the second piece of equipment.
Specifically, the configuration operation includes configuration of a file system, a host login method, a network and the like, and installation of programs such as network bond configuration tools, namely, an ifenslave and a zabbix agent monitoring service.
Optionally, as an embodiment of the present invention, fig. 5 is a flowchart of a starting method of another physical host provided in the embodiment of the present invention, and as shown in fig. 5, the method includes the following steps:
501. the management node is in communication connection with the physical host, starts the physical host through PXE, and enters a first system of the physical host;
specifically, PXE (preboot execution environment) is the latest technology developed by Intel corporation, and includes a server side and a client side, in this embodiment, the client side is a physical host, the server side is a management node, and in a PXE starting mode, the management node may download an image from a remote server through a network, and thus start the physical host through the network.
502. The method comprises the steps that a block device server takes a first virtual host image file stored in a memory in advance as a back-end image file to create a second virtual host image file, and adaptively modifies the second virtual host image file;
specifically, for example, the block device server creates the second virtual host image file by using the first virtual host image file as the backend image file through the disk mirroring tool qemu-img. The virtual host image file records only the portion of the difference from the backend image file. The block device server is typically disposed at the management node, and the block device server is typically co-located with the memory and in communication with the management node.
503. The block device server exports the modified second virtual host image file into a first block device;
specifically, for example, the block device server may export a hard disk image in qcow2 format to the block device by executing the nbd-server.
504. The management node remotely accesses the physical host and controls the physical host to establish communication connection with the first block device;
505. and the management node copies the data of the first block of equipment containing the modified second virtual host image file to a hard disk of the physical host, restarts the physical host and enters a second system of the physical host.
Optionally, in this embodiment, as shown in fig. 6, the adaptively modifying the second virtual host image file specifically includes:
601. the block device server connecting the second virtual image file to a second block device of the block device server;
specifically, the block device server may connect the second virtual image file in the qcow2 format to a second block device (block device) of the block device server by executing the disk image export command qemu-nbd, so that the operation on the second block device may be reflected in the second virtual image file.
602. Mounting the second block device to a directory of the block device server;
603. and configuring the second piece of equipment.
Specifically, the configuration operation includes configuration of a file system, a host login method, a network and the like, and installation of programs such as network bond configuration tools, namely, an ifenslave and a zabbix agent monitoring service.
Correspondingly, the present invention further provides a system for starting a physical host, as shown in fig. 7, the system includes a management node, a block device server, and a memory;
the block device server is configured to export a first virtual host image file pre-stored in the memory to the first block device.
The management node is in communication connection with a physical host, and is configured to start the physical host through PXE, and is further configured to remotely access the physical host, control establishment of communication connection between the physical host and a first block device, and copy data of the first block device, which contains the first virtual host image file, to a hard disk of the physical host, and adaptively modify and restart the physical host to enter a second system of the physical host.
Specifically, the block device server may export a hard disk image in qcow2 format to the block device by executing the nbd-server. The block device server is typically co-located with the memory and communicates with the management node. The first Block Device adopts a Network Block Device (Network Block Device).
Optionally, in this embodiment, as shown in fig. 8, the management node is specifically configured to connect the boot image file stored in the management node to a third block device of the management node, mount the third block device to a directory of the management node, and boot a physical host through PXE based on data of the third block device that includes the boot image file.
Optionally, in this embodiment, the management node is further configured to configure the third block device, and start a physical host over the PXE based on the data of the configured third block device, which includes the boot image file.
Specifically, after the block device is mounted to the directory of the management node, the management node may modify the start-up image file as if the local file is operated. For example, by executing tune2fs commands to adjust file system UUID, configure SSH services, configure networks, etc., a physical host may be remotely accessible after configuration, and if not, the physical host uses default configuration.
Optionally, in this embodiment, the memory includes a file server, a hard disk, an optical disk, or a usb disk.
Optionally, in this embodiment, the adaptive modification includes the following two ways:
1. executing the remote command, updating the configuration or installation program on the physical host. For example, the management node accesses the physical host through the SSH service, and may implement expanding the file system storage space by executing fdisk, e2fsck, resize2fs, and other commands according to the hard disk space, loading the MegaRAID series SAS controller module into initramfs through draut command, adjusting the physical host time through date command, and the like.
2. The configuration or installation program is updated by remotely operating the physical hard disk. For example, the management node uses the ISCSI protocol to remotely connect a physical host hard disk and mount the physical host hard disk to a local directory, and then can modify the data of the physical host hard disk as operating a local file, thereby implementing configuration of a file system, a host login mode, a network and the like, and installation of programs of network bond configuration tools, such as ifenslave and zabbix agent monitoring service.
Because the virtual host image file is usually large, the original image file is copied on the physical host, and the image data is modified on the management node by executing a remote command or remotely operating a physical hard disk, so that the physical host resources are fully utilized, and the configuration flexibility is greatly improved.
After the modification is completed, the hard disk starts the physical host, and then the physical host can be started through the virtual host image file.
As shown in fig. 7, another boot system of a physical host according to an embodiment of the present invention includes a management node, a block device server, and a memory;
the block device server is used for adaptively modifying a first virtual host image file which is stored in the memory in advance and exporting the modified first virtual host image file into a first block device;
the management node is in communication connection with a physical host, and is configured to start the physical host through PXE to enter a first system of the physical host, and is further configured to remotely access the physical host, control establishment of communication connection between the physical host and the first block device, and also configured to copy data of the first block device, which contains the modified first virtual host image file, to a hard disk of the physical host, restart the physical host, and enter a second system of the physical host.
Optionally, in this embodiment, as shown in fig. 9, the block device server is specifically configured to connect the first virtual image file pre-stored in the memory to a second block device of the block device server, mount the second block device to a directory of the block device server, and configure the second block device.
Optionally, in this embodiment, the management node is specifically configured to connect the boot image file stored in the management node to a third device of the management node, mount the third device to a directory of the management node, and start the physical host through the PXE based on the data of the third device, which includes the boot image file.
Optionally, in this embodiment, the management node is further configured to configure the third block device, and start a physical host over the PXE based on the data of the configured third block device, which includes the boot image file.
As shown in fig. 7, another boot system of a physical host according to an embodiment of the present invention includes a management node, a block device server, and a memory;
the block device server is used for creating a second virtual host image file by taking a first virtual host image file which is stored in the memory in advance as a back-end image file, adaptively modifying the second virtual host image file and exporting the modified second virtual host image file into a first block device;
the management node is in communication connection with a physical host, and is configured to start the physical host through PXE to enter a first system of the physical host, and is further configured to remotely access the physical host, control the physical host to establish communication connection with the first block device, and is further configured to copy data of the first block device, which contains the modified second virtual host image file, to a hard disk of the physical host, restart the physical host, and enter a second system of the physical host.
Optionally, in this embodiment, as shown in fig. 9, the block device server is specifically configured to connect the second virtual host image file to a second block device of the block device server, mount the second block device to a directory of the block device server, and configure the second block device.
Optionally, in this embodiment, the management node is specifically configured to connect the boot image file stored in the management node to a third device of the management node, mount the third device to a directory of the management node, and start the physical host through the PXE based on the data of the third device, which includes the boot image file.
Optionally, in this embodiment, the management node is further configured to configure the third block device, and start a physical host over the PXE based on the data of the configured third block device, which includes the boot image file.
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 (12)

1. A starting method of a physical host is characterized by comprising the following steps:
the management node is in communication connection with the physical host, starts the physical host through PXE, and enters a remote system of the physical host;
the block device server exports a first virtual host image file pre-stored in a memory into a first block device;
the management node remotely accesses the physical host and controls the physical host to establish communication connection with the first block device;
the management node copies the data containing the first virtual host image file of the first block of equipment to a hard disk of the physical host, adaptively modifies the data, restarts the physical host and enters a local system of the physical host;
the adaptive modification comprises the following two ways: executing remote commands, updating configuration or installation programs on a physical host or by remotely operating a physical hard disk.
2. The method of claim 1, wherein the adapting comprises: and executing a remote command, connecting the hard disk on the physical host computer or remotely, and modifying the data content of the hard disk.
3. A starting method of a physical host is characterized by comprising the following steps:
the management node is in communication connection with the physical host, starts the physical host through PXE, and enters a remote system of the physical host;
the block device server adaptively modifies a first virtual host image file which is stored in a memory in advance;
the block device server exports the modified first virtual host image file into a first block device;
the management node remotely accesses the physical host and controls the physical host to establish communication connection with the first block device;
the management node copies the data of the first block of equipment containing the modified first virtual host image file to a hard disk of the physical host, restarts the physical host and enters a local system of the physical host;
the block device server connects a first virtual image file pre-stored in a memory to a second block device of the block device server, mounts the second block device to a directory of the block device server, and configures the second block device.
4. A starting method of a physical host is characterized by comprising the following steps:
the management node is in communication connection with the physical host, starts the physical host through PXE, and enters a remote system of the physical host;
the method comprises the steps that a block device server takes a first virtual host image file stored in a memory in advance as a back-end image file to create a second virtual host image file, and adaptively modifies the second virtual host image file;
the block device server exports the modified second virtual host image file into a first block device;
the management node remotely accesses the physical host and controls the physical host to establish communication connection with the first block device;
the management node copies the data of the first block of equipment containing the modified second virtual host image file to a hard disk of the physical host, restarts the physical host and enters a local system of the physical host;
the adaptively modifying the second virtual host image file specifically comprises: and the block device server connects the second virtual host image file to a second block device of the block device server, mounts the second block device to a directory of the block device server, and configures the second block device.
5. The method as claimed in any one of claims 1 to 4, wherein the starting the physical host over the PXE includes:
the management node connects the boot image file stored in the management node to a third piece of equipment of the management node;
mounting the third piece of equipment to a directory of the management node;
and executing the step of starting the physical host computer through the PXE based on the data of the third block device containing the starting image file.
6. The method of claim 5, further comprising:
the management node configuring the third block device;
and executing the step of starting the physical host computer through the PXE based on the data containing the boot image file of the configured third block device.
7. A starting system of a physical host is characterized by comprising a management node, a block device server and a memory;
the block device server is used for exporting the first virtual host image file pre-stored in the memory into a first block device;
the management node is in communication connection with a physical host, and is used for starting the physical host through PXE to enter a remote system of the physical host, remotely accessing the physical host, controlling the physical host to establish communication connection with the first block device, copying data of the first block device, which contains the first virtual host image file, to a hard disk of the physical host, adaptively modifying, restarting the physical host, and entering a local system of the physical host;
the adaptive modification comprises the following two ways: executing remote commands, updating configuration or installation programs on a physical host or by remotely operating a physical hard disk.
8. The system of claim 7, wherein the adaptive modification comprises: and executing a remote command, connecting the hard disk on the physical host computer or remotely, and modifying the data content of the hard disk.
9. A starting system of a physical host is characterized by comprising a management node, a block device server and a memory;
the block device server is used for adaptively modifying a first virtual host image file which is stored in the memory in advance and exporting the modified first virtual host image file into a first block device;
the management node is in communication connection with a physical host, and is used for starting the physical host through PXE to enter a remote system of the physical host, remotely accessing the physical host, controlling the physical host to establish communication connection with the first block device, copying data of the first block device, which contains the modified first virtual host image file, to a hard disk of the physical host, restarting the physical host, and entering a local system of the physical host;
the block device server connects a first virtual image file pre-stored in a memory to a second block device of the block device server, mounts the second block device to a directory of the block device server, and configures the second block device.
10. A starting system of a physical host is characterized by comprising a management node, a block device server and a memory;
the block device server is used for creating a second virtual host image file by taking a first virtual host image file which is stored in the memory in advance as a back-end image file, adaptively modifying the second virtual host image file and exporting the modified second virtual host image file into a first block device;
the management node is in communication connection with a physical host, and is used for starting the physical host through PXE to enter a remote system of the physical host, remotely accessing the physical host, controlling the physical host to establish communication connection with the first block device, copying data of the first block device, which contains the modified second virtual host image file, to a hard disk of the physical host, restarting the physical host, and entering a local system of the physical host;
the adaptively modifying the second virtual host image file specifically comprises: and the block device server connects the second virtual host image file to a second block device of the block device server, mounts the second block device to a directory of the block device server, and configures the second block device.
11. The system according to any one of claims 7 to 10, wherein the management node is specifically configured to connect a boot image file stored in the management node to a third block device of the management node, mount the third block device to a directory of the management node, and boot a physical host over PXE based on data of the third block device that includes the boot image file.
12. The system of claim 11, wherein the management node is further configured to configure the third block device to boot a physical host over PXE based on the data of the configured third block device that contains the boot image file.
CN201711050681.2A 2017-10-31 2017-10-31 Starting method and system of physical host Active CN107861761B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711050681.2A CN107861761B (en) 2017-10-31 2017-10-31 Starting method and system of physical host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711050681.2A CN107861761B (en) 2017-10-31 2017-10-31 Starting method and system of physical host

Publications (2)

Publication Number Publication Date
CN107861761A CN107861761A (en) 2018-03-30
CN107861761B true CN107861761B (en) 2021-03-16

Family

ID=61697047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711050681.2A Active CN107861761B (en) 2017-10-31 2017-10-31 Starting method and system of physical host

Country Status (1)

Country Link
CN (1) CN107861761B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110413293A (en) * 2019-07-23 2019-11-05 深圳忆联信息系统有限公司 The method and device that system deployment process modifies to standard mirror image
CN110737558A (en) * 2019-10-21 2020-01-31 深圳忆联信息系统有限公司 Method and device for automatically deploying efi shell system to execute test, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9411517B2 (en) * 2010-08-30 2016-08-09 Vmware, Inc. System software interfaces for space-optimized block devices
CN102843397A (en) * 2011-06-23 2012-12-26 神讯电脑(昆山)有限公司 Distributed system and distributed method for automatically copying hard disk
CN103856343B (en) * 2012-12-05 2017-07-07 北京华胜天成科技股份有限公司 Configure the method and system of virtual machine network information
US10178170B2 (en) * 2015-09-14 2019-01-08 Dell Products, L.P. Browser-based virtual media administration

Also Published As

Publication number Publication date
CN107861761A (en) 2018-03-30

Similar Documents

Publication Publication Date Title
JP5393515B2 (en) Server image migration
CN107404524B (en) Distributed cluster node access method and device
US7890689B2 (en) Virtual appliance management
US8627310B2 (en) Capturing multi-disk virtual machine images automatically
US8645672B2 (en) Configuring a computer system for a software package installation
US20140129819A1 (en) Cloud cluster system and boot deployment method for the same
US10936295B2 (en) Software update system
US20140007092A1 (en) Automatic transfer of workload configuration
CN110908753B (en) Intelligent fusion cloud desktop server, client and system
US20140122860A1 (en) Cloud system and boot deployment method for the cloud system
CN102591679A (en) Quick application software arrangement method for cluster system
CN100347672C (en) Long-distance guide chip of transparent computing equipment based on dragon chip rack and panel construction and method thereof
CN113741914B (en) Operating system installation mechanism
US20190205109A1 (en) Computer system, baseboard management controller, and os installation method
US20140082275A1 (en) Server, host and method for reading base image through storage area network
US20140109089A1 (en) System to rebuild difference virtual hard disk for updating operation system and method thereof
WO2005106716A1 (en) Systems and methods for providing a proxy for a shared file system
CN110928554A (en) Deployment method, device, equipment and storage medium
CN107861761B (en) Starting method and system of physical host
US20230229481A1 (en) Provisioning dpu management operating systems
US20200326998A1 (en) Two-way clipboard exchange in virtual console
WO2023109107A1 (en) Method for centralized management of startup disks of server, and server
CN111459619A (en) Method and device for realizing service based on cloud platform
CN114285842A (en) Electronic reading room building method and system based on cloud desktop
CN110795113A (en) Redis cluster service installation method, server and 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
CB02 Change of applicant information

Address after: 100020 601, 6 floor, 16 building, No. 36 Chuang Yuan Road, Chaoyang District, Beijing.

Applicant after: Beijing Qingyun Science and Technology Co.,Ltd.

Address before: 100020 601, 6 floor, 16 building, No. 36 Chuang Yuan Road, Chaoyang District, Beijing.

Applicant before: BEIJING YOUFAN TECHNOLOGY CO.,LTD.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 100000 Unit 501A, Floor 5, 101, Building 1, Yard 5, Laiguangying West Road, Chaoyang District, Beijing

Patentee after: Beijing Qingyun Science and Technology Co.,Ltd.

Address before: 100020 601, 6 floor, 16 building, No. 36 Chuang Yuan Road, Chaoyang District, Beijing.

Patentee before: Beijing Qingyun Science and Technology Co.,Ltd.

CP02 Change in the address of a patent holder