Help - Timeout Waiting SSH virtualbox-ovf

42 views
Skip to first unread message

Andre Moraes (ICARO TECH)

unread,
Sep 2, 2019, 2:02:33 PM9/2/19
to Packer

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
Screenshot from 2019-09-02 14-38-45.png

Rickard von Essen

unread,
Sep 2, 2019, 4:18:38 PM9/2/19
to packe...@googlegroups.com
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?

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. 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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/1f45ce6e-93d1-4690-84af-1c2f5e03c4e5%40googlegroups.com.

Andre Moraes (ICARO TECH)

unread,
Sep 3, 2019, 8:54:06 AM9/3/19
to Packer
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?

To unsubscribe from this group and stop receiving emails from it, send an email to packe...@googlegroups.com.

Rickard von Essen

unread,
Sep 4, 2019, 3:48:52 PM9/4/19
to packe...@googlegroups.com
Some kind of networking needs to work for Packer to be able to reach the VM over SSH. 

To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/a52e6a99-9b9e-430e-b3f3-f57ca12bd259%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages