[Question] How to publish a lume VM image?
Hello, I have a few questions, and since I'm not sure where to ask them, I'm leaving them here as an issue.
First, I am currently using Cilicon. However, Cilicon has an issue on macOS 15.X. Therefore, I looked for an alternative and found Lume.
When using Cilicon, I used a package with the mediaType vnd.cirruslabs.tart.disk (link).
However, Lume does not support the vnd.cirruslabs.tart.disk mediaType
switch layer.mediaType {
case "application/vnd.oci.image.layer.v1.tar":
outputURL = tempDownloadDir.appendingPathComponent("disk.img")
case "application/vnd.oci.image.config.v1+json":
outputURL = tempDownloadDir.appendingPathComponent("config.json")
case "application/octet-stream":
outputURL = tempDownloadDir.appendingPathComponent("nvram.bin")
default:
continue
}
So I have the following questions:
- Is it possible to use the vnd.cirruslabs.tart.disk mediaType in Lume?
- If not, how can images created with Lume be published as a package?
Hey @dp221125 – We use a simpler mediaType than the one used by Tart, but VM images created with Tart are fully compatible with Lume. You just need to edit the config.json.
@aktech has built a tool to convert images created with Tart to Lume: https://github.com/aktech/tlume
To publish the image, simply run this bash script and point it to your registry: https://github.com/trycua/cua/blob/main/libs/lume/scripts/ghcr/push-ghcr.sh
We haven’t created any documentation yet, so if you run into any issues, feel free to reach out on our Discord: https://discord.com/invite/mVnXXpdE85
Thank you. I will try running it as you told me and see if it works properly. Once again, thank you for the quick response.