0

How can I find the Instance ID referred to by Cloud-Init as provided by OpenStack?

1 Answer 1

0

You can run,

cloud-init query instance_id

Or, you can find the INSTANCE_ID, by looking in this file,

/var/lib/cloud/data/instance-id

Or, this one

/run/cloud-init/.instance-id

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.