meta data for this page
  •  

Differences

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

Link to this comparison view

Next revision
Previous revision
home_automation:home_assistant:lxc [2020/12/03 12:25] – created niziakhome_automation:home_assistant:lxc [2020/12/03 13:42] (current) niziak
Line 1: Line 1:
 ====== HA in Proxmox LXC ====== ====== HA in Proxmox LXC ======
 +
 +NOT WORKING!
 +
 +====== Prepare CT ======
  
 ===== Create CT ===== ===== Create CT =====
Line 26: Line 30:
       * Path: ''/var/lib/docker''       * Path: ''/var/lib/docker''
       * Mount options: ''noatime''       * Mount options: ''noatime''
 +
 +
 +
 +===== Host shell =====
 +Modify CT config:
 +<file /etc/pve/nodes/pve1/lxc/111.conf>
 +lxc.cgroup.devices.allow: a
 +lxc.cap.drop:
 +</file>
 +
 +
 +====== Install HA ======
 +
 +<code bash>
 +apt-get update && apt-get dist-upgrade
 +reboot
 +
 +apt-get install curl network-manager apparmor jq
 +curl -sSL https://get.docker.com | bash 
 +
 +# Downgrade docker
 +apt-get install docker-ce=5:18.09.9~3-0~debian-buster
 +apt-get install docker-ce-cli=5:18.09.9~3-0~debian-buster
 +echo "docker-ce hold" | dpkg --set-selections
 +echo "docker-ce-cli hold" | dpkg --set-selections
 +</code>
 +
 +<code bash>
 +curl -sL https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh | bash -s -- -m qemux86-64
 +</code>
 +
 +====== issue ======
 +
 +===== container init caused "write sysctl key kernel.domainname: open /proc/sys/kernel/domainname: permission denied"": unknown") =====
 +
 +<code bash>
 +apt-get install docker-ce=5:18.09.9~3-0~debian-buster
 +apt-get install docker-ce-cli=5:18.09.9~3-0~debian-buster
 +echo "docker-ce hold" | dpkg --set-selections
 +echo "docker-ce-cli hold" | dpkg --set-selections
 +</code>
 +
 +