From e1732d12cf14bb4b5e5a9dc499afc0df29538647 Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 18 Mar 2021 13:49:00 +0100 Subject: [PATCH] Forward Sybase port to host from VM --- modules/virtualization.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/virtualization.nix b/modules/virtualization.nix index 6165b7a..f86fb9f 100644 --- a/modules/virtualization.nix +++ b/modules/virtualization.nix @@ -16,7 +16,7 @@ script = '' disk=/vault/VMs/sica.qcow2 sock=/run/qemu-sica.mon.sock - ${pkgs.qemu_kvm}/bin/qemu-kvm -m 1G -nic user,hostfwd=tcp::2222-:22 -hda $disk -monitor unix:$sock,server,nowait -nographic + ${pkgs.qemu_kvm}/bin/qemu-kvm -m 1G -nic user,hostfwd=tcp::2222-:22,hostfwd=tcp::5000-:5000 -hda $disk -monitor unix:$sock,server,nowait -nographic ''; preStop = '' echo 'system_powerdown' | ${pkgs.socat}/bin/socat - UNIX-CONNECT:/run/qemu-sica.mon.sock