可以使用brew安装virt-manager(https://github.com/jeffreywildman/homebrew-virt-manager)
brew tap jeffreywildman/homebrew-virt-manager
brew install virt-manager virt-viewer
连接方式:
virt-manager -c 'qemu+ssh://user@libvirthost/system?socket=/var/run/libvirt/libvirt-sock'
以上仅适合于inter芯片的Mac电脑
在新款M1芯片Mac笔记本中使用如上方式安装会报错,在 https://github.com/jeffreywildman/homebrew-virt-manager/issues/184 中提供了解决方案,可参考(https://github.com/Damenly/homebrew-virt-manager)的方案重新安装homebrew-virt-manager。
卸载原来的
brew remove virt-manager
brew remove virt-viewer
brew untap jeffreywildman/homebrew-virt-manager
全新安装
brew tap Damenly/homebrew-virt-manager
brew install virt-manager --HEAD
brew install virt-viewer