This is an LXC template containing Edomi, a PHP-based smarthome framework.
For more information please refer to Official website or Support forum
- Download the latest release according to the architecture of your ProxMox installation
- On ProxMox
- Select desired storage
- Select type
CT Templates
- Click
Upload
- Click
Select File
- Select the previously downloaded archive
- Upload it
- Click
Create CT
- Fill 1st page as you like. Usage of
Unprivileged container
andNesting
is fine. - On 2nd page (
Template
) select used storage and choose previously uploaded template - Fill the following pages (Disc, Memory, CPU, Network) according to your needs
The container is now ready to run and Edomi will be available using http://<ip>/admin
.
It might be neccessary to set the timezone according to your location:
timedatectl set-timezone Europe/Berlin
- Create container from RockyLinux template
- ARMv8: See Additional steps for ARMv8 on x86_64 host
- Install ssh and git
dnf update -y dnf install -y openssh-server git systemctl enable sshd systemctl start sshd
- Clone this Git repository to
/root/edomi-lxc/
cd /root/ git clone https://github.com/starwarsfan/edomi-lxc
- Start the setup script
cd /root/edomi-lxc ./setupEdomi.sh
Now Edomi is installed and will be started with the next reboot.
If setup is finished, the system can be prepared using the script
./prepareTemplate.sh
This script will cleanup the dnf (yum) package cache and remove /etc/resolv.conf
as well as /etc/hostname
. You can shutdown the system afterwards to go
ahead with the template creation steps.
After the container is powered off, perform these steps on the Proxmox web ui:
- Remove all network devices from the container
- Create backup of container with
- Mode: Stop
- Compression: GZip
- Notes:
Edomi AMD64 LXC Template
Edomi ARMv8 LXC Template
Now login to the ProxMox host using ssh
. You will find the template archive
afterwards on the ProxMox host at /var/lib/vz/dump/vzdump-lxc-<id>-<iso-timestamp>.tar.gz
.
To use it as a template right on this system, the archive needs to be moved
to another location:
cd /var/lib/vz
mv dump/vzdump-lxc-<id>-<iso-timestamp>.tar.gz template/cache/my-edomi-template.tar.gz
After this step the template will be available during container creation using ProxMox web ui.
- Do not start the container!
- Package
qemu-user-static
must be installed on host - Copy
qemu-aarch64-static
into container filesystem and fix ownership/permission:lvdisplay | grep <container-id> # Search LV path of container mkdir /mnt/edomi-arm-container mount <LV-Path> /mnt/edomi-arm-container cp qemu-aarch64-static /mnt/edomi-arm-container/usr/bin/ chmod 755 /mnt/edomi-arm-container/usr/bin/qemu-aarch64-static chown 100000:100000 /mnt/edomi-arm-container/usr/bin/qemu-aarch64-static umount /mnt/edomi-arm-container