Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

AFAIK OpenStack doesn't know this. That is entirely down to the bits inside the image.

However, if you can have your image-creating end-users follow a convention, this can be done by agreement. You can have end-users who are adding images specify an 'OS' property for the image. For updating existing images that don't have the property (yet):

glance image-update --property OS=Linux <image>

More info on the glance commandline: http://docs.openstack.org/cli-reference/content/glanceclient_commands.html

AFAIK OpenStack doesn't know this. That is entirely down to the bits inside the image.image. As dbaxps mentions, the OS might identify itself in the logs as it boots. If you know what identifying pattern to search for, that can work.

However, if you can have your image-creating end-users follow a convention, this can be done by agreement. You can have end-users who are adding images specify an 'OS' property for the image. For updating existing images that don't have the property (yet):

glance image-update --property OS=Linux <image>

More info on the glance commandline: http://docs.openstack.org/cli-reference/content/glanceclient_commands.html