#! /bin/sh
# Wait for console to appear then connect once

NOCONSOLE=true
while ${NOCONSOLE}; do 
  clear
  if virsh console "$@"; then
    NOCONSOLE=false
  else 
    sleep 1
  fi
done
