Where does snapcraft VM store its parts and stage?

Hello there,

I feel very stupid asking this question, but since we transitioned to snapcaft 3.8 (and using the VM), I could not find where are stored the current snapcraft folders like part stage etc.

snapcraft mentions /root/parts which I guess are the VM directory, but where is the VM mounted ? and how to access those folders. I could not find a forum or a documentation information about that.


edit : found out that snapcraft --debug makes you land when you can find your file. Still curious to understand where the files actually end up?

Hello @theoriz!

The data is found in the VM’s virtual disk, something like:

The easiest way to inspect would be to use snapcraft snap --shell.

1 Like