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

local resource nutanix_image #182

Closed
jehutyy opened this issue Nov 16, 2020 · 5 comments · Fixed by #202
Closed

local resource nutanix_image #182

jehutyy opened this issue Nov 16, 2020 · 5 comments · Fixed by #202

Comments

@jehutyy
Copy link

jehutyy commented Nov 16, 2020

I would like to use a local iso to create a resource nutanix_image.

Is there a way to do so without using a http server ?

@yannickstruyf3
Copy link
Collaborator

Hi @jehutyy,

Can you test if this code works for you:

resource "nutanix_image" "local_image_upload" {
  name        = "local-image-cirros-030"
  source_path = "cirros-0.3.0-x86_64-disk.img" # <== path to local image
  description = "locally uploaded image"
}

@jehutyy
Copy link
Author

jehutyy commented Nov 18, 2020

thanks a lot, that works well ;)

@jehutyy jehutyy closed this as completed Nov 18, 2020
@jehutyy jehutyy reopened this Nov 24, 2020
@jehutyy
Copy link
Author

jehutyy commented Nov 24, 2020

Your solution is working fine except for a border effect.
Using source_path my iso is not tagged as ISO and thus cannot be used as cdrom.

Have you heard of something like this ?

@gabybeitler
Copy link
Contributor

This appears to be a bug in the implementation.

@jehutyy
Copy link
Author

jehutyy commented Nov 26, 2020

Thanks a lot for this PR, will this patch be included in next release ?
Would it be a possibility to keep me updated on that matter ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants