From b0a2c1c5800c30ecf37311885ce11f244102873e Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sat, 12 Feb 2022 17:54:06 -0500 Subject: Bunch of changes --- .local/bin/start-vm | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .local/bin/start-vm (limited to '.local/bin/start-vm') diff --git a/.local/bin/start-vm b/.local/bin/start-vm new file mode 100755 index 0000000..5ffea03 --- /dev/null +++ b/.local/bin/start-vm @@ -0,0 +1,9 @@ +#!/bin/sh +# Starts libvirtd, default network, and optionally any domains given as arguments + +pgrep libvirtd >/dev/null || sudo systemctl start libvirtd +virsh net-start default +for domain in "$@" +do + virsh start $domain +done -- cgit v1.2.3