Comments (6)
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.
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:
from terraform-provider-proxmox.
@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.
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.
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.
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)
- Add security group to the vm via firewall rules HOT 4
- "unable to parse volume ID 'local-zfs'" when adding volume to existing LXC container
- Some Virtual Machine template properties are marked to be updated in-place always HOT 6
- CD rom always gets created for new machine HOT 2
- Support seamless datastore_id changes for disks without VM restart
- Incorrect VGA block addition after VM import HOT 2
- Firewall rule attributes cannot be removed / perpetual change plan HOT 1
- Manually removed firewall rules not detected by provider
- Add support for hardware watchdog timers (watchdog:) HOT 1
- LXC/VM : add support for more disk size units
- Support `bzip2` decompression algorithm in `pve_download_file` HOT 2
- Discrepancy in IPv6 address representations related to compression in IPsets
- Changing EFI disk's parameters should not recreate the whole VM HOT 1
- proxmox_virtual_environment_download_file always downloads when size changes despite value of overwrite
- Raw device disk passthrough instead of datastore HOT 2
- Destructive Update after addition of network device HOT 2
- Support for Device passthrough in LXC
- Lack of interaction between vlan & bridge HOT 2
- [Feature Request]: VMs in a HA-Cluster
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-proxmox.