According to the file in `result/bin/run-*-vm` after a `nixos-rebuild
build-vm`, `/tmp/shared` in the guest seems to be equivalent in the host
to the file in `$SHARED_DIR` or, if this variable is not defined, in
`/tmp/nix-vm.*/xchg`
HTH,
Leo
On 09/05/2017 05:38 PM, Bas van Dijk wrote:
> I'm debugging a NixOS test and I would like to transfer some files from
> the qemu guests to the host.
>
> I see the guests have a 9p filesystem mounted on /tmp/shared. Is that
> available from the host?
>
> Alternatively I thought of mounting the root file system of the VM using
> guestmount from libguestfs. The NixOS manual mentions[1] that when you
> run the VMs using ./result/bin/nixos-run-vms the root file system of the
> VMs is created on the fly and kept across VM restarts in
> ./hostname.qcow2. However I don't see the .qcow2 files in my working
> directory when I run that command. Where are they created?
>
> Bas
>
> [1] https://nixos.org/nixos/manual/index.html#sec-running-nixos-tests
>
> --
> You received this message because you are subscribed to the Google
> Groups "nix-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to nix-devel+unsubscribe@googlegroups.com
> <mailto:nix-devel+unsubscribe@googlegroups.com>.
> To post to this group, send email to nix-...@googlegroups.com
> <mailto:nix-devel@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nix-devel/CADLz5wU3t0do2wDpC%2BdA%2BDsEPbYQvRE8TNyJzBLmffRH%3DJfpdw%40mail.gmail.com
> <https://groups.google.com/d/msgid/nix-devel/CADLz5wU3t0do2wDpC%2BdA%2BDsEPbYQvRE8TNyJzBLmffRH%3DJfpdw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "nix-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nix-devel+unsubscribe@googlegroups.com.
To post to this group, send email to nix-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nix-devel/c9233e69-defb-abee-6a57-b159310984a9%40gaspard.io.