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

web UI supports importing OCI-format images but oci-cli does not #869

Open
dch opened this issue Nov 8, 2024 · 3 comments
Open

web UI supports importing OCI-format images but oci-cli does not #869

dch opened this issue Nov 8, 2024 · 3 comments
Labels
Compute Issue pertains to the Compute service

Comments

@dch
Copy link
Contributor

dch commented Nov 8, 2024

In the below example you can see how the web UI supports importing OCI-format images.

These are effectively tarballs containing:

  • image_metadata.json containing various useful metadata
  • output.QCOW2 the actual image as a qcow format disk

20241108-155202

But this is not possible in the CLI - only VMDK and QCOW2 formats are supported.
Can we have this added please, along with some improved docs on how to use this?

Having this functionality exposed in the CLI makes it much easier to upload images, and
the metadata file already contains settings, so we don't need to make additional API
calls to modify it again later.

@NupurGupta3101
Copy link
Member

Can you please share the full command which you are trying.

@dch
Copy link
Contributor Author

dch commented Nov 12, 2024

$ oci compute image import from-object \
  --region us-ashburn-1 \
  --namespace ... \
  --bucket-name ... \
  --compartment-id ocid1.tenancy.oc1..... \
  --name FreeBSD-14.2-STABLE-amd64-amd64-20241108-ce988aa3e800-ufs.oci \
  --display-name FreeBSD-14.2-STABLE-amd64-amd64-20241108-ce988aa3e800-ufs \
  --launch-mode PARAVIRTUALIZED \
  --operating-system FreeBSD \
  --operating-system-version FreeBSD-14.2-STABLE-amd64-amd64-20241108-ce988aa3e800-ufs \
  --source-image-type OCI  <----------- this is the problem

Usage: oci compute image import from-object [OPTIONS]

Error: Invalid value for '--source-image-type': invalid choice: OCI. (choose from QCOW2, VMDK)

For OCI CLI commands and parameters suggestion, auto completion and other useful features, try the Interactive mode by typing `oci -i`.

@dch
Copy link
Contributor Author

dch commented Nov 12, 2024

Actually the main reason we're interested in this, is that the OCI bundle includes metadata about the shape compatibility. If its possible to provide that at import time via another parameter, that would also be fine.

@anup-21 anup-21 added the Compute Issue pertains to the Compute service label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compute Issue pertains to the Compute service
Projects
None yet
Development

No branches or pull requests

3 participants