Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload raw storage images #100

Open
toastbrotch opened this issue Dec 29, 2020 · 3 comments
Open

Upload raw storage images #100

toastbrotch opened this issue Dec 29, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@toastbrotch
Copy link

i'd love to upload my existing kvm-raw vm-images directly as storage into gridscale. best way might be via gscloud instead of webinterface. this would simplify migration of existing vms massively.

thanx and cheers.ivo

@bkircher
Copy link
Contributor

bkircher commented Jan 4, 2021

Hello Hello. Good idea.

POST api.gridscale.io/objects/isoimages allows creating a new image by giving a URL. As long as the image is publicly accessible this should be easy.

So we could possibly allow something like this very quickly

gscloud iso-image create \
 --url=https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.7.0-amd64-netinst.iso \
 --name "Debian 10.7"

Is this something that would help you?

@toastbrotch
Copy link
Author

Hi
your proposal is also very useful, but i thought something else: i run some kvm/proxmox/libvirt machines with a bunch of vms. now i want to migrate that vms to gridscale. as they are already raw-images, it should be possible to upload them directly as a new storage inside gridscale.

now i have to follew more or less this https://gridscale.io/community/tutorials/vmdk-nach-gridscale-migrieren/: setting up first a server inside gridscale with enough storage, ssh the raw-image there, and then copy the image to new target-storage, tear down that converter-vm and -storage...

gscloud storage upload /some/local/path/kvm-image.raw --storagetype=foo --name=bar ...

this could simplify that process massively.

@bkircher
Copy link
Contributor

bkircher commented Jan 5, 2021

Ah, I actually understand now. Sorry, that took a while 😄

Yes that's a good point really. Agree, doing this manually is really cumbersome. Unfortunately at the moment gridscale public APIs won't allow us to do that.

I could imagine that an API that would implement such a feature might also use object storage for that. So you might want to upload the raw image to s3 and then would do something like

gscloud storage import https://your-bucket.gos3.io/image.raw --name=bar

I think even finding out the kind storage can be automated (Windows OS, what kind of filesystem, etc.) this way.

@bkircher bkircher changed the title feature request: gscloud storage upload kvm-image.raw Upload raw storage images Jan 5, 2021
@bkircher bkircher added the enhancement New feature or request label Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants