I've installed MAAS 2.5 in LXD container (bionic) inside KVM Ubuntu 18.04.2 Server VM.
I started from with instructions from: https://docs.maas.io/2.5/en/installconfig-lxd-install inside KVM VM.
Then inside LXD container, according to: https://docs.maas.io/2.5/en/installconfig-package-install:
$ sudo apt-add-repository -yu ppa:maas/stable
$ sudo apt install maas
$ sudo maas createadmin --username=admin --email=root@localhost
$ maas createadmin --username=admin --email=root@localhost
Password:
Again:
Import SSH keys [] (lp:user-id or gh:user-id):
$
Then as it is stated in https://docs.maas.io/2.5/en/installconfig-webui:
$ api_host=localhost
$ export api_host
$ curl http://$api_host:5240/MAAS
<html>
<head><title>405 - Method Not Allowed</title></head>
<body>
<h1>Method Not Allowed</h1>
<p>Your browser approached me (at /MAAS) with the method "GET". I only allow the method HEAD here.</p>
</body>
</html>
$
Ok, we try HEAD as MAAS suggests:
$ curl -I http://$api_host:5240/MAAS
HTTP/1.1 500 Internal Server Error
Server: TwistedWeb/17.9.0
Date: Wed, 13 Mar 2019 17:55:00 GMT
Content-Type: text/html
Content-Length: 5276
$
Adding maas logs