cua icon indicating copy to clipboard operation
cua copied to clipboard

[Question] How to publish a lume VM image?

Open dp221125 opened this issue 10 months ago • 2 comments

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:

  1. Is it possible to use the vnd.cirruslabs.tart.disk mediaType in Lume?
  2. If not, how can images created with Lume be published as a package?

dp221125 avatar Mar 21 '25 05:03 dp221125

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

f-trycua avatar Mar 22 '25 19:03 f-trycua

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.

dp221125 avatar Mar 24 '25 04:03 dp221125