Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


ubuntu_lxc_lxd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu_lxc_lxd [2017/10/11 07:22] – [Bridge] adminubuntu_lxc_lxd [2021/10/09 15:14] (current) – external edit 127.0.0.1
Line 22: Line 22:
  
 ====Bridge==== ====Bridge====
-<code> +Configure an unused interface for bridging with containers. 
-apt install bridge-utils +  * Install bridge utilities:<code>apt install bridge-utils</code> 
- +  * Configure bridge interface:<code>tee -a /etc/network/interfaces.d/br0 <<EOF
-tee -a /etc/network/interfaces.d/br0 <<EOF+
 auto br0 auto br0
 iface br0 inet manual iface br0 inet manual
Line 32: Line 31:
  bridge_fd 0  bridge_fd 0
  bridge_maxwait 0  bridge_maxwait 0
-EOF+EOF</code> 
 +  * Show default settings:<code>lxc profile show default 
 +config: {} 
 +description: Default LXD profile 
 +devices: 
 +  eth0: 
 +    nictype: bridged 
 +    parent: lxdbr0 
 +    type: nic 
 +  root: 
 +    path: / 
 +    pool: default 
 +    type: disk 
 +name: default 
 +used_by: [] 
 +</code> 
 +  * Edit parent NIC:<code>lxc profile edit default</code>
  
- 
-</code> 
  
  
 {{tag>[linux containers lxc lxd ubuntu]}}   {{tag>[linux containers lxc lxd ubuntu]}}  
ubuntu_lxc_lxd.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1