virtio-win 驱动

Posted 乌托邦2号

tags:

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

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

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 驱动的主要内容,如果未能解决你的问题,请参考以下文章

virtio-win 驱动

利用qemu-guest-agent实现重置密码的功能(测试中)

制作openstack镜像win7.qcow2

openstack之windows2003/08系统qcow2制作

win7 virtio 驱动下载

在CentOS6的上安装Windows2012R2的KVM虚拟机