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

feat: upload qcow2 images #44

Open
johanneskastl opened this issue Sep 29, 2024 · 5 comments
Open

feat: upload qcow2 images #44

johanneskastl opened this issue Sep 29, 2024 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@johanneskastl
Copy link

Hi,

I just found your very nice tool and successfully used it to upload a Flatcar image.

I wanted to try out the openSUSE MicroOS images, but those are only available in formats other than RAW.

https://get.opensuse.org/microos/ => Download => Alternative Downloads

Is there a way to upload e.g. a qcow2 image? Would it be possible to add a feature to support qcow2, maybe by piggy-backing as "compression"?

Or do I need to download the image, convert it manually and then use the local image file? (I guess this does not work, as the image is downloaded into the rescue system from $somewhere, where $somewhere needs to be reachable...)

Kind Regards,
Johannes

@apricote
Copy link
Owner

Hello,

you can download the image, convert it and then upload it from your local file with the --image-path= flag.

In general it makes sense to add support for other image types, but for simplicity the tools needed to convert the images should already be installed in the rescue environment, not sure if qemu-img is available there right now.

I would add it as a separate thing to compression though, but in the same way that compression is currently handled.

@apricote apricote added enhancement New feature or request help wanted Extra attention is needed labels Sep 30, 2024
@johanneskastl
Copy link
Author

Hello,

you can download the image, convert it and then upload it from your local file with the --image-path= flag.

Ah, thanks, that's nice. Is this documented and I just missed it? Or is this just visible from the help output?

In general it makes sense to add support for other image types, but for simplicity the tools needed to convert the images should already be installed in the rescue environment, not sure if qemu-img is available there right now.

I would add it as a separate thing to compression though, but in the same way that compression is currently handled.

Yes, that sounds good. IMHO it would be a nice feature. I'll keep this issue open, to track its progress?

Kind Regards,
Johannes

@apricote
Copy link
Owner

apricote commented Nov 2, 2024

Ah, thanks, that's nice. Is this documented and I just missed it? Or is this just visible from the help output?

That was only included in the --help output. I now added the help output directly to the repository to make it easier to learn about the options: https://github.com/apricote/hcloud-upload-image/blob/main/docs/cli/hcloud-upload-image_upload.md

I'll keep this issue open, to track its progress?

Sounds good. I will update the title :)

@apricote apricote changed the title How to upload images in other formats? feat: upload qcow2 images Nov 2, 2024
@maxpain
Copy link

maxpain commented Dec 9, 2024

Any updates?

@apricote
Copy link
Owner

No updates, happy to aid if you want to implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants