Inside the NixOS tests the machines are accessible through perl variables and DNS records. nixos-run-vms just starts the machines but doesn’t give me a prompt or something to interact with them. so what is it good for? are the machines exposed somewhere?
If you are running nixos-run-vms from an X11 terminal it should open one window per VM showing the console, where a normal login prompt should appear. I never tried it from a non-graphical terminal, I suppose there is some option to add some kind of redirection to the VMs I/O, but I don’t know the details.
Yes, I guess that’s the issue.
I’m running everything on a linux server over ssh cause my local machine is a mac and tests are not supported on darwin.
Since you posted this I’ve discovered that if you set and export an environment variable named QEMU_OPTS, its value will be added to the Qemu command line, but I haven’t yet figured out how to connect to the test machine, have you?
What worked for me is setting the QEMU_OPTS environment variable to -display gtk before running the command to start the VMs.
There is some logic that runs inside the build sandbox and sets -nographic (see on github), which is why I think that workaround is necessary. If that’s an error I’m not sure yet how to fix it.