Giter VIP home page Giter VIP logo

Comments (6)

bpg avatar bpg commented on September 14, 2024

Hi @bitchecker

Seems to be similar to #995. You can try to play with "parallelism" parameter, or perhaps update you scsi_hardware to virtio-scsi-single.

from terraform-provider-proxmox.

bitchecker avatar bitchecker commented on September 14, 2024

Hi @bpg,
with scsi_hardware config, the situation is a little better, but the issue is still present!

Of course, setup parallelism option is a good workaround also if build time are longer, also if the final result is bad to see:
immagine

from terraform-provider-proxmox.

bpg avatar bpg commented on September 14, 2024

@bitchecker, have you tried using the virtio disk interface as described here?

Ultimately, this is not an issue with the provider but rather a bottleneck in the PVE I/O subsystem, which is exacerbated by Terraform’s parallel provisioning of VMs.

You could also try moving your VM source (template or disk image) to a different physical datastore, if you have that option. I have found that doing so drastically improves the performance of VM creation when I create and destroy dozens of them in acceptance tests.

from terraform-provider-proxmox.

bitchecker avatar bitchecker commented on September 14, 2024

Hi @bpg,
no, I didn't try virtio disk interface yet because this will be a braking change on module and will destroy and rebuild all guests!

I don't think that can be related to I/O issue because the server is running on NVMe drives. While I run apply I see that he try to assign the same ID more than one time...so the error is right because you can't have multiple guests with same ID.

from terraform-provider-proxmox.

bitchecker avatar bitchecker commented on September 14, 2024

Testing on a testing vm I get this error:

module.test.proxmox_virtual_environment_vm.virtual_machine[0]: Modifying... [id=105]
╷
│ Error: deletion of disks not supported. Please delete disk by hand. Old interface was "scsi0"
│ 
│   with module.test.proxmox_virtual_environment_vm.virtual_machine[0],
│   on .terraform/modules/test/main.tf line 13, in resource "proxmox_virtual_environment_vm" "virtual_machine":
│   13: resource "proxmox_virtual_environment_vm" "virtual_machine" {
│ 
╵

from terraform-provider-proxmox.

bitchecker avatar bitchecker commented on September 14, 2024

Building a new machine I get the same error also with virtio interface:

│ Error: error waiting for VM clone: All attempts fail:
│ #1: task "UPID:proxmox:001D0CCF:021A2E8B:66E32A62:qmclone:132:root@pam:" failed to complete with exit code: clone failed: can't lock file '/var/lock/pve-manager/pve-storage-local-zfs' - got timeout
│ 
│   with module.test.proxmox_virtual_environment_vm.virtual_machine[3],
│   on .terraform/modules/test/main.tf line 13, in resource "proxmox_virtual_environment_vm" "virtual_machine":
│   13: resource "proxmox_virtual_environment_vm" "virtual_machine" {
│ 
╵
╷
│ Error: error waiting for VM clone: All attempts fail:
│ #1: task "UPID:proxmox:001D0CD1:021A2E9D:66E32A63:qmclone:132:root@pam:" failed to complete with exit code: clone failed: can't lock file '/var/lock/pve-manager/pve-storage-local-zfs' - got timeout
│ 
│   with module.test.proxmox_virtual_environment_vm.virtual_machine[4],
│   on .terraform/modules/test/main.tf line 13, in resource "proxmox_virtual_environment_vm" "virtual_machine":
│   13: resource "proxmox_virtual_environment_vm" "virtual_machine" {
│ 
╵
╷
│ Error: error updating VM: received an HTTP 599 response - Reason: Too many redirections
│ 
│   with module.test.proxmox_virtual_environment_vm.virtual_machine[0],
│   on .terraform/modules/test/main.tf line 13, in resource "proxmox_virtual_environment_vm" "virtual_machine":
│   13: resource "proxmox_virtual_environment_vm" "virtual_machine" {
│ 
╵

so between scsi0 and virtio0 nothing changes!

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.