{"id":15050947,"url":"https://github.com/hanidam/packer-proxmox-debian","last_synced_at":"2026-01-02T07:06:53.120Z","repository":{"id":256787320,"uuid":"856403305","full_name":"HanidaM/packer-proxmox-debian","owner":"HanidaM","description":"Packer builder is able to create new images for use with Proxmox. The builder takes an ISO image, runs any provisioning necessary on the image after launching it, then creates a virtual machine template. This template can then be used as to create new virtual machines within Proxmox.","archived":false,"fork":false,"pushed_at":"2024-09-13T11:48:42.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-13T17:41:43.753Z","etag":null,"topics":["debian","hashicorp-packer","hasicorp","packer","packer-template","proxmox","proxmox-ve"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HanidaM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-12T14:19:31.000Z","updated_at":"2024-09-24T10:24:47.000Z","dependencies_parsed_at":"2024-09-13T03:33:03.176Z","dependency_job_id":"e043754f-adf9-4780-8112-9c6105ae3a41","html_url":"https://github.com/HanidaM/packer-proxmox-debian","commit_stats":null,"previous_names":["hanidam/packer-proxmox-debian12"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HanidaM%2Fpacker-proxmox-debian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HanidaM%2Fpacker-proxmox-debian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HanidaM%2Fpacker-proxmox-debian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HanidaM%2Fpacker-proxmox-debian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HanidaM","download_url":"https://codeload.github.com/HanidaM/packer-proxmox-debian/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225406578,"owners_count":17469555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debian","hashicorp-packer","hasicorp","packer","packer-template","proxmox","proxmox-ve"],"created_at":"2024-09-24T21:29:49.672Z","updated_at":"2026-01-02T07:06:53.072Z","avatar_url":"https://github.com/HanidaM.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Packer Proxmox Debian 12\n\nThis repository contains Packer templates and related files for automating the creation of Debian 12 virtual machines on a Proxmox VE host.\n\n## Table of Contents\n- [Introduction](#introduction)\n- [Prerequisites](#prerequisites)\n- [Packer Configuration](#packer-configuration)\n- [Usage](#usage)\n    - [Configuration](#configuration)\n    - [Execution](#execution)\n- [Template Information](#template-information)\n- [Notes](#notes)\n\n## Introduction\n\nPacker is an open-source tool for creating machine images from a single source configuration. This project leverages Packer to automate the creation of Debian 12 virtual machines (VMs) on a Proxmox VE host. By using Packer, you can ensure consistency and reproducibility in your VM builds.\n\n## Prerequisites\n\nBefore using these Packer templates, ensure you have the following:\n\n- [Packer](https://www.packer.io/downloads) installed on your local machine\n- Access to a Proxmox VE host\n- Proxmox API token with appropriate permissions (Privilege Separation)\n- Network access from your local machine to the Proxmox VE host\n\nNote: The Debian 12.7 ISO will be automatically downloaded to your Proxmox VE host during the build process.\n\n## Packer Configuration\n\nThis project uses the Proxmox plugin for Packer. The required plugin configuration is specified in the Packer template as follows:\n\n```hcl\npacker {\n    required_plugins {\n        name = {\n            version = \"1.1.8\"\n            source  = \"github.com/hashicorp/proxmox\"\n        }\n    }\n}\n```\n\nThis configuration ensures that Packer uses version 1.1.8 of the Proxmox plugin from HashiCorp's GitHub repository. Make sure you have this plugin installed or let Packer install it automatically when you run the build command.\n\n## Usage\n\n### Configuration\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/HanidaM/Packer-Proxmox-Debian12.git\n   cd Packer-Proxmox-Debian12\n   ```\n\n2. Customize VM template (mandatory):\n   - Edit the `custom.pkvars.hcl` file to change the configuration of the virtual machine\n\n### Execution\n\n1. Validate your Packer template:\n   ```bash\n   packer validate -var-file=custom.pkvars.hcl debian.pkr.hcl\n   ```\n\n2. Build the VM template:\n   ```bash\n   packer build -on-error=ask -force -var-file=custom.pkvars.hcl debian.pkr.hcl\n   ```\n\n   The `-on-error=ask` flag will prompt you for action if an error occurs during the build process.\n\n## Template Information\n\n- **Debian Version**: 12.7\n- **Default User**: `debian`\n- **Default Password**: `zxcv1234`\n- **Network Configuration**: Static IP, defined in the `boot_command` section of the Packer template\n\n## Notes\n\n- The `preseed.cfg` file, which automates the Debian installation process, is stored in a separate repository. You can find it [here](https://github.com/HanidaM/devops-boilerplates/blob/main/http/preseed.cfg).\n- Make sure to review and customize the `preseed.cfg` file according to your specific requirements before building the VM template.\n- It's recommended to change the default password after creating your VM from this template.\n- The static network configuration in the `boot_command` may need to be adjusted based on your network environment.\n- This template is specifically designed for Debian 12.7. If you need to use a different version, you may need to adjust the ISO URL and checksum in your Packer template.\n\nFor more detailed information on using Packer with Proxmox, refer to the [Packer documentation](https://www.packer.io/docs/builders/proxmox) and the [Proxmox documentation](https://pve.proxmox.com/pve-docs/).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanidam%2Fpacker-proxmox-debian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanidam%2Fpacker-proxmox-debian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanidam%2Fpacker-proxmox-debian/lists"}