Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to restart lxd.service: Unit lxd.service not found. #18

Open
provokateurin opened this issue Jul 7, 2019 · 1 comment
Open

Comments

@provokateurin
Copy link
Contributor

provokateurin commented Jul 7, 2019

On Ubuntu 19.04 using latest track:

jld3103@pippin:~$ crossbuilder help
/home/jld3103/crossbuilder/crossbuilder: 658: [: =: unexpected operator
crossbuilder uses LXD to download dependencies and build.
Would you like to install LXD? (y/n) y

sudo apt-get install -y lxd
[sudo] password for jld3103: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  lxd lxd-client
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.7 kB of archives.
After this operation, 142 kB of additional disk space will be used.
Get:1 http://de.archive.ubuntu.com/ubuntu disco/main amd64 lxd all 1:0.7 [9,108 B]
Get:2 http://de.archive.ubuntu.com/ubuntu disco/universe amd64 lxd-client all 1:0.7 [1,612 B]
Fetched 10.7 kB in 0s (75.7 kB/s)
Preconfiguring packages ...
Selecting previously unselected package lxd.
(Reading database ... 288506 files and directories currently installed.)
Preparing to unpack .../archives/lxd_1%3a0.7_all.deb ...
=> Installing the LXD snap
==> Checking connectivity with the snap store
==> Installing the LXD snap from the latest track for ubuntu-19.04
Warning: /snap/bin was not found in your $PATH. If you've not restarted your session since you
         installed snapd, try doing that. Please see https://forum.snapcraft.io/t/9469 for more
         details.

lxd 3.14 from Canonical✓ installed
=> Snap installation complete
==> Cleaning up leftovers
Failed to stop lxd.socket: Unit lxd.socket not loaded.
Failed to stop lxd.service: Unit lxd.service not loaded.
Failed to stop lxd-containers.service: Unit lxd-containers.service not loaded.
Failed to disable unit: Unit file lxd.socket does not exist.
Unpacking lxd (1:0.7) ...
Selecting previously unselected package lxd-client.
Preparing to unpack .../lxd-client_1%3a0.7_all.deb ...
Unpacking lxd-client (1:0.7) ...
Setting up lxd (1:0.7) ...
Setting up lxd-client (1:0.7) ...
Setting up LXD.
Would you like to setup LXD with ZFS in your home directory? (y/n) 
This is recommended for faster operation, and also in case there is not enough space in your / partition. 
y

Installing ZFS.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-zed
Suggested packages:
  nfs-kernel-server samba-common-bin zfs-initramfs | zfs-dracut
The following NEW packages will be installed:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-zed zfsutils-linux
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,108 kB of archives.
After this operation, 4,254 kB of additional disk space will be used.
Get:1 http://de.archive.ubuntu.com/ubuntu disco/main amd64 libnvpair1linux amd64 0.7.12-1ubuntu5 [44.0 kB]
Get:2 http://de.archive.ubuntu.com/ubuntu disco/main amd64 libuutil1linux amd64 0.7.12-1ubuntu5 [47.0 kB]
Get:3 http://de.archive.ubuntu.com/ubuntu disco/main amd64 libzpool2linux amd64 0.7.12-1ubuntu5 [553 kB]
Get:4 http://de.archive.ubuntu.com/ubuntu disco/main amd64 libzfs2linux amd64 0.7.12-1ubuntu5 [128 kB]
Get:5 http://de.archive.ubuntu.com/ubuntu disco/main amd64 zfsutils-linux amd64 0.7.12-1ubuntu5 [277 kB]
Get:6 http://de.archive.ubuntu.com/ubuntu disco/main amd64 zfs-zed amd64 0.7.12-1ubuntu5 [58.5 kB]
Fetched 1,108 kB in 1s (815 kB/s) 
Selecting previously unselected package libnvpair1linux.
(Reading database ... 288515 files and directories currently installed.)
Preparing to unpack .../0-libnvpair1linux_0.7.12-1ubuntu5_amd64.deb ...
Unpacking libnvpair1linux (0.7.12-1ubuntu5) ...
Selecting previously unselected package libuutil1linux.
Preparing to unpack .../1-libuutil1linux_0.7.12-1ubuntu5_amd64.deb ...
Unpacking libuutil1linux (0.7.12-1ubuntu5) ...
Selecting previously unselected package libzpool2linux.
Preparing to unpack .../2-libzpool2linux_0.7.12-1ubuntu5_amd64.deb ...
Unpacking libzpool2linux (0.7.12-1ubuntu5) ...
Selecting previously unselected package libzfs2linux.
Preparing to unpack .../3-libzfs2linux_0.7.12-1ubuntu5_amd64.deb ...
Unpacking libzfs2linux (0.7.12-1ubuntu5) ...
Selecting previously unselected package zfsutils-linux.
Preparing to unpack .../4-zfsutils-linux_0.7.12-1ubuntu5_amd64.deb ...
Unpacking zfsutils-linux (0.7.12-1ubuntu5) ...
Selecting previously unselected package zfs-zed.
Preparing to unpack .../5-zfs-zed_0.7.12-1ubuntu5_amd64.deb ...
Unpacking zfs-zed (0.7.12-1ubuntu5) ...
Setting up libuutil1linux (0.7.12-1ubuntu5) ...
Setting up libnvpair1linux (0.7.12-1ubuntu5) ...
Setting up libzpool2linux (0.7.12-1ubuntu5) ...
Setting up libzfs2linux (0.7.12-1ubuntu5) ...
Setting up zfsutils-linux (0.7.12-1ubuntu5) ...
Created symlink /etc/systemd/system/zfs-import.target.wants/zfs-import-cache.service → /lib/systemd/system/zfs-import-cache.service.
Created symlink /etc/systemd/system/zfs-mount.service.wants/zfs-import.target → /lib/systemd/system/zfs-import.target.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-import.target → /lib/systemd/system/zfs-import.target.
Created symlink /etc/systemd/system/zfs-mount.service.wants/zfs-load-module.service → /lib/systemd/system/zfs-load-module.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-load-module.service → /lib/systemd/system/zfs-load-module.service.
Created symlink /etc/systemd/system/zfs-share.service.wants/zfs-mount.service → /lib/systemd/system/zfs-mount.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-mount.service → /lib/systemd/system/zfs-mount.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-share.service → /lib/systemd/system/zfs-share.service.
Created symlink /etc/systemd/system/multi-user.target.wants/zfs.target → /lib/systemd/system/zfs.target.
zfs-import-scan.service is a disabled or a static unit, not starting it.
Setting up zfs-zed (0.7.12-1ubuntu5) ...
Created symlink /etc/systemd/system/zed.service → /lib/systemd/system/zfs-zed.service.
Created symlink /etc/systemd/system/zfs.target.wants/zfs-zed.service → /lib/systemd/system/zfs-zed.service.
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.29-0ubuntu2) ...
Creating file /home/jld3103/zfs/lxd.img to contain all of LXD's images and containers.
zpool import -c /etc/zfs/zpool.cache -aN
LXD requires subuid to be setup adequately to mount directories in containers.
Would you like to do that now? (y/n) 
y

Failed to restart lxd.service: Unit lxd.service not found.
@provokateurin
Copy link
Contributor Author

Works on 3.0 track

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant