Windows virtio 驱动
概述
该页面描述了如何为KVM里的windows虚机获取和安装virtio驱动,以及如何添加软件agent。
Yum源
win virtio驱动提供yum源,安装rpm包后,virtio驱动和agent默认都会安装在/usr/share/virtio-win目录中,这些可以共享给windows的虚拟机。
安装repo文件:
sudo wget https://fedorapeople.org/groups/virt/virtio-win/virtio-win.repo -O /etc/yum.repos.d/virtio-win.repo
使用yum安装virtio-win软件包:
sudo yum install virtio-win
该repo文件提供两个不同的仓库:
virtio-win-stable
该仓库的版本和RHEL版本关联在一起发布,意味着得到了非常多的测试,很稳定。
默认该仓库是enable的。
virtio-win-latest
该仓库提供最新的build版本,这些版本可能有各种问题,用户需自己承担风险。
这个仓库默认是disable的。如果你想从稳定版更新到最新版,可以使用如下命令:sudo yum --enablerepo=virtio-win-latest update virtio-win
RPM包内容
/usr/share/virtio-win/*.iso: ISO镜像,包含所有驱动,详细内容后面会描述
/usr/share/virtio-win/*.vfd: 用于Windows XP下的VFD软驱镜像
/usr/share/virtio-win/drivers: 从VFD软驱镜像中提取的文件
/usr/share/guest-agent/*.msi: QEMU Guest Agent 32bit 和 64bit 安装包
ISO镜像内容
该ISO镜像包含如下内容:
NetKVM/: Virtio网络驱动
viostor/: Virtio块驱动
vioscsi/: Virtio SCSI驱动
viorng/: Virtio RNG驱动
vioser/: Virtio串口驱动
Balloon/: Virtio 内存气球驱动
qxl/: 用于Windows 7及之前版本的QXL显卡驱动. (virtio-win-0.1.103-1和之后版本会创建)
qxldod/: 用于Windows 8及之后版本的QXL显卡驱动. (virtio-win-0.1.103-2和之后版本会创建)
pvpanic/: QEMU pvpanic 设备驱动 (virtio-win-0.1.103-2和之后版本会创建)
guest-agent/: QEMU Guest Agent 32bit 和 64bit 安装包
qemupciserial/: QEMU PCI 串口设备驱动
*.vfd: 用于Windows XP下的VFD软驱镜像
直接下载
可以直接下载.iso、.vfd、和qemu-ga这些安装包,下载地址如下:
稳定版virtio-win iso: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso
稳定版virtio-win x86 floppy: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win_x86.vfd
稳定版virtio-win amd64 floppy: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win_amd64.vfd
最新版virtio-win iso: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso
最新版virtio-win x86 floppy: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win_x86.vfd
最新版virtio-win amd64 floppy: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win_amd64.vfd
最新版qemu-ga files: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-qemu-ga/
全部下载目录: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/
变更日志: https://fedorapeople.org/groups/virt/virtio-win/CHANGELOG
常见问题
问:这些驱动程序用的都是什么许可证?
答:都是GPLv2
问:这些驱动程序为什么不能成fedora的一部分?
答:原因是这些驱动不能在fedora编译环境下编译,这些驱动只能在windows环境下编译。
……
其他常见问题见原文
如何提Bugs
请查看原文
链接
KVM windows guest drivers upstream code: https://github.com/YanVugenfirer/kvm-guest-drivers-windows
QXL XDDM driver code: http://cgit.freedesktop.org/spice/win32/qxl
QXL WDDM driver code: https://github.com/vrozenfe/qxl-dod
Tree used by gnome-boxes for automatic driver installation: https://zeenix.fedorapeople.org/drivers/
Windows spice agent git repo: http://cgit.freedesktop.org/spice/win32/vd_agent
Spice guest tools installer code: http://cgit.freedesktop.org/~teuf/spice-nsis/
spice-guest-tools downloads: http://www.spice-space.org/download/binaries/spice-guest-tools/
Fedora virtio-win build scripts: https://github.com/crobinso/virtio-win-pkg-scripts
备注:Dnf是yum的下一个升级版本,和yum用法一致,这里不在文中和yum一起列出。
原文:https://fedoraproject.org/wiki/Windows_Virtio_Drivers