<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>MaaS on Wenhan blog</title>
    <link>https://wenhan.blog/tags/maas/</link>
    <description>Recent content in MaaS on Wenhan blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ja-JP</language>
    <lastBuildDate>Mon, 04 Jun 2018 16:19:39 +0000</lastBuildDate><atom:link href="https://wenhan.blog/tags/maas/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>エラー: コンテナ作成失敗: raw.lxcの読み込みに失敗</title>
      <link>https://wenhan.blog/posts/20180604_error-failed-container-creation-failed-to-load-raw-lxc/</link>
      <pubDate>Mon, 04 Jun 2018 16:19:39 +0000</pubDate>
      
      <guid>https://wenhan.blog/posts/20180604_error-failed-container-creation-failed-to-load-raw-lxc/</guid>
      <description>以下のURLを参考にMaaSのインストールとテストを試みました。
https://docs.maas.io/2.1/en/installconfig-lxd-install
上記ドキュメントのプロファイル編集部分より
lxc profile edit maas
configの後ろの{}を以下の内容（config:は除く）に置き換えます：
1 2 3 4 5 6 config: raw.lxc: |- lxc.cgroup.devices.allow = c 10:237 rwm lxc.aa_profile = unconfined lxc.cgroup.devices.allow = b 7:* rwm security.privileged: &amp;#34;true&amp;#34; launch手順で以下のエラーが発生しました：
1 2 3 $ lxc launch -p maas ubuntu:16.04 xenial-maas Creating xenial-maas Error: Failed container creation: Failed to load raw.lxc これは自分がLXD 3.0を使っているためで、上記の設定キーが古いことが原因です。 このコメントによると、lxd 2.1以降はlxc.aa_profileがlxc.apparmor.profileに変更されています。
したがって、回避策は以下の通りです。
再度 lxc profile edit maas
lxc.aa_profile を lxc.apparmor.profile に置き換えます。
1 2 3 4 5 6 config: raw.</description>
    </item>
    
  </channel>
</rss>
