anbox stream gateway #106

Supports: bionic focal


The Anbox Stream Gateway is responsible to provide a central entry point into the streaming experience of the Anbox Cloud platform.

Anbox Cloud - Anbox Stream Gateway

Anbox Cloud offers a software stack that runs Android applications in any cloud enabling high-performance streaming of graphics to desktop and mobile client devices.

At its heart, it uses lightweight container technology instead of full virtual machines to achieve higher density and better performance per host while ensuring security and isolation of each container. Depending on the target platform, payload, and desired application performance (e.g. frame rate), more than 100 containers can be run on a single machine.

For containerization of Android, Anbox Cloud uses the well established and secure container hypervisor LXD. LXD is secure by design, scales to a large number of containers and provides advanced resource management for hosted containers.

Also have a look at the official Anbox Cloud website for more information.

NOTE: Anbox Cloud is a paid offering. You will need a Ubuntu Advantage subscription for this charm to work. You can learn more at

WARNING: The Ubuntu Advantage for Infrastructure token every user gets for free for personal use does *NOT work and will result in a failed deployment! You need to use a valid *Ubuntu Advantage for Applications** token to be able to deploy successfully.

Anbox Stream Gateway

The Anbox Stream Gateway is the main charm used when streaming. It enables streaming of applications over WebRTC with the help of agents.

Running the anbox-stream-gateway charm requires other charms to be deployed beforehand.

$ juju deploy cs:~nats-charmers/nats-9
$ juju deploy cs:~containers/easyrsa-318
$ juju deploy cs:~anbox-charmers/anbox-stream-gateway
$ juju config anbox-stream-gateway ua_token=<your UA token>
$ juju relate anbox-stream-gateway easyrsa
$ juju relate anbox-stream-gateway nats

For more information about streaming, visit the official documentation on


(boolean) Enable integrated development UI NOTE: the development UI has been completely removed, using this config item to enable/disable development UI won't take any effect.
(boolean) Enable pprof support for runtime debugging support on WARNING: Only enable this for debugging purposes but never for any production workload as it gives direct access to the running process. Enabling requires the service to be restarted.
(boolean) Keeps containers around when an error occured
(string) Location the stream gateway is available on. If not set its public address will be used.
(string) Log level for the stream gateway
(int) Set the maximum number of HTTP requests the Stream Gateway will handle per second
(string) Used by the nrpe subordinate charms. A string that will be prepended to instance name to set the host name in nagios. So for instance the hostname would be something like: juju-myservice-0 If you're running multiple environments with the same services in them this allows you to differentiate between them.
(string) A comma-separated list of nagios servicegroups. If left empty, the nagios_context will be used as the servicegroup
(int) Port the Anbox Stream Gateway listens on
(string) Region sessions are launched in by default if no one is explicitly specified within the launch request.
(string) Password used for HTTP basic auth of the prometheus endpoint
(string) Username used for HTTP basic auth of the prometheus endpoint
(string) URL path where prometheus metrics are served
(int) Port the Prometheus webserver listens on. If 0, prometheus support is disabled.
(string) DEPRECATED: Path to certificate used by prometheus for TLS
(string) DEPRECATED: Path to key used by prometheus for TLS
(string) Identifies which network interface to use for the public address
(string) DEPRECATED: Path to the certificate the gateway will use for TLS
(string) DEPRECATED: Path to the private key the gateway will use for TLS
(string) APT source to use instead of the automatic one generated from UA. Overrides UA source if both are set.
(string) Key ID to import to the APT keyring in order to access the specified source archive. Required if ua_source is set.
(string) Ubuntu Advantage token you have received with your license of Anbox Cloud
(boolean) Use staging contracts API service
(boolean) Allows using self-signed TLS certificates if no CA signed ones are available