Giter VIP home page Giter VIP logo

Comments (7)

1-cameron avatar 1-cameron commented on August 9, 2024 1

Hey @1-cameron, thanks, I'm planning to re-work the VM disk provisioning to address #187, #188, and #203 -- they all are related to the same piece of code that is really hard to maintain. I'll add you use case to the test suite.

Thanks, I really appreciate the work you're doing on this provider!

from terraform-provider-proxmox.

bpg avatar bpg commented on August 9, 2024

Hey @1-cameron, would you be able create a qcow2 disk on this storage in the PVE UI?

From the docs https://pve.proxmox.com/pve-docs/chapter-qm.html#qm_hard_disk:

The choice of a storage type will determine the format of the hard disk image. 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.

from terraform-provider-proxmox.

1-cameron avatar 1-cameron commented on August 9, 2024

I'm able to create the disks manually in the UI in all formats on that storage with no issue.

However, I've just noticed that the disks I've been provisioning are actually larger than the space available on the storage. I've since provisioned disks with the expected file_format on larger storage (they're the same type).

Problem storage:
image

Working storage:
image

from terraform-provider-proxmox.

yuqo2450 avatar yuqo2450 commented on August 9, 2024

Hey there,

I am having the same issue.
I even tried to set it to raw, but even then terraform apply plans to recreate the vm.

from terraform-provider-proxmox.

bpg avatar bpg commented on August 9, 2024

Hey @1-cameron, thanks, I'm planning to re-work the VM disk provisioning to address #187, #188, and #203 -- they all are related to the same piece of code that is really hard to maintain.
I'll add you use case to the test suite.

from terraform-provider-proxmox.

bpg avatar bpg commented on August 9, 2024

Hey @yuqo2450,

I even tried to set it to raw, but even then terraform apply plans to recreate the vm.

Changing the disk type in a previously applied template will cause re-creation of the disk (and the VM). Also please note that non-raw formats are only available for file based PVE storages.

from terraform-provider-proxmox.

bpg avatar bpg commented on August 9, 2024

Should be fixed by #241

from terraform-provider-proxmox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.