7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MAASとjujuインストールしてみた

Last updated at Posted at 2013-12-19
  • インストール手順
    • 稼働中のubuntuにインストールもできるし、最初からMAASが入った状態でインストールも出来る。
  • サーバーにログインしてImport the boot imagesをクリック。
    • イメージのダウンロードが30GBあります。4時間かかりました。
# du -sh /var/lib/maas/*
21G	/var/lib/maas/ephemeral
3.9G	/var/lib/maas/tftp
# du -sh /var/lib/maas/ephemeral/*
4.7G	/var/lib/maas/ephemeral/precise
4.9G	/var/lib/maas/ephemeral/quantal
5.0G	/var/lib/maas/ephemeral/raring
3.4G	/var/lib/maas/ephemeral/saucy
管理者作成
$ sudo maas createsuperuser

管理画面にログイン

追加パッケージインストール
$ sudo apt-get install -y juju-core mongodb-server lxc vim libvirt-bin
ディレクトリ作成
$ mkdir ~/.juju
$ chmod 700 ~/.juju
$ juju init
$ vim ~/.juju/environments.yaml
sshキー作成
$ ssh-keygen
$ cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
$ sudo juju bootstrap
しばらく待つ。
稼働状況確認
$ juju status
$ tail -f ~/.juju/local/log/machine-0.log
サーバーにログイン
$ juju ssh 0
Permission denied (publickey,password).
ERROR exit status 255

?? ここで詰まった。

maas-cli

  • MAASをCLIで操作可能です。
$ maas-cli login root http://localhost/MAAS/api/1.0
API key (leave empty for anonymous access): 

You are now logged in to the MAAS server at
http://localhost/MAAS/api/1.0/ with the profile name 'root'.

For help with the available commands, try:

  maas-cli root --help
こんな感じで使います。
$ maas-cli root nodes -h
7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?