Lxc container with no ip address


(Shahrukh Ali Khan) #1

Hello
i am using ubuntu 18.04 LTS in virtualbox. i have a problem with lxc container, as i search a lot but got no help.
when i use the command sudo lxc-ls --fancy
it gives me output
NAME STATE AUTOSTART GROUPS IPV4 IPV6 UNPRIVILEGED
controller STOPPED 0 - - - false
default_switch STOPPED 0 - - - false
pgw STOPPED 0 - - - false
ran STOPPED 0 - - - false
sgw STOPPED 0 - - - false
sink STOPPED 0 - - - false

etc/network/interfaces of the container is also empty

i assigned the ip address to the above config files. i have created 3 extra Ethernet connection eth1 eth2 eth3. i am using linux ubuntu through virtualbox.
kindly help me to solve this issue