Comments (6)
Thanks for confirming, @zarinbal, and for offering help!
The disk management part in the provider is quite messy, especially when cloning templates. There are few open tickets for disks, and they are related to each other. On top of that there are dozens of use cases that provider needs to support, so we need to be careful making changes there.
I really need to set some time aside and think about reorganizing this part...
But please vote with 👍🏼 on the ticket to rise its priority.
from terraform-provider-proxmox.
Same problem
i tried to add or remove disk
resource "proxmox_virtual_environment_vm" "k8s_master_1" {
vm_id = 120
name = "k8s-master-1"
node_name = "prxmx"
acpi = true
bios = "seabios"
boot_order = null
description = null
migrate = false
on_boot = true
reboot = false
scsi_hardware = "virtio-scsi-pci"
started = true
stop_on_destroy = null
tablet_device = true
tags = []
template = false
lifecycle {
# prevent_destroy = true
}
cpu {
architecture = "x86_64"
cores = 4
flags = []
hotplugged = 0
limit = 0
numa = true
sockets = 1
type = "host"
units = 1024
}
clone {
vm_id = 1001
}
agent {
enabled = true
timeout = "15m"
trim = false
type = "virtio"
}
disk {
cache = "none"
datastore_id = "local-lvm"
discard = "ignore"
file_format = "raw"
interface = "scsi0"
iothread = false
size = 25
ssd = false
}
disk {
cache = "none"
datastore_id = "local-lvm"
discard = "ignore"
file_format = "raw"
interface = "scsi1"
iothread = false
size = 20
ssd = false
}
initialization {
datastore_id = "local-lvm"
interface = "ide2"
ip_config {
ipv4 {
address = "10.0.0.120/24"
gateway = "10.0.0.1"
}
}
}
memory {
dedicated = 2048
floating = 0
shared = 0
}
network_device {
bridge = "vmbr0"
enabled = true
firewall = false
model = "virtio"
mtu = 0
queues = 0
rate_limit = 0
vlan_id = 0
}
serial_device {
device = "socket"
}
}
and then terraform tries to delete and recreate the VM.
i use latest version
version = "0.44.0"
from terraform-provider-proxmox.
still valid
from terraform-provider-proxmox.
Hello,
I've encountered similar issue with the provider when removing disks from a template.
Steps to Reproduce:
- Initial Configuration: Add two disks to the template as follows:
# Disk 1: Boot disk { datastore_id = "fast" discard = "on" file_format = "raw" file_id = "shared-iso:iso/ubuntu-22.04-cloudimg-amd64-raw.img" interface = "scsi0" iothread = false size = 20 ssd = true } # Disk 2: Data disk { cache = "none" datastore_id = "fast" discard = "on" file_format = "raw" interface = "scsi1" iothread = false size = 15 ssd = true }```
- Removing a Disk:
Attempting to remove a disk (e.g., the second disk) results in the template trying to recreate itself instead of just removing the specified disk. (See attached screenshot:
Expected Behavior:
The template should allow adding or removing a specified disk without attempting to recreate the entire VM.
I'm unsure whether to open a new issue for this or if it fits within the scope of the current one. Additionally, I'm willing to assist in resolving this issue; any guidance on contributing would be greatly appreciated.
Thank you
from terraform-provider-proxmox.
Awesomely detailed bug report, thanks!
from terraform-provider-proxmox.
Marking this issue as stale due to inactivity in the past 180 days. This helps us focus on the active issues. If this issue is reproducible with the latest version of the provider, please comment. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
from terraform-provider-proxmox.
Related Issues (20)
- Unsupported argument HOT 1
- CPU Affinity HOT 1
- `HTTP 500` on some resources when reinstalling `Proxmox` HOT 4
- Numa memory binding HOT 4
- User token HOT 1
- Related to #1107 and #1146, Container creation timeout still persist, timeout_create is ignored
- ZFS Pool (node) and Storage ZFS (cluster)
- timeouts does not apply all the time HOT 2
- Creating vms in modules leads to terraform-provider-proxmox crash HOT 3
- Not an issue but request for example? HOT 7
- Can't Create/Manage Firewall Rules at Node/Cluster Level HOT 3
- Support VirtIO RNG
- Error: error updating VM: received an HTTP 500 response - Reason: only root can set 'affinity' config on Proxmox VE 8.1.10 HOT 10
- proxmox_virtual_environment_file tries to use all the available computer memory to upload a local image and crashes HOT 6
- panic: interface conversion: interface {} is nil, not map[string]interface {} HOT 1
- Terraform registry is missing version 0.52.0 HOT 1
- IDE disk support HOT 2
- Importing role or group forces replacement
- v0.53.0 results in force recreations HOT 1
- Support for disk expansion without having to reboot the vm HOT 3
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.