xref: /freebsd/sys/contrib/openzfs/.github/workflows/scripts/qemu-wait-for-vm.sh (revision 24e4dcf4ba5e9dedcf89efd358ea3e1fe5867020)
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