Some kind of networking needs to work for Packer to be able to reach the VM
over SSH.

On Tue, Sep 3, 2019, 14:54 Andre Moraes (ICARO TECH) <
[email protected]> wrote:

> Networking doesn't work but is running in my local computer in virtualbox.
>
>   The most strange thing is that, now I was able to use boot commands to
> make the login but it still get stucks in "Waiting for ssh"
>
> On Monday, September 2, 2019 at 5:18:38 PM UTC-3, Rickard von Essen wrote:
>>
>> Does that image start ssh on boot? Is network working? Can you manually
>> ssh with the given credentials to the VM?
>>
>> Could you rerun with PACKER_LOG=1 set and provide the full output here.
>>
>> What's the VM? Is it something public?
>>
>> On Mon, Sep 2, 2019, 20:02 Andre Moraes (ICARO TECH) <
>> [email protected]> wrote:
>>
>>> Hi.
>>>
>>> I'm facing the following issue when I try to use packer to build an VM
>>> image.
>>> Looks like packer can't connect in my VM and make the login, so it stay
>>> stuck forever.
>>>
>>> The file that I'm using is an OVA file from an existing VM.
>>> During the process, virtualbox get the VM up and running but when comes
>>> to login page it stuck forever:
>>>
>>> JSON file:
>>>
>>> {
>>> "builders": [
>>> {
>>> "type": "virtualbox-ovf",
>>> "source_path":
>>> "C:\Users\Administrator\Desktop\Packer\cloudconnect-2.0.ova",
>>> "ssh_username": "user",
>>> "ssh_password": "password",
>>> "communicator": "ssh",
>>> "ssh_pty": true,
>>> "ssh_port": 22,
>>> "shutdown_command": "echo 'packer' | sudo -S shutdown -P now"
>>> }
>>> ]
>>> }
>>>
>>> Attaching the log in the image.
>>> As you can see, the VM is avaiable and waiting for the login, but even I
>>> got ssh timeout
>>>
>>> Your privacy is important to us. That is why we have taken appropriate
>>> measures to ensure the data you provide to us is kept secure. To learn more
>>> about how we process your personal information, how we comply with
>>> applicable data protection laws, and care for the security and privacy of
>>> your personal data, please review our Privacy Policy
>>> <https://www.motorolasolutions.com/en_us/about/privacy-policy.html#privacystatement>.
>>> If you have any questions related to data protection and compliance with
>>> applicable laws, please contact us at our Security Operations Center at 
>>> 1-302-444-9838
>>> or mail us at:
>>>
>>> Attention: Privacy Compliance Program, P.O. Box 59263, Schaumburg, IL
>>> USA, 60159-0263
>>>
>>> --
>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/packer-tool/1f45ce6e-93d1-4690-84af-1c2f5e03c4e5%40googlegroups.com
>>> <https://groups.google.com/d/msgid/packer-tool/1f45ce6e-93d1-4690-84af-1c2f5e03c4e5%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
> Your privacy is important to us. That is why we have taken appropriate
> measures to ensure the data you provide to us is kept secure. To learn more
> about how we process your personal information, how we comply with
> applicable data protection laws, and care for the security and privacy of
> your personal data, please review our Privacy Policy
> <https://www.motorolasolutions.com/en_us/about/privacy-policy.html#privacystatement>.
> If you have any questions related to data protection and compliance with
> applicable laws, please contact us at our Security Operations Center at 
> 1-302-444-9838
> or mail us at:
>
> Attention: Privacy Compliance Program, P.O. Box 59263, Schaumburg, IL
> USA, 60159-0263
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/a52e6a99-9b9e-430e-b3f3-f57ca12bd259%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/a52e6a99-9b9e-430e-b3f3-f57ca12bd259%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt9oGYNRP0-bQfx_XNi0qSD-8cc1DOHYs3Z3fU%3DWh5JmPQ%40mail.gmail.com.

Reply via email to