wxlee / packer-Debian11

Packer configuration files for Debian 11

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

packer-Debian11

What is packer-Debian11 ?

packer-Debian11 is a set of configuration files used to build an automated Debian 11 virtual machine images using Packer. This Packer configuration file allows you to build images for VMware Workstation and Oracle VM VirtualBox.

Prerequisites

How to use Packer

Commands to create an automated VM image:

To create a Debian 11 VM image using VMware Workstation use the following commands:

cd packer-Debian11
packer build -only=vmware-iso debian11.json
packer build -only=vmware-iso debian11_uefi.json

To create a Debian 11 VM image using Oracle VM VirtualBox use the following commands:

cd packer-Debian11
packer build -only=virtualbox-iso debian11.json
packer build -only=virtualbox-iso debian11_uefi.json

If you omit the keyword "-only=" both the Workstation and Virtualbox VMs will be created.

By default the .iso of Debian 11 is pulled from https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.0.0-amd64-netinst.iso

You can change the URL to one closer to your build server. To do so change the "iso_url" parameter in the "variables" section of the debian9.json file.

{
  "variables": {
      "iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.6.0-amd64-netinst.iso"
  }
}

Default credentials

The default credentials for this VM image are:

Username Password
packer packer
root packer

Run packer build vagrant box

# add new box to vagrant
vagrant box add my-dev11 debian-11.6.0-amd64-virtualbox.box
# show boxes
vagrant box list
# run it
vagrant up
# ssh login
vagrant ssh

About

Packer configuration files for Debian 11

License:MIT License


Languages

Language:Shell 100.0%