当前位置: 首页 > 工具软件 > Virtio > 使用案例 >

virtio-win 驱动

邴烨
2023-12-01

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

 类似资料: