qemus/qemu-docker

[Feature]: Add an easier way to run preinstalled images.

Closed this issue ยท 5 comments

Is there no existing feature request for this?

  • I have searched the existing feature requests

Is your proposal related to a problem?

I found existing issues #347, #458 but I think this use case is slightly different.
Some systems ship as a preinstalled qcow2 image (for example home assistant, https://www.home-assistant.io/installation/linux)

In such case it's needed to mount the provided file as data.qcow2, instead of installing an iso. However, the script seems to always expect the boot env var to be set, or an installer image to exist.

Describe the solution you'd like.

Maybe the BOOT variable could recognise a special keyword, like skip, preinstalled, that would skip adding the CDROM, and trying to download an image?
Or it could maybe be a new variable, like PREINSTALLED|INSTALLED=y?

Describe alternatives you've considered.

Creating a dummy boot.img|iso file in /storage, seems to be working as a workaround.

Additional context

Thank you for this project, it's very useful :)

Good suggestion! I created a new version (v5.07) where you can leave BOOT empty now (as long as a disk image already exists in /storage)

Please try it out and let me know if it works!

Works great, thank you!

In the next version I will also add that if the URL in BOOT ends with .qcow2 it will automaticly save the file as data.qcow2 instead of boot.iso. That way you will not have to copy/rename the file manually.

@janek202 I created a new version now (v5.15) that supports exactly this feature. It now accepts files like .qcow2.gz or .img.bz in the URL, so to install HomeAssistant you dont need to mess with data.img or dummy ISOs anymore. Please let me know if it works good for you!

@kroese Thank you! I finally was able to try it, and It booted the system just fine on the first try.