aboutsummaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
Diffstat (limited to 'virt')
-rwxr-xr-xvirt/virt-serial8
1 files changed, 7 insertions, 1 deletions
diff --git a/virt/virt-serial b/virt/virt-serial
index cd6e173..487b97b 100755
--- a/virt/virt-serial
+++ b/virt/virt-serial
@@ -1,2 +1,8 @@
#!/bin/sh
-socat - UNIX-CONNECT:/run/virt/$1/serial.sock
+
+# TODO check with root permission that virtual doesn't running
+
+. /etc/conf.d/virt.$1
+
+sudo qemu-system-x86_64 -runas qemu $ARGS -nographic
+#sudo qemu-system-x86_64 -runas qemu $ARGS -curses