-
Notifications
You must be signed in to change notification settings - Fork 6
Remoting causes failure to create first time through #12
Comments
Hi, I have fixed that error in my working copy. I have not had time to complete this work. Right now, I am adding the support for ssh and winrm communicator via configuration. I have found if running older versions of Windows, the WinRM configuration can have issues. That way SSH could be used. My current version will wait for the VM to be turned off before proceeding with the provision step. This should allow for as many installation tasks as required and not getting a timeout. I will try to get some time after work today to complete this. |
I have a working copy of the SSH communicator working. It does not require WinRM. I have been testing with a fork of the Windows 2008 R2 template that adds installing the Integration tools update and shutdowns down the VM after the install phase. It works on my machine. Your mileage may vary. |
Thanks for that. Any reason why you don't just set up lab remoting if it isn't set up? AutomatedLab (automatedlab.codeplex.com) does this quite nicely. |
The only reason was the lack of time and struggling to get it to work consistently. Getting WinRM setup and running in the VM is not really the responsibility of the plugin. If WinRM is configured, it is up to the end user (in the json config file) to ensure the VM is setup with WinRM enabled and accepting connections. The plugin's responsibility stops at adding and removing the VM from the host's trustedhosts configuration. At the end of the day, I would like the Hyper-V plugin to be as close to the other provider's functionality. I am really new to Go programming struggle with the language a bit and miss being able to debug in the same way I do with my day job's C# + Visual Studio development. I was not aware of AutomatedLab before. I will definitely poke around their source. |
The first time that packer build is run, you get errors and an incomplete build:
The second time through, the VM is exported successfully. (I'm guessing this is because the WinRM service is not running the first time and has to be manually started).
The text was updated successfully, but these errors were encountered: