From 122db53e3b918371dcbfd6ce6d421d9115e458be Mon Sep 17 00:00:00 2001 From: Foxlet Date: Thu, 25 Apr 2019 16:48:18 -0400 Subject: [PATCH] [TOOLS] Add debug script. --- tools/debug.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100755 tools/debug.sh diff --git a/tools/debug.sh b/tools/debug.sh new file mode 100755 index 0000000..e98752c --- /dev/null +++ b/tools/debug.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +# debug.sh: Checks common virtualization programs and modules. +# by Foxlet + +echo "== Distro Info ==" >&2 +lsb_release -a + +echo "== Loaded Modules ==" >&2 +lsmod | grep kvm +lsmod | grep amd_iommu +lsmod | grep intel_iommu + +echo "== Installed Binaries ==" >&2 +if [ -x "$(command -v qemu-system-x86_64)" ]; then + qemu-system-x86_64 --version +else + echo "qemu is not installed." >&2 +fi + +if [ -x "$(command -v virt-manager)" ]; then + echo "virt-manager version $(virt-manager --version)" +else + echo "virt-manager is not installed." >&2 +fi + +if [ -x "$(command -v python)" ]; then + python --version +else + echo "python is not installed." >&2 +fi + +if [ -x "$(command -v pip)" ]; then + pip --version +else + echo "pip is not installed." >&2 +fi