【1】プロファイルの作成
1.ブリッジインターフェースを追加する
以下を参照
2.lxcのprofileを追加する
# lxc profile create bridge
3.作成したprofileにブリッジインターフェースをアタッチする
# lxc network attach-profile br0 bridge eth0
4.作成したprofileにストレージプールをアタッチする
# lxc profile device add bridge root disk path=/ pool=default
【2】コンテナの作成と起動
profileを指定してコンテナを作成する
# lxc launch ubuntu:20.04 testdrive --profile=bridge