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