1 Star 0 Fork 1

赖青华/OSX-KVM

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
run-diagnostics.sh 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
Dhiru Kholia 提交于 2019-05-01 16:01 . [Experimental] Adopt modern methods
#!/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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lai_qinghua_admin/OSX-KVM.git
git@gitee.com:lai_qinghua_admin/OSX-KVM.git
lai_qinghua_admin
OSX-KVM
OSX-KVM
master

搜索帮助