You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
Do not leave "+1" or other comments that do not add relevant information or questions.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Terraform
1.9.8
Terraform Provider
2.11.1
VMware vSphere
8.0.3.00400 vCenter Server 8.0 Update 3d (ESXi 7.0.3)
Description
When decreasing CPU in a vsphere_virtual_machine resource, we expect a system to reboot and apply the change.
The resource returns an error
Error: CPU hot plug is not supported for this virtual machine.
This error is also reported in the vsphere console.
Note on the same system RAM or RAM/CPU combined change (reductions) trigger a reboot, RAM/CPU increases apply hot without a reboot. System has hot CPU and RAM add enabled.
Affected Resources or Data Sources
vsphere_virtual_machine
Terraform Configuration
Changes in vsphere_virtual_machine of "num_cpus"
Debug Output
Terraform will perform the following actions:
module.instances.module.vsphere-instance.vsphere_virtual_machine.linux-vm["ld12925-lab-30"] will be updated in-place
Error: CPU hot plug is not supported for this virtual machine.
with module.instances.module.vsphere-instance.vsphere_virtual_machine.linux-vm["ld12925-lab-30"],
on .terraform/modules/instances.vsphere-instance/linux.tf line 1, in resource "vsphere_virtual_machine" "linux-vm":
1: resource "vsphere_virtual_machine" "linux-vm" {
Panic Output
No response
Expected Behavior
CPU remove should trigger a reboot.
Note on the same system RAM or RAM/CPU combined change (reductions) trigger a reboot, RAM/CPU increases apply hot.
ESXi 7 doesn't support hot CPU removal so terraform should not attempt it
Error: CPU hot plug is not supported for this virtual machine.
with module.instances.module.vsphere-instance.vsphere_virtual_machine.linux-vm["ld12925-lab-30"],
on .terraform/modules/instances.vsphere-instance/linux.tf line 1, in resource "vsphere_virtual_machine" "linux-vm":
1: resource "vsphere_virtual_machine" "linux-vm" {
Steps to Reproduce
create a vsphere_virtual_machine
increase its RAM/CPU as desired - hot add works as expected
reduce the CPU only - apply triggers vcentre error (not the expected reboot).
Environment Details
8.0.3.00400 vCenter Server 8.0 Update 3d (ESXi 7.0.3)
Community Guidelines
Terraform
1.9.8
Terraform Provider
2.11.1
VMware vSphere
8.0.3.00400 vCenter Server 8.0 Update 3d (ESXi 7.0.3)
Description
When decreasing CPU in a vsphere_virtual_machine resource, we expect a system to reboot and apply the change.
The resource returns an error
Error: CPU hot plug is not supported for this virtual machine.
This error is also reported in the vsphere console.
Note on the same system RAM or RAM/CPU combined change (reductions) trigger a reboot, RAM/CPU increases apply hot without a reboot. System has hot CPU and RAM add enabled.
Affected Resources or Data Sources
vsphere_virtual_machine
Terraform Configuration
Changes in vsphere_virtual_machine of "num_cpus"
Debug Output
Terraform will perform the following actions:
module.instances.module.vsphere-instance.vsphere_virtual_machine.linux-vm["ld12925-lab-30"] will be updated in-place
~ resource "vsphere_virtual_machine" "linux-vm" {
id = "4236b3fd-a3bb-99f8-8464-881ed7e7300b"
name = "ld12925-lab-30"
~ num_cpus = 2 -> 1
~ tags = [
Plan: 0 to add, 1 to change, 0 to destroy.
Error: CPU hot plug is not supported for this virtual machine.
with module.instances.module.vsphere-instance.vsphere_virtual_machine.linux-vm["ld12925-lab-30"],
on .terraform/modules/instances.vsphere-instance/linux.tf line 1, in resource "vsphere_virtual_machine" "linux-vm":
1: resource "vsphere_virtual_machine" "linux-vm" {
Panic Output
No response
Expected Behavior
CPU remove should trigger a reboot.
Note on the same system RAM or RAM/CPU combined change (reductions) trigger a reboot, RAM/CPU increases apply hot.
ESXi 7 doesn't support hot CPU removal so terraform should not attempt it
https://knowledge.broadcom.com/external/article?legacyId=82568
Actual Behavior
Error: CPU hot plug is not supported for this virtual machine.
with module.instances.module.vsphere-instance.vsphere_virtual_machine.linux-vm["ld12925-lab-30"],
on .terraform/modules/instances.vsphere-instance/linux.tf line 1, in resource "vsphere_virtual_machine" "linux-vm":
1: resource "vsphere_virtual_machine" "linux-vm" {
Steps to Reproduce
create a vsphere_virtual_machine
increase its RAM/CPU as desired - hot add works as expected
reduce the CPU only - apply triggers vcentre error (not the expected reboot).
Environment Details
8.0.3.00400 vCenter Server 8.0 Update 3d (ESXi 7.0.3)
Screenshots
No response
References
https://knowledge.broadcom.com/external/article?legacyId=82568
The text was updated successfully, but these errors were encountered: