指点成金-最美分享吧

登录

virtio-win 驱动

佚名 举报

篇首语:本文由小编为大家整理,主要介绍了virtio-win 驱动相关的知识,希望对你有一定的参考价值。

Direct downloads are available for the .iso, .vfd, and qemu-ga installers.

  • Stable virtio-win iso: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso
  • Stable virtio-win x86 floppy: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win_x86.vfd
  • Stable virtio-win amd64 floppy: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win_amd64.vfd
  • Latest virtio-win iso: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win.iso
  • Latest virtio-win x86 floppy: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win_x86.vfd
  • Latest virtio-win amd64 floppy: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/virtio-win_amd64.vfd
  • Latest qemu-ga files: Index of /groups/virt/virtio-win/direct-downloads/archive-qemu-ga/qemu-ga-win-102.10.0-0.el8_5
  • Full archive: Index of /groups/virt/virtio-win/direct-downloads
  • Changelog: https://fedorapeople.org/groups/virt/virtio-win/CHANGELOG

If you previously used isos from alt.fedoraproject.org, note that these new isos have a different file layout (matching RHEL isos). If you need to access the old isos you can do so here. However these isos are deprecated and only kept around for back compatability. No new isos will be added there.

参考:https://fedoraproject.org/wiki/Windows_Virtio_Drivers#Direct_download

通过qga往虚拟机内部写入文件

进入虚拟机内部,然后vim /etc/sysconfig/qemu-ga
将BLACKLIST_RPC="guest-file-open,guest-file-close,guest-file-read,guest-file-write,guest-file-seek,guest-file-flush"
中的guest-file-open,guest-file-close,guest-file-read,guest-file-write去掉,然后重启qga
systemctl restart qemu-guest-agent,启动失败没关系,在环境上才能启动成功。

第一步 在宿主机上打开文件
virsh qemu-agent-command instance-000000a2 ""execute":"guest-file-open","arguments":"path":"/home/aa/bb.txt","mode":"w+""


第二步 写入(需要base64加密)
virsh qemu-agent-command instance-000000a2 ""execute":"guest-file-write","arguments":"handle":1004,"buf-b64":"dGVzdOa1i+ivlTEyMzQ1""


第三步 关闭文件
virsh qemu-agent-command instance-000000a2 ""execute":"guest-file-close","arguments":"handle":1004"

参考:https://www.cnblogs.com/czp2016/p/15661996.html

参考:https://www.cnblogs.com/fzxiaomange/p/kvm-inject.html

以上是关于virtio-win 驱动的主要内容,如果未能解决你的问题,请参考以下文章