Giter Club home page Giter Club logo

Comments (5)

stfnx avatar stfnx commented on September 1, 2024 1

This is probably a duplicate of this issue: #49

from packer-plugin-proxmox.

sebastian-de avatar sebastian-de commented on September 1, 2024 1

The change for proxmox-api-go got merged already, so I created a draft here: https://github.com/sebastian-de/packer-plugin-proxmox/commit/9761f385397dd974980d304643d2780eb2d695ab
It works and has the added benefit that ISOs get downloaded to the PVE node directly. Currently they get downloaded to the host packer is running on and then uploaded to the node from there.

I have to add test and clean it up a little.

Since #130 is near the finish line (hopefully!), I want to merge my Cloud-Init changes first. After that I'll finish the work here.

from packer-plugin-proxmox.

stfnx avatar stfnx commented on September 1, 2024

I absolutely agree that this should be improved.

Meanwhile, as a workaround you could check the existence of the ISO file via the Proxmox API. See here.

This may or may not be useful, depending on how you run Packer. Personally I run it from an Ansible playbook, so I just created a task before running Packer, which checks if the ISO is already present on the host. Depending on the result I am either using iso-file when its present or iso-url and iso-checksum when it needs to get downloaded.

Example:

pvesh get /nodes/proxmox/storage/local-iso/content | grep 'debian-11.5.0-amd64-netinst.iso'

from packer-plugin-proxmox.

modem7 avatar modem7 commented on September 1, 2024

I absolutely agree that this should be improved.

Meanwhile, as a workaround you could check the existence of the ISO file via the Proxmox API. See here.

It's unfortunate that Packer doesn't have a preprocessor function that would act in a similar fashion.

from packer-plugin-proxmox.

sebastian-de avatar sebastian-de commented on September 1, 2024

After having a look at this upstream bug report, I guess this should be possible.
Two steps are required:

The PVE would then skip the download if the file with the correct checksum is already present. If I find the time, I'll have a look at this.

from packer-plugin-proxmox.

Related Issues (20)

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.