This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using VC UUID for attach/detach where possible (#1526)
* Added proper return on protocol version mismatch * Using VC UUID for attach/detach where possible When communcaiton from VMCI vSocket is established, we find out VM ID from the socket. There are 2 IDs - VC UUID and BIOS UUID. When .vmx file is copied (e.g. VCD or other product), BIOS UUID can be dulicate. However, VC UUID is unique on creation of VM, and unique as long as ESXi is a part of a VC. So it is a much better candidate for using as a unique ID. Thic change tries to use VC UUID first, and fails back to BIOS UUID next. The change also checks that the VM name (for a found VM by ID) matches the one we see from vSocket, and does a few other minor prints. * Try to use VC UUID first for locating VMs, then fall back to BIOS UUID When communication from VMCI vSocket is established n vmdk_ops.py, we find out VM ID from the socket, and then locate VM ManagedObject by this ID. There are 2 IDs - VC UUID and BIOS UUID. When .vmx file is copied (e.g. VCD or other products), BIOS UUID can be duplicate thus failures like #1373 . However, VC UUID is unique on creation of VM, and unique as long as ESXi is a part of a VC. So it is a much better candidate for using as a unique ID. This change tries to use VC UUID first, and fails back to BIOS UUID next. The change also checks that the VM name (for a found VM by ID) matches the one we see from vSocket, and does a few other minor prints. * Unbundled detachVMDK and attachVMD to address review comments * fixed the VM instance ID
- Loading branch information
1 parent
95ce352
commit b93c186
Showing
1 changed file
with
67 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters