Forward Sybase port to host from VM
This commit is contained in:
parent
b9449748fc
commit
e1732d12cf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue