Are you the publisher? Claim or contact us about this channel

Embed this content in your HTML


Report adult content:

click to rate:

Account: (login)

More Channels


Channel Catalog

Channel Description:

Latest Forum Threads in VMware Communities

older | 1 | .... | 6749 | 6750 | (Page 6751) | 6752 | 6753 | .... | 6759 | newer

    0 0


    I got an error message from our QA who discoved this problem.

    We have custom roles - they are defined when our plugin is installed, and look like this (as seen in mob)




                   label: Acme Authorization Role

                   summary:  This is a role used in the acme plugin, bla bla bla

             name: com.acme.plugin.authRole

              privilege:  <list of privs>

         roleId: 123456

         system: false


    After the user uses the Html Plugin, and adds/removes some privilges, the definition for the role (as seen in mob)




              label: Acme Authorization Role

              summary: Acme Authorization Role

         name: Acme Autorization Role

         privilege: <list of privs>

         roleId: 123456

         system: false


    The problem here is that we search the roles to find our defintions, and since we use the name (com.acme.plugin.authRole) - ...


    Is this problem known?


    0 0



    I am running “ESXi 6.5 Update 2” on DELL with virtual NUMA technology enabled (known as “cluster on die” on HP). I have several VMs running on the server with latency sensitivity and shares set to  ‘high’ for CPU and Memory.


    For some reason, I noticed that the algorithm of VMs RAM allocation is such that memory is allocated from the same virtual NUMA till it is empty. Moreover, when there is not enough memory in a virtual NUMA, ESXi will try to allocate as much memory as possible on the busy NUMA, and only when its completely empty continue the allocation on the consecutive one. I would call that “occupy as less virtual NUMA nodes as possible” at all costs, even when it comes to splitting the memory of a VM to 2 NUMAs.


    That is not what I was used to in ESXi 6.0, as in 6.0 the memory allocation algorithm was CPU aware, allocating VMs memory based on the vCPU allocation. Meaning, on a 24 CPU server, if VMs vCPUs were allocated on cores 0-5 the memory was allocated from NUMA 0, if on cores 6-11 the memory was allocated from NUMA 1 and so forth. I must say that neither on 6.0 nor on 6.5 I was not doing any special core or memory affinity what so ever and the memory allocation was all in the hands of ESXi.


    My question is what can be done on 6.5 to maintain that awareness from 6.0 and what implications may rise if that is not done ?


    Thank you,


    0 0

    Hello all


    Hoping someone might be able to help me please.


    According to the Documentation Centre here, you can create a report of the Protected VM's using the below script:


    1. List all protection groups associated with the SRM server.



    $srmApi = $srm.ExtensionData

    $protectionGroups = $srmApi.Protection.ListProtectionGroups()



    2. Generate a report of the protected virtual machines.



    $protectionGroups | % {

        $protectionGroup = $_


        $protectionGroupInfo = $protectionGroup.GetInfo()


        # The following command lists the virtual machines associated with a protection group

        $protectedVms = $protectionGroup.ListProtectedVms()

        # The result of the above call is an array of references to the virtual machines at the vSphere API

        # To populate the data from the vSphere connection, call the UpdateViewData method on each virtual machine view object

        $protectedVms | % { $_.Vm.UpdateViewData() }

        # After the data is populated, use it to generate a report

        $protectedVms | %{

            $output = "" | select VmName, PgName

            $output.VmName = $_.Vm.Name

            $output.PgName = $protectionGroupInfo.Name



    } | Format-Table @{Label="VM Name"; Expression={$_.VmName} }, @{Label="Protection group name"; Expression={$_.PgName} }


    The problem I am having is in step 1, specifically this part: $protectionGroups = $srmApi.Protection.ListProtectionGroups()


    I'm using PowerCLI version VMware-PowerCLI-6.3.0-3639347, and can successfully connect-viserver and subsequently connect-srmserver works too.


    The first variable of $srmApi = $srm.ExtensionData is set successfully, but the second returns the error "You cannot call a method on a null-valued expression".


    Here's the exact output from the CLI session:


    PowerCLI C:\> $protectionGroups = $srmApi.Protection.ListProtectionGroups()

    You cannot call a method on a null-valued expression.

    At line:1 char:1

    + $protectionGroups = $srmApi.Protection.ListProtectionGroups()

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException

        + FullyQualifiedErrorId : InvokeMethodOnNull


    PowerCLI C:\>





    My end goal is to have a script that will create a list of all SRM protected VM's within the estate, but I would also like to have additional information for the VM's - like vCPU count, vRAM, hostname and OS version for example. I just can't even get over the first hurdle.


    Thanks all.

    0 0



    I am getting the below error, when I try to execute the below script, please help




    Exception calling "Join" with "2" argument(s): "Value cannot be null.

    Parameter name: values"

    At D:\myreports\list_orphaned_vmdk.ps1:90 char:1

    + New-Object PSObject -Property @{

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

        + FullyQualifiedErrorId : ArgumentNullException


    Exception calling "Join" with "2" argument(s): "Value cannot be null.

    Parameter name: values"

    At D:\myreports\list_orphaned_vmdk.ps1:90 char:1

    + New-Object PSObject -Property @{

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

        + FullyQualifiedErrorId : ArgumentNullException







    function Remove-OrphanedData {


    .SYNOPSIS   Remove orphaned folders and VMDK files

    .DESCRIPTION   The function searches orphaned folders and VMDK files

    on one or more datastores and reports its findings.

    Optionally the function removes  the orphaned folders   and VMDK files

    .NOTES   Author:  Luc Dekens

    .PARAMETER Datastore

    One or more datastores.

    The default is to investigate all shared VMFS datastores

    .PARAMETER Delete

    A switch that indicates if you want to remove the folders

    and VMDK files


    PS> Remove-OrphanedData -Datastore ds1


    PS> Get-Datastore ds* | Remove-OrphanedData


    PS> Remove-OrphanedData -Datastore $ds -Delete









    $fldList = @{}

    $hdList = @{}

    $fileMgr = Get-View FileManager



    foreach($ds in $Datastore){

    if($ds.GetType().Name -eq "String"){

    $ds = Get-Datastore -Name $ds


    if($ds.Type -eq "VMFS" -and $ds.ExtensionData.Summary.MultipleHostAccess){

    Get-VM -Datastore $ds | %{

    $_.Extensiondata.LayoutEx.File | where{"diskDescriptor","diskExtent" -contains $_.Type} | %{

    $fldList[$_.Name.Split('/')[0]] = $_.Name

    $hdList[$_.Name] = $_.Name



    Get-Template | where {$_.DatastoreIdList -contains $ds.Id} | %{

    $_.Extensiondata.LayoutEx.File | where{"diskDescriptor","diskExtent" -contains $_.Type} | %{

    $fldList[$_.Name.Split('/')[0]] = $_.Name

    $hdList[$_.Name] = $_.Name



    $dc = $ds.Datacenter.Extensiondata

    $flags = New-Object VMware.Vim.FileQueryFlags

    $flags.FileSize = $true

    $flags.FileType = $true

    $disk = New-Object VMware.Vim.VmDiskFileQuery

    $disk.details = New-Object VMware.Vim.VmDiskFileQueryFlags

    $disk.details.capacityKb = $true

    #$disk.details.capacityGB = $true

    $disk.details.diskExtents = $true

    $disk.details.diskType = $true

    $disk.details.thin = $true

    $searchSpec = New-Object VMware.Vim.HostDatastoreBrowserSearchSpec

    $searchSpec.details = $flags

    $searchSpec.Query += $disk

    $searchSpec.sortFoldersFirst = $true

    $dsBrowser = Get-View $ds.ExtensionData.browser

    $rootPath = "[" + $ds.Name + "]"

    $searchResult = $dsBrowser.SearchDatastoreSubFolders($rootPath, $searchSpec)

    foreach($folder in $searchResult){


    foreach ($file in $folder.File){

    if(!$hdList.ContainsKey($folder.FolderPath + $file.Path)){

    New-Object PSObject -Property @{

    Folder = $folder.FolderPath

    Name = $file.Path

    Size = $file.FileSize

    CapacityGB = $file.CapacityKb/1024/1024

    Thin = $file.Thin

    Extents = [string]::Join(',',($file.DiskExtents))



    If ($PSCmdlet.ShouldProcess(($folder.FolderPath + " " + $file.Path),"Remove VMDK")){

    $dsBrowser.DeleteFile($folder.FolderPath + $file.Path)






    elseif($folder.File | where {"cos.vmdk","esxconsole.vmdk" -notcontains $_.Path}){

    $folder.File | %{

    New-Object PSObject -Property @{

    Folder = $folder.FolderPath

    Name = $_.Path

    Size = $_.FileSize

    CapacityGB = $_.CapacityKB/1024/1024

    Thin = $_.Thin

    Extents = [String]::Join(',',($_.DiskExtents))




    if($folder.FolderPath -eq $rootPath){

    $folder.File | %{

    If ($PSCmdlet.ShouldProcess(($folder.FolderPath + " " + $_.Path),"Remove VMDK")){

    $dsBrowser.DeleteFile($folder.FolderPath + $_.Path)





    If ($PSCmdlet.ShouldProcess($folder.FolderPath,"Remove Folder")){













    Remove-OrphanedData -Datastore DS01

    0 0

    Hello All


    I'm struggling to find where you configure the port / repository max size / service startup for the VMware vSphere ESXi Dump Collector (6.7 update 1) in the HTML interface?


    It still exists in the FLEX (flash): vSphere Web Client - Home / Administration / System Configuration / Services /  VMware vSphere ESXi Dump Collector.


    I thought the HTML5 client was fully featured?


    Many thanks


    0 0

    We are using advanced settings to store metadata about VMs in their respective VMX files.

    The scripts use this metadata to control deployment actions, among which are actions to have some VMs converted to VM templates.


    Unfortunately once converted to a template the metadata is no longer easily accessible.


    Does anyone know of a way to access a key value pair from a VM template's VMTX file using PowerCLI?

    Is there a way to manipulate key/value pairs in the VMTX file from PowerCLI?

    0 0

    What is the best practice for SDRS with Horizon? I can't find it anywhere.

    I know Horizon can do rebalance but SDRS is much more better, no?

    Should I create SDRS or not?

    0 0
  • 01/09/19--06:34: import vapp stuck
  • Hello,


    I have issues when importing an *.ovf file, on a NUC8i7HVK.

    I'm using this menu : "host > Create/Save a VM", then I follow wizard to deploy a new *.vf + *.vmdk machine.

    Download task goes fine, but "Import VApp" looks unresponsive (stuck at 100%) for a couple of hour, and then disapears.

    I updated license from "1 month trial" to "Free Registered License", but it doesn't helps.


    Last week, I was able to create up to 3 VMs, now I removed 2 of then but I'm unable to re-create them with same *.vmdk/*.ovf files.


    I'm new to ESXi, so I don't know much if there is logs to analyze this issue.


    Could you please give me some help ?





    P.S.: I've already asked the questions here but had not answers since weeks.

    Since this thread may be a duplicate, please feel free to merge, move or delete one of them.

    0 0

    Hello ,


    I have a large distributed vRA Envrionment with 3 Node vRA Appliance.


    As per VMware official document  (vRealize Automation Hardware Specifications and Capacity Maximums ), maximum vsphere endpoints can be only 20 for vRA 7.4.


    I have more than 80 vCenters to add as endpoint to my vRA Environment.


    Will my existing environment support this many endpoints or what will be my approach , do i need to have multiple vRA environments to handle such a massive environment.


    Please suggest.

    0 0



    I have an NFS4.1 export connected to all my esx hosts which I am using to back up VMs. Today it ran into its limit, so I deleted some files (directly from the esx host's command line by using the rm command). Despite freeing up space it kept displaying 100% use. I deleted everything I had on this volume, and it began to reclaim space very very slowly (now after several hours it lists 211 GB of 20TB free). I have tried refreshing, rescanning and unmounting to no effect. Unmounting fails with "Unable to complete Sysinfo operation" and my vmkernel log displays:


    2019-01-14T15:55:32.039Z cpu18:68091 opID=ca233240)WARNING: NFS41: NFS41FSRemoveFromFSList:3016: FS busy in unmount: 0 files still opened, refCount 4

    2019-01-14T15:55:32.039Z cpu18:68091 opID=ca233240)WARNING: NFS41: NFS41_VSIUnmountSet:486: NFS41_FSUnmount failed: Busy


    Is there a way how I can get this sorted out?




    0 0

    After upgrading to the version 6.7.0 of the ESXi we get this error.


    Can anyone help with some information on how to solve it? Or at least what may be causing it.


    The other versions worked fine, this happened during the process of upgrading from the version 5.5 to the last one available.

    0 0
  • 01/08/19--08:22: Desktop Disconnected
  • Horizon View Admin 5.3.0

    Horizon View Client 4.10.0 (Mac)


    I have a couple of pools using floating linked clones. Recently, a couple of my Mac users are unable to connect to the pools. When they try, there's a delay of maybe 3-5 seconds then an error:


    Desktop disconnected

    The connection to the remote computer ended.


    When I log into View Administrator and look at the events for the pool, I see:


    User MYDOMAIN\myname requested Pool pool_name

    User MYDOMAIN\myname requested Pool pool_name, allocated machine vm-3

    The agent running on machine VM-3 has accepted an allocated session for user MYDOMAIN\myname

    The pending session on machine VM-3 for user MYDOMAIN\myname has expired


    I don't understand why it's suddenly stopped working. Any suggestions on fixes, workarounds, and things to investigate?

    0 0

    Dear Team,


    P2V of a linux (RHEL5.6) system is failed with following error.


    FAILED: An error occurred during the conversion:

    '/usr/lib/vmware-converter/ did not finish producing output after 3600 seconds'



    Please help us how to resolve this issue.



    Krishna Dev

    0 0



    I have the latest version of VMWare Player (15.0.2). hcmon.sys keeps crashing the system with a BSOD. Windows says it is due to a "page fault in non paged area" from hcmon.sys. hcmon.sys version is


    This mostly happens on resume from sleep or hibernate, especially when my Thunderbolt connected devices are attached. It sometimes happens when the system is running.


    I am running Windows 10 Pro 1809. I have all of the latest drivers from Intel & Lenovo. The only permanently connected USB device is a USB keyboard. The Thunderbolt driver is from Intel/Lenovo.


    Is there any other resolution other than me uninstalling VMWare and going back to Hyper-V?


    I specifically started to use VMWare because of its better virtual USB support, but if this continues I will remove it.

    0 0

    For some reason NPM uses the symlnk path to the profile and not C:\Users. Works fine outside of the user's profile space.


    Does anyone know of a way around this to install in the user space? Issue is not present in AV 2.12.0.




    0 0
  • 10/17/18--16:54: windows 10 1809 slow
  • I downloaded the Windows 10 1809 and Server 2019 ISOs the day they became available so I can start working on my templates.


    I built the templates with EFI, paravirtual for the C drive and vmxnet3 adapter. I've been using this combo for other versions of windows 10/8/7and windows server 2008r2/2012r2/1016 without issue.


    So far Windows 2019 (with desktop experience) seems to be ok at least for a basic vm and guest customization. Haven't tried anything else yet.


    Windows 10 1809 on the other hand is very, very slow to reboot after the initial install or even just rebooting after making some changes post install. After installing the OS it took 10-15 minutes for the initial windows setup stuff (user, security settings, etc) to appear . I tried a VM set to BIOS and it seemed faster but was still quite slow. Server 2019 and other versions of windows 10 have no issue.


    The hosts are esxi 6.5 and 6.7.


    I haven't had a chance to try every combo of BIOS/EFI/vmxnet3/e1000e/paravirtual/lsi sas to see if one is the cause of the issue but was wondering if anyone else had noticed any issues or if it was just me?



    0 0
  • 10/27/11--11:29: PowerCLI and vMotion
  • I am migrating VMs to new hosts using the move-vm cmdlet.  The one-liner I am using (courtesy of is:


    Get-VMHost esx05 | Get-VM | Move-VM -Destination (Get-VMHost esx06)


    What I see right now is that the VMs move one at a time.  Is tehre a way to get it to move more than one VM at a time?





    0 0

    Which vRO object needs to be used to elevate the ESXi local user permissions to "admin" using vRO object?

    0 0

    when I start windows 10 on my mac mojave. i see grey screen where i can clicl by mouse, but I see nothing. I can see results only in screen in VMWare library.

    0 0

    I am running VMware 8.5 on Mac OSX 10.13.6. I have created a VM with RedHat Linux v7.3. I have installed VM Tools successfully manually


    I have several problems:

    cut and paste does not work

    the font is too small

    the cursor does not display

older | 1 | .... | 6749 | 6750 | (Page 6751) | 6752 | 6753 | .... | 6759 | newer