Several providers have implemented “EC2 compatible” metadata services that work with CoreOS, similar to OpenStack. The basic idea is to send back the info in that format.
So, serve from http://169.254.169.254/ <http://169.254.169.254/>. I’m not sure of everything CoreOS reads, but it’s definitely /latest/user-data and the networking info. Here are the EC2 docs: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html> Someone from the CoreOS side should be able to point you at exactly what’s required. - Rob > On Aug 2, 2016, at 3:15 PM, Charlie Drage <[email protected]> wrote: > > Blah. I mean: "the instructions provided are for setting up user-data, not > meta-data" > > Charlie Drage > PGP - 4096R/C037D617 > http://pgp.mit.edu/pks/lookup?op=get&search=0xDA227403C037D617 > <http://pgp.mit.edu/pks/lookup?op=get&search=0xDA227403C037D617> > On Tue, Aug 2, 2016 at 6:10 PM, Charlie Drage <[email protected] > <mailto:[email protected]>> wrote: > Hey all, > > I'm having troubles trying to find documentation in order to setup a > meta-data server / service for CoreOS. I own a KVM virtualization cloud > provider and I wish to natively integrate auto-detection of $public_ipv4 as > well as $private_ipv4 to each user deployment. > > I'm unable to find any documentation in regards to adding said meta-data > service / server, specifically, for KVM/libvirt... > > I was previously told to go to > https://stable.release.core-os.net/amd64-usr/current/coreos_production_qemu.sh > > <https://stable.release.core-os.net/amd64-usr/current/coreos_production_qemu.sh> > as well as https://coreos.com/os/docs/latest/booting-with-qemu.html > <https://coreos.com/os/docs/latest/booting-with-qemu.html> but found that the > instructions provided are for setting up meta-data, but user-data. > > What I'm specifically looking for is the native detection of $public_ipv4 and > $private_ipv4 as per this quote in the instructions here: > https://coreos.com/os/docs/latest/cloud-config.html > <https://coreos.com/os/docs/latest/cloud-config.html> , the lines: > > Note: The $private_ipv4 and $public_ipv4 substitution variables referenced in > other documents are only supported on Amazon EC2, Google Compute Engine, > OpenStack, Rackspace, DigitalOcean, and Vagrant. > > > Many thanks! > > > Charlie Drage > PGP - 4096R/C037D617 > http://pgp.mit.edu/pks/lookup?op=get&search=0xDA227403C037D617 > <http://pgp.mit.edu/pks/lookup?op=get&search=0xDA227403C037D617>
