Unique VM identifier - UUID in NetBox #1965

Closed
opened 2025-12-29 17:20:58 +01:00 by adam · 1 comment
Owner

Originally created by @vzaletny on GitHub (Aug 22, 2018).

Hello.

Environment

  • Python version: 2.7.5
  • NetBox version: 2.4.3

Proposed Functionality

Add unique identifier field "UUID" for VMs such as a serial number for devices.

Use Case

There are huge CRUD operations on a daily basis with VMs running on virtualization platform and it would be nice to synchronize all changes made on it to NetBox, but after rename or recreate VM there is no way to match instance in NetBox and virtualization platform.
I know about custom fields for storing VMware VM UUID, but that is not so convenient to operate and they are not unique.

Database Changes

Add UUID field for VM object to store unique value sach as "42381b9f-36aa-af15-49f9-23f8634bd0a7".
It's 36 characters - 32 hex digits + 4 dashes.

External Dependencies

I don't know.

Thanks.

Originally created by @vzaletny on GitHub (Aug 22, 2018). Hello. ### Environment * Python version: 2.7.5 * NetBox version: 2.4.3 ### Proposed Functionality Add unique identifier field "UUID" for VMs such as a serial number for devices. ### Use Case There are huge CRUD operations on a daily basis with VMs running on virtualization platform and it would be nice to synchronize all changes made on it to NetBox, but after rename or recreate VM there is no way to match instance in NetBox and virtualization platform. I know about custom fields for storing VMware VM UUID, but that is not so convenient to operate and they are not unique. ### Database Changes Add UUID field for VM object to store unique value sach as "42381b9f-36aa-af15-49f9-23f8634bd0a7". It's 36 characters - 32 hex digits + 4 dashes. ### External Dependencies I don't know. Thanks.
adam closed this issue 2025-12-29 17:20:58 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 22, 2018):

If you're populating the UUID from an external system, a custom field will work fine. If you need to obtain a unique ID for each VM from NetBox, use the VM's integer primary key (the id field from the API object).

@jeremystretch commented on GitHub (Aug 22, 2018): If you're populating the UUID from an external system, a custom field will work fine. If you need to obtain a unique ID for each VM from NetBox, use the VM's integer primary key (the `id` field from the API object).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1965