1 Star 0 Fork 0

白开水/OSX-KVM

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
run-diagnostics.sh 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
Dhiru Kholia 提交于 2020-08-22 09:56 . Batch update for August-2020
#!/usr/bin/env 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 -e "\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 -e "\nATTENTION: /sys/module/kvm/parameters/ignore_msrs setting seems to be incorrect!"
fi
echo -e "\n== Installed Binaries ==" >&2
if [ -x "$(command -v qemu-system-x86_64)" ]; then
qemu-system-x86_64 --version
else
echo -e "qemu is not installed." >&2
fi
if [ -x "$(command -v virt-manager)" ]; then
echo -e "virt-manager version $(virt-manager --version)"
else
echo -e "virt-manager is not installed." >&2
fi
if [ -x "$(command -v python)" ]; then
python --version
else
echo -e "python is not installed." >&2
fi
echo -e "\n== Networking ==" >&2
ip link show virbr0 >/dev/null 2>&1
if [ "$?" != 0 ]; then
echo -e "Interface virbr0 doesn't seem to exist. Check your networking configuration." >&2
else
echo -e "Found virbr0. Good."
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiehengjian/OSX-KVM.git
git@gitee.com:xiehengjian/OSX-KVM.git
xiehengjian
OSX-KVM
OSX-KVM
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385