-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: error reconfiguring virtual machine: error reconfiguring virtual machine: Invalid operation for device '0' #2205
Comments
Hello, jianglianwen! 🖐 Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle. If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests. |
Hey @jianglianwen this is an error thrown by vCenter. There's probably a more detailed message in the task console and in the logs. Did you try the same operation via the vCenter UI? |
我将版本升级到2.9.0就没问题了 |
Might have been related to the sdk update. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Community Guidelines
Terraform
Terraform v1.8.4 on windows_386
Terraform Provider
2.8.1
VMware vSphere
v7.0.3
Description
Hello I want to create a virtual machine by cloning it, but I get an error:
Affected Resources or Data Sources
Terraform Configuration
main.tf
providers.tf
versions.tf
data.tf
variables.tf
terraform.tfvars
Debug Output
Panic Output
No response
Expected Behavior
create virtal mashine
Actual Behavior
error
Steps to Reproduce
terraform plan
`Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
Terraform will perform the following actions:
vsphere_virtual_machine.vm will be created
annotation = (known after apply)
boot_retry_delay = 10000
change_version = (known after apply)
cpu_limit = -1
cpu_share_count = (known after apply)
cpu_share_level = "normal"
datastore_id = "datastore-7032"
default_ip_address = (known after apply)
ept_rvi_mode = "automatic"
extra_config_reboot_required = true
firmware = "bios"
force_power_off = true
guest_id = "centos7_64Guest"
guest_ip_addresses = (known after apply)
hardware_version = (known after apply)
host_system_id = (known after apply)
hv_mode = "hvAuto"
id = (known after apply)
ide_controller_count = 2
imported = (known after apply)
latency_sensitivity = "normal"
memory = 8192
memory_limit = -1
memory_share_count = (known after apply)
memory_share_level = "normal"
migrate_wait_timeout = 30
moid = (known after apply)
name = "test-clone-terraform"
num_cores_per_socket = 1
num_cpus = 4
power_state = (known after apply)
poweron_timeout = 300
reboot_required = (known after apply)
resource_pool_id = "resgroup-7133"
run_tools_scripts_after_power_on = true
run_tools_scripts_after_resume = true
run_tools_scripts_before_guest_shutdown = true
run_tools_scripts_before_guest_standby = true
sata_controller_count = 0
scsi_bus_sharing = "noSharing"
scsi_controller_count = 1
scsi_type = "pvscsi"
shutdown_wait_timeout = 3
storage_policy_id = (known after apply)
swap_placement_policy = "inherit"
sync_time_with_host = true
tools_upgrade_policy = "manual"
uuid = (known after apply)
vapp_transport = (known after apply)
vmware_tools_status = (known after apply)
vmx_path = (known after apply)
wait_for_guest_ip_timeout = 0
wait_for_guest_net_routable = true
wait_for_guest_net_timeout = 5
clone {
template_uuid = "42393058-8137-f6fa-f073-581093426ccc"
timeout = 30
customize {
ipv4_gateway = "10.80.50.1"
timeout = 10
linux_options {
}
network_interface {
]
}
}
}
disk {
}
network_interface {
}
}
**terraform apply**
vsphere_virtual_machine.vm: Creating...vsphere_virtual_machine.vm: Still creating... [10s elapsed]
╷
│ Error: error reconfiguring virtual machine: error reconfiguring virtual machine: Invalid operation for device '0'.
│
│ with vsphere_virtual_machine.vm,
│ on main.tf line 1, in resource "vsphere_virtual_machine" "vm":
│ 1: resource "vsphere_virtual_machine" "vm" {
│
╵`
Environment Details
No response
Screenshots
References
#1809
The text was updated successfully, but these errors were encountered: