-
Notifications
You must be signed in to change notification settings - Fork 559
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
Customizable image location property #2226
Labels
question
Further information is requested
Comments
This already works: images:
- location: ~/basedisk and $ l start
? Creating an instance "default" Open an editor to review or modify the current configuration
Waiting for Emacs...
INFO[0021] Starting the instance "default" with VM driver "qemu"
INFO[0021] QEMU binary "/usr/local/bin/qemu-system-x86_64" seems properly signed with the "com.apple.security.hypervisor" entitlement
INFO[0021] Attempting to download the image arch=x86_64 digest="sha256:a7700ca87b691246cf57812c63f64a8ab0d6702c00f04c8f6efd97513bab5d59" location="~/basedisk"
INFO[0023] Downloaded the image from "~/basedisk"
… |
Isn't this already possible? |
Oh, I see: lima/pkg/downloader/downloader.go Lines 322 to 337 in 4d57ff6
There is a checking of 🆒 |
The bug is in the colima itself, no matter what configuration is specified, it still tries to download the image cat ~/.colima/_lima/colima-docker/lima.yaml | grep location
- location: ~/Downloads/data
➜ ~ colima start docker --edit
INFO[0000] editing in nvim from $EDITOR environment variable
INFO[0002] starting colima [profile=docker]
INFO[0002] runtime: docker
INFO[0003] starting ... context=vm
> Using the existing instance "colima-docker"
> Starting the instance "colima-docker" with VM driver "qemu"
> QEMU binary "/opt/homebrew/bin/qemu-system-aarch64" seems properly signed with the "com.apple.security.hypervisor" entitlement
> "Attempting to download the image" arch=aarch64 digest="sha512:00e3339bdebd98c3e003570ffb3ad4b01630fe4fcecd15061d5d58e14c07b211c718ed20fa3e4cce227d3b1c59fd98241eaa3e9e2cdfa04acfe32b4bc385428c" location="https://github.com/abiosoft/colima-core/releases/download/v0.6.8-2/ubuntu-23.10-minimal-cloudimg-arm64.qcow2"
> Downloading the image (ubuntu-23.10-minimal-cloudimg-arm64.qcow2) |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Following this issue abiosoft/colima#995
I just realize that this would be a good feature to have, customizable image location:
If for example a user have airgapped environment or some security policy and in order to run VM you can specify you own
.img
. Something like this:In order to achieve this functionalities all we need is a right handling of
location
property:lima/pkg/fileutils/download.go
Lines 17 to 18 in 4d57ff6
@lima-vm/maintainers WDYT?
The text was updated successfully, but these errors were encountered: