Network Issue in LXC Containers
Posted: 25. Mar 2020, 06:11
Hi,
My requirement is to create LXC Containers in OpenWRT system.
I am using a laptop which has Debian OS. So, for POC purpose, the obvious choice was to use Virtual Box with a OpenWRT VM in it.
1. Installed Virtual Box in my Laptop which runs on Debian 10.
2. Created a OpenWRT VDI
3. Created a VM
4. Created LXC container inside VM
The VM has network connectivity. Whereas the Container doesn't have. How to solve the network issue in LXC.
Note: The Container starts perfectly and i am able to get into the container.
Settings that i chose while creating VM in Virtual Box: Please see the attached images
In VM command line i also did the following:
set network.mng=interface
set network.mng.type='bridge'
set network.mng.proto='static'
set network.mng.netmask='255.255.255.0'
set network.mng.ifname='eth0'
set network.mng.ipaddr='192.168.56.2'
delete network.lan
delete network.wan6
set network.wan=interface
set network.wan.ifname='eth1'
set network.wan.proto='dhcp'
set network.lan=interface
set network.lan.ifname='eth2'
set network.lan.proto='dhcp'
I followed the instructions mentioned in OpenWRT website.
(Currently forum is not allowing me to paste website link here. Please excuse)
Is there anything wrong in my Virtual Box network settings that is blocking network to my LXC Container inside VM.
Thanks,
Strive
My requirement is to create LXC Containers in OpenWRT system.
I am using a laptop which has Debian OS. So, for POC purpose, the obvious choice was to use Virtual Box with a OpenWRT VM in it.
1. Installed Virtual Box in my Laptop which runs on Debian 10.
2. Created a OpenWRT VDI
3. Created a VM
4. Created LXC container inside VM
The VM has network connectivity. Whereas the Container doesn't have. How to solve the network issue in LXC.
Note: The Container starts perfectly and i am able to get into the container.
Settings that i chose while creating VM in Virtual Box: Please see the attached images
In VM command line i also did the following:
set network.mng=interface
set network.mng.type='bridge'
set network.mng.proto='static'
set network.mng.netmask='255.255.255.0'
set network.mng.ifname='eth0'
set network.mng.ipaddr='192.168.56.2'
delete network.lan
delete network.wan6
set network.wan=interface
set network.wan.ifname='eth1'
set network.wan.proto='dhcp'
set network.lan=interface
set network.lan.ifname='eth2'
set network.lan.proto='dhcp'
I followed the instructions mentioned in OpenWRT website.
(Currently forum is not allowing me to paste website link here. Please excuse)
Is there anything wrong in my Virtual Box network settings that is blocking network to my LXC Container inside VM.
Thanks,
Strive