LXD: Getting DHCP IP but no ping outside

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








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!










share|improve this question





















  • 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











  • @chili555 enp0s3 on my host, eth0 on my VM.
    – Florius
    Feb 25 at 19:55














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!










share|improve this question





















  • 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











  • @chili555 enp0s3 on my host, eth0 on my VM.
    – Florius
    Feb 25 at 19:55












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!










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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
















  • 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











  • @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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491