Re: [packer] I am looking for a Winrm script example .. Most what I tired are not working

2020-02-18 Thread Angel Rengifo Cancino
Hi:



On Mon, Feb 10, 2020 at 3:41 PM Ibrahim Buamod 
wrote:

> I am looking for a Winrm script example .. Most what I tired are not
> working ..
>
> What kind of script do you need? What it should be used for? What are your
needs? What builder are you using?

I have some PowerShell scripts which I run through WinRM using packer, not
sure if that might work for your environment

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAA3McK-JktUQJWD4Hj6L%3DgVymibYqJt478YBM5uR6xSuwLmVgQ%40mail.gmail.com.


Re: [packer] packer Azure vscode

2019-10-24 Thread Angel Rengifo Cancino
You can use "-var YourVar=YourValue" or "-var-file=vars-files.json" as
arguments to packer build command.

Does that help?

On Tue, Oct 22, 2019 at 5:01 PM Ashish Ashish 
wrote:

> Hii all,
>
> I am wondering how can i pass the variables file in packer, the variables
> file contains client_id, client_secret, subscription id, tenant_id,
>
>
> I am using VS code for deployment, any suggestions ?
>
> Thanks
> Ashish
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to packer-tool+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/6246cb21-f4ad-4a5c-97ff-ed7a08a429e3%40googlegroups.com
> 
> .
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAA3McK9sME-YO2bY9-RZpta0%3DHKdQQX0L78Qjo9%2Bq5m6vwwMew%40mail.gmail.com.


[packer] VM name when building image with azure-arm builder

2019-10-17 Thread Angel Rengifo Cancino
Hello guys:

Does anybody know how to set the VM name during image creation using 
azure-arm builder? Currently, my VM is getting a random name. I was not 
able to find an option to set a custom name; maybe I missed any info from 
the docs.

I hope someone can help me with this.

Thanks in advance

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/2e8951ad-d63e-44fc-b25e-02f51a652764%40googlegroups.com.


[packer] Floppy gets suddenly disconnected when building images

2019-09-09 Thread Angel Rengifo Cancino
Hello guys:

I'm running packer 1.4.2 with vsphere-iso builder on VMware vSphere 6.0.*. 
I've recently noticed that the floppy drive assigned to my Windows VM 
(which contains Autounattend.xml and some scripts) gets disconnected, 
sometimes, which affects the process of configuration of the OS.

It seems that the floppy device gets disconnected after Windows reboots (as 
part of the installation process). Have anyone experienced anything similar 
to this behavior?

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/ef1dfcbe-b105-41d9-84f5-55a05707bb97%40googlegroups.com.


Re: [packer] Windows AMI creation on EC2

2019-08-26 Thread Angel Rengifo Cancino
Hello Rickard, thanks for your reply

On Mon, Aug 26, 2019 at 11:33 AM Rickard von Essen <
rickard.von.es...@gmail.com> wrote:

> To get the IP for running ansible in shell-local do:
>
> A) Run a shell provisioner that saves the IP in a file. Use a file
> provisioner to download it and read it in the shell-local script.
>
 How do I get the IP? I'm not aware of any packer variable or setting that
contains such value in a similar way as {{.WinRMPassword}} for password.

Or B) use some aws tag specific to this build and run the aws cli to find
> the IP of that instance.
>
That could be an option if option A does not work as expected.

>
> I would expect Ansible 2.8 with WinRM support in Packer to be at best
> rocky. But if you are into troubleshooting things it's probably worth at
> least trying.
>
Ansible 2.8 does work pretty well with WinRM. However, the special "packer"
connection used by ansible provisioner it requires a plugin, as far as I
know, but that's where I get confused.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAA3McK95gj%3D73d_grifK-GLCG8suhcVVQ9Pz5%3D0Kevj9-1ahmA%40mail.gmail.com.


[packer] Windows AMI creation on EC2

2019-08-26 Thread Angel Rengifo Cancino
Hello guys:

I have a doubt. What's the currently recommended or supported way of
provisioning Windows with ansible on EC2?

I mean, there's a Ansible connection plugin for Packer that must be created
(downloaded or installed) before attempting to use a code like this:

"provisioners": [
  {
"type": "*ansible*",
"playbook_file": "../playbooks/windows_image_build/playbook.yml",

"extra_arguments": [
  "--extra-vars", "{'environment_name': 'packer',
'hosting_environment': 'aws',* 'connection': 'packer'*}",
  "--skip-tags", "gitchecks",
  "--skip-tags", "gather_facts",
  "--skip-tags", "slack"
]
  }
]

The other way I had in mind is running ansible with shell-local, like this:

"provisioners": [
{
"type": "*shell-local*",
"inline":   [
"ansible-playbook -i {{ user `os_ipaddr` }}, \\",
"-e ansible_user='{{ user `os_adminuser` }}' \\",
"-e ansible_password='{{ user `os_adminpass` }}' \\",
"-e os_update='{{ user `os_update` }}' \\",
"-e os_firstinstall={{ user `os_firstinstall`}} \\",
"{{ user `ansible_playbook` }}"
]
}
]

(please ignore my custom vars)

I'm not sure how to setup my connection plugin for ansible 2.8.x. Any ideas
on this?

Otherwise, do you know how can I get the public IPv4 and password for my
recently created Windows EC2 instance? I'm not sure if {{.WinRMPassword}}
variable is valid here.

Hope someone can give me some guidance.

Thanks in advance

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAA3McK9buB6U1Buw8%3D%3DAJm17Tf9wbM-JhQySLziEbS_4UVJnEA%40mail.gmail.com.


Re: [packer] Waiting for WinRM to become available"

2019-07-04 Thread Angel Rengifo Cancino
Why can't you just modify the disk_controller_type value to the desired
value? Just copy and/or extract the contents of packer config file that is
useful to you.

Maybe I'm not understanding your problem.

On Thu, Jul 4, 2019 at 9:03 PM 'Brian Walker' via Packer <
packer-tool@googlegroups.com> wrote:

> Hi
> thanks for the response. I was able to get past the issue by using these
> parameters
> "winrm_insecure": "true",
>   "winrm_use_ssl": "false",
>
> It connects on HTTP and works now...BUT now trying to figure the next step
> out.
>
> The VM Template gets created fine now but I need to change the
> vsphere_scsi_controller_type from lsilogic to pvscsi because of another
> tool I am using to sping up the VM's.
>
> I am using the steps in this github repo for the packer steps
>
> https://github.com/dteslya/win-iac-lab
>
> And it seems to use packer plugins from this github.
>
>
> https://github.com/jetbrains-infra/packer-builder-vsphere/blob/master/README.md
>
> Trying to figure out how I can change packer to build the VM template
> using pvscsi scsci type instead of lsilogic.
>
> That prob really confused you
>
> Brian Walker
>
> SA Practice Manager  - East / Federal / Canada
>
> brian.wal...@docker.com 
>
> Cell: 919-338-4127
>
> [image: signature_1960088225]
>
>
> On Thu, Jul 4, 2019 at 9:52 PM Angel Rengifo Cancino 
> wrote:
>
>> Hello:
>>
>> On Thu, Jul 4, 2019 at 1:40 PM 'Brian Walker' via Packer <
>> packer-tool@googlegroups.com> wrote:
>>
>>> I have seen a lot of people with the same issue when trying to build a
>>> windows image with Packer. I have yet to find an answer on how to resolve.
>>> I have tried several things which have not resolved the issue.
>>>
>>> Does anyone have ideas on how to resolve this issue? The VM gets created
>>> in vCenter fine.  I can do a web console after the VM comes up and show
>>> that WinRM is installed and available. My assumption is that it has to do
>>> with Authentication. I even tried upping the timeout to 30 minutes but that
>>> does not help.
>>>
>>>
>>> Tried these WinRM settings as well...HELP!
>>>
>>> # Required for WinRM firewall rules
>>> $profile = Get-NetConnectionProfile
>>> Set-NetConnectionProfile -Name $profile.Name -NetworkCategory Private
>>> Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
>>>
>>>
>>> # Enable WinRM service
>>> winrm quickconfig -quiet
>>> winrm set winrm/config/service '@{AllowUnencrypted="true"}'
>>> winrm set winrm/config/service/auth '@{Basic="true"}'
>>> winrm set winrm/config/client
>>> '@{TrustedHosts="192.168.1.100,192.168.1.123"}'
>>>
>>> I don't see you're enabling WinRM SSL. Have you already enabled it? If
>> you didn't, then you should not use WinRM SSL in your packer config file.
>>
>> While waiting for WinRM to connect, try connectivity to port 5986 (SSL)
>> or 5985 (no SSL). See which of those ports work.
>>
>>
>> --
>> This mailing list is governed under the HashiCorp Community Guidelines -
>> https://www.hashicorp.com/community-guidelines.html. Behavior in
>> violation of those guidelines may result in your removal from this mailing
>> list.
>>
>> GitHub Issues: https://github.com/mitchellh/packer/issues
>> IRC: #packer-tool on Freenode
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Packer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to packer-tool+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/packer-tool/CAA3McK_64GrMjXC19uJ1MXjhSjDW-KEThdOV_0n5NV_v7k%3DO%3Dg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/packer-tool/CAA3McK_64GrMjXC19uJ1MXjhSjDW-KEThdOV_0n5NV_v7k%3DO%3Dg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the

Re: [packer] Waiting for WinRM to become available"

2019-07-04 Thread Angel Rengifo Cancino
Hello:

On Thu, Jul 4, 2019 at 1:40 PM 'Brian Walker' via Packer <
packer-tool@googlegroups.com> wrote:

> I have seen a lot of people with the same issue when trying to build a
> windows image with Packer. I have yet to find an answer on how to resolve.
> I have tried several things which have not resolved the issue.
>
> Does anyone have ideas on how to resolve this issue? The VM gets created
> in vCenter fine.  I can do a web console after the VM comes up and show
> that WinRM is installed and available. My assumption is that it has to do
> with Authentication. I even tried upping the timeout to 30 minutes but that
> does not help.
>
>
> Tried these WinRM settings as well...HELP!
>
> # Required for WinRM firewall rules
> $profile = Get-NetConnectionProfile
> Set-NetConnectionProfile -Name $profile.Name -NetworkCategory Private
> Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
>
>
> # Enable WinRM service
> winrm quickconfig -quiet
> winrm set winrm/config/service '@{AllowUnencrypted="true"}'
> winrm set winrm/config/service/auth '@{Basic="true"}'
> winrm set winrm/config/client
> '@{TrustedHosts="192.168.1.100,192.168.1.123"}'
>
> I don't see you're enabling WinRM SSL. Have you already enabled it? If you
didn't, then you should not use WinRM SSL in your packer config file.

While waiting for WinRM to connect, try connectivity to port 5986 (SSL) or
5985 (no SSL). See which of those ports work.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAA3McK_64GrMjXC19uJ1MXjhSjDW-KEThdOV_0n5NV_v7k%3DO%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [packer] Cannot shutdown because of VMware Tools not running

2019-06-30 Thread Angel Rengifo Cancino
Thank you, Alvaro. I'll double check if open-vm-tools is working as
expected, always. Meanwhile, I'll think about a way to capture debug info
when this particular issue occurs again, if happen.

On Sat, Jun 29, 2019 at 6:09 AM Alvaro Miranda Aguilera 
wrote:

> your script that install open-vm-tools can check is all working.
>
> I don't believe this is a packer issue, perhaps on a forum for
> open-vm-tools you could fine ideas why this fails for you.
>
> alvaro
>
> On Thu, Jun 27, 2019 at 8:56 PM Angel Rengifo Cancino 
> wrote:
>
>> Thank you all for your responses. I do have open-vm-tools and perl
>> packages installed. However, these problems still occur sometimes.
>>
>>
>>
>> On Thu, Jun 27, 2019 at 3:21 AM Gowtham 
>> wrote:
>>
>>> I hope you need to install open-vm-tools and Perl as part of the
>>> ks.conf.
>>>
>>>
>>> ---
>>> Best regards,
>>> Gowtham
>>> 07798838879
>>>
>>>
>>> =
>>> Learn from mistakes
>>>
>>> Please consider the environment before printing this email - Thanks
>>>
>>>
>>> On Wed, Jun 26, 2019 at 9:14 PM Alvaro Miranda Aguilera <
>>> kiki...@gmail.com> wrote:
>>>
>>>> hello
>>>> vsphere-clone is not part of the official packer, so i am not sure
>>>> where the error may be.
>>>>
>>>> my suggestion:
>>>>
>>>> check for open or past issues here:
>>>> https://github.com/jetbrains-infra/packer-builder-vsphere/issues
>>>>
>>>> if there is nothing similar, perhaps you can open a new one.
>>>>
>>>> alvaro
>>>>
>>>>
>>>> On Wed, Jun 26, 2019 at 3:52 AM Angel Rengifo Cancino <
>>>> arengi...@gmail.com> wrote:
>>>>
>>>>> Hello guys:
>>>>>
>>>>> Have anyone experienced this error before?
>>>>>
>>>>> "vsphere-clone: Cannot shut down VM: ServerFaultCode: Cannot complete
>>>>> operation because VMware Tools is not running in this virtual machine."
>>>>>
>>>>> I'm using vsphere-clone builder. It's really strange that this error
>>>>> message appears seldom when I clone a VM from the same template. Most of
>>>>> the time it completes the clone process OK, without any issues, but
>>>>> sometimes (it seems randomly) it just fails with such reason.
>>>>>
>>>>> If someone has experienced this behavior before, please share some
>>>>> tips about how to solve this problem. Thanks in advance.
>>>>>
>>>>>
>>>>> --
>>>>> This mailing list is governed under the HashiCorp Community Guidelines
>>>>> - https://www.hashicorp.com/community-guidelines.html. Behavior in
>>>>> violation of those guidelines may result in your removal from this mailing
>>>>> list.
>>>>>
>>>>> GitHub Issues: https://github.com/mitchellh/packer/issues
>>>>> IRC: #packer-tool on Freenode
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Packer" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to packer-tool+unsubscr...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/packer-tool/CAA3McK9YXPiD8kLEMpjG5HEfQanEd%2B4DjVnbBMCXY%2BDPdndpug%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/packer-tool/CAA3McK9YXPiD8kLEMpjG5HEfQanEd%2B4DjVnbBMCXY%2BDPdndpug%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>> --
>>>> Alvaro
>>>>
>>>> --
>>>> This mailing list is governed under the HashiCorp Community Guidelines
>>>> - https://www.hashicorp.com/community-guidelines.html. Behavior in
>>>> violation of those guidelines may result in your removal from this mailing
>>>> list.
>>>>
>>>> GitHub Issues: https://github.com/mitchellh/packer/issues
>>>> IRC: #packer-tool on Freenode
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> 

Re: [packer] Cannot shutdown because of VMware Tools not running

2019-06-27 Thread Angel Rengifo Cancino
Thank you all for your responses. I do have open-vm-tools and perl packages
installed. However, these problems still occur sometimes.



On Thu, Jun 27, 2019 at 3:21 AM Gowtham  wrote:

> I hope you need to install open-vm-tools and Perl as part of the ks.conf.
>
>
> ---
> Best regards,
> Gowtham
> 07798838879
>
>
> =
> Learn from mistakes
>
> Please consider the environment before printing this email - Thanks
>
>
> On Wed, Jun 26, 2019 at 9:14 PM Alvaro Miranda Aguilera 
> wrote:
>
>> hello
>> vsphere-clone is not part of the official packer, so i am not sure where
>> the error may be.
>>
>> my suggestion:
>>
>> check for open or past issues here:
>> https://github.com/jetbrains-infra/packer-builder-vsphere/issues
>>
>> if there is nothing similar, perhaps you can open a new one.
>>
>> alvaro
>>
>>
>> On Wed, Jun 26, 2019 at 3:52 AM Angel Rengifo Cancino <
>> arengi...@gmail.com> wrote:
>>
>>> Hello guys:
>>>
>>> Have anyone experienced this error before?
>>>
>>> "vsphere-clone: Cannot shut down VM: ServerFaultCode: Cannot complete
>>> operation because VMware Tools is not running in this virtual machine."
>>>
>>> I'm using vsphere-clone builder. It's really strange that this error
>>> message appears seldom when I clone a VM from the same template. Most of
>>> the time it completes the clone process OK, without any issues, but
>>> sometimes (it seems randomly) it just fails with such reason.
>>>
>>> If someone has experienced this behavior before, please share some tips
>>> about how to solve this problem. Thanks in advance.
>>>
>>>
>>> --
>>> This mailing list is governed under the HashiCorp Community Guidelines -
>>> https://www.hashicorp.com/community-guidelines.html. Behavior in
>>> violation of those guidelines may result in your removal from this mailing
>>> list.
>>>
>>> GitHub Issues: https://github.com/mitchellh/packer/issues
>>> IRC: #packer-tool on Freenode
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Packer" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to packer-tool+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/packer-tool/CAA3McK9YXPiD8kLEMpjG5HEfQanEd%2B4DjVnbBMCXY%2BDPdndpug%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/packer-tool/CAA3McK9YXPiD8kLEMpjG5HEfQanEd%2B4DjVnbBMCXY%2BDPdndpug%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Alvaro
>>
>> --
>> This mailing list is governed under the HashiCorp Community Guidelines -
>> https://www.hashicorp.com/community-guidelines.html. Behavior in
>> violation of those guidelines may result in your removal from this mailing
>> list.
>>
>> GitHub Issues: https://github.com/mitchellh/packer/issues
>> IRC: #packer-tool on Freenode
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Packer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to packer-tool+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/packer-tool/CAHqq0ezUo7EA0JR8WHfhpX4QvK7ktud2B7oO4h6-bYa%3DaCPn-A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/packer-tool/CAHqq0ezUo7EA0JR8WHfhpX4QvK7ktud2B7oO4h6-bYa%3DaCPn-A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to packer-tool+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/CADB0oFxttSTAznz%2BjX6cZ_tADMcB%3Da-gTZFZ2JiSjpjSaHzBxA%4

[packer] Cannot shutdown because of VMware Tools not running

2019-06-25 Thread Angel Rengifo Cancino
Hello guys:

Have anyone experienced this error before?

"vsphere-clone: Cannot shut down VM: ServerFaultCode: Cannot complete
operation because VMware Tools is not running in this virtual machine."

I'm using vsphere-clone builder. It's really strange that this error
message appears seldom when I clone a VM from the same template. Most of
the time it completes the clone process OK, without any issues, but
sometimes (it seems randomly) it just fails with such reason.

If someone has experienced this behavior before, please share some tips
about how to solve this problem. Thanks in advance.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAA3McK9YXPiD8kLEMpjG5HEfQanEd%2B4DjVnbBMCXY%2BDPdndpug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [packer] Packer SSL

2019-06-20 Thread Angel Rengifo Cancino
Hello

On Thu, Jun 20, 2019 at 1:41 PM Udbhav  wrote:

> I want to enable SSL for winrm communication between my hyper-V VM and
> local windows machine. Can anyone please point me to the right resource? I
> am mostly interested in using self signed certificate.
>
> First, enable WinRM with SSL by following these instructions:

https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#winrm-encryption

Once you have done it, you can code your playbook like this:

- hosts: all
  vars:
ansible_password: DontBeCurious
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore
ansible_user: administrator
ansible_port: 5986
  tasks:
- name: Enable NTP service
  win_service:
name: w32time
state: started
start_mode: auto
...
...


Thanks
> Udbhav
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to packer-tool+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/45a3e22e-b1d9-42f5-9f23-ee9dccd18cbd%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to packer-tool+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAA3McK-BHgU%2B5H-V-fydQMJci5WKpwWQh602BnyBmXWFg2YxHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.