June 20-22 Announcing HashiConf Europe full schedule: keynotes, sessions, labs & more Register Now
  • Infrastructure
    • terraform
    • packer
  • Networking
    • consul
  • Security
    • vault
    • boundary
  • Applications
    • nomad
    • waypoint
    • vagrant
  • HashiCorp Cloud Platform

    A fully managed platform to automate infrastructure on any cloud with HashiCorp products.

    • consul
    • terraform
    • vault
    • packerbeta
    Visit cloud.hashicorp.com
  • Overview
  • Tutorials
  • Docs
  • Plugins
  • Community
GitHubInstall PackerTry HCP Packer
    • v1.8.x (latest)
    • v1.7.x
    • v1.6.x
    • v1.5.x
  • Upgrade Your Plugin to use the Packer plugin sdk
  • Upgrade Your Template to use Packer init
    • Overview
    • Variables
    • Upgrade Packer JSON Template to HCL2
    • Making a plugin HCL2 enabled
    • Overview
    • Unattended Installation for Windows
    • Unattended Installation for Debian
    • Overview
    • Build Images in CI/CD
    • Build a VirtualBox Image with Packer in TeamCity
    • Pipelineing Builds
    • Trigger Terraform Enterprise runs
    • Upload a VirtualBox Image to S3
Type '/' to Search

»Automatic OS Installs

If you are building from a brand-new and unconfigured operating system image, Packer will need you to perform the operating system install before it can connect to and configure your image using its provisioners. Most operating system distributions have a mechanism for performing the normally-interactive installation in an automated way. For Debian operating systems, this is done using a preseed file; for Windows, it's done using an Autounattend.xml. We have compiled some simple guides here for common operating system distributions.

These guides are meant to give you a quick introduction to how to use automated installation answer files in order to perfom those installs; we don't mean to be a comprehensive guide on each operating system, but we hope to give you enough context to be able to more easily find any further information you need.

Please use the left-hand navigation to find instructions for the operating system that is relevant to you.

github logoEdit this page
IntroGuidesDocsCommunityPrivacySecurityPress KitConsent Manager