http server - virtualbox

141 views
Skip to first unread message

Luke Farnell

unread,
Apr 30, 2017, 2:59:47 PM4/30/17
to Packer
Currently I am trying to write a PR for including the IP address of the host machine as a environment variable. I am using the packer templates from kaorimatz. By default it should do NAT between the VM and the host. The problem is that when the VM boots and it tries to load the preseed file it fails as it cannot connect to the ip 10.0.2.2.

I have attached pictures for both the NAT and Host-Only networks I currently have. I created a Ubuntu VM manually and i can ping both 10.0.2.15 and 10.0.2.2 when the machine has booted. Am i doing something wrong with packer?

Thanks,
Luke

host-vbox.PNG
nat-vbox.PNG

Alvaro Miranda Aguilera

unread,
Apr 30, 2017, 3:28:05 PM4/30/17
to packe...@googlegroups.com
please share the template, screenshot from the guest if you have any 

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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/e39a891a-3dbf-416c-b139-4f556f909ed7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Luke Farnell

unread,
Apr 30, 2017, 3:49:32 PM4/30/17
to Packer
Photo's are attached.

Luke
template.PNG
preseed.PNG
port.PNG

Rickard von Essen

unread,
May 1, 2017, 2:04:04 AM5/1/17
to packe...@googlegroups.com
Please provide templates and scripts as text (attachments).

--
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+unsubscribe@googlegroups.com.

Luke Farnell

unread,
May 1, 2017, 8:58:09 AM5/1/17
to Packer
My first comment contains a link to the Github Repo with all the scripts and templates


On Monday, May 1, 2017 at 2:04:04 AM UTC-4, Rickard von Essen wrote:
Please provide templates and scripts as text (attachments).
On Apr 30, 2017 9:49 PM, "Luke Farnell" <lukefar...@gmail.com> wrote:
Photo's are attached.

Luke

On Sunday, April 30, 2017 at 2:59:47 PM UTC-4, Luke Farnell wrote:
Currently I am trying to write a PR for including the IP address of the host machine as a environment variable. I am using the packer templates from kaorimatz. By default it should do NAT between the VM and the host. The problem is that when the VM boots and it tries to load the preseed file it fails as it cannot connect to the ip 10.0.2.2.

I have attached pictures for both the NAT and Host-Only networks I currently have. I created a Ubuntu VM manually and i can ping both 10.0.2.15 and 10.0.2.2 when the machine has booted. Am i doing something wrong with packer?

Thanks,
Luke

--
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.

Rickard von Essen

unread,
May 1, 2017, 10:19:49 AM5/1/17
to packe...@googlegroups.com
Check

To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/95112f1b-2ef0-4454-b8e0-3aed5fcc8ef9%40googlegroups.com.

Luke Farnell

unread,
May 1, 2017, 10:24:51 AM5/1/17
to Packer

Alvaro Miranda Aguilera

unread,
May 2, 2017, 3:40:46 AM5/2/17
to packe...@googlegroups.com
try disabling windows firewall as a test, try again, and then reenable it

On Mon, May 1, 2017 at 4:24 PM, Luke Farnell <lukefar...@gmail.com> wrote:
 I am using the packer templates from kaorimatz

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages