Comments (5)
This is probably a duplicate of this issue: #49
from packer-plugin-proxmox.
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.
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.
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.
After having a look at this upstream bug report, I guess this should be possible.
Two steps are required:
- add support for download-url to proxmox-api-go
- rewrite step_upload_iso.go to use download-url
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)
- iso_download_pve should also work for additional_iso_files
- Packer throwing 400 Bad Request at boot_cmd when using gitlab-runner HOT 1
- Random EOF Error while running boot command on sendkey API HOT 11
- VMWare Fusion Ubuntu 64-bit Arm Server 22.04.3 stuck on boot HOT 2
- Autoinstall stuck on language selection HOT 20
- Can I set "args=" to specify additional arguments in the Proxmox plugin HOT 1
- Can I add iso files without "media=cdrom" HOT 1
- 401 permission denied - invalid PVE ticket
- iothread=1 being set on all scsi disks regardless of io_thread option HOT 1
- Plugin not making API call. HOT 2
- Add aio disk configuration available HOT 3
- SSH communicator fails when ssh_password contains "#" HOT 1
- packer-plugin-proxmox missing cd_content and other cd options mentioned in docs HOT 2
- Aarch64 (ARM64) unavailable due to lack of IDE drivers for the architecture. CDROM driver should be set via scsi or virtio.
- Autoinstall stuck on language selection HOT 1
- Add shutdown command. HOT 5
- Add shutdown_command like vsphere-iso HOT 1
- Packer did not remove the old cloud-init on local disks
- Agent type selection (virtIO or ISA)
- Option for the Cloud-Init "Upgrade Packages" feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-plugin-proxmox.