Mic92 / vmsh

Shell into a virtualized linux, with your own tools
https://vmsh.thalheim.io
MIT License
136 stars 7 forks source link

NixOS kheaders not found #328

Open pogobanane opened 2 years ago

pogobanane commented 2 years ago

Occasionally i get the following error

[INFO  vmsh::attach] attaching
[INFO  vmsh::kvm::hypervisor::hypervisor] vcpu 0 fd 11
<built-in>:1:10: fatal error: './include/linux/kconfig.h' file not found
#include "./include/linux/kconfig.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[ERROR vmsh] cannot create allocator, cannot vm memory allocations, build failed. This might happen if vmsh was started without root (or cap_sys_admin), error compiling bpf

... which can be resolved by deleting rm -r /tmp/kheaders-*

pogobanane commented 2 years ago

maybe also just some issue with my tmpfiles not being deleted fast enough

Mic92 commented 2 years ago

It's also a security problem in multi-user systems actually if multiple users race to create this directory.