Author: eelco
Date: Mon Dec  6 19:02:24 2010
New Revision: 25016
URL: https://svn.nixos.org/websvn/nix/?rev=25016&sc=1

Log:
* Run smbd in its own session / process group (setsid) because smbd
  now kills its process group when it exits.  Without setsid, this
  ends up killing the parent (i.e., the builder).
* Use port 445 instead of 139 because the CIFS kernel module tries
  port 445 first.  If there is an actual Samba running on the host, it
  would end up connecting to that one instead of our own and fail.

Modified:
   nixos/trunk/modules/virtualisation/qemu-vm.nix

Modified: nixos/trunk/modules/virtualisation/qemu-vm.nix
==============================================================================
--- nixos/trunk/modules/virtualisation/qemu-vm.nix      Mon Dec  6 18:59:07 
2010        (r25015)
+++ nixos/trunk/modules/virtualisation/qemu-vm.nix      Mon Dec  6 19:02:24 
2010        (r25016)
@@ -185,7 +185,7 @@
           -m ${toString config.virtualisation.memorySize} \
           -net nic,vlan=0,model=virtio \
           -chardev socket,id=samba,path=./samba \
-          -net user,vlan=0,guestfwd=tcp:10.0.2.4:139-chardev:samba${if 
cfg.useBackdoor then ",guestfwd=tcp:10.0.2.6:23-chardev:shell" else 
""}''${QEMU_NET_OPTS:+,$QEMU_NET_OPTS} \
+          -net user,vlan=0,guestfwd=tcp:10.0.2.4:445-chardev:samba${if 
cfg.useBackdoor then ",guestfwd=tcp:10.0.2.6:23-chardev:shell" else 
""}''${QEMU_NET_OPTS:+,$QEMU_NET_OPTS} \
          ${if cfg.useBackdoor then "-chardev socket,id=shell,path=./shell" 
else ""} \
           ${if cfg.useBootLoader then ''
             -drive 
index=0,file=$NIX_DISK_IMAGE,if=virtio,cache=writeback,werror=report \
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to