pi-hole:setup_pi-hole_running_in_lxc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pi-hole:setup_pi-hole_running_in_lxc [2021/01/07 18:28] – [Have the LXC Container Start Automatically] peter | pi-hole:setup_pi-hole_running_in_lxc [2021/01/07 18:43] (current) – [Have the LXC Container Start Automatically] peter | ||
---|---|---|---|
Line 677: | Line 677: | ||
- | <WRAP center round todo 60%> | + | Ensure that LXC is set to start containers at boot. |
- | TODO: Need to check these as the path name has changed due to Ubuntu using snaps. | + | |
- | To fix this, edit the container config file: | + | <file bash /etc/default/lxc> |
- | + | # LXC_AUTO - whether or not to start containers at boot | |
- | <file bash /var/lib/lxc/ | + | LXC_AUTO=" |
- | lxc.start.auto = 1 | + | |
- | lxc.start.delay | + | |
</ | </ | ||
- | + | <WRAP info> | |
- | For now, manually start as needed. | + | **NOTE: |
</ | </ | ||
+ | |||
<WRAP info> | <WRAP info> | ||
Line 697: | Line 693: | ||
When the host system boots, LXC decides the order and the delay between each startup. | When the host system boots, LXC decides the order and the delay between each startup. | ||
- | |||
- | In this case: | ||
- | |||
- | * The first line actually does the autostart. | ||
- | * The second line is optional and will delay the start of this container to give the current container time to begin initialization and reduce overloading the host system. | ||
</ | </ | ||
Line 707: | Line 698: | ||
---- | ---- | ||
+ | ===== Show the Pi-Hole Container Configuration File ===== | ||
+ | |||
+ | <code bash> | ||
+ | lxc config show pihole | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | architecture: | ||
+ | config: | ||
+ | boot.autostart: | ||
+ | image.architecture: | ||
+ | image.description: | ||
+ | image.label: | ||
+ | image.os: ubuntu | ||
+ | image.release: | ||
+ | image.serial: | ||
+ | image.type: squashfs | ||
+ | image.version: | ||
+ | volatile.base_image: | ||
+ | volatile.eth0.host_name: | ||
+ | volatile.eth0.hwaddr: | ||
+ | volatile.idmap.base: | ||
+ | volatile.idmap.current: | ||
+ | volatile.idmap.next: | ||
+ | volatile.last_state.idmap: | ||
+ | volatile.last_state.power: | ||
+ | volatile.uuid: | ||
+ | devices: {} | ||
+ | ephemeral: false | ||
+ | profiles: | ||
+ | - default | ||
+ | - bridgeprofile | ||
+ | stateful: false | ||
+ | description: | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | In this case, the autostart config done previously has enabled this. | ||
+ | </ | ||
pi-hole/setup_pi-hole_running_in_lxc.1610044117.txt.gz · Last modified: 2021/01/07 18:28 by peter