mirror of
https://github.com/foxlet/macOS-Simple-KVM.git
synced 2024-12-03 16:39:42 +01:00
[TOOLS] Add debug script.
This commit is contained in:
parent
6f9b8f90b0
commit
122db53e3b
1 changed files with 37 additions and 0 deletions
37
tools/debug.sh
Executable file
37
tools/debug.sh
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
|
||||
# debug.sh: Checks common virtualization programs and modules.
|
||||
# by Foxlet <foxlet@furcode.co>
|
||||
|
||||
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
|
Loading…
Reference in a new issue