anchor.diff:      # Loop forever, because this VM is going to be killed.
       ${loopForever}
     '' else ''
  -    ${coreutils}/bin/mkdir -p /etc/samba /etc/samba/private /var/lib/samba
  +    ${coreutils}/bin/mkdir -p /etc/samba /etc/samba/private \
  +                              /var/lib/samba /var/log /var/run
       ${coreutils}/bin/cat > /etc/samba/smb.conf <<CONFIG
       [global]
       security = user
  
positive.code: 
  let
    inherit (import <nixpkgs> {}) lib stdenv writeScript vmTools makeInitrd;
    inherit (import <nixpkgs> {}) samba vde2 busybox openssh;
    inherit (import <nixpkgs> {}) socat netcat coreutils gzip;
  
    preInitScript = writeScript "preinit.sh" ''
      #!${vmTools.initrdUtils}/bin/ash -e
  
negative.code:     ifconfig lo up
      ifconfig eth0 up 192.168.0.2
  
      mount -t tmpfs none /fs
      mkdir -p /fs/nix/store /fs/xchg /fs/dev /fs/sys /fs/proc /fs/etc /fs/tmp
  
      mount -o bind /dev /fs/dev
      mount -t sysfs none /fs/sys
      mount -t proc none /fs/proc
  
      mount -t 9p \
        -o trans=virtio,version=9p2000.L,msize=262144,cache=loose \
        store /fs/nix/store
  
      mount -t 9p \
        -o trans=virtio,version=9p2000.L,msize=262144,cache=loose \
        xchg /fs/xchg
  
      cat > /fs/etc/passwd <<PASSWD
      root:x:0:0::/root:/bin/false
      nobody:x:65534:65534::/var/empty:/bin/false
      PASSWD
  
      set +e
      chroot /fs $command $out
      echo $? > /fs/xchg/in-vm-exit
  
      poweroff -f
    '';
  
    initrd = makeInitrd {
  