Как включить Copy/Paste между консолью виртуальной машины в vSphere Client и локальной системой через PowerCLI
1. Выполняем скрипт:
$vCenter = "<vCenter Name>"
$VM = "<VM Name>"
$NewExtraOptions = @{
"isolation.tools.copy.disable"="false";
"isolation.tools.paste.disable"="false";
}
$VMConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
foreach ($Option in $NewExtraOptions.GetEnumerator()) {
$OptionValue = New-Object VMware.Vim.OptionValue
$OptionValue.Key = $Option.Key
$OptionValue.Value = $Option.Value
$VMConfigSpec.ExtraConfig += $OptionValue
}
connect-viserver -server $vCenter
$VM=Get-VM -Name $VM | Get-View
$VM.ReconfigVM_Task($VMConfigSpec)
isolation.tools.copy.disable = "false"
isolation.tools.paste.disable = "false"
isolation.tools.dnd.disable = "false"
isolation.tools.setGUIOptions.enable = "true"
Через ESXi Shell:
grep -i isolation.tools.copy.disable
grep -i isolation.tools.dnd.disable
grep -i isolation.tools.setGUIOptions.enable
grep -i isolation.tools.paste.disable
Через vCLI:
vmware-cmd --server [SERVER] --username [USERNAME] --password [PASSWORD]/vmfs/volumes/[DATASTORE]/[VM]/[VM].vmx getguestinfo isolation.tools.copy.disable
vmware-cmd --server [SERVER] --username [USERNAME] --password [PASSWORD]/vmfs/volumes/[DATASTORE]/[VM]/[VM].vmx getguestinfo isolation.tools.dnd.disable
vmware-cmd --server [SERVER] --username [USERNAME] --password [PASSWORD]/vmfs/volumes/[DATASTORE]/[VM]/[VM].vmx getguestinfo isolation.tools.setGUIOptions.enable
vmware-cmd --server [SERVER] --username [USERNAME] --password [PASSWORD]/vmfs/volumes/[DATASTORE]/[VM]/[VM].vmx getguestinfo isolation.tools.paste.disable