Disk image dump for configuring bare metal servers
Systems and methods for capturing a disk image of a bare metal server, and then using the disk image to provision other bare metal servers. A method includes capturing a disk image of a first bare metal server and writing the disk image to a repository manager. The method includes launching a continuous delivery mode on a second bare metal server where the disk image is fetched from repository manager and written to second bare metal server, followed by configuring the unique identity.
1 . A method comprising:
capturing a disk image of a first bare metal server while the first bare metal server is in a live continuous delivery mode;
writing the disk image to a repository manager;
launching a live continuous delivery mode on a second bare metal server via a bootloader;
mounting the disk image to the second bare metal server; and
configuring a unique identity of the second bare metal server.
2 . The method of claim 1 , further comprising receiving a request from a user to initiate a workflow to capture the disk image of the first bare metal server, wherein receiving the request comprises receiving the request by way of a dashboard rendered on a user interface.
3 . The method of claim 2 , further comprising submitting the workflow to a worker node, wherein the workflow comprises causing the worker node to launch the live continuous delivery mode on the first bare metal server without use of a dynamic host configuration protocol (DHCP).
4 . The method of claim 1 , further comprising receiving a request from a user to initiate a workflow to install an operating system on the second bare metal server by way of a disk image dump, wherein receiving the request comprises receiving the request by way of a dashboard rendered on a user interface.
5 . The method of claim 1 , wherein launching the continuous delivery mode on the second bare metal server comprises launching without use of a dynamic host configuration protocol (DHCP).
6 . The method of claim 1 , wherein capturing the disk image of the first bare metal server comprises:
requesting an initialization file from a file store of the first bare metal server without using dynamic host configuration protocol (DHCP) or a DHCP server; and
receiving the initialization file.
7 . The method of claim 6 , wherein capturing the disk image of the first bare metal server further comprises:
installing, on the first bare metal server, a kickstarter executable; and
executing the kickstarter executable to register the first bare metal server with a machine initialization module;
wherein receiving the initialization file comprises receiving the initialization file from the machine initialization module over a network in response to registering the first bare metal server with the machine initialization module.
8 . The method of claim 1 , wherein configuring the unique identity of the second bare metal server comprises configuring one or more of an internet protocol (IP) address, gateway, domain name system (DNS), or hostname of the second bare metal server.
9 . The method of claim 1 , wherein mounting the disk image to the second bare metal server comprises streaming the disk image from the repository manager by way of a uniform resource locator (URL) associated with the disk image.
10 . The method of claim 9 , wherein mounting the disk image to the second bare metal server comprises downloading the disk image from the repository manager by way of the uniform resource locator and directly writing the downloaded disk image to disk storage resources associated with the second bare metal server.
11 . Non-transitory computer readable storage medium storing instructions for executing by one or more processors, the instructions comprising:
capturing a disk image of a first bare metal server while the first bare metal server is in a live continuous delivery mode;
writing the disk image to a repository manager;
launching a live continuous delivery mode on a second bare metal server via a bootloader;
mounting the disk image to the second bare metal server; and
configuring a unique identity of the second bare metal server.
12 . The non-transitory computer readable storage medium of claim 11 , wherein the instructions further comprise receiving a request from a user to initiate a workflow to capture the disk image of the first bare metal server, wherein receiving the request comprises receiving the request by way of a dashboard rendered on a user interface.
13 . The non-transitory computer readable storage medium of claim 12 , wherein the instructions further comprise submitting the workflow to a worker node, wherein the workflow comprises causing the worker node to launch the live continuous delivery mode on the first bare metal server without use of a dynamic host configuration protocol (DHCP).
14 . The non-transitory computer readable storage medium of claim 11 , wherein the instructions further comprise receiving a request from a user to initiate a workflow to install an operating system on the second bare metal server by way of a disk image dump, wherein receiving the request comprises receiving the request by way of a dashboard rendered on a user interface.
15 . The non-transitory computer readable storage medium of claim 11 , wherein the instructions are such that launching the continuous delivery mode on the second bare metal server comprises launching without use of a dynamic host configuration protocol (DHCP).
16 . The non-transitory computer readable storage medium of claim 11 , wherein the instructions are such that capturing the disk image of the first bare metal server comprises:
requesting an initialization file from a file store of the first bare metal server without using dynamic host configuration protocol (DHCP) or a DHCP server; and
receiving the initialization file.
17 . The non-transitory computer readable storage medium of claim 16 , wherein the instructions are such that capturing the disk image of the first bare metal server further comprises:
installing, on the first bare metal server, a kickstarter executable; and
executing the kickstarter executable to register the first bare metal server with a machine initialization module;
wherein receiving the initialization file comprises receiving the initialization file from the machine initialization module over a network in response to registering the first bare metal server with the machine initialization module.
18 . The non-transitory computer readable storage medium of claim 11 , wherein the instructions are such that configuring the unique identity of the second bare metal server comprises configuring one or more of an internet protocol (IP) address, gateway, domain name system (DNS), or hostname of the second bare metal server.
19 . The non-transitory computer readable storage medium of claim 11 , wherein the instructions are such that mounting the disk image to the second bare metal server comprises streaming the disk image from the repository manager by way of a uniform resource locator (URL) associated with the disk image.
20 . The non-transitory computer readable storage medium of claim 19 , wherein the instructions are such that mounting the disk image to the second bare metal server comprises downloading the disk image from the repository manager by way of the uniform resource locator and directly writing the downloaded disk image to disk storage resources associated with the second bare metal server.