[Bug 2061017] Re: lxd-installer: permission error not handled and lxd snap not installed
Nick Rosbrook
2061017 at bugs.launchpad.net
Fri Apr 12 13:55:20 UTC 2024
nr at pi5:~$ snap info lxd
name: lxd
summary: LXD - container and VM manager
publisher: Canonical✓
store-url: https://snapcraft.io/lxd
contact: https://github.com/canonical/lxd/issues
license: AGPL-3.0
description: |
LXD is a system container and virtual machine manager.
It offers a simple CLI and REST API to manage local or remote instances,
uses an image based workflow and support for a variety of advanced features.
Images are available for all Ubuntu releases and architectures as well
as for a wide number of other Linux distributions. Existing
integrations with many deployment and operation tools, makes it work
just like a public cloud, except everything is under your control.
LXD containers are lightweight, secure by default and a great
alternative to virtual machines when running Linux on Linux.
LXD virtual machines are modern and secure, using UEFI and secure-boot
by default and a great choice when a different kernel or operating
system is needed.
With clustering, up to 50 LXD servers can be easily joined and managed
together with the same tools and APIs and without needing any external
dependencies.
Supported configuration options for the snap (snap set lxd [<key>=<value>...]):
- ceph.builtin: Use snap-specific Ceph configuration [default=false]
- ceph.external: Use the system's ceph tools (ignores ceph.builtin) [default=false]
- criu.enable: Enable experimental live-migration support [default=false]
- daemon.debug: Increase logging to debug level [default=false]
- daemon.group: Set group of users that have full control over LXD [default=lxd]
- daemon.user.group: Set group of users that have restricted LXD access [default=lxd]
- daemon.preseed: Pass a YAML configuration to `lxd init` on initial start
- daemon.syslog: Send LXD log events to syslog [default=false]
- daemon.verbose: Increase logging to verbose level [default=false]
- lvm.external: Use the system's LVM tools [default=false]
- lxcfs.pidfd: Start per-container process tracking [default=false]
- lxcfs.loadavg: Start tracking per-container load average [default=false]
- lxcfs.cfs: Consider CPU shares for CPU usage [default=false]
- lxcfs.debug: Increase logging to debug level [default=false]
- openvswitch.builtin: Run a snap-specific OVS daemon [default=false]
- openvswitch.external: Use the system's OVS tools (ignores openvswitch.builtin) [default=false]
- ovn.builtin: Use snap-specific OVN configuration [default=false]
- ui.enable: Enable the web interface [default=false]
For system-wide configuration of the CLI, place your configuration in
/var/snap/lxd/common/global-conf/ (config.yml and servercerts)
commands:
- lxd.buginfo
- lxd.check-kernel
- lxd.lxc
- lxd
services:
lxd.activate: oneshot, enabled, inactive
lxd.daemon: simple, enabled, inactive
lxd.user-daemon: simple, enabled, inactive
snap-id: J60k4JY0HppjwOjW8dZdYc8obXKxujRu
tracking: 5.21/stable
refresh-date: yesterday at 20:04 UTC
channels:
5.21/stable: 5.21.1-3f3c2a9 2024-04-09 (28163) 97MB -
5.21/candidate: 5.21.1-3f3c2a9 2024-04-09 (28163) 97MB -
5.21/beta: ↑
5.21/edge: git-2c42a31 2024-04-09 (28160) 97MB -
latest/stable: 5.21.1-43998c6 2024-04-11 (28166) 97MB -
latest/candidate: 5.21.1-43998c6 2024-04-09 (28166) 97MB -
latest/beta: ↑
latest/edge: git-939abdd 2024-04-12 (28204) 97MB -
5.20/stable: 5.20-f3dd836 2024-02-09 (27054) 140MB -
5.20/candidate: ↑
5.20/beta: ↑
5.20/edge: ↑
5.19/stable: 5.19-8635f82 2024-01-29 (26202) 141MB -
5.19/candidate: ↑
5.19/beta: ↑
5.19/edge: ↑
5.0/stable: 5.0.3-babaaf8 2024-03-26 (27950) 81MB -
5.0/candidate: 5.0.3-babaaf8 2024-03-22 (27950) 81MB -
5.0/beta: ↑
5.0/edge: git-11f6228 2024-04-08 (28117) 105MB -
4.0/stable: 4.0.9-a29c6f1 2022-12-04 (24065) 96MB -
4.0/candidate: 4.0.9-a29c6f1 2022-12-02 (24065) 96MB -
4.0/beta: ↑
4.0/edge: git-407205d 2022-11-22 (23995) 96MB -
3.0/stable: 3.0.4 2019-10-10 (11376) 49MB -
3.0/candidate: 3.0.4 2019-10-10 (11376) 49MB -
3.0/beta: ↑
3.0/edge: git-81b81b9 2019-10-10 (11378) 49MB -
installed: 5.21.1-3f3c2a9 (28163) 97MB -
nr at pi5:~$ snap changes
ID Status Spawn Ready Summary
1 Done 14 days ago, at 06:32 UTC yesterday at 14:50 UTC Initialize system state
2 Done yesterday at 14:50 UTC yesterday at 14:50 UTC Initialize device
3 Done yesterday at 19:53 UTC yesterday at 19:54 UTC Install "lxd" snap
4 Done yesterday at 19:55 UTC yesterday at 19:55 UTC Remove "lxd" snap
5 Done yesterday at 20:04 UTC yesterday at 20:04 UTC Install "lxd" snap
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lxd-installer in Ubuntu.
https://bugs.launchpad.net/bugs/2061017
Title:
lxd-installer: permission error not handled and lxd snap not installed
Status in lxd-installer package in Ubuntu:
New
Bug description:
On a fresh install of 24.04 server on Raspberry Pi, I ran 'lxc list'
without having the lxd snap installed already. There was an attempt to
install the snap, but it failed, and the snap needed to be manually
installed:
nr at pi5:~$ lxc list
Installing LXD snap, please be patient.
Traceback (most recent call last):
File "<string>", line 1, in <module>
PermissionError: [Errno 13] Permission denied
/usr/sbin/lxc: 12: exec: /snap/bin/lxc: not found
More details:
nr at pi5:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu Noble Numbat (development branch)"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
nr at pi5:~$ apt policy lxd-installer
lxd-installer:
Installed: 4
Candidate: 4
Version table:
*** 4 500
500 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd-installer/+bug/2061017/+subscriptions
More information about the foundations-bugs
mailing list