Virtualbox Bridged networking - stopped working for Ubuntu 16.04 guest

1,415 views
Skip to first unread message

RRichards

unread,
Nov 20, 2016, 6:58:25 PM11/20/16
to Hardhats
I updated all my Virtual machines to run GTM, and I now bridged networking does not work.
I never had problems with the bridged network option in VirtualBox, but now no longer works.

I'm not sure if this is an Ubuntu 16.04 issue, or a Virtualbox 5.18 issue, or an IPv4 vs IPv6  issue.

Either way, I'm stumped. 

Does anyone have bridged networking on an Ubuntu 16.04  VM working?

I really want to ssh to the VM from the terminal in OSX, which has many more features  on the host (like copy / paste).

Thanks!
Rafael

Christopher Edwards

unread,
Nov 20, 2016, 7:10:39 PM11/20/16
to hard...@googlegroups.com
Raphael:

You don't need bridged networking for that to work.

Bridges networking means that your vm looks like another machine on the network you are connected to. Some corporate networks prevent this from happening (due to the network tricks that are used to make this happen) thus may not work in every environment.

NAT networking turns you computer into a router (in effect). You setup port forwards that will take the IP address your computer gets and the port assigned and sends the data to the guest vm. This is the most recommended configuration. This works on every network and you just need to configure the port forward to work correctly.

Local only creates a virtual network that only exists in your computer. This normally isolates the vm from the internet access but the host can still connect to it via a unique up address. This is normally used in special cases.

Now to your question: bridged networking no longer works. You have to be more specific. Do you get an IP address in the vm? Can you ssh on the vm to the ip address that was reported? What is the error message from the host when ash is reported? Is there a firewall on the vm? What are the firewall rules on the vm?

--
--
http://groups.google.com/group/Hardhats
To unsubscribe, send email to Hardhats+u...@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "Hardhats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hardhats+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

RRichards

unread,
Nov 20, 2016, 11:01:20 PM11/20/16
to Hardhats
Chris,

I want to SSH from the host terminal (OSX)  to the guest terminal (Ubuntu 16.04 server).

This used to work fine when I was using an older version of Virtualbox and Ubuntu 14.04 using bridged networking.
However, now with  Ubuntu 16.4 or Virtualbox 5.1.8,  bridged networking from OSX does not work.

Rafael

Christopher Edwards

unread,
Nov 21, 2016, 6:03:02 AM11/21/16
to hard...@googlegroups.com
Raphael:

You didn't answer any of the troubleshooting questions I asked in my previous email. I need those answers to help.

RRichards

unread,
Nov 21, 2016, 4:33:56 PM11/21/16
to Hardhats
Bridged networking no longer works:

Do you get an IP address in the vm?
Only to the NAT address.
The Bridged IP address does not appear.

Can you ssh on the vm to the ip address that was reported?
No. (It is a NAT)

Is there a firewall on the vm?
No.

Christopher Edwards

unread,
Nov 21, 2016, 5:57:42 PM11/21/16
to hard...@googlegroups.com
On Mon, Nov 21, 2016 at 4:33 PM, RRichards <rmr...@gmail.com> wrote:
Bridged networking no longer works:

Do you get an IP address in the vm?
Only to the NAT address.
The Bridged IP address does not appear.

[CE] Do you have 2 network cards in the VM? If there is only one network card then the ip address that is reported is what the VM got. Also how do you know it is a NAT address? please post results of ifconfig.
 

Can you ssh on the vm to the ip address that was reported?
No. (It is a NAT)

[CE] This question doesn't care if it is a NAT address or a bridged address. This is testing to make sure SSH actually works on the IP address reported by the guest VM on the guest VM.

A better question may be what is the results of ssh -vvvv ip.addr.ess.here
 

Is there a firewall on the vm?
No.



Christopher Edwards
cje...@gmail.com

JohnLeo Zimmer

unread,
Nov 21, 2016, 6:05:28 PM11/21/16
to Hardhats
Raphael,
You may want to share the contents of /etc/network/interfaces

Here is an example that works on Virtualbox on Windows 10:

gtmuser@gtmworkshop:~$ less /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

# Bridged network interface
auto eth1
iface eth1 inet dhcp

Regards,
JLz



---
You received this message because you are subscribed to the Google Groups "Hardhats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hardhats+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages