Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / host / xen-vm-attach
diff --git a/host/xen-vm-attach b/host/xen-vm-attach
new file mode 100755 (executable)
index 0000000..5c83ce2
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh -eu
+tool=$(readlink -e "${0%/*}/..")
+. "$tool"/host/lib.sh
+
+! pgrep -f "sudo xm console $vm_fqdn"
+info 'Ctrl-] pour se détacher de la console'
+sudo xm console $vm_fqdn