lxc:profiles:profiles:create_a_bridge_profile
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lxc:profiles:profiles:create_a_bridge_profile [2021/01/07 16:23] – created peter | lxc:profiles:profiles:create_a_bridge_profile [2021/01/07 18:32] (current) – [To assign the profile to a container] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== LXC - Profiles - Profiles - Create a Bridge Profile ====== | ====== LXC - Profiles - Profiles - Create a Bridge Profile ====== | ||
+ | |||
+ | <code bash> | ||
+ | lxc profile create bridgeprofile | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== Edit ===== | ||
+ | |||
+ | <code bash> | ||
+ | lxc profile edit bridgeprofile | ||
+ | </ | ||
+ | |||
+ | Edit as follows: | ||
+ | |||
+ | <code bash> | ||
+ | config: {} | ||
+ | description: | ||
+ | devices: | ||
+ | eth0: | ||
+ | name: eth0 | ||
+ | nictype: bridged | ||
+ | parent: br0 | ||
+ | type: nic | ||
+ | name: bridgeprofile | ||
+ | used_by: [] | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Show the profile ===== | ||
+ | |||
+ | <code bash> | ||
+ | lxc profile show bridgeprofile | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== To assign the profile to a container ===== | ||
+ | |||
+ | <code bash> | ||
+ | lxc profile assign containername default, | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <WRAP important> | ||
+ | **IMPORTANT: | ||
+ | |||
+ | <code bash> | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Set **USE_LXC_BRIDGE=" | ||
+ | |||
+ | </ | ||
lxc/profiles/profiles/create_a_bridge_profile.1610036626.txt.gz · Last modified: 2021/01/07 16:23 by peter