Hi,
I am just starting to learn LXD.  I installed and init LXD on my Ubuntu 22.04 laptop.  Create a Ubuntu container. For some reason I dont get a IPV4 address for the container.  Can someone help to identify the issue.  I research the forums and discussions none of the solutions worked for me.
Thank you.
             
            
              
                
           
          
            
            
              @ndevadas  it’s hard to make a guess as to what could cause your instance to not get an IPv4 but we’ve often seen Docker and other tools adding firewall rules that would cause such issue. Please refer to https://documentation.ubuntu.com/lxd/en/latest/howto/network_bridge_firewalld/#prevent-connectivity-issues-with-lxd-and-docker  for further instructions.
             
            
              
           
          
            
            
              I followed the instructions.  Removed docker and docker-compose from my laptop. added net.ipv4.conf.all.forwarding=1 to 99-sysctl.conf
             
            
              
           
          
            
              
                tomp  
              
                  
                    February 27, 2024,  3:11pm
                   
                  4 
               
             
            
            
              
           
          
            
            
              Yes. see bellow.
I am using networkmanager for connecting my laptop to internet using a wired connection.
ndevadas@in-info-1007884:~$ sudo ufw status
To                         Action      From
Nginx HTTP                 ALLOW       Anywhere
Anywhere                   ALLOW OUT   Anywhere on lxdbr0
Anywhere                   ALLOW FWD   Anywhere on lxdbr0
             
            
              
           
          
            
            
              Following sequence of command worked for me.
lxc network set lxdbr0 ipv6.firewall false
sudo apt install firewalld
sudo firewall-cmd --zone=trusted --change-interface=lxdbr0 --permanent
Thank you.
             
            
              1 Like