-
Notifications
You must be signed in to change notification settings - Fork 81
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
Build does not go through #156
Comments
There is a release here: If you want to build the provider, you can just do a I have generally used the provider by just adding:
to my .tf-file |
Thanks Markus, sorry for my late response. If I understand well, I don't need to download anything to my dev box, just add the snippet in the tf file? am I correct? |
No problem! You don't need to download the source on your dev box unless you want to run the latest version. You just need to stick the snippet I pasted at top of your terraform file and it will download the provider from the terraform registry Tutorials for terraform is available here: |
So many thanks Markus for your prompt response. I work in an environment where cloud is not an option, I need to use terraform against local Hyper-V or maybe VMware VMs. Is there any tutorial around this? |
I would recommend checking out the documentation in the terraform registry: The tutorials I posted was just general Terraform tutorials that can help you understand Terraform and then apply it to use it with any provider. I learned from tutorials targetting AWS as that's what's Terraform is generally used for and then started using this provider |
Again thanks, I will do but try to play with azure as I have a personal subscription. Then I will try to apply it to Hyper-V environment as it is 90% of the env, only 10% VMware is used |
Hi Markus, I started playing with the provider, followed all instructions regarding Requirements at the main page, created a main.tf, I run
It starts by indicating
Then, it starts complaining and generating errors
In spite of the fact that the files are there (on my box longpathname is enabled in the registry to 1) |
@eliassal give the new provider https://github.com/taliesins/terraform-provider-hyperv/releases/tag/v1.0.4 a go. It has fixed a number of bugs. |
Hi, I updated to 1.0.4 but still getting the exact same errors
|
@taliesins , can you tell me please why did you close this thread? |
@eliassal it is still open? Can you post the exact example you are using (delete the password of course) so that I can try to reproduce locally. |
Enclosed is the main.tf in a zip file |
hi taliesinsm any feedback please |
These are the only changes I made to your file
It worked fine for me, so I assume its something to do with the setup on your machine. |
Hi, your response gave me a hint. In fact, my local Hyper-V is in a machine which is part of a domain. The user I was using was missing the domain, I added provider "hyperv" { and it went through like a charm. Boh VMs were in running status. Now, let me ask the following question : how can I trigger the installation of windows server / linux fedora or ubuntu in the main.tf? Do you have any template of examples for achieving this? Also, ig Hyper-V was not local, how can we tell terraform that it is a remote Hyper-V? So many thanks for your help. |
If you want to create a new golden image I would recommend: https://developer.hashicorp.com/packer/plugins/builders/hyperv/iso (I contributed a lot to this one, so it works in a similar way to this Terraform provider) Packer has the functionality to emulate key presses, so if you need to setup a machine from scratch this would be my first choice. Otherwise you would need to start the vm with a preseed (linux fedora) or unattend.xml (windows) to configure it at startup. It would be way easier to achieve this if #36 was in place. |
Again thanks the 1st link need sometime to absorb. I visited the 2nd link I dont see any hint of making a data source file pointing to an isom it just init with users what I need is an example of unattended/data resource file with a win lest say 2019 iso image if possible |
Hi there,
I am following the "Building The Provider", tried on a win machine a swell as fedora, when I run "build make", I get
Is there any release that I can download?
Thanbks for your help
The text was updated successfully, but these errors were encountered: