Open comminutus opened 1 year ago
It's working in my case , I have a similar config
==> proxmox-iso.windows10: Creating CD disk...
proxmox-iso.windows10: xorriso 1.5.6 : RockRidge filesystem manipulator, libburnia project.
proxmox-iso.windows10: Drive current: -outdev 'stdio:/tmp/packer2091475118.iso'
proxmox-iso.windows10: Media current: stdio file, overwriteable
proxmox-iso.windows10: Media status : is blank
proxmox-iso.windows10: Media summary: 0 sessions, 0 data blocks, 0 data, 15.6g free
proxmox-iso.windows10: xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules
proxmox-iso.windows10: Added to ISO image: directory '/'='/tmp/packer_to_cdrom1217354203'
proxmox-iso.windows10: xorriso : UPDATE : 4 files added in 1 seconds
proxmox-iso.windows10: xorriso : UPDATE : 4 files added in 1 seconds
proxmox-iso.windows10: ISO image produced: 203 sectors
proxmox-iso.windows10: Written to medium : 203 sectors at LBA 0
proxmox-iso.windows10: Writing to 'stdio:/tmp/packer2091475118.iso' completed successfully.
proxmox-iso.windows10: Done copying paths from CD_dirs
proxmox-iso.windows10: Uploaded ISO to isos:iso/packer2091475118.iso
Maybe it's a permission issue on the API level or the directory is really not there?
I know this is an older issue (based on the date) but looking through this and noticing the similarities to what I dealt with. From the above logs it appears you may be missing the proper proxmox_url
According to your log: proxmox-iso.fedora-coreos-k3s: Post "https://[REDACTED-PVE-HOSTNAME]:8006/nodes/pve1/storage/local/upload":
You don't have your proxmox_url config above so I have to assume you left off the /api/json from the proxmox_url definition. proxmox_url = "https://my.proxmox.local:8006/api2/json"
With the fix just added [#238 ] it removes an extra / only. Based on the above it might be worth it to add proper regex check against the proxmox_url to avoid random issues like this in the future.
if you're still facing the same issue you just need to add a permission PVEDatastoreUser to your api token and then it will be working just fine
Overview of the Issue
Running
packer build .
results in error "write: broken pip"I am trying to get a Fedora CoreOS ISO template for Proxmox. I was following this example here: https://wirywolf.com/2022/12/coreos-template-on-proxmox-with-packer.html . When I run
packer build .
, everything looks good until it tries to HTTP POST to my Proxmox cluster. Here is a partial output:Sometimes the output is slightly different:
I checked the free space of the volume it's trying to upload to (local-lvm) and it has 353 GB free.
I saw there was issue #81 regarding permissions. I set up a new user as described here https://github.com/hashicorp/packer-plugin-proxmox/issues/81#issuecomment-1349601962 . I also ensured the permissions were setup with
PVEDatastoreUser
per https://github.com/hashicorp/packer-plugin-proxmox/issues/81#issuecomment-1260186065.Reproduction Steps
Here's the
.pkr.hcl
file used for the build, for the sake of privacy I have a separate.auto.pkrvars.hcl
that I've omitted but the contents should be self-explanatory based on the variables set below.Here's the contents of
config/example.ign
:To reproduce, run
packer build .
Plugin and Packer version
Packer v1.9.2
Operating system and Environment details
Fedora Silverblue 38 x86_64. Packer installed with
distrobox
and afedora
image withdnf
Set the env var
PACKER_LOG=1
for maximum log detail.