[ovirt-devel] cloud-init metadata service

Marc Young 3vilpenguin at gmail.com
Wed Mar 1 14:53:16 UTC 2017


Ive looked through what documentation I can find and i only come up on bug
reports from years ago, but: is there anyway to get metadata about a oVirt
server metadata from the context of a VM ? cloud-init supports a metadata
service that sits on 169.254.169.254 to retrieve info like instance-id etc.
This is very useful in AWS which I'm familiar with.

My context is that I'd like to run some assertions against a VM and the
test framework I'm using runs all assertions from within the VM itself. So
If i wanted to assert that the host running my VM is "x.foo.com" I'd have
to be able to retrieve that from within the VM. I can do that via the REST
API but that requires me to get a REST user/pass inside the vm and feels
hacky. The common way of doing this at openstack/aws is to curl the
metadata service which replies with information only relevant to the
machine asking.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20170301/83ec7ec7/attachment.html>


More information about the Devel mailing list