-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot upload ISO to proxmox #209
Comments
It's working in my case , I have a similar config
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. According to your log: 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. 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 #81 (comment) . I also ensured the permissions were setup with
PVEDatastoreUser
per #81 (comment).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.The text was updated successfully, but these errors were encountered: