How to install a stray box on a Bare Metal machine?

Is there an established way to take Vagrant box and use it as an operating system for a bare metal machine, that is, a normal computer, not a hypervisor, without having to go through the installation process?

Now I understand that the general answer is likely to be "regularly install the OS, and then use the proper configuration management tool like Puppet or Chef", but listen to me. Our IT organization would like to create a basic roaming box with all security related protocols and applications. Then a configuration management tool such as Puppet can install “useful” applications on it, such as databases and web servers.

This works best when a software developer wants to deploy a new utility for development environments or servers - they can write Puppet code to install exactly what they want, which can be transferred to IT to run on top of the proven Firewall to create a virtual server cars.

If you place the Vagrant box inside, we can hide the security data from the developer when they write new puppet code, they can test their Puppet code in the same environment in which they will work, and this will be much faster during testing since the box only that is loaded once. Most production deployments will remain virtual machines.

In rare cases, we may need a real server with odd metal rather than a virtual machine, probably when we get new equipment to run more virtual machines or if the required utility is very intensively calculated. It would be nice if the existing Vagrant box could be redesigned so that the bare and virtual servers were indistinguishable.

EDIT : I found a post on askubuntu ( https://askubuntu.com/questions/32499/migrate-from-a-virtual-machine-vm-to-a-physical-system ) which seems to do what I I want someone to check if the procedure will work on the Vagrant disk image if it needs to be cleaned up (for example, Vagrant ssh keys) or if it can be generalized in operating systems without Ubuntu (since it uses a Live CD)?

+6
source share
1 answer

A stray box packaged for VirtualBox is essentially a metadata virtual disk. Most likely, he will have VirtualBox tools and drivers installed, which will not bring much benefit to the physical system. In addition, drivers for the physical system must be installed on the field image.

What you are saying about what you are doing is a good precedent for some kind of "ghosting" software that simply copies blocks of data to a physical disk. There really is no benefit from using Vagrant here, which I see.

+2
source

Source: https://habr.com/ru/post/979646/


All Articles