Packer deployments to Bare Metal

1,741 views
Skip to first unread message

Lars Panzerbjørn

unread,
Sep 5, 2017, 9:27:18 AM9/5/17
to Packer
Hi all,

Apologies if this is a silly question, but can Packer deploy images to Bare Metal? Or only virtual environments?

We're currently looking for a solution that can, ideally, do both, and we hoped to use Packer.

If Packer can't be used for physical machines, then so be it...

Many thanks in advance.
-Panzerbjrn

Luke Farnell

unread,
Sep 5, 2017, 10:05:23 AM9/5/17
to Packer
Packer cannot deploy images to bare metal. Packer only works with cloud providers and hypervisors that give you the ability to snapshot images.

Hope that helps.

Luke

Lars Panzerbjørn

unread,
Sep 6, 2017, 7:02:57 AM9/6/17
to Packer
Hi Luke,

Thanks for that. It seemed like it from the docs I read, but I couldn't find anything that said it outright...

Cheerio,
Lars

Alvaro Miranda Aguilera

unread,
Sep 7, 2017, 3:26:44 PM9/7/17
to packe...@googlegroups.com
depending on how /what you want to standarize

you could:

-   create an installation iso (check kickstart for redhat/centos or preseed for debian/ubuntu)

when this installation happen, you could (but manual work, lots of try/error) use packer with the null provider

however at this point, you can skip packer at all, and just have the iso installation to run the provisioning

so to complement lukes answer, packer doesn't do that, and seems is not needed once you bootstraped the metal machine

Alvro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/50de727e-36da-48bf-86c3-3d67e8cb0863%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

pixel fairy

unread,
Sep 18, 2017, 4:17:22 AM9/18/17
to Packer
oob systems that use vnc, like idrac, should be possible. but you'd have to write your own builder.

Eric Duncan

unread,
Mar 18, 2018, 12:06:03 PM3/18/18
to Packer
Yes it is possible, but in a round-about way.

Previously I've created VMs that ended up with a disk file of what I wanted to to image. I then converted that disk image to a raw file format, and created an ISO. Lastly I would bootstrap an USB stick with Debian and that ISO file.

Using the included dd command, you would boot off the USB stick and issue the DD command to write the ISO file to your machine.

Searching around, this guy does basically the same thing except he uses Alpine Linux and the ova format and his example writes it to a USB stick. You'd do the same thing, except you'd boot off of a standard Linux Live stick, copy the ISO to it, and tuned the same commands to image your machine.

https://github.com/viralpoetry/packer-bare-metal

Reply all
Reply to author
Forward
0 new messages