LXD bootstrap inside KVM failed
fengxia
fxia1 at lenovo.com
Wed Aug 2 19:41:41 UTC 2017
When running the service:
$ sudo service lxd start
Failed with:
A dependency job for lxd.service failed. See 'journalctl -xe' for details.
More info from $ service lxd status:
-- Subject: Unit lxd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lxd.service has failed.
--
-- The result is dependency.
Aug 02 15:40:00 mail.lctc-buildbot.labs.lenovo.com systemd[1]:
lxd.service: Job lxd.service/start failed with result 'dependency'.
Aug 02 15:40:00 mail.lctc-buildbot.labs.lenovo.com systemd[1]:
lxd-bridge.service: Unit entered failed state.
Aug 02 15:40:00 mail.lctc-buildbot.labs.lenovo.com systemd[1]:
lxd-bridge.service: Failed with result 'exit-code'.
Aug 02 15:40:01 mail.lctc-buildbot.labs.lenovo.com CRON[4314]:
pam_unix(cron:session): session opened for user www-data by (uid=0)
Aug 02 15:40:01 mail.lctc-buildbot.labs.lenovo.com CRON[4317]:
(www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] &&
/usr/share/awstats/tools/update.sh)
Aug 02 15:40:01 mail.lctc-buildbot.labs.lenovo.com CRON[4314]:
pam_unix(cron:session): session closed for user www-data
Aug 02 15:40:01 mail.lctc-buildbot.labs.lenovo.com CRON[4315]:
pam_unix(cron:session): session opened for user root by (uid=0)
Aug 02 15:40:01 mail.lctc-buildbot.labs.lenovo.com CRON[4321]: (root)
CMD ( test -x /etc/cron.daily/popularity-contest &&
/etc/cron.daily/popularity-contest --crond
Aug 02 15:40:01 mail.lctc-buildbot.labs.lenovo.com CRON[4316]:
pam_unix(cron:session): session opened for user sogo by (uid=0)
Aug 02 15:40:01 mail.lctc-buildbot.labs.lenovo.com CRON[4322]: (sogo)
CMD (/usr/sbin/sogo-tool expire-sessions 30 >/dev/null 2>&1;
/usr/sbin/sogo-ealarms-notify >/dev
Aug 02 15:40:01 mail.lctc-buildbot.labs.lenovo.com CRON[4315]:
pam_unix(cron:session): session closed for user root
Aug 02 15:40:02 mail.lctc-buildbot.labs.lenovo.com CRON[4316]:
pam_unix(cron:session): session closed for user sogo
On 08/02/2017 03:33 PM, fengxia wrote:
> Hi Juju,
>
> I have a 16.04 KVM. Installed juju and LXD from apt.
>
> $ juju bootstrap localhost test
>
> ERROR creating LXD client: can't connect to the local LXD server: Get
> http://unix.socket/1.0: read unix @->/var/lib/lxd/unix.socket: read:
> connection reset by peer
>
> Please install LXD by running:
> $ sudo apt-get install lxd
> and then configure it with:
> $ newgrp lxd
> $ lxd init
>
> Tried the suggested commands. Rebooted KVM. No avail.
>
> Is this because I'm running LXD inside KVM?
>
--
Feng xia
Engineer
Lenovo USA
Phone: 5088011794
fxia1 at lenovo.com
Lenovo.com
Twitter | Facebook | Instagram | Blogs | Forums
More information about the Juju
mailing list