LXD: Getting DHCP IP but no ping outside
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
So I setup a clean VM in VirtualBox. I setup bridge devices as described by several tutorials.
I create a VM, I get a DHCP address. But after that I got no ping from the container to any IP on the local network, let alone outside.
I can ping the VM from my host though.
So the question remains, what am I doing wrong?
I'm running both host and VM Ubuntu 16.04 LTS, with LXD 2.0.8:
root@ubuntu:/home/test# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp0s3
iface enp0s3 inet manual
auto br0
iface br0 inet dhcp
bridge_ports enp0s3
root@ubuntu:/home/test# lxc profile list
default
docker
root@ubuntu:/home/test# lxc profile show default
config:
environment.http_proxy: ""
user.network_mode: ""
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
name: default
used_by:
root@ubuntu:/home/test#
root@ubuntu:/home/test# lxc list
+------+---------+-----------------------+------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+---------+-----------------------+------+------------+-----------+
| u1 | RUNNING | 192.168.192.12 (eth0) | | PERSISTENT | 0 |
+------+---------+-----------------------+------+------------+-----------+
Any help is appreciated, as I'm going completely nuts. Thanks!
16.04 lxc lxd
add a comment |Â
up vote
0
down vote
favorite
So I setup a clean VM in VirtualBox. I setup bridge devices as described by several tutorials.
I create a VM, I get a DHCP address. But after that I got no ping from the container to any IP on the local network, let alone outside.
I can ping the VM from my host though.
So the question remains, what am I doing wrong?
I'm running both host and VM Ubuntu 16.04 LTS, with LXD 2.0.8:
root@ubuntu:/home/test# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp0s3
iface enp0s3 inet manual
auto br0
iface br0 inet dhcp
bridge_ports enp0s3
root@ubuntu:/home/test# lxc profile list
default
docker
root@ubuntu:/home/test# lxc profile show default
config:
environment.http_proxy: ""
user.network_mode: ""
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
name: default
used_by:
root@ubuntu:/home/test#
root@ubuntu:/home/test# lxc list
+------+---------+-----------------------+------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+---------+-----------------------+------+------------+-----------+
| u1 | RUNNING | 192.168.192.12 (eth0) | | PERSISTENT | 0 |
+------+---------+-----------------------+------+------------+-----------+
Any help is appreciated, as I'm going completely nuts. Thanks!
16.04 lxc lxd
Is your ethernet interface enp0s3 or eth0?
â chili555
Feb 24 at 22:42
Is UFW enabled on either host or VM? If so, does/etc/default/ufw
sayDEFAULT_FORWARD_POLICY="DROP"
or"ACCEPT"
?
â Jonathan Y.
Feb 25 at 9:48
@chili555 enp0s3 on my host, eth0 on my VM.
â Florius
Feb 25 at 19:55
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
So I setup a clean VM in VirtualBox. I setup bridge devices as described by several tutorials.
I create a VM, I get a DHCP address. But after that I got no ping from the container to any IP on the local network, let alone outside.
I can ping the VM from my host though.
So the question remains, what am I doing wrong?
I'm running both host and VM Ubuntu 16.04 LTS, with LXD 2.0.8:
root@ubuntu:/home/test# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp0s3
iface enp0s3 inet manual
auto br0
iface br0 inet dhcp
bridge_ports enp0s3
root@ubuntu:/home/test# lxc profile list
default
docker
root@ubuntu:/home/test# lxc profile show default
config:
environment.http_proxy: ""
user.network_mode: ""
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
name: default
used_by:
root@ubuntu:/home/test#
root@ubuntu:/home/test# lxc list
+------+---------+-----------------------+------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+---------+-----------------------+------+------------+-----------+
| u1 | RUNNING | 192.168.192.12 (eth0) | | PERSISTENT | 0 |
+------+---------+-----------------------+------+------------+-----------+
Any help is appreciated, as I'm going completely nuts. Thanks!
16.04 lxc lxd
So I setup a clean VM in VirtualBox. I setup bridge devices as described by several tutorials.
I create a VM, I get a DHCP address. But after that I got no ping from the container to any IP on the local network, let alone outside.
I can ping the VM from my host though.
So the question remains, what am I doing wrong?
I'm running both host and VM Ubuntu 16.04 LTS, with LXD 2.0.8:
root@ubuntu:/home/test# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto enp0s3
iface enp0s3 inet manual
auto br0
iface br0 inet dhcp
bridge_ports enp0s3
root@ubuntu:/home/test# lxc profile list
default
docker
root@ubuntu:/home/test# lxc profile show default
config:
environment.http_proxy: ""
user.network_mode: ""
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
name: default
used_by:
root@ubuntu:/home/test#
root@ubuntu:/home/test# lxc list
+------+---------+-----------------------+------+------------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+---------+-----------------------+------+------------+-----------+
| u1 | RUNNING | 192.168.192.12 (eth0) | | PERSISTENT | 0 |
+------+---------+-----------------------+------+------------+-----------+
Any help is appreciated, as I'm going completely nuts. Thanks!
16.04 lxc lxd
16.04 lxc lxd
asked Feb 24 at 21:25
Florius
264
264
Is your ethernet interface enp0s3 or eth0?
â chili555
Feb 24 at 22:42
Is UFW enabled on either host or VM? If so, does/etc/default/ufw
sayDEFAULT_FORWARD_POLICY="DROP"
or"ACCEPT"
?
â Jonathan Y.
Feb 25 at 9:48
@chili555 enp0s3 on my host, eth0 on my VM.
â Florius
Feb 25 at 19:55
add a comment |Â
Is your ethernet interface enp0s3 or eth0?
â chili555
Feb 24 at 22:42
Is UFW enabled on either host or VM? If so, does/etc/default/ufw
sayDEFAULT_FORWARD_POLICY="DROP"
or"ACCEPT"
?
â Jonathan Y.
Feb 25 at 9:48
@chili555 enp0s3 on my host, eth0 on my VM.
â Florius
Feb 25 at 19:55
Is your ethernet interface enp0s3 or eth0?
â chili555
Feb 24 at 22:42
Is your ethernet interface enp0s3 or eth0?
â chili555
Feb 24 at 22:42
Is UFW enabled on either host or VM? If so, does
/etc/default/ufw
say DEFAULT_FORWARD_POLICY="DROP"
or "ACCEPT"
?â Jonathan Y.
Feb 25 at 9:48
Is UFW enabled on either host or VM? If so, does
/etc/default/ufw
say DEFAULT_FORWARD_POLICY="DROP"
or "ACCEPT"
?â Jonathan Y.
Feb 25 at 9:48
@chili555 enp0s3 on my host, eth0 on my VM.
â Florius
Feb 25 at 19:55
@chili555 enp0s3 on my host, eth0 on my VM.
â Florius
Feb 25 at 19:55
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009435%2flxd-getting-dhcp-ip-but-no-ping-outside%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Is your ethernet interface enp0s3 or eth0?
â chili555
Feb 24 at 22:42
Is UFW enabled on either host or VM? If so, does
/etc/default/ufw
sayDEFAULT_FORWARD_POLICY="DROP"
or"ACCEPT"
?â Jonathan Y.
Feb 25 at 9:48
@chili555 enp0s3 on my host, eth0 on my VM.
â Florius
Feb 25 at 19:55