cneira / zcage

illumos zone manager
Mozilla Public License 2.0
38 stars 5 forks source link

Unable to create lx zone with Joyent image #15

Closed gjnoonan closed 5 years ago

gjnoonan commented 5 years ago

I am trying to create a centos zone, I have pulled the image from joyent with the following;

$ pfexec zcage pull --image 3dbbdcca-2eab-11e8-b925-23bf77789921 --provider=joyent

Downloading image 3dbbdcca-2eab-11e8-b925-23bf77789921
100% |  262120284  bytes out of 262120284 bytes.2120284 bytes..
VM image downloaded succesfully

But when I try to create a zone I get an error message

$ zcage create --alias=test --net "test0|$ip/24|$r" --ram=512mb --with-image=3dbbdcca-2eab-11e8-b925-23bf77789921 --type=lx
There is no image , first execute: pfexec zcage pull --image <uuid> or zcage fetch <url>.

I have tried with and without pfexec.

when I list local images, there is nothing either.

$ zcage images --list local

Locally available images from other sources
------------------------------------
file
cneira commented 5 years ago

Hi @gjnoonan There is a regression in master, I already fixed. Could you try again?

$ zcage create --alias=test --net "test0|$ip/24|$r" --ram=512mb --with-image=3dbbdcca-2eab-11e8-b925-23bf77789921 --type=lx

It should not be --type=lx the correct keyword is --brand=lx.

Thanks a lot for catching this one and submit the issue !!

gjnoonan commented 5 years ago

Thanks for the quick response @cneira, it's working perfectly :-)

cneira commented 5 years ago

No problem 😀, I hope zcage is useful to you.

El mar., 2 de abr. de 2019 12:42, Gavin-John Noonan < notifications@github.com> escribió:

Closed #15 https://github.com/cneira/zcage/issues/15.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cneira/zcage/issues/15#event-2246983337, or mute the thread https://github.com/notifications/unsubscribe-auth/AEIIdRrni7NNiLkYtrdXi7H5yrxJNhzQks5vc3pqgaJpZM4cWZkv .