<div dir="ltr">After investigating alittle, it looks like it's partially supported, it uses the NoCloud portion: <a href="http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html">http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html</a><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>$ tail -n 1 /etc/cloud/cloud.cfg</div></div><div><div>datasource_list: ["NoCloud", "ConfigDrive"]</div></div></blockquote><div><div><br></div><div>But I'm not sure how to get more information or what's accurate. The instance ID (VM id) according to oVirt is <span style="color:rgb(119,119,119);font-family:arial,sans-serif">d3f659e1-21ff-42a0-b5fa-7c2f74a36c2b</span></div><div>However from within the VM it's a different guid:<br></div><div><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><div>$ cat /var/lib/cloud/data/instance-id</div></div></div><div><div><div>5d753a23-6f32-41cd-947b-d45e38d30839</div></div></div><div><br></div></blockquote>I'm also looking to get more information including what host it's running on, what datacenter, type of console, etc.<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 1, 2017 at 8:53 AM, Marc Young <span dir="ltr"><<a href="mailto:3vilpenguin@gmail.com" target="_blank">3vilpenguin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div><br></div><div>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 "<a href="http://x.foo.com" target="_blank">x.foo.com</a>" 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.</div></div>
</blockquote></div><br></div>