Skip to content
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

Ensure VM identifier is properly ordered #830

Closed
brendandixon opened this issue Aug 3, 2017 · 1 comment
Closed

Ensure VM identifier is properly ordered #830

brendandixon opened this issue Aug 3, 2017 · 1 comment
Milestone

Comments

@brendandixon
Copy link
Contributor

brendandixon commented Aug 3, 2017

The VMid on Linux can be read from “/sys/class/dmi/id/product_uuid”. The first three components of the UUID must be byte swapped (e.g. 0x01234567 -> 0x67452301) before the value will match the VM id found in the VM’s metadata. Here's an example:

VMid (as seen in poral resource explorer and metadata service)

D0DF4C54-4ECB-4A4B-9954-5BDF3ED5C3B8

VMid as found in “/sys/class/dmi/id/product_uuid” (or from dmidecode)

544CDFD0-CB4E-4B4A-9954-5BDF3ED5C3B8

When making this change, the provisioning code will need to allow for misordered bytes when detecting a possibly new VM.

@brendandixon brendandixon added this to the 2.2.15 milestone Aug 3, 2017
brendandixon added a commit that referenced this issue Aug 15, 2017
[#783] -- The agent fails to use the standard Linux environment variables for HTTP proxy
[#830] -- Ensure VM identifier is properly ordered
@brendandixon
Copy link
Contributor Author

Addressed by #839

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant