vmware 如何将数据从来宾复制到主机? [英] How vmware copies data from guest to host?

查看:44
本文介绍了vmware 如何将数据从来宾复制到主机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于使用 VMware 工具,我可以将字符串从来宾操作系统复制到主机操作系统,反之亦然.我想知道这个功能是如何工作的?VMware 执行的操作,以便在两个不同的操作系统之间共享剪贴板.

Because of VMware tools I can copy a string from guest OS to host OS and vice a versa. I want to know how this functionality works ? what VMware performs so that clipboard is shared between two different OS.

昨天,我了解了 Microsoft COM 中的 VARIANT 结构.VARIANT 就像一个中间件,某些引擎将在其上运行并允许以其他语言的其他格式访问一种类型的数据.[如果这是错误的或我说的不对,请纠正我]

Yesterday, I learnt about VARIANT struct in Microsoft COM. VARIANT is like a middle ware on which some engine will run and allow data of one type accessible in other format of some other language.[please correct me if this is wrong or I am not talking right]

所以想问一下,这样的东西在虚拟机中有效吗?因为这个功能非常有用,我想了解这个概念.

So just want to ask, is something like this works in virtual machines ? Because this functionality is so so helpful that I want understand this concept.

我还没有在 virtual box 中尝试过,但如果它支持相同的功能,那么它们是如何工作的?如果找到任何链接,我想阅读它.

I have not tried in virtual box yet but if it supports same functionality then how do they work ? I would like to read about it if any links found.

推荐答案

由于您的虚拟机仍然在主机的真实硬件上运行,它虽然使用其外围设备和硬件.

Since your virtual machine still runs on the true hardware of your host machine it although uses its peripheral devices and hardware.

因此,通常 vmware 或虚拟机必须将此设备root"到您的虚拟操作系统.

So vmware or virtual machines in general has to "root" this device to your virtual OS.

Vmware(尤其是VMWARE Tools)所做的就是将某些内容复制到剪贴板后,将这些数据与第二个剪贴板同步.因此,它提供了您的主机数据(如剪贴板或日期时间)之间的接口,并将其设置在您的虚拟操作系统中.

So what Vmware (especially VMWARE Tools) does is when you have copied something into your clipboard, to synchronize this data with the second clipboard. So it provides interfaces between your host data like clipboard or date an time and sets it in your virtual OS.

看看这里:

这并不能完全回答您的问题,但应该为进一步研究提供一些想法.

This does not exactly answers your question, but should give some ideas on further research.

这篇关于vmware 如何将数据从来宾复制到主机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆