Thanks Christopher.

I will admit that the significance of type "zvol" versus "lx-dataset" didn't leap out at me until I read the IMGAPI documentation in detail.

For the benefit of other list subscribers, here's the relevant section of that:

https://images.joyent.com/docs/#manifest-type

----------------------------------------------------------------

Manifest: type

The type of the image file. Must be one of:
TYPE    DESCRIPTION
zone-dataset  a ZFS dataset used to create a new SmartOS zone
lx-dataset a dataset used to create a Lx-brand zone
zvol    a KVM virtual machine image
docker  a Docker image
other   an image that serves any other specific purpose
----------------------------------------------------------------


On 19 Aug 2015, at 15:53, Christopher Horrell wrote:

Hi,




The easiest and most reliable way is the filer by type "lx-dataset":





 curl -s https://images.joyent.com/images | json -c 'this.type === "lx-dataset"' -a uuid name version description







--Christopher Horrell Manager, Solutions Engineering

Joyent Inc.

http://www.joyent.com/

On Mon, Aug 17, 2015 at 5:46 AM, Paul Sture <[email protected]> wrote:

On 17 Aug 2015, at 1:47, Ian Collins wrote:
Christopher Horrell wrote:
Hi everyone,

We just released the following Container-native (lx-brand) and KVM
images to images.joyent.com <http://images.joyent.com> and the Joyent
Public Cloud:

lx-brand:
centos-6         20150811  3011c3ce-3fc4-11e5-8e79-0f90655d04bf

KVM
centos-6         20150811  234c4a6e-402e-11e5-a311-8bc6aad0d65f


Has there been a change in naming policy? None of the recent lx-brand
images have lx- in their names which makes them hard to identify.
The current scheme is confusing. You need to look at the description to
see which one is which.
Comparing the manifests show that there isn't really an easy/reliable
way to tell the
two apart programatically:
"uuid": "234c4a6e-402e-11e5-a311-8bc6aad0d65f",
"uuid": "3011c3ce-3fc4-11e5-8e79-0f90655d04bf",
"provider": "joyent",
"provider": "community",
 "description": "CentOS 6.67 64-bit image with just essential
packages
installed, built to run on KVM virtual machines.",
 "description": "Container-native CentOS 6.7 64-bit image. Built to
run
on containers with bare metal speed, while offering all the services of
a typical unix host",
"urn": "sdc:sdc:centos-6:20150811",
"urn": "smartos:smartos:centos-6:20150811",
"type": "zvol",
"type": "lx-dataset",
"requirements": {
 "brand": "lx",
 "min_platform": {
   "7.0": "20150604T203414Z"
 },
--
Paul Sture




--
Paul Sture


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to