Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Ubuntuとコンテナ技術 What is LXD? and Why? 2015-12-08
Search
Nobuto Murata
December 08, 2015
Technology
84
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Ubuntuとコンテナ技術 What is LXD? and Why? 2015-12-08
Ubuntuで使えるコンテナ技術としてLXDを紹介します。
Nobuto Murata
December 08, 2015
More Decks by Nobuto Murata
See All by Nobuto Murata
新しいUbuntu/GNOMEが使いたいからXからWaylandへ移行頑張ってるの巻 2026-06-20
nobutomurata
0
300
Untitled Presentation―プレゼンのためのプレゼンテーション
nobutomurata
0
220
助けて! XからWaylandに移行しないと新しいGNOMEが使えなくなっちゃう 2025-07-12
nobutomurata
2
610
安心してください、日本語使えますよ―Ubuntu日本語Remix提供休止に寄せて― 2024-11-17
nobutomurata
1
2.4k
おうちクラウドの夢よ再び―OpenStackが今熱い― 2024-06-01
nobutomurata
0
1k
19.10をUnityっぽくして使う
nobutomurata
0
75
Canonical Livepatchサービスのご紹介 2017-11-01
nobutomurata
0
87
Nova-LXDとLivepatch, GREE Mini Tech Talk 2017-06-21
nobutomurata
0
57
Ubuntu PhoneとConvergence振り返り会 2017-05-13
nobutomurata
0
110
Other Decks in Technology
See All in Technology
不可逆な意思決定を避けながら10億超の顧客データを AI Ready にするデータ基盤設計
baseballyama
1
170
生成AIと進める探索的データ分析(2026.10.03 第122回Tokyo.R勉強会)
tatamiya
2
1.4k
AI時代のAPI開発を加速する品質ガードレール / API Quality Guardrails in the AI Era
yokawasa
0
160
AgentCoreで実践するハーネスエンジニアリング
yakumo
1
290
実践! SRE × AI - ABEMA における AIOps -
tetsuya28
3
370
ファミコンでPHPを動かす / PHP on the Famicom side b
tomzoh
0
140
AI駆動開発、viviONの1年 ── うまくいったこと・いかなかったこと
vivion
0
270
プロダクト価値を、 チームが使える判断軸に変える
vivion
0
130
全PRの83%が AIレビューだけでマージできるようになった開発組織は その後どうなったか @2026/10
athug
0
120
自主式軟體工廠
philipz
0
240
20260930_Gemma4_Hands-on
tsho
0
240
自律型 AI をセキュアに実装!Gemini と MIG で作る動的コード実行環境
recruitengineers
PRO
1
230
Featured
See All Featured
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
BBQ
matthewcrist
90
10k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
610
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.1k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
420
Done Done
chrislema
187
17k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
510
How GitHub (no longer) Works
holman
316
150k
Transcript
Ubuntuとコンテナ技術 What is LXD? and Why? Nobuto Murata <
[email protected]
> 2015-12-08
We are the company behind Ubuntu.
EMPLOYEES London Boston Shanghai Taipei 600+ COUNTRIES 30+ FOUNDATION 2004
Beijing
LXD The Linux container hypervisor
1 2 3 LXD (“lex-dee”) Secure by design(セキュア) 非特権コンテナ、リソースの制限、などなど Scalable(スケーラブル)
ノートPC上での検証から数千台規模の物理マシンクラスタまで Intuitive(直感的) シンプルかつ明快なAPI、 コマンド ubuntu.com/lxd linuxcontainers.org/lxd github.com/lxc/lxd 高速、高集積かつセキュアなコンテナマネジメントシステム
• “Docker is an amazing application delivery mechanism, which may
change the world of devops forever” • “LXD and Docker share some underlying kernel capabilities” And Docker? 安心してください、どちらも使えます
あたかも物理マシンみたいに使うコンテナ “システムコンテナ”がLXDの特徴 アプリケーションコンテナとは目的や使われ方が異なる
1 2 3 LXD is not... LXDは完全仮想化を 提供するものではあ りません あくまでコンテナなの
で物理マシンと同等 のパフォーマンスが 出ます。 LXDはLXCを置き換 えるプロジェクトでは ありません LXDはLXCを補完す るもので、LXDはコン テナを作成/管理する ためにliblxcを使って います。 LXDはアプリケーション コンテナ管理ツールでは ありません LXDはコンテナの中で動 いているものには関知 せず、システムコンテナ 自体を管理します。 勘違いしないために、「LXDが何ではないのか」の正しい理解を
ちなみに、よくある質問: 「コンテナは商用環境で使えるのか?」 LXC自体は何年も前から商用サービスのワークロードを支えています。 例えば…
OpenStackはたくさんのサービスから成る “1サービス : 1物理マシン” にすると結構物理マシンが必要、かと いって単純に集約してしまうと後でスケールアウトするときに大変
そこで、LXCを使って 物理マシンの集約と柔軟性の両立
システムコンテナの応用例: Nova LXD OpenStack Novaでシステムコンテナ
Nova LXD github.com/lxc/nova-lxd
LXDのインストール
LXDのインストール方法 ## "lxd"パッケージのインストール ## Ubuntu 15.10のクラウドイメージではデフォルトインストール済み $ sudo apt-get install
lxd $ newgrp lxd ## イメージダウンロードサーバーを登録 $ lxc remote add images images.linuxcontainers.org ## 最新のLXDを使いたい場合は ## $ sudo apt-add-repository ppa:ubuntu-lxc/lxd-stable Ubuntuの場合
LXDのデモ
はじめてのコンテナ ## リモートイメージサーバーの情報 $ lxc remote list ## 使用できるイメージの一覧 $
lxc image list images: | less -S ## Ubuntu 14.04 LTS コンテナの起動 $ lxc launch images:ubuntu/trusty/amd64 demo1
コンテナ情報 ## コンテナ一覧 $ lxc list ## デバッグを見てみると… $ lxc
list --debug $ jq . ## コンテナ情報 $ lxc info demo1 $ pgrep -af /sbin/init $ ps fax | less -S $ lxc config show demo1
コンテナ内へ ## コンテナでbashを起動 $ lxc exec demo1 -- bash #
exit ## コンテナ内でコマンドを実行 $ lxc exec demo1 -- touch foo $ lxc exec demo1 -- ls -l ## ファイルのpush/pull $ lxc file push --mode=0600 /etc/hosts demo1/tmp/ $ lxc exec demo1 -- ls -l /tmp $ lxc file pull demo1/etc/hosts .
スナップショット ## スナップショットの保存 $ lxc snapshot demo1 good ## コンテナの破壊
$ lxc exec demo1 -- rm -rf /usr $ lxc exec demo1 -- ls /usr ## スナップショットから復元 $ lxc restore demo1 good $ lxc exec demo1 -- ls /usr
リソースの制限 ## CPU、メモリ情報の確認 $ lxc exec demo1 -- grep -c
processor /proc/cpuinfo $ lxc exec demo1 -- free -h ## CPU、メモリの制限を追加 $ lxc config set demo1 limits.cpus 1 $ lxc config set demo1 limits.memory 512M $ lxc restart demo1 ## 制限が反映されていることを確認 $ lxc exec demo1 -- grep -c processor /proc/cpuinfo $ lxc exec demo1 -- free -h
あとはどんどん作るだけ ## イメージにエイリアスを設定 $ lxc image list $ lxc image
alias create ubuntu 76668f72d313 ## 2コンテナ目以降を起動 $ lxc launch ubuntu demo2 $ lxc launch ubuntu demo3 ## コマンド一覧は $ lxc help
Ubuntu 16.04 LTSに向けて、LXDならびに Nova LXDは進化し続けます ひと口にコンテナと言っても、実はいろいろ。 あなたの使い方にLXDは合いますか?
canonical.com ubuntu.com Questions? canonical.com/careers