Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Bridge Network on OSX & virtual box does not work well. #6

Closed
alex4u2nv opened this issue Jul 23, 2014 · 4 comments
Closed

Bridge Network on OSX & virtual box does not work well. #6

alex4u2nv opened this issue Jul 23, 2014 · 4 comments

Comments

@alex4u2nv
Copy link

As a workaround, I've changed this to use a pre-configured host-only network
alfresco-boxes/packer/precise-alf421.json

@@ -43,19 +43,15 @@
                     "{{.Name}}",
                     "--nic1",
                     "nat"
-                ],
-                [
+                ],[
                     "modifyvm",
                     "{{.Name}}",
                     "--nic2",
-                    "bridged"
-                ],
-                [
-                  "modifyvm",
-                  "{{.Name}}",
-                  "--bridgeadapter2",
-                  "en1"
+                    "hostonly",
+           "--hostonlyadapter2",
+           "vboxnet0"
                 ]
+       
             ],
@maoo
Copy link
Contributor

maoo commented Jul 31, 2014

Thanks Alex! I had to execute the following in order to create vboxnet0

VBoxManage hostonlyif create >/dev/null 2>&1

I'll add it to the docs as soon as I push your changes to master.

I'd like to use this interface to set a known static ip; I wrote https://github.com/maoo/alfresco-boxes/blob/master/common/scripts/static-ip.sh for this reason, should work also on a host-only interface

@maoo
Copy link
Contributor

maoo commented Aug 1, 2014

We need to investigate further how to pass IP (instead of 192.168.56.1) and if-name to the VBoxManage command

@maoo
Copy link
Contributor

maoo commented Aug 1, 2014

Here's the missing part:

vboxmanage hostonlyif ipconfig vboxnet0 --ip 192.168.1.223 --netmask 255.255.255.0

@maoo
Copy link
Contributor

maoo commented Aug 4, 2014

Tested successfully and added documentation in packer/README.md.
Closing the issue

@maoo maoo closed this as completed Aug 4, 2014
maoo added a commit that referenced this issue Nov 15, 2015
Former-commit-id: a7bc03e9c51b780d3d3849d97ba11a2b32155ee7 [formerly a7bc03e9c51b780d3d3849d97ba11a2b32155ee7 [formerly 69e4b9c]]
Former-commit-id: b3e588e
Former-commit-id: ac4c247
Former-commit-id: 2c09362
maoo added a commit that referenced this issue Nov 15, 2015
Former-commit-id: 7d2628601b59a74328e55f736605c540cf371d93 [formerly 7d2628601b59a74328e55f736605c540cf371d93 [formerly 860a595]]
Former-commit-id: 9763135
Former-commit-id: fbcd57d
Former-commit-id: 872c8d5
maoo added a commit that referenced this issue Nov 15, 2015
Former-commit-id: a7bc03e9c51b780d3d3849d97ba11a2b32155ee7 [formerly a7bc03e9c51b780d3d3849d97ba11a2b32155ee7 [formerly a7bc03e9c51b780d3d3849d97ba11a2b32155ee7 [formerly 69e4b9c]]]
Former-commit-id: b3e588e
Former-commit-id: ac4c247
Former-commit-id: 2c09362
Former-commit-id: 0268bbb
maoo added a commit that referenced this issue Nov 15, 2015
Former-commit-id: 7d2628601b59a74328e55f736605c540cf371d93 [formerly 7d2628601b59a74328e55f736605c540cf371d93 [formerly 7d2628601b59a74328e55f736605c540cf371d93 [formerly 860a595]]]
Former-commit-id: 9763135
Former-commit-id: fbcd57d
Former-commit-id: 872c8d5
Former-commit-id: a140ba6
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants