← Back to issue list

snapcraft cleanbuild multipass fails on modprobe msr

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1829587
Type
issue
State
closed
Author
~dank
Labels
—
Created
Updated
Closed

Current evaluation

Reported 2019: `snapcraft cleanbuild` with base: core18 failed because multipass VM launch tried modprobe msr and hit AppArmor denials. Closed stale in Aug 2023; maintainer noted cleanbuild is obsolete since builds clean transparently.

Resolution: closed stale

Reason: No code fix was ever made; the bug sat untouched after the 2019 discussion and was closed in 2023, with ~sergiusens' comment that "cleanbuild is no longer supported, all builds by default now transparently 'cleanbuild'". The LXD/multipass code path that triggered it was subsequently dropped, notably in commit 27ec9ba63 "lifecycle: remove lxd support for bases (#2335)".

Evaluated by: mr-cal-bot

No scores available.

Issue body

On my freshly upgraded ubuntu 19.04 system, trying to cleanbuild any snapcraft.yaml that includes 'base: core18' appears to fail with modprobe: FATAL: Module msr not found in directory /lib/modules/5.0.0-13-generic Here's a log: $ snapcraft cleanbuild Creating snapcraft-merely-kind-ox Starting snapcraft-merely-kind-ox Waiting for a network connection... Network connection established Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB] ... core 16-2.38.1 from Canonical✓ installed snapcraft 3.4.1 from Canonical✓ installed ./ ./snapcraft.yaml Using 'snapcraft.yaml': Project assets will be searched for from the 'snap' directory. Support for 'multipass' needs to be set up. Would you like to do that it now? [y/N]: y snapd is not logged in, snap install commands will use sudo multipass (beta) 0.6.1 from Canonical✓ installed Waiting for multipass... Launching a VM. launch failed: modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.0.0-13-generic/modules.dep.bin' modprobe: FATAL: Module msr not found in directory /lib/modules/5.0.0-13-generic An error occurred with the instance when trying to launch with 'multipass': returned exit code 2. Ensure that 'multipass' is setup correctly and try again. Error: not found Stopping local:snapcraft-merely-kind-ox An error occurred when trying to copy files using 'lxd': returned exit code 1. The snapcraft.yaml in this case is exactly https://github.com/raulojeda22/Bash-Shell-RPG/blob/master/snap/snapcraft.yaml plus 'base: core18': name: bash-shell-rpg version: '1.1' summary: A 2D open world action RPG to play on the command line. # 79 char long summary description: | This is a pretty cool RPG game with weapons, enemies and an objective, find your lost crown and your 2 childs in the middle of a forest with a bunch of creatures and interesting objects. grade: stable confinement: strict architectures: [ all ] base: core18 apps: bash-shell-rpg: command: bash $SNAP/RPG.sh parts: bash-shell-rpg: plugin: dump source: https://github.com/raulojeda22/Bash-Shell-RPG.git install: | chmod +x RPG.sh lxc is working fine, I'm able to run both 16.04 and 18.04 guests. In those guests, I can trigger the same msr problem manually: root@demo-ubu1804:~# modprobe msr modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.0.0-13-generic/modules.dep.bin' modprobe: FATAL: Module msr not found in directory /lib/modules/5.0.0-13-generic So... why's it trying to do modprobe?

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Reported 2019: `snapcraft cleanbuild` with base: core18 failed because multipass VM launch tried modprobe msr and hit AppArmor denials. Closed stale in Aug 2023; maintainer noted cleanbuild is obsolete since builds clean transparently.
stealth/space-bunny-alpha — closed stale Closed as stale in 2023 with no msr fix recorded; a maintainer noted cleanbuild was unsupported because normal builds now transparently perform a clean build.
stealth/space-bunny-alpha — closed stale Closed as stale with no documented fix; Launchpad bug 1829587 received no comments, linked PRs or commits, and was last active 1,134 days ago.
qwen/qwen3.6-35b-a3b — — Closed as abandoned or superseded. No comments, fixes, or merge details were provided. Updated multipass and snapcraft versions likely resolved the kernel module dependency issue.
qwen/qwen3.6-35b-a3b — — Closed without resolution due to inactivity. The multipass cleanbuild failure caused by a missing msr kernel module was abandoned. No fix was provided.
qwen/qwen3.6-35b-a3b — — Closed without resolution due to inactivity. The report details a snapcraft cleanbuild failure with multipass on Ubuntu 19.04 triggered by a missing msr kernel module. No comments or fixes were provided.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution. The report details a snapcraft cleanbuild failure when launching a multipass VM on Ubuntu 19.04 due to a missing msr kernel module. No comments or fix provided.

Update history

Date Change
created

Related work

  • Related To: snapcraft#2335 (confidence 55%)

    Commit 27ec9ba63 removed LXD support for bases, eliminating the containerized base build path implicated in the report; not an explicit fix for this bug.

Related issues

Issue Project State Summary Similarity
#1813979 snapcraft cleanbuild wants to install multipass but it's already installed snapcraft (launchpad) closed Deb-packaged Snapcraft 2.43.1 failed while Multipass worked in 3.0.1. Legacy cleanbuild was later removed because builds are clean by default.
74%
#1697979 snapcraft fails on initial cleanbuild probe snapcraft (launchpad) closed Closed as obsolete: cleanbuild was decommissioned, and standard Snapcraft builds now transparently use a clean build environment.
72%
#1947914 concurrent snapcraft builds with multipass provider snapcraft (launchpad) open Snapcraft 5/Core 18 Multipass builds reportedly shared 10.30.202.6 and terminated silently; the old report has no maintainer assessment and needs triage against current versions.
71%