1#!/bin/bash 2# 3# Wait for a VM to boot up and become active. This is used in a number of our 4# scripts. 5# 6# $1: VM hostname or IP address 7 8while pidof /usr/bin/qemu-system-x86_64 >/dev/null; do 9 ssh 2>/dev/null zfs@$1 "uname -a" && break 10done 11