Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Nova-LXDとLivepatch, GREE Mini Tech Talk 2017-06-21

Nova-LXDとLivepatch, GREE Mini Tech Talk 2017-06-21

OpenStack Nova対応ドライバのひとつLXDと、Livepatchを紹介します。

Nobuto Murata

June 21, 2017
Tweet

More Decks by Nobuto Murata

Other Decks in Technology

Transcript

  1. KVMとは排他ではなく共存 OpenStack control plane KVM compute node Linux kernel Host

    OS Hypervisor Guest kernel Guest OS Guest kernel Guest OS LXD shared compute node Linux kernel LXD exclusive compute node Linux kernel Host OS Guest OS Host OS Guest OS Guest OS Guest OS Guest OS
  2. Nova対応の既存orchestratorやconfiguration management toolでKVMとLXDコンテナを管理できる OpenStack control plane KVM compute node Linux

    kernel Host OS Hypervisor Guest kernel Guest OS Guest kernel Guest OS LXD shared compute node Linux kernel LXD exclusive compute node Linux kernel Host OS Guest OS Host OS Guest OS Guest OS Guest OS Guest OS Juju Ansible Heat, etc.
  3. LXC / LXDの歴史 2008 Developed by IBM engineers Initial release

    of LXD and nova-lxd 2015 LXC 1.0 release 2014 2016 LXC / LXD 2.0 release 2013 Used by Docker
  4. Docker technology is not a replacement for LXC. [...] Docker

    is optimized for the deployment of applications, as opposed to machines. This is reflected in its API, user interface, design philosophy and documentation. By contrast, the lxc helper scripts focus on containers as lightweight machines ― https://docs.docker.com/engine/faq/
  5. Livepatch KVM compute node Linux kernel Host OS Hypervisor Guest

    kernel Guest OS Guest kernel Guest OS Container worker node Linux kernel Host OS Guest OS Guest OS Guest OS Guest OS カーネル脆弱性対応アップデートは再起動が必要。 ワークロードの退避が必要なため、台数が増えるにつれて 負担になる。 • ワークロードの退避 /他ホス トへのマイグレーション • 更新カーネルのインストー ル • 再起動 • ワークロードの再移動
  6. Livepatch KVM compute node Linux kernel Host OS Hypervisor Guest

    kernel Guest OS Guest kernel Guest OS Container worker node Linux kernel Host OS Guest OS Guest OS Guest OS Guest OS Livepatchを使うと再起動することなくカーネルの脆弱性対応パッ チがあてられる。 Livepatch
  7. Canonical Livepatchサービスの使い方 1. ubuntu.com/livepatch にアクセスし、livepatchトークンを取得 2. canonical-livepatch snapをインストール “sudo snap

    install canonical-livepatch” 3. 取得したトークンを使ってサービスを有効化 “sudo canonical-livepatch enable [TOKEN]” 4. ステータスは次のコマンドでいつでも確認できる “canonical-livepatch status --verbose”