GithubHelp home page GithubHelp logo

53845714nf / packer-proxmox-debian Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 26 KB

This project provides Packer files to build a basic image of Debian with Salt Minion for use on a Proxmox system. Use it as is or as a starting point for a more fully customized image.

License: GNU General Public License v3.0

Makefile 3.67% HCL 96.33%
debian12 packer proxmox cloud-init saltstack

packer-proxmox-debian's Introduction

Debian Packer Builder for Proxmox

This project provides Packer files to build a basic image of Debian for use on a Proxmox system. Use it as is or as a starting point for a more fully customized image. This project installs the base system and include salt-minion. If you dont want to use salt-minion you can remove the salt-minion package from the cloud-init file.

This has been tested on Proxmox 8.1.3

Getting started

To use this you will need:

  • ISO files for the OS you want to build an image for uploaded to Proxmox:
  • A working Proxmox system
  • Packer. This project is tested with Packer version 1.9.2

The OS ISO file will need to be uploaded to your Proxmox system.

The simplest way to get the ISO file on your Proxmox system is to use the "Download from URL" option on the disk/share that you configured for ISO files.

Building an Image

Create a variables.pkrvars.hcl file and update the variables. For a full set of variables you can look at example_variables.pkrvars.hcl file.

Using the Makefile

You can build the following templates by running make.

Variabel in this Template

  • proxmox_url - A string in this Format: https://0.0.0.0:8006/api2/json
  • username - A string in this Format: packer@pve!packer
  • token - Your secret token as string
  • node - Name of your node as string
  • proxmox_storage_pool - Name of the Pool as string
  • vm_id - The Id of the VM as string

After the image is built

Once the image is built you will want to adjust any remaining settings in the template including creating a cloud-init drive. A cloud-init drive must be created for you to ssh into any new VMs you create. For details on how to do so visit https://blog.dustinrue.com/proxmox-cloud-init/.

Acknowledgement

Thanks to Dustin Rue how build similar for CentOS/Rocky/Ubuntu.

packer-proxmox-debian's People

Contributors

53845714nf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.