summaryrefslogtreecommitdiff
path: root/server-build/my-simple-cdd/03-run-system.sh
diff options
context:
space:
mode:
Diffstat (limited to 'server-build/my-simple-cdd/03-run-system.sh')
-rwxr-xr-xserver-build/my-simple-cdd/03-run-system.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/server-build/my-simple-cdd/03-run-system.sh b/server-build/my-simple-cdd/03-run-system.sh
new file mode 100755
index 0000000..da4cf78
--- /dev/null
+++ b/server-build/my-simple-cdd/03-run-system.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+# Run QEMU with the talerwoo.img (create via setup-system.sh)
+
+TARGET=talerwoo.img
+
+echo "start the system.."
+# Run qemu
+qemu-system-x86_64 -m 4G -enable-kvm -net nic,model=rtl8139 \
+ -net user,hostfwd=tcp::2222-:22,hostfwd=tcp::7776-:7776,hostfwd=tcp::9999-:80 \
+ -display none -hda $TARGET > /dev/null 2>&1 &
+
+echo ".. and wait some time until it is ready!"
+# wait for system to boot up
+sleep 15
+
+# login as root
+echo "now login as 'root'"
+ssh -F ./ssh.cfg localhost