triton icon indicating copy to clipboard operation
triton copied to clipboard

Feature Request - Create Image from VM

Open naisanza opened this issue 10 years ago • 12 comments

After provisioning and setting up a VM, it would be nice to be able to create an image of it that can be shared with other users.

screen shot 2015-08-03 at 23 23 29

naisanza avatar Aug 04 '15 03:08 naisanza

Are you referring to specifically having this feature available in the AdminUI in addition to the current functionality available via CloudAPI?

https://apidocs.joyent.com/cloudapi/#CreateImageFromMachine

chorrell avatar Aug 04 '15 13:08 chorrell

@chorrell I thought the CloudAPI was for Joyent customers only and not for the opensource sdc?

naisanza avatar Aug 04 '15 14:08 naisanza

CloudAPI is part of SDC: https://github.com/joyent/sdc-cloudapi

Just not the customer facing "portal"

chorrell avatar Aug 04 '15 14:08 chorrell

@chorrell I've just installed it. Is it accessible from a web UI?

naisanza avatar Aug 04 '15 15:08 naisanza

No, command line or the HTTP API only.

chorrell avatar Aug 04 '15 15:08 chorrell

https://github.com/joyent/node-smartdc is CloudAPI command line client, btw

kusor avatar Aug 04 '15 15:08 kusor

@chorrell @kusor Would it seem very useful having this in the Operations Portal (creating images from a VM)? Since, it is already a central location for managing images and creating VMs. Unless, I'm wrong and no one really needs to create images from a VM.

naisanza avatar Aug 04 '15 15:08 naisanza

In general it's not an action that operators of a cloud take and its one that we find users of the cloud take, which is why it hasn't been something that we've generally exposed in the operations portal. That doesn't mean we can't, but there are a bunch of details to work out.

Most importantly we'll want to understand whether the operator should have the ability to do this on behalf of a user, given that it can be a bit of a destructive process (at least from the user's perspective) as it will snapshot, modify, stop, send, rollback, etc. the running VM.

rmustacc avatar Aug 04 '15 16:08 rmustacc

@rmustacc without a UI it doesn't seem to have an ease of use for cloud users either. That's what I'm confused about. Same with internal, non-cloud users. I don't think they will be seeing a console very much; and it'll be a hard case to get them to touch a console, too

naisanza avatar Aug 04 '15 16:08 naisanza

Well, unfortunately there is a UI, it's just not open source, sorry.

But basically I'm not disagreeing that it can't be added to the adminui, but we need to work out the semantics of the operation carefully, as it has to be viewed as a destructive action and we'll want to work out whether it's the operator creating the custom image on behalf of that user or it's the operator using this to create a custom image that that specific operator then owns.

rmustacc avatar Aug 04 '15 16:08 rmustacc

@rmustacc that makes so much more sense now. It's like a DLC for the additional content

Thanks!

naisanza avatar Aug 04 '15 16:08 naisanza

I realize this thread pertained specifically to CreateFromMachineImage within joyent/sdc-adminui but it's still worth advertising that you can achieve similar support by creating your own custom VM images using a Packer template. @jen20 recently updated Packer to use Triton's fairly new Go SDK.

jwreagor avatar May 19 '17 15:05 jwreagor