From 9a86f547358c0160f4513695c90d2886701d74c9 Mon Sep 17 00:00:00 2001 From: stubbfel Date: Thu, 25 Jul 2019 22:12:20 +0200 Subject: [PATCH] =?UTF-8?q?Dateien=20hochladen=20nach=20=E2=80=9E.?= =?UTF-8?q?=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- startClientsVM.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 startClientsVM.sh diff --git a/startClientsVM.sh b/startClientsVM.sh new file mode 100644 index 0000000..f0b4501 --- /dev/null +++ b/startClientsVM.sh @@ -0,0 +1,17 @@ +#!/bin/bash +modprobe kvm kvm-intel kvm-amd +CMD=("qemu-system-x86_64" +"-m" "3024" +"-hda" "nixos.qcow2" +"-cdrom" "nixos-minimal-install.iso" +"-enable-kvm" +"-k" "de" +"-net" "nic" +"-net" "user,hostfwd=tcp::2222-:22,hostfwd=tcp::8081-:8080,hostfwd=tcp::4200-:4200,hostfwd=tcp::5000-:5000,hostfwd=tcp::9000-:9000,hostfwd=tcp::9002-:9002,hostfwd=tcp::5601-:5601,hostfwd=tcp::9200-:9200" +"-daemonize" +) + +if ! "${CMD[@]}"; then + echo "${red}fail ${reset}" + exit 1 +fi