Skip to content

Help requested: VM w/ luks-btrfs-raid example does not build #1133

@cdata

Description

@cdata

Hello, I've been having some stuttering success with using Disko for the first time. I have a setup where I wish to test the configuration in a VM locally. I got a LUKS+Btrfs setup working great. Then, I tried to adapt it based on the LUKS+Btrfs+RAID1 example and ran into a problem.

When I try to build the VM using the RAID example, it fails during disk creation. The full log is attached here. The critical failure point AFAICT is here:

+ mount /dev/mapper/p2 /tmp/tmp.199fvLzrll -o subvol=/
[   36.047665] BTRFS error (device dm-1): devid 2 uuid 25b46a4d-be57-4e52-b025-c1e603233b60 is missing
[   36.048657] BTRFS error (device dm-1): failed to read the system array: -2
[   36.050159] BTRFS error (device dm-1): open_ctree failed: -2
mount: /tmp/tmp.199fvLzrll: fsconfig() failed: No such file or directory.
       dmesg(1) may have more information after failed mount system call.

I have created a minimal reproduction case that demonstrates the issue I'm running up against here: https://github.com/cdata/disko-luks-btrfs-raid-vm-not-working

In the test case, I build the VM using the command nix build .\#test-vm to reproduce the issue.

I tried running the checks in the Disko repo to make sure it wasn't some kind of environmental issue with my local system. The checks all pass, so I assume there is something I'm missing or that I configured incorrectly that is causing this issue.

I'm new to using Disko and would be grateful for any help or advice you can provide. Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions