I've been unable to reproduce the issue locally with the following steps: Create a test VM with lxd-agent enabled: $ lxc init ubuntu-daily:18.04 v8 --vm -c limits.memory=4GiB $ lxc config device add v8 config disk source=cloud-init:config $ lxc config set v8 cloud-init.user-data - << EOF #cloud-config runcmd: - mount -t 9p config /mnt - cd /mnt - ./install.sh - cd / - umount /mnt - systemctl start lxd-agent # XXX: causes a reboot EOF lxc start v8
Apply updates inside the test VM: $ lxc exec v8 -- apt-get update $ lxc exec v8 -- apt-get dist-upgrade -y $ lxc restart v8 Setup/use LXD 3.0.3 deb: $ lxc exec v8 -- lxd init --auto $ lxc exec v8 -- lxc launch ubuntu:18.04 u1 Upgrade to Focal: $ lxc exec v8 -- do-release-upgrade It all worked fine and the migration of LXD 3.0.3 deb to 4.0.10 (4.0/stable) snap went well and the u1 container was still functional at the end. The original issue came with this interesting error from the dpkg terminal log: ==> Installing the LXD snap from the 4.0 track for ubuntu-20.04 error: cannot perform the following tasks: - Run install hook of "lxd" snap if present (run hook "install": cannot perform operation: mount --rbind /home /tmp/snap.rootfs_UzstWW//home: Permission denied) dpkg: error processing archive /tmp/apt-dpkg-install-dnt4Ps/00-lxd_1%3a0.10_all.deb (--unpack): new lxd package pre-installation script subprocess returned error exit status 1 This permission denied when trying to mount --rbind /home doesn't sound like something the LXD snap is doing. Could it be a snapd bug instead? As for a possible workaround, if you can get `snap install lxd --channel 4.0/stable` to work, calling `lxd.migrate` should be all you need to do for migrating from the old deb to the snap. If you have other machines to do-release-upgrade from 18.04 to 20.04, please note that you should be able to switch LXD 3.0.3 deb to 4.0/stable snap prior to doing the distro upgrade. This should avoid hitting that issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2051415 Title: package lxd 3.0.3-0ubuntu1~18.04.2 failed to install/upgrade: new lxd package pre-installation script subprocess returned error exit status 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/2051415/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
