NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.03k stars 13.37k forks source link

Cannot `run-nixos-vm`: "version `GLIBC_2.38` not found". #281326

Open zmrocze opened 7 months ago

zmrocze commented 7 months ago

Describe the bug

A clear and concise description of what the bug is.

Hi!

I'm creating a nixos vm, but it fails with a missing dependency:

/nix/store/kycv8h9adan0zvs2cabp60xsjw1iabq7-qemu-host-cpu-only-8.1.1/bin/qemu-kvm: /nix/store/ld03l52xq2ssn4x0g5asypsxqls40497-glibc-2.37-8/lib/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/ym30ihpm3sjgkphpab3f2lcg6j4mla9v-pipewire-0.3.85-jack/lib/libjack.so.0)

when run.

Steps To Reproduce

Steps to reproduce the behavior:

I'm creating the vm based on nixos configuration by running:

nixos-rebuild --flake .#relay-node build-vm

in this flake.

Then starting it as the previous command suggests with:

/nix/store/k84w0jxmbnng9zv2w9pdm9z0gq4wzimm-nixos-vm/bin/run-nixos-vm

Expected behavior

I enter the vm.

Actual behavior

▶ /nix/store/k84w0jxmbnng9zv2w9pdm9z0gq4wzimm-nixos-vm/bin/run-nixos-vm
Disk image do not exist, creating the virtualisation disk image...
Formatting '/tmp/tmp.9mc8PIbtn8', fmt=raw size=1073741824
mke2fs 1.47.0 (5-Feb-2023)
Discarding device blocks: done                            
Creating filesystem with 262144 4k blocks and 65536 inodes
Filesystem UUID: 6138b349-7938-408a-88ae-8d39bcc550f7
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

Virtualisation disk image created.
/nix/store/kycv8h9adan0zvs2cabp60xsjw1iabq7-qemu-host-cpu-only-8.1.1/bin/qemu-kvm: /nix/store/ld03l52xq2ssn4x0g5asypsxqls40497-glibc-2.37-8/lib/libc.so.6: version `GLIBC_2.38' not found (required by /nix/store/ym30ihpm3sjgkphpab3f2lcg6j4mla9v-pipewire-0.3.85-jack/lib/libjack.so.0)

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
 - host os: `Linux 6.1.64, NixOS, 23.11 (Tapir), 23.11.20231129.50aa30a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/nix/store/7i525k013ds687vgp12lyhwmx79qd4qj-source`

Add a :+1: reaction to issues you find important.

g00pix commented 7 months ago

Workaround is to unset LD_LIBRARY_PATH environment variable. In my case it contains the path to pipewire's jack lib.