tremplin: fix setup and container creation

lxd.GetContainer will return an error of "not found" if the container doesn't
exist. We're only doing this as an optimization anyway, so just check that
the Container returned is non-nil.

Also set up the lxd_conf directory, which is required for feature-parity with
the current setup scripts.

BUG=chromium:844079
TEST=CreateContainer RPC works; `lxc list` in VM shell works

Change-Id: Ifa1fb5897cc8cc44bad4178c784d61e0a7a49e6b
Reviewed-on: https://chromium-review.googlesource.com/1132599
Commit-Ready: Stephen Barber <smbarber@chromium.org>
Tested-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
2 files changed
tree: 390a11b07e16303ba83b8baeeafa31e9f44e6230
  1. src/
  2. README.md
README.md

Tremplin

Tremplin is the “springboard” daemon that runs in the Termina VM and exposes a gRPC interface for managing LXD containers.