Alta Help Center

Setting Up Alta Control With Docker

Alta Engineering
Alta Engineering
  • Updated

Minimum Firmware

AP6 and AP6-Pro

  • 2.0g or newer

Switches

  • 2.1c or newer

If you would like to update them without requiring setup into manage.alta.inc,
simply hold down the reset button for five seconds while powering on the
device, then release, and wait 1 minute for APs, and 3 minutes for switches.

Ensure that the device has an ethernet connection with Internet access prior to
this.

Keep in mind that there are many variations of how an LXD/Docker image and
network can be deployed, and that these instructions will not cover all use
cases.

Supported Architectures

  • amd64 (i.e. x86)
  • arm64

Replace amd64 with arm64 below if you are running the controller on an arm64 host.


Minimum System requirements

  • 2 GHz processor
  • 2 GB RAM
  • 8 GB storage

1. Pull the image from Dockerhub

docker pull altalabs/control


2. Set up macvlan in order for the controller to set devices on the LAN
(substitute with your own subnet, desired controller IP, gateway, and parent interface):

docker network create -d macvlan \
--subnet=192.168.0.0/24 \
--ip-range=192.168.0.10/32 \
--gateway=192.168.0.1 \
-o parent=eth0 control_net


3. Start the container:

docker run -it --security-opt seccomp=unconfined \
--cgroupns host \
--add-host local.manage.alta.inc:0.0.0.255 \
--net=control_net \
--restart=unless-stopped \
-v /sys/fs/cgroup/access.scope:/sys/fs/cgroup:rw \
--tmpfs /run \
--tmpfs /run/lock \
--name control \
altalabs/control:1.0d-amd64


4. Detach from the container (CTRL-P, CTRL-Q), then start a shell in the

container

docker exec -it control bash
ip addr show # to get the IP address

 

5. Go to the IP address of the controller, and use your product activation code
to register.

6. After you’ve clicked on the link in the email, your browser should
automatically redirect to the new dynamic DNS URL.

7. Once you see the login screen on your new controller, create an account,
validate it, and then use the controller as normal. Please let us know if
you have any issues or questions!

 

Notes

 

If you don’t bridge/macvlan the container to your LAN, it will not
automatically detect and set up APs. You will need to go to the web server of
the unconfigured AP, and set the URL to match your controller’s hostname,
including https://.


If you’d like to import the image into Hyper-V, ESXI, or any other
virtualization host, the raw root filesystems can also be found at:


Docker issues


At present, the docker container is architected like a traditional Linux system
using apt for package maintenance. This means (with the
--restart=unless-stopped option) that configuration and device management will
persist through host and container reboots, but not through container restarts
and docker image updates. We are working to improve this.


Common Issues


If you get an error like:

Docker: Error response from daemon: error while creating mount source path
‘/sys/fs/cgroup/access.scope’...

Your kernel or distribution may be older, and may not have cgroupsv2 enabled.
To enable it, add this to your kernel command line:

systemd.unified_cgroup_hierarchy=1

Related to

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.