首页 > 代码库 > vSphere Client中虚拟机与客户机中的剪切板不能够拷贝、粘贴
vSphere Client中虚拟机与客户机中的剪切板不能够拷贝、粘贴
现象
vSphere Client中的虚拟机不能够与本地电脑之间进行文字的复制、粘贴
原因
vSphere 4.1开始,处于安全考虑拷贝、粘贴选项是被禁用的
解决
保证客户机安装了VMware Tools
通过vSphere Clinet 登录vCenter Server系统并关闭虚拟机电源。
选中虚拟机点击 摘要(Summary)
点击编辑设置 (Edit Settings)
浏览导航条到 选项 > 高级 > 常规 (Options > Advanced > General ) 并点击 配置参数 (Configuration Parameters)
点击 添加一行(Add Row)
参数名称(Name)与值(Value) 如下
Name
Valueisolation.tools.copy.disable
FALSEisolation.tools.paste.disable
FALSE注意:这些参数将会复写到VMware Tools 控制面部参数项
8. 点击话窗口,点击确认(OK)关闭虚拟机参数对话窗口
9. 打开虚拟机电源
参数知识库
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1026437
Clipboard Copy and Paste does not work in vSphere Client 4.1 and later (1026437)
Symptoms
Cannot copy and paste from the virtual machine remote console to the system in which the vSphere client is installed
The Copy and Paste options are disabled
Cause
Starting with vSphere 4.1, the Copy and Paste options are, by default, disabled due to security concerns.
Resolution
To be able to copy and paste between the guest operating system and the remote console, you must enable the Copy and Paste options using the vSphere Client. Alternatively, you can use RDP (Remote Desktop Protocol) to connect to the Windows virtual machines.
To enable this option for a specific virtual machine:
Note: VMware Tools must be installed for Copy and Paste to work. For more information, see Installing VMware Tools in a Windows virtual machine (1018377).
Log in to a vCenter Server system using the vSphere Client and power off the virtual machine.
Select the virtual machine and click the Summary tab.
Click Edit Settings.
Navigate to Options > Advanced > General and click Configuration Parameters.
Click Add Row.
Type these values in the Name and Value columns:
Name
Valueisolation.tools.copy.disable
FALSEisolation.tools.paste.disable
FALSENote: These options override any settings made in the VMware Tools control panel of the guest operating system.
Click OK to close the Configuration Parameters dialog, and click OK again to close the Virtual Machine Properties dialog.
Power on the virtual machine.
Note: If you vMotion a virtual machine to a host where the isolation.tools.*="FALSE"
is already set, the copy and paste options are automatically activated for that virtual machine.
To enable this option for all the virtual machines in the ESX/ESXi host:
Log in to the ESX/ESXi host as a root user.
Take a backup of the /etc/vmware/config file.
Open the
/etc/vmware/config
file using a text editor.Add these entries to the file:
vmx.fullpath = "/bin/vmx"isolation.tools.copy.disable="FALSE"
isolation.tools.paste.disable="FALSE"Save and close the file.
The Copy and Paste options are only enabled when the virtual machines restart or resume the next time or shutdown and power-on the virtual machine for changes to take effect. This must be done on the virtual machine side, not the guest OS side.
Note: These options do not persist after the host upgrade. If you upgrade to a newer version after enabling these options, the changes are lost and you may have to re-enable them.
For more information, see the Limiting Exposure of Sensitive Data Copied to the Clipboard section of the ESX Configuration Guide.
本文出自 “专注系统集成” 博客,请务必保留此出处http://jinda.blog.51cto.com/2701883/1408245