Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git] / host / xen-vm-start
diff --git a/host/xen-vm-start b/host/xen-vm-start
new file mode 100755 (executable)
index 0000000..8b84913
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh -eu
+tool=$(readlink -e "${0%/*}/..")
+. "$tool"/host/lib.sh
+
+test ! -e /dev/domU/$vm_fqdn-disk1
+sudo xm create $vm_fqdn.cfg
+"$tool"/host/xen-vm-attach