# Error when attaching nics in vcenter

**URL:** <https://forum.opennebula.io/t/error-when-attaching-nics-in-vcenter/13945>\
**Category:** Operations\
**Created:** [June 29, 2025, 11:00am UTC](https://forum.opennebula.io/t/error-when-attaching-nics-in-vcenter/13945 "2025-06-29T11:00:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liorme](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/liorme/32/6115_2.png) [@Liorme](https://forum.opennebula.io/u/Liorme)\
**Post date:** [June 29, 2025, 11:00am UTC](https://forum.opennebula.io/t/error-when-attaching-nics-in-vcenter/13945/1 "2025-06-29T11:00:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![FrancJP](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/francjp/32/7690_2.png) [@FrancJP](https://forum.opennebula.io/u/FrancJP)\
**Post date:** [June 30, 2025, 10:43am UTC](https://forum.opennebula.io/t/error-when-attaching-nics-in-vcenter/13945/2 "2025-06-30T10:43:58Z")

</div>

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](https://github.com/OpenNebula/one/issues/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,

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/1/14d66f1130b9cd292905f575da9b68a9f574dd03.png) [@system](https://forum.opennebula.io/u/system)\
**Post date:** [July 2, 2025, 10:43am UTC](https://forum.opennebula.io/t/error-when-attaching-nics-in-vcenter/13945/3 "2025-07-02T10:43:59Z")

</div>

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