Install according to: https://nixos.org/download
# install nix - package manager
sh <(curl -L https://nixos.org/nix/install) --daemon
# enable nix flakes
mkdir -p "$HOME/.config/nix"
echo 'experimental-features = nix-command flakes' > "$HOME/.config/nix/nix.conf"
QEMU_NET_OPTS="hostfwd=tcp::2221-:22" nix run .#nixosConfigurations.test.config.system.build.vm
ssh -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no -i private_key.pem root@localhost -p 2221
- Launch a vm
- Open two ssh sessions (
A
andB
) - In
A
run:bpftrace $(which gethostlatency.bt) -p $$
- In
B
run:curl https://google.com
Expected behavior: terminal A shows no entries Actual behavior: terminal A contains logged queries