Error when attaching nics in vcenter

it happens for all vms, new and existing.

attaching log.

Sun Jun 29 10:54:17 2025 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.
Sun Jun 29 10:54:17 2025 [Z0][VMM][I]: Successfully execute network driver operation: post.
Sun Jun 29 10:54:17 2025 [Z0][VM][I]: New LCM state is RUNNING
Sun Jun 29 10:54:28 2025 [Z0][LCM][I]: VM running but monitor state is POWEROFF
Sun Jun 29 10:54:28 2025 [Z0][VM][I]: New LCM state is SHUTDOWN_POWEROFF
Sun Jun 29 10:54:29 2025 [Z0][VM][I]: New state is POWEROFF
Sun Jun 29 10:54:29 2025 [Z0][VM][I]: New LCM state is LCM_INIT
Sun Jun 29 10:56:06 2025 [Z0][VM][I]: New state is ACTIVE
Sun Jun 29 10:56:06 2025 [Z0][VM][I]: New LCM state is BOOT_POWEROFF
Sun Jun 29 10:56:06 2025 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/220/deployment.1
Sun Jun 29 10:56:06 2025 [Z0][VM][I]: Virtual Machine has no context
Sun Jun 29 10:56:06 2025 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Sun Jun 29 10:56:06 2025 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/mkdir -p.
Sun Jun 29 10:56:06 2025 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/cat - >/var/lib/one/vms/220/vm.xml.
Sun Jun 29 10:56:07 2025 [Z0][VMM][I]: Successfully execute virtualization driver operation: /bin/cat - >/var/lib/one/vms/220/ds.xml.
Sun Jun 29 10:56:24 2025 [Z0][VMM][I]: Successfully execute virtualization driver operation: deploy.
Sun Jun 29 10:56:24 2025 [Z0][VMM][I]: Successfully execute network driver operation: post.
Sun Jun 29 10:56:24 2025 [Z0][VM][I]: New LCM state is RUNNING
Sun Jun 29 10:56:38 2025 [Z0][VM][I]: New state is ACTIVE
Sun Jun 29 10:56:38 2025 [Z0][VM][I]: New LCM state is HOTPLUG_NIC
Sun Jun 29 10:56:38 2025 [Z0][VM][I]: Virtual Machine has no context
Sun Jun 29 10:56:38 2025 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: Command execution failed (exit code: 255): /var/lib/one/remotes/vmm/vcenter/attach_nic ‘vm-12500912_a1522bf6-c336-47df-bead-f16eefbd9ba0’ ‘02:00:ad:2e:6c:51’ ‘TEST-NETWORK’ ‘-’ ‘vcenter’ ‘one-220-0’ 220 Dedicated
Sun Jun 29 10:56:52 2025 [Z0][VMM][E]: attach_nic: Attach NIC for VM vm-12500912_a1522bf6-c336-47df-bead-f16eefbd9ba0 on vCenter cluster Dedicated failed due to “Cannot attach NIC to VM: InvalidRequest:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: Cannot parse “6295652314” as an int value
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing serialized value of type int
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 411
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing property “key” of static type int
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing serialized DataObject of type vim.vm.device.VirtualVmxnet3
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 377
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing property “device” of static type VirtualDevice
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing serialized DataObject of type vim.vm.device.VirtualDeviceSpec
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 302
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing property “deviceChange” of static type ArrayOfVirtualDeviceConfigSpec
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing serialized DataObject of type vim.vm.ConfigSpec
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 260
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing call information for method ReconfigVM_Task
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 177
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing SOAP body
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 167
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing SOAP envelope
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 0
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing HTTP request for method reconfigure
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: on object of type vim.VirtualMachine
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 0.
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/connection.rb:63:in parse_response' Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/connection.rb:92:in call’
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/basic_types.rb:213:in _call' Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/basic_types.rb:76:in block (2 levels) in init’
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: /usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:2232:in attach_nic' Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: /var/lib/one/remotes/vmm/vcenter/attach_nic:73:in '”
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: Attach NIC for VM vm-12500912_a1522bf6-c336-47df-bead-f16eefbd9ba0 on vCenter cluster Dedicated failed due to “Cannot attach NIC to VM: InvalidRequest:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: Cannot parse “6295652314” as an int value
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing serialized value of type int
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 411
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing property “key” of static type int
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing serialized DataObject of type vim.vm.device.VirtualVmxnet3
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 377
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing property “device” of static type VirtualDevice
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing serialized DataObject of type vim.vm.device.VirtualDeviceSpec
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 302
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing property “deviceChange” of static type ArrayOfVirtualDeviceConfigSpec
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing serialized DataObject of type vim.vm.ConfigSpec
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 260
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing call information for method ReconfigVM_Task
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 177
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing SOAP body
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 167
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing SOAP envelope
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 0
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: while parsing HTTP request for method reconfigure
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: on object of type vim.VirtualMachine
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: at line 1, column 0.
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]:
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/connection.rb:63:in parse_response' Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/connection.rb:92:in call’
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/basic_types.rb:213:in _call' Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/basic_types.rb:76:in block (2 levels) in init’
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: /usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:2232:in attach_nic' Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: /var/lib/one/remotes/vmm/vcenter/attach_nic:73:in '”
Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: [“/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:2240:in rescue in attach_nic'", "/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:2222:in attach_nic’”, “/var/lib/one/remotes/vmm/vcenter/attach_nic:73:in <main>'"] Sun Jun 29 10:56:52 2025 [Z0][VMM][I]: Failed to execute virtualization driver operation: attach_nic. Sun Jun 29 10:56:52 2025 [Z0][VMM][E]: ATTACHNIC: ERROR: attach_nic: Attach NIC for VM vm-12500912_a1522bf6-c336-47df-bead-f16eefbd9ba0 on vCenter cluster Dedicated failed due to "Cannot attach NIC to VM: InvalidRequest: Cannot parse "6295652314" as an int value while parsing serialized value of type int at line 1, column 411 while parsing property "key" of static type int while parsing serialized DataObject of type vim.vm.device.VirtualVmxnet3 at line 1, column 377 while parsing property "device" of static type VirtualDevice while parsing serialized DataObject of type vim.vm.device.VirtualDeviceSpec at line 1, column 302 while parsing property "deviceChange" of static type ArrayOfVirtualDeviceConfigSpec while parsing serialized DataObject of type vim.vm.ConfigSpec at line 1, column 260 while parsing call information for method ReconfigVM_Task at line 1, column 177 while parsing SOAP body at line 1, column 167 while parsing SOAP envelope at line 1, column 0 while parsing HTTP request for method reconfigure on object of type vim.VirtualMachine at line 1, column 0. /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/connection.rb:63:in parse_response’ /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/connection.rb:92:in call' /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/basic_types.rb:213:in _call’ /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/basic_types.rb:76:in block (2 levels) in init' /usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:2232:in attach_nic’ /var/lib/one/remotes/vmm/vcenter/attach_nic:73:in <main>'" Attach NIC for VM vm-12500912_a1522bf6-c336-47df-bead-f16eefbd9ba0 on vCenter cluster Dedicated failed due to "Cannot attach NIC to VM: InvalidRequest: Cannot parse "6295652314" as an int value while parsing serialized value of type int at line 1, column 411 while parsing property "key" of static type int while parsing serialized DataObject of type vim.vm.device.VirtualVmxnet3 at line 1, column 377 while parsing property "device" of static type VirtualDevice while parsing serialized DataObject of type vim.vm.device.VirtualDeviceSpec at line 1, column 302 while parsing property "deviceChange" of static type ArrayOfVirtualDeviceConfigSpec while parsing serialized DataObject of type vim.vm.ConfigSpec at line 1, column 260 while parsing call information for method ReconfigVM_Task at line 1, column 177 while parsing SOAP body at line 1, column 167 while parsing SOAP envelope at line 1, column 0 while parsing HTTP request for method reconfigure on object of type vim.VirtualMachine at line 1, column 0. /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/connection.rb:63:in parse_response’ /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/connection.rb:92:in call' /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/basic_types.rb:213:in _call’ /usr/share/one/gems-dist/gems/rbvmomi-3.0.0/lib/rbvmomi/basic_types.rb:76:in block (2 levels) in init' /usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:2232:in attach_nic’ /var/lib/one/remotes/vmm/vcenter/attach_nic:73:in <main>'" ["/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:2240:in rescue in attach_nic’”, “/usr/lib/one/ruby/vcenter_driver/virtual_machine.rb:2222:in attach_nic'", "/var/lib/one/remotes/vmm/vcenter/attach_nic:73:in '”]
Sun Jun 29 10:56:52 2025 [Z0][VM][I]: New LCM state is RUNNING

thank you.

Hello @Liorme,

Looks like you are using an old version of OpenNebula, and the issue you have looks like it was already fixed on a newer version (Issue 6391).

You should at least upgrade your OpenNebula version.
If you see issues around duplicated NICs or context not applied, check your contextualization type—OpenNebula vs. vCenter need to match, as per the vCenter customization guide.

Cheers,

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.