LoginSignup
4
7

More than 5 years have passed since last update.

LXD/LXCのwebui、LXDUI2.2をインストールしてみた

Posted at

これは何?

  • LXDUIは、LXD/LXCをブラウザから操作できるアプリでOSSです。
  • 公式サイトは「GitHub - AdaptiveScale/lxdui: LXDUI is a web UI for the native Linux container technology LXD/LXC」です。
  • Ubuntu18.04にインストールしました。
  • 以下のようなことがブラウザから可能になります。
    • コンテナイメージのダウンロード
    • コンテナ作成、実行、停止、フリーズ、スナップショットなど
    • ブラウザからコンテナのシェル(terminal)起動
  • LXD REST API を使っているので、LXDUI と lxcコマンドは併用できます。

  • スクリーンイメージ
    LXDUIv2.2.gif

インストール&設定

# 関連パッケージインストール
sudo apt install python3-venv
sudo apt install python3-pip

# lxdui develop clone
git clone https://github.com/AdaptiveScale/lxdui.git -b develop
cd lxdui

# pythonの仮想環境作成
python3 -m venv mytestenv
source mytestenv/bin/activate

# lxdui インストール
pip3 install --upgrade pip
pip3 install .

# lxdui cli (ヘルプ表示されればOK)
lxdui

# adminのパスワード設定
lxdui init

deactivate

起動/停止

# 起動
(source ~/lxdui/mytestenv/bin/activate; lxdui start &)

# ブラウザよりLXDUIを表示。adminでログイン
http://127.0.0.1:15151

# 停止
(source ~/lxdui/mytestenv/bin/activate; lxdui stop)

メモ

  • 後で気が付いたのだが git clone したルートフォルダに Dockerfile がある。(動作は未確認)
4
7
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
4
7