X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=host%2Fxen-vm-attach;fp=host%2Fxen-vm-attach;h=5c83ce2d0cea7d48b4edd01dda655fbb1c68b165;hp=0000000000000000000000000000000000000000;hb=3ad6118386977e346d81042e924e5db9c5f15b7d;hpb=22f04b9fac14adc3d3fc98273ba126c3a51792c3 diff --git a/host/xen-vm-attach b/host/xen-vm-attach new file mode 100755 index 0000000..5c83ce2 --- /dev/null +++ b/host/xen-vm-attach @@ -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