Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all 207710 articles
Browse latest View live

Assign vminc to Specific Uplink on VDS

$
0
0

Hi All,

 

I have requirement to assign vminic1 to Uplink 2 on my VDS.. vminic0 is assigned to VSS vSwitch0 and before migrating VMkernels to the VDS (via Powershell) I need to have an active Uplink on it. When assigning the vminc1 to the VDS it defaults to Uplink 1 is there anyway to specify Uplink 2.

 

My current work around in my script is to add the vminc1 to VSS, set active Nic Team as active for both vmnics then move vmnic0 to VDS?


Unable to run VBS script on logon with appstacks

$
0
0

Hello Everyone,

 

 

We have an in-house software that should be looking at the ViewClient_Machine_Name Value in HKEY_CURRENT_USER\Volatile Environment or if we issue a set view command but unfortunately it is pretty much hit and miss. THe application needs to look a the client name that the user is connecting from as this is the only constant that doesn't change

in our Instant Clones deployment

 

 

The developer came up with another idea and is able to program the application to look at the System Variable with much more reliability. However, to achieve that they are  asking us to deploy a VBS script that should be deployed using Horizon View GPO/Agent Settings and be running at logon (CommandsToRunOnConnect) and reconnect to session (CommandsToRunon Reconnect) with the following command:  c:\windows\system32\cscript.exe \\domain.local\netlogon\viewlogin.vbs

 

 

Overall the script works when logged in to VM with writable only but as soon as I attach another appstack to it the script breaks and does not run. ALso if I'm fully logged in and go to my Netlogon share and run it then it doesn't work. No errors, nothing in logs, at least I cannot find anything.

 

 

Below is the script:

 

 

'************************************************************************************************************************

'The following will create applications and printers based on the following variables:

'vMachine = View Client Machine Name

'vIP = View Client IP Address

'vMAC = View Client MAC Address

'This section sets the variables mentioned above based on registry keys set by VMware View Agent

'***********************************************************************************************************************

On Error Resume Next

Const HKEY_CURRENT_USER = &H80000001

Set wmiLocator=CreateObject("WbemScripting.SWbemLocator")

Set wmiNameSpace = wmiLocator.ConnectServer(".", "root\default")

Set objRegistry = wmiNameSpace.Get("StdRegProv")

sPath = "Volatile Environment"

lRC = objRegistry.GetStringValue(HKEY_CURRENT_USER, sPath, "ViewClient_Machine_Name", vMachine)

lRC = objRegistry.GetStringValue(HKEY_CURRENT_USER, sPath, "ViewClient_IP_Address", vIP)

lRC = objRegistry.GetStringValue(HKEY_CURRENT_USER, sPath, "ViewClient_MAC_Address", vMAC)

'msgbox "The Remote Device Name is " & vMachine & " @ " & vIP & " (" & vMAC & ") "

Dim WSHShell

Dim Shortcut, Desktop, DesktopPath

Set WSHShell = WScript.CreateObject("WScript.Shell")

DesktopPath = WSHShell.SpecialFolders("Desktop")

Set fso = CreateObject("Scripting.FileSystemObject")

'Sets ViewClient_Machine_Name as a system variable Dim SysVarReg, Value Set SysVarReg = WScript.CreateObject("WScript.Shell") value = SysVarReg.RegRead("HKCU\Volatile Environment\ViewClient_Machine_Name") SysVarReg.RegWrite "HKCU\Volatile Environment\1\CLIENTNAME", value WshShell.Environment.Item("ViewClient_Machine_Name") = vMachine

 

 

 

 

We did give Users Modify permissions to

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

 

 

 

 

It seems to be very inconsistent too as it seems to work with some appstacks attached but not all which is majority but it always works fine on Vm with no appstacks and writable only.

 

 

I have also attempted to do the same with Powershell Script but that doesn't seem to work at all, not even on appstack free machines.

 

 

$userVariables= (Get-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Volatile Environment')

Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -Name ViewClient_Machine_Name -Value $userVariables.ViewClient_Machine_Name

 

 

Also tried UEM Logon task just to see if the PS script would work and even though in logs I see it processed it does not work. When logged in to the machine I can run it just fine. UEM was more for test as it wil lneed to work through Horizon GPO due to reconnect option.

 

 

 

 

Envronment: AppVoloumes 2.16, Horizon 7.8, vCenter 6.7 U3, Windows 1809 LTSC

 

 

Any advise would be very appreciated.

VMware Horizon Client Error - Couldn't connect to server

$
0
0

Hello,

 

I have VMware Horizon Client v 4.10 installed on my MacBook Air having macOS Catalina v10.15.3. I was able to use VMware to successfully connect to my work desktop. However, since the last 3 days I am getting the error - Couldn't connect to server.

 

I have always been using a wired connection to my Mac and have tried installing multiple versions of VMware Horizon Client but I still get the same error.

 

I would highly appreciate if anyone can help me resolve this issue at the earliest.

 

Given the COVID-19 situation, we have been asked to work from home and I am not able to do so.

 

Regards,

 

Mangesh.

Error: Couldn't connect to server

$
0
0

Hello,

 

I've tried everything. Unable to connect.

 

Below is the log when i try to log in. I'm hoping someone can help me figure this out.

 

 

Mar 12 14:23:43.177 -04:00: vmware-view 17382| -[CdkWindowController presentBrokerPrompt]

Mar 12 14:23:48.553 -04:00: vmware-view 17382| Disconnecting from broker https://desktop.citi.com:443/broker/xml

Mar 12 14:23:48.553 -04:00: vmware-view 17382| CdkConnection_SetUrl: Connection url: (null).

Mar 12 14:23:48.554 -04:00: vmware-view 17382| Reseting global state of libcdk.

Mar 12 14:23:48.554 -04:00: vmware-view 17382| CdkUtil_SetLocalAddress: fd -1 < 0, not retrieving local address.

Mar 12 14:23:48.554 -04:00: vmware-view 17382| CdkUtil_SetIpProtocolUsage: setting Dual as the addressing mode.

Mar 12 14:23:48.555 -04:00: vmware-view 17382| CdkConnection_SetUrl: Connection url: https://desktop.citi.com:443/broker/xml.

Mar 12 14:23:48.555 -04:00: vmware-view 17382| CdkConnection_SetEffectiveUrl: Connection protocol: https, host: desktop.citi.com, port: 443, path: /broker/xml, secure: true.

Mar 12 14:23:48.555 -04:00: vmware-view 17382| CdkConnection_SetEffectiveUrl: Synthetic url: https://desktop.citi.com:443/broker/xml, interface: (null), scope: -1.

Mar 12 14:23:48.573 -04:00: vmware-view 17382| TaskCombiner: CdkGetLaunchItemsTask(TODO) added, group task num:1, total task num:3.

Mar 12 14:23:48.574 -04:00: vmware-view 17382| TaskCombiner: CdkGetUserGlobalPreferencesTask(TODO) added, group task num:2, total task num:4.

Mar 12 14:23:48.574 -04:00: vmware-view 17382| CdkConnection_SetProxy: Proxy: localhost:8080, type: 2.

Mar 12 14:23:48.575 -04:00: vmware-view 17382| IP protocol type is unknown: 0

Mar 12 14:23:48.575 -04:00: vmware-view 17382| CdkConnection_SetAddressType: Connection address type:  (1)

Mar 12 14:23:48.575 -04:00: vmware-view 17382| CdkConnection_SetUserMode: Connection user mode: TCP-only.

Mar 12 14:23:48.575 -04:00: vmware-view 17382| Connection mode: Broker=TCP-only Websocket=TCP-only Data=TCP-only

Mar 12 14:23:48.896 -04:00: vmware-view 17382| TaskCombiner: CdkGetTunnelConnectionTask(TODO) added, group task num:3, total task num:5.

Mar 12 14:23:48.897 -04:00: vmware-view 17382| TaskCombiner: Group Tasks(3):CdkGetLaunchItemsTask(TODO),CdkGetUserGlobalPreferencesTask(TODO),CdkGetTunnelConnectionTask(TODO),

Mar 12 14:23:48.899 -04:00: vmware-view 17382| TaskCombiner: CdkGetConfigurationTask(TODO) added, group task num:1, total task num:6.

Mar 12 14:23:48.900 -04:00: vmware-view 17382| TaskCombiner: CdkSetLocaleTask(TODO) added, group task num:2, total task num:7.

Mar 12 14:23:48.900 -04:00: vmware-view 17382| TaskCombiner: Group Tasks(2):CdkGetConfigurationTask(TODO),CdkSetLocaleTask(TODO),

Mar 12 14:23:48.900 -04:00: vmware-view 17382| TaskCombiner: CreateRequest for CdkSetLocaleTask(REDY).

Mar 12 14:23:48.902 -04:00: vmware-view 17382| Send request successful: 0x600000a66700

Mar 12 14:23:48.920 -04:00: vmware-view 17382| CdkRpc_HandleResponsesAsync: Handle Response with rpc call id: 3.

Mar 12 14:23:48.920 -04:00: vmware-view 17382| Got a response to request 3.

Mar 12 14:23:48.920 -04:00: vmware-view 17382| TaskCombiner: CdkGetLaunchItemsTask(FAIL) removed, group task num:2, total task num:6.

Mar 12 14:23:48.920 -04:00: vmware-view 17382| TaskCombiner: CdkGetUserGlobalPreferencesTask(FAIL) removed, group task num:1, total task num:5.

Mar 12 14:23:48.920 -04:00: vmware-view 17382| TaskCombiner: CdkGetTunnelConnectionTask(FAIL) removed, group task num:0, total task num:4.

Mar 12 14:23:48.920 -04:00: vmware-view 17382| TaskCombiner: CdkGetConfigurationTask(FAIL) removed, group task num:1, total task num:3.

Mar 12 14:23:48.920 -04:00: vmware-view 17382| -[CdkWindowController errorCallback:forTask:], CdkSetLocaleTask, type: 6, task error: Error: Couldn't connect to server, domain:cdk-curl-error-quark, code:7

Mar 12 14:23:52.682 -04:00: vmware-view 17382| -[CdkWindowController resetAutoReconnect], networkReachability is nil : 1 , autoReconnect : init

Mar 12 14:23:52.683 -04:00: vmware-view 17382| -[CdkSCViewController lockSCKeychain]: There is no used certificate.

vCloud Director multi-branding

$
0
0

Branding the director is quite easy for 1 company.  Is it possible to support multiple brands?

 

I see that several service providers are offering white-labeled versions of the director and wondered how they were doing it.

PowerCLI get Maintenance

$
0
0

Hi,

 

Don't know if someone could help out with this one?

 

I am listing out all the ESXi that are currently in Maintenance mode, from there Listing out the Event Tasks for Such Action:

I'm trying to do a If Statement if the ESXi Host has an Event under 15 Days Ignore,  if it doesn't have a Event Tasks for EnteringMaintenanceMode or is about 15 Days Sent an Email.

below is what i currently have 

$user = ''

$pswd = ''

$start = (Get-Date).AddDays(-1)

 

 

$srv = Connect-VIServer -Server  -User $user -Password $pswd

$ESXIHost = (Get-VMHost -Server $srv | where {$_.ConnectionState -eq 'Maintenance'} | Select Name)

 

 

$tasks = Get-VIEvent -Start $start -MaxSamples ([int]::MaxValue) | where {$_ -is [VMware.Vim.TaskEvent] -and $_.Info.DescriptionId -eq "HostSystem.enterMaintenanceMode"} |

Select CreatedTime,@{N="Host";E={$_.Host.Name}}

 

 

foreach($esx in $ESXIHost)

{

 

 

if( $tasks.Host -eq $esx -and $tasks.CreatedTime -le -15 ) {

    Write-output "Skipping"

    }else{

    Send-MailMessage -From 'User01 <user01@fabrikam.com>' -To 'User02 <user02@fabrikam.com>' -Subject 'Test mail'

    }

 

 

}

Error 'couldn't connect to server' on a Mac only via Wi-Fi

$
0
0

Hi, we have an odd error on a Macbook (Mojave 10.14.6) in which the VMWare client (5.2.0) cannot connect properly giving the error "couldn't connect to server". It happens for all users of the Mac and only when using Wi-Fi, it works when using an Ethernet connection (via an adaptor). The html5 version of Horizon works fine on both Ethernet and Wi-Fi. We have obviously tried connecting via Ethernet and then back to wi-fi as suggested in the post below but it still fails even after a restart, very odd. Also tried updating OS, removing and re-adding Horizon client several times. Very occasionally is gives an SSL error so I tried changing the security on Horizon client to "do not verify server identity certificates" but still no good.

 

Any suggestions very much appreciated, thanks.

 

Error: Couldn't connect to server

Disable collection of a specific object.

$
0
0

Hello Everyone,

 

I want to know if it is possible to stop the collection from an specific object such as Virtual Machines or Datastores.

 

Thanks you very much.


VMWare Horizon View 7: Add more storage to one user in a linked pool, best way to go?

$
0
0

Hi all, I have searched but have not found an answer I can digest yet. I have a linked pool of 50+ users. One of the users in this pool requires more storage on his VM. What is the best way to accomplish this? I assume I will need to create another pool with more storage, and then move the user to that pool. Can someone list the steps required for this, or get me a link? I want to make sure that when the user is moved to the new pool, he doesn't lose any data, simply gains more storage.

Horizon AD Domain - does it use LDAP or LDAPS lookups?

$
0
0

Hi All,

 

We are just reviewing our LDAP/LDAPS situation across all services to ensure SSL / Port 636 is being used as appropriate when doing any Active Directory lookups.

The problem is I can't find definitive information that Horizon is doing this.

 

Can anyone point to details about this?

There certainly aren't any GUI settings to enable a secure channel - I would assume it is all running on secure as standard, but confirmation is needed.

 

Thanks.

Opening port in esxi 6.7 firewall

$
0
0

To manage my ESXi host over a router, I need to change the https port for my host. I know how to do that in the reverse http proxy. But this only works when the port is opened in the firewall. I have found how to do that, but this only lasts until the next reboot of the host.

 

I have found on the internet how I could solve that problem by writing a custom VIB and installing that on the ESXi host. I would need the VIB Author Tool to accomplish that.And that's where I got stuck. The VIB author tool is no longer supported and can no longer be downloaded. Gotcha.

 

I have found no alternative solution that works for ESXi 6.7. How di I achieve that?

VMWonAWS and HCX Learning

Issue on NSX integration with HCX

$
0
0

Hi All,

 

i was deploying HCX on my LAB, on the process of deploying HCX on LAB i could integrate vCenter appliance successfully, bu i am not able to integrate  NSX to dashboard, below given the screenshot for you reference, if any body have come across this issue, Please let me know the solution,

Moreover, i validate that NSX API from postman which returned with status ( 200 OK), with this i also conformed that NSX API is working fine

any suggestion is valuable to me

 

Esxi 6.7u3 on Clevo W110ER.

$
0
0

i keep getting "no network adapters". i have tried making a customize ESXi image with the Realtek 8168 "net-r8168" and still nothing.

Is it possible to create a link on a website that will open a vm?

$
0
0

I am doing a project for school and I want to create a website that includes an employee login prompt, after logging in you would be directed to a training page that has links to 3 different VMs. Is this possible?


Shrink an APFS virtual disk

$
0
0

I'm running VMware Fusion 10.1.1 on High Sierra. 

 

I have a High Sierra guest and I'd like to shrink the virtual disk to reclaim space.

 

With Sierra (and older) guests, I would execute the following command inside the guest to shrink the disk:

 

     sudo /Library/Application\ Support/VMware\ Tools/vmware-tools-cli disk shrink /

 

But when I run that command inside the High Sierra guest (APFS virtual disk), I get the following error:

 

    Partition / is not shrinkable

 

What command should be used to shrink an APFS disk?

 

Thank you.

No cpuid.MDCLEAR capability found after patching for Intel MDS

$
0
0

Hello,

 

I followed the procedures to patch the Intel MDS family of bugs that were announced in VMSA-2019-0008. I executed the following steps:

  1. patch vcenter to the latest 6.5 version: 6.5.0.24100 Build Number 13834586
  2. patch all the ESXi 6.5 servers to the latest version: VMware ESXi, 6.5.0, 13635690
  3. ensure that all the ESXi 6.5 severs had enabled the hyperthreading mitigation (previously applied due to L1TF bug): VMkernel.Boot.hyperthreadingMitigation  = true.

 

Then, according to VMware Knowledge Base I should have every thing ready to provide hypervisor assited mitigation for Intel MDS to our virtual machines. In order to verify it, I choose one virtual machine with hardware profile greater than 9 (13) and shutdown-start it. I check the cpuid capabilities of the virtual machine:

 

cat vmware.log  | grep "Capability Found: cpuid"

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.Intel = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.FCMD = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.LM = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.MWAIT = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.VMX = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.SSBD = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.SSSE3 = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.SSE3 = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.NX = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.SSE41 = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.AES = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.STIBP = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.PCLMULQDQ = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.SS = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.POPCNT = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.DS = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.RDTSCP = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.LAHF64 = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.IBPB = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.CMPXCHG16B = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.SSE42 = 0x1

2019-06-04T07:04:42.330Z| vmx| I125: Capability Found: cpuid.IBRS = 0x1

 

However there is no "cpuid.MDCLEAR" that according to VMware Knowledge Base should appear if vmware is correctly patched for Intel MDS.

 

Any idea on what I am doing wrong?

 

Regards!

 

Christian

VCSA 6.7 U3b unable to invoke installation due to vcsa is not ready check if rpm installation is completed

$
0
0

Hi all,

I'm trying to load OVF file to setup VCSA 6.7 U3b on ESXi 6.7U3b(ESXi is on player), I have 16 GB memory and 4 vCPUs.

When I enter into https://VCSA-IP:5480, there showed Waiting for RPM installation to finish(84% done), after waiting for a long time it complete finally. ( Actually I don't know if it done or not, there are no any message show it's success or fail.)

In the last step of setup, it showed unable to invoke installation due to vcsa is not ready check if rpm installation is completed, I have asked friends who experience in VCSA installation, but they never met this problem.

Beside, I have not setup NTP server, because my friends said they never setup NTP server for VCSA installation.

 

Could anybody please give me some suggestion?

 

Thanks a lot.

Storage: Advanced Performance Charts in the vSphere Client

$
0
0

In advanced performance charts - there are at least four different metrics related to storage: Datastore, Disk, Storage adapter, Storage path.

Is there a good resource which can drill into precisely what is being monitored in each of those perspectives? How could they be best used

together to analyze overall performance of a storage array and the network to the storage array? Thank you.

Error 400 processing vCenter SSO metadata - null

$
0
0

I'm trying to follow the vSphere Client SDK (6.7 U2) documentation for setting up the development environment and I'm stuck with the following message when trying to access https://localhost:9433/ui.

 

[400] An error occurred while sending an authentication request to the vCenter Single Sign-On server - An error occurred when processing the metadata during vCenter Single Sign-On setup - null.

 

I'm just trying the simplest thing - to run tomcat server located in vsphere-ui/server. It looks like being started successfully, but in the browser I'm getting the aforementioned message. I should note that I can access and log into the vCenter UI URL without any issues, the error only happens when I access the UI through local server. These are the messages I'm getting in the vsphere_client_virgo.log:

 

[2020-04-03T15:23:14.173+02:00] [ERROR] cm-catalog-manager-pool-25    com.vmware.vise.vim.security.sso.impl.NgcSolutionUser             Solution user login into domain vsphere.local failed. com.vmware.vim.sso.client.exception.AuthenticationFailedException: Request signature is not valid. Check if the confirmation certificate matches the given private key.  at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl$RequestResponseProcessor.handleFaultCondition(SecurityTokenServiceImpl.java:1070)  at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl$RequestResponseProcessor.sendRequest(SecurityTokenServiceImpl.java:932)  at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl$RequestResponseProcessor.executeRoundtrip(SecurityTokenServiceImpl.java:856)  at com.vmware.vim.sso.client.impl.SecurityTokenServiceImpl.acquireTokenByCertificate(SecurityTokenServiceImpl.java:477)  at com.vmware.vise.vim.security.sso.impl.SsoUtilInternal.acquireTokenByCertificate(SsoUtilInternal.java:987)  at com.vmware.vise.vim.security.sso.impl.NgcSolutionUser.login(NgcSolutionUser.java:237)  at com.vmware.vise.vim.security.sso.impl.NgcSolutionUser.getLoggedInTokenEx(NgcSolutionUser.java:164)  at com.vmware.vise.vim.security.sso.impl.NgcSolutionUser.getLoggedInToken(NgcSolutionUser.java:148)  at com.vmware.vise.vim.lookup.LsCatalogManager.executeDownload(LsCatalogManager.java:1373)  at com.vmware.vise.vim.lookup.LsCatalogManager.downloadResourceBundle(LsCatalogManager.java:1326)

 

[2020-04-03T15:23:14.172+02:00] [ERROR] cm-catalog-manager-pool-25    com.vmware.vim.sso.client.impl.SoapBindingImpl                    SOAP fault com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: Signature is invalid. Please see the server log to find more detail regarding exact cause of the failure.  at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)

 

I tried to investigate and solve these, but it didn't bring me much further. What I've tried so far:

 

  1. Automated registration of local vSphere client
  2. Manual registration of local vSphere client
  3. Checking webclient.properties and ds.properties
  4. Swapping FQDN for IPs and other way around in webclient.properties and ds.properties
  5. Running ./dev-setup.sh line by line and checking intermediate steps
  6. Running ./dev-setup.sh with machine certificate instead of vsphere-webclient
  7. Renewing certificates from vSphere UI (Administration/Certificates/Certificate Management)
  8. Resetting all certificates from `/usr/lib/vmware/vcma/bin/certificate-manager`
  9. Different SDK versions (6.7, 6.7 U1, 6.7 U2)
  10. Changing default identity source in Administration/SSO/Configuration (I have two there – vsphere.local and local OS)
  11. Syncing time on the vCenter with NTP server

 

Really lost at this point as nothing seems to work. Help highly appreciated.

Viewing all 207710 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>