theforeman / foreman_fog_proxmox

Foreman plugin to add Proxmox compute resource based on fog-proxmox gem
GNU General Public License v3.0
105 stars 30 forks source link

Allow creating qcow2 disks #187

Open gittygoo opened 3 years ago

gittygoo commented 3 years ago

Is your feature request related to a problem? Please describe. Currently disks get created with type RAW however i need them created with type qcow2

Describe the solution you'd like Allow choosing disk type when creating VMs

tristanrobert commented 3 years ago

Image disk format depends on storage type as described on proxmox doc:

Storages which present block devices (LVM, ZFS, Ceph) will require the raw disk image format, whereas files based storages (Ext4, NFS, CIFS, GlusterFS) will let you to choose either the raw disk image format or the QEMU image format

In Proxmox GUI, user can't choose it, except when storage type is file based. Otherwise, it is computed by Proxmox with storage type.

santachago commented 2 years ago

hi @tristanrobert, Foreman UI should allow defining the format, we are using an NFS storage on proxmox but format is always defined as RAW even when the default format on proxmox UI seems to be qcow2 when creating a virtual machine. Problem with defaulting to RAW is that its not possible to do snapshots of VMs created using foreman.

Thanks