LXC on Ubuntu 20.04 VM getting IP from DHCP
Follow any guide for setting up bridged network on LXC. Just google it.
HOWEVER, if you’ve setup LXC on a VM with bridged network, the hypervisor will BLOCK dhcp requests if you’ve not enabled promiscouse mode on the NIC. In Hyper-V you have to enable mac-spoofing for it to work! Take note!
Thank you!