代码拉取完成,页面将自动刷新
#!/bin/bash
# run-diagnostics.sh: checks common virtualization programs, modules and
# options. Written by Foxlet <foxlet@furcode.co>. Modified by Dhiru for OSX-KVM
# project.
#
# Note: This script is borrowed from https://github.com/foxlet/macOS-Simple-KVM
# project.
echo "== Distro Info ==" >&2
lsb_release -a 2>/dev/null
echo "\n== Loaded Modules ==" >&2
lsmod | grep kvm
lsmod | grep amd_iommu
lsmod | grep intel_iommu
v=`cat /sys/module/kvm/parameters/ignore_msrs`
if [ "$v" != "Y" ]; then
echo "\nAttention: /sys/module/kvm/parameters/ignore_msrs setting seems to be incorrect!"
fi
echo "\n== 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
echo "\n== Networking ==\n" >&2
ip link show virbr0 >/dev/null 2>&1
if [ "$?" != 0 ]; then
echo "Interface virbr0 doesn't seem to exist. Check your networking configuration." >&2
else
echo "Found virbr0. Good."
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。