Hello Folks, I hope everyone is doing great…!
So recently i was testing the feature of importing the unmanaged instance from VMware to cloudstack which is working smoothly. So I have a unmanaged instance running in the VMware, I have deleted the NIC from vCenter itself (Before importing it into the CloudStack. I am able to import the instance and able to add a NIC from cloudstack itself, i.e I have added a NIC from a VPC Tier, But what I have observed that it doesn’t configure it to the default NIC - Which means it doesn’t put proper routes under the VM because ACS consider it as a secondary NIC. First I looked at the vm_instance table - private_mac_address and private_ip_address is kept empty. Then I have stopped and start the instance, After it both rows got populated. Now whenever I tried to set this as a default NIC, it always give below error - `Failed to find a Nic profile for the existing default network. This is bad and probably means some sort o configuration corruption. ` The output of my Nic table is - mysql> select * from nics where instance_id = '1917' \G *************************** 1. row *************************** id: 5306 uuid: db50625f-65f8-40a1-8931-4a696ae29462 instance_id: 1917 mac_address: 02:00:3e:c4:00:07 ip4_address: 172.16.0.216 netmask: 255.255.255.0 gateway: 172.16.0.1 ip_type: Ip4 broadcast_uri: vlan://1091 network_id: 213 mode: Dhcp state: Reserved strategy: Start reserver_name: ExternalGuestNetworkGuru reservation_id: 038b2713-63c5-4340-bd4c-0617f9c0867a device_id: 0 update_time: 2022-10-10 13:52:56 isolation_uri: vlan://1091 ip6_address: NULL default_nic: 0 vm_type: User created: 2022-10-10 08:22:56 removed: NULL ip6_gateway: NULL ip6_cidr: NULL secondary_ip: 0 display_nic: 1 1 row in set (0.00 sec) Then I tried to update the row - default_nic = 1, mysql> update nics set default_nic = 1 where id = '5306'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 then it started working properly, Now if I add another network to this VM and also able to make it default as well. So is this correct way to make it working or should I need to take care some other parameters so that it can be done from UI as well. Vivek Kumar Sr. Manager - Cloud & DevOps TechOps | Indiqus Technologies vivek.ku...@indiqus.com <mailto:vivek.ku...@indiqus.com> www.indiqus.com <https://www.indiqus.com/> -- This message is intended only for the use of the individual or entity to which it is addressed and may contain confidential and/or privileged information. If you are not the intended recipient, please delete the original message and any copy of it from your computer system. You are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited unless proper authorization has been obtained for such action. If you have received this communication in error, please notify the sender immediately. Although IndiQus attempts to sweep e-mail and attachments for viruses, it does not guarantee that both are virus-free and accepts no liability for any damage sustained as a result of viruses.