Hello,
I’m trying to test a system in a VM using nixos-run-vm
, but I get a buffer overflow when I try to run the program. Moreover, I can’t use options like deployment.targetHost
, which seems to contradict the documention in the man page.
$ cat debug.nix
{
test2 = {pkgs, config, ...}:
{
services.openssh.enable = true;
environment.systemPackages = [ pkgs.lynx ];
## Does not work???
# nixpkgs.localSystem.system = "x86_64-linux";
# deployment.targetHost = "test2.example.net";
# Other NixOS options
};
}
$ nixos-build-vms debug.nix
[...]
All done! ✨ 🍰 ✨
1 file would be left unchanged.
/nix/store/fwxssy1h3j03rcsy9z7a935n055sy5d2-nixos-test-driver-unnamed
$ ./result/bin/nixos-run-vms
starting VDE switch for network 1
running the VM test script
starting all VMs
test2: starting vm
test2 # Formatting '/tmp/vm-state-test2/test2.qcow2', fmt=qcow2 size=536870912 cluster_size=65536 lazy_refcounts=off refcount_bits=16
*** buffer overflow detected ***: /nix/store/h8hylgv3lydj30mxsha8n4iqbbkg5x1x-qemu-host-cpu-only-for-vm-tests-4.2.0/bin/qemu-system-x86_64 terminated
test2: QEMU running (pid 12459)
(0.41 seconds)
waiting for all VMs to finish
test2: waiting for the VM to power off
(0.00 seconds)
(0.00 seconds)
(0.41 seconds)
test script finished in 0.41s
cleaning up
(0.00 seconds)
Any idea what’s wrong?