-
Notifications
You must be signed in to change notification settings - Fork 75
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
Orphaned VMs #437
Comments
hi, where do you rename the VM? In NetBox or in vCenter? |
in vCenter, and in general, such an option could be useful |
Well, there is a mechanism implemented to find the VM by the MAC addresses of the interfaces. If they have changed as well then the script is unable to find the original VM in NetBox. |
Even if I renamed the virtual machine, the netbox should have known that it was the same virtual machine by its MAC address? Should I specify this somewhere in the settings? MAC addresses are not synchronized now (issue #436) |
Then is is the issue. netbox-sync is currently not compatible with NetBox 4.2 because the API has changed, again. Therefore you would need to wait until I fixed the issue. But it will take some time. Sorry. This is just a hobby project and can only occasionally work on it in my free time. |
Hi, I just pushed a commit to the Thank you very much |
With NetBox 4.1 the serial field got added to VMs. Now when you rename a VM it should properly identify the existing VM in NetBox. |
Everything is fine. Thank you! |
Great, thank you for testing. Can you describe in steps the issue with the hosts? Currently don't really understand what you are trying to do. |
I'm trying to delete virtual machines with the "purge" command. Not only virtual machines are deleted, but also ESXi hosts imported by the script. I'd like to have a choice whether to delete virtual machines together with hosts or not. |
This is quite difficult actually.. because it's not just the host. Also the IP addresses, mac addresses, interfaces vlans and so on. Would first need to to a lookup on all of these. I believe it would be mich easier to do this in bulk in the UI. |
Is it ok to close this issue for now? |
I understand. Not problem.
Yes, thank you. |
As I understand it, virtual machines are synchronized by name. And after renaming a virtual machine it becomes like a new one, and the virtual machine that was renamed becomes orphaned. Is it possible to add a new key so that it synchronizes and deletes with the "orphaned" tag at the same time?
The text was updated successfully, but these errors were encountered: