Forward Sybase port to host from VM

This commit is contained in:
coolneng 2021-03-18 13:49:00 +01:00
parent b9449748fc
commit e1732d12cf
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 1 additions and 1 deletions

View File

@ -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