The easiest way to create an image from an existing kvm instance is with:

src_vm_uuid=FIXME
name=my-first-image
version=1
imgadm create -i $src_vm_uuid -s linux-prepare-image version=$version
name=$name

You can find linux-prepare-image at
https://raw.githubusercontent.com/joyent/sdc-imgapi/master/tools/prepare-image/linux-prepare-image

You can then install that image on the server with

imgadm install -f $name-$version.zvol -m $name-$version.imgmanifest

HTH,
Mike


On Wed, Jun 27, 2018 at 1:53 PM, Youzhong Yang <[email protected]> wrote:

> If I need to store our own kvm image on our server, what format of the
> image file should be? zfs send stream and compressed by gzip? where to put
> the file? together with the manifest file?
>
> The following image on joyent server does not say anything about the file
> location. I have no idea what it is:
>
> https://images.joyent.com/images/0ed8e3fa-154e-4302-8d4e-d74f877dbf37
>
>   "files": [
>     {
>       "sha1": "55719bec7dcde369ca8bfdff8e289335d798216e",
>       "size": 329064188,
>       "compression": "gzip"
>     }
>   ],
>
> Just want to ask before digging in.
>
> Thanks,
>
> --Youzhong
>
> *smartos-discuss* | Archives
> <https://www.listbox.com/member/archive/184463/=now> | Modify
> <https://www.listbox.com/member/?> Your Subscription
> <http://www.listbox.com>
>



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125
Powered by Listbox: http://www.listbox.com

Reply via email to