packer-plugin-proxmox: Unable to create qcow2 format disks

Packer creates the VM always with raw disks only, no matter what disk format is defined in disks block. Here’s my disk configuration.

disks { storage_pool = var.isoStore storage_pool_type = “directory” type = “virtio” disk_size = var.diskSize cache_mode = “none” format = “qcow2” }

It creates VM with a raw disk always. I tried changing the disk type to iscsi, format to qcow etc. but that did not help.

I use the Packer version 1.7.3 on Ubuntu 20.04 and trying to create a template of Ubuntu 20.04.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 6
  • Comments: 17

Most upvoted comments

Hello, is there any plan to bump github.com/Telmate/proxmox-api-go to v0.0.0-20220129131641-6909b62b8cf0 (I’m not aware at all about your release model)? Sounds like the fix is working

@ruskofd, could you confirm that packer 1.8.0 does work for you? I tested 1.8.0 and the issue was still there But I confirmed that with 1.8.1 the problem is fixed! @dbuenoparedes, could you confirm this?

I’m still experiencing the same issue even with plugin version 1.0.5:

  • Packer config file:
packer {
  required_plugins {
    proxmox = {
      version = ">= 1.0.5"
      source  = "github.com/hashicorp/proxmox"
    }
  }
}


...
  disks {
    disk_size         = "120G"
    storage_pool      = "efs"
    storage_pool_type = "directory"
    type              = "scsi"
    format            = "qcow2"
  }
...
  • Packer and plugin version:
$ packer plugins installed
/home/dbuenoparedes/.packer.d/plugins/github.com/hashicorp/proxmox/packer-plugin-proxmox_v1.0.5_x5.0_linux_amd64
$ packer version
Packer v1.8.0
  • Proxmox VM disk info:
# pvesh get /nodes/cop-compute-pve2/qemu/9500/config | grep scsi
│ boot        │ order=scsi0;ide2;net0                                   │
│ scsi0       │ efs:9500/base-9500-disk-0.raw,iothread=0,size=120G      │
│ scsihw      │ virtio-scsi-pci                                         │
# qemu-img info /mnt/efs/images/9500/base-9500-disk-0.raw 
image: /mnt/efs/images/9500/base-9500-disk-0.raw
file format: raw
virtual size: 120 GiB (128849018880 bytes)
disk size: 579 MiB