anchor.diff:          };
           fileShares.run = mkIf (cfg.backend == "lxc") {
             guestPath = "/run";
  -          hostPath = "run-${name}";
  +          hostPath = "/@mnt@/run-${name}";
             readOnly = false;
             neededForBoot = true;
           };
  
positive.code:         function prettytail() {
            local header="$1"
            local file="$2"
            tail --pid $virshpid -F "$file" | while read l; do
              printf "%s%s\n" "$header" "$l"
            done
          }
  
          # Variables that are substituted within the libvirt XML files
          testid="$(basename "$out")"
          testid="''${testid%%-*}"
          testid="''${testid:0:7}"
          build="$(pwd)/build"
          uid="$(id -u)"
          gid="$(id -g)"
          pwd="$(pwd)"
  
          # Setup directories and libvirt XML files
          mkdir -p build/{log,libvirt} build/hosts/{${instList}}
          touch build/log/std{out,err} build/log/{${instList}}-console.log
          cp -t build/libvirt "$src"/*
          for f in build/libvirt/{dom,net}-*.xml; do substituteAllInPlace "$f"; done
          ${optionalString (cfg.backend == "lxc") "mkdir {root,run}-{${instList}}"}
  
          # Let libvirt access paths inside the build directory and write to out dirs
          chmod a+x .
          chmod a+w -R build
  
          # Start the libvirt machines
          ${pkgs.libvirt}/bin/virsh -c "${cfg.connectionURI}" \
            "${virshCmds}" >/dev/null &
          virshpid=$!
  
          ${concatStrings (flatten (mapAttrsToList (n: fs: map (f: ''
            prettytail "${padName n}" "$build/${f}" &
          '') fs) cfg.tailFiles))}
  
          # Wait for the test script to finish and then run any extra steps
          wait -n $virshpid || touch build/failed
  
          # Put build products in place
          cp -rnT build $out
          mkdir -p $out/nix-support
  
          (
  
negative.code:         lxc = mkIf (cfg.backend == "lxc") {
            mappedUid = "@uid@";
            mappedGid = "@gid@";
            rootPath = "/@mnt@/root-${name}";
          };
          name = "dom-@testid@-${name}";
          uuid = null;
  