H
H
HighMan2019-11-25 10:49:32
linux
HighMan, 2019-11-25 10:49:32

How to upload a bootstrap image to a clean virtual machine via PXE?

Hello Lord!
The idea is the following: create and configure several bootstrap images for different cases. Then transfer them as quickly as possible to the newly created virtual machines. Those. avoid a full-fledged installation, and upload a ready-made image. After filling with a script, assign a hostname, MAC, and so on little things.
I know how to install a machine via PXE, I even once made a Live image that booted via PXE on a physical computer or VM.
There is even a rough understanding of how to fill in the finished image.
1. Create the simplest bootstrap image and then upload the prepared image to the virtual machine using dd.
2. This PXE image is loaded on the experimental machine and uploads the already prepared image from the network.
3. Minor piling of configuration files
So far I am building such an understanding, but ... It seems to me that there should be a simpler and more elegant way.
I would be very grateful for a hint or a manual.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-11-25
@q2digger

This is how it is done on Terraform + Cloud-Init, the libvirt provider
https://github.com/dmacvicar/terraform-provider-li...
is used , the host and network configuration is described in the cloud-init configs, terraform rolls out the machine from the template.
for everything pro-everything - about 5 minutes (I really have a simple configuration, a couple of users, several services and configs are pulled out of the git by a script).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question