Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all 178097 articles
Browse latest View live

How to retrieve group membership from PowerCLI?

$
0
0

It seems like a pretty simple thing to look for, I just want an export saying Group A has these members, Group B has these members, etc.

I haven't been able to figure it out, but I am just starting out with PowerCLI.

 

I can get a list of all users or all groups easily enough with Get-VIAccount, but I don't know how to view the relationship between them.

 

(edit) Just to clarify, this is without using any AD or LDAP. The local account database for Vcenter.


Adobe Acrobat Pro - Disable Product Registration

$
0
0

Hello

 

I have installed Adobe Acrobat XI Pro into an AppStack and its working fine, however when it launches the user is prompted to register the product.

On our View 5 installation (using Persona Management) when we click "Skip" and "Do not ask again", the user is never prompted again.

 

On our new Horizon 7 solution using AppVolumes and UEM, the user is asked every logon, even though they have selected to Skip and "Do not ask again", which is really annoying.

 

Has anyone had this behaviour previously?

 

Regrads,

Sean

Problem with VMtools < 10.1.x cannot install

$
0
0

Hello i just finish migration from 5.5u3 to 6.5 u2 vcenter and esx version

Next step will be upgrade hardware to 6.5 and vmtools 10.3.5

When I try install vmtools 10..1.X or newer on Windows server 2012r2  the instalation rolling back

Can samone have similar issue in past?

 

 

I do same research on web and find same issues but all was related with Visual C++ and same Microsoft KB's

I have also install Microsoft Visual C++ 2017 version 14.12.25810

kb4480964 - installed

kb4486474 - installed

kb4487028 - installed

kb4483469 - installed

 

I try multiple version of vmtools and looks like I canot install nothing from 10.1.X

I open the case to VMware but  since 1 months they don't found any solution

 

VMware-Tools-10.0.9-3917699   working

VMware-Tools-10.0.0-3000743  working

 

VMware-tools-10.2.1-8267844-x86_64.exe not working

VMware-tools-10.3.5-10430147-x86_64.exe  not working

VMware-tools-10.3.2-9925305-x86_64.exe  not working

VMware-tools-10.2.5-8068406-x86_64.exe  not working

VMware-tools-10.1.10-6082533-x86_64 -  not working

VMware-tools-10.3.5-10430147-x86_64.exe  not working

Can we use different OEM servers (lets say HP and DELL) in same cluster

$
0
0

Hi Current vCenter version is 6.0

Please help me should we use different OEM servers in same cluster.

Like HP we are using since 4 years and Lenovo/Dell we are buying. We need to add HP with Lenovo or Dell in same cluster.

Pros:

Cons:

Linux Host/Windows 10 Pro 64 Guest - Host Freezes Constantly?

$
0
0

Hi,

 

Running VMWare Player 15.0.2 on a Kubuntu 18.04 LTS 64Bit Linux host with a Windows 10 Pro 64Bit guest.

The Linux host is constantly freezing when the Windows 10 guest is running?

How do I solve the above issue?

Thanks!

 

Jesse

Powershell script run to long after migration from Powercli 6.5.4 to Powercli 11

$
0
0

Hi Community

 

My script run to long after changing PowerCLI 6.5.4 to Powercli 11.

 

I applied some recommandations found in internet but I'm not really satisfied.

 

My system is Windows 2016, 4 CPU's , 8GB

 

I changed scheduled Task Priority from 7 to 4

I control the PowerCLIConfiguration:

Scope    ProxyPolicy     DefaultVIServerMode InvalidCertificateAction  DisplayDeprecationWarnings WebOperationTimeout

                                                                                                  Seconds           

-----    -----------     ------------------- ------------------------  -------------------------- -------------------

Session  NoProxy         Multiple            Ignore                    True                       300               

User     NoProxy         Multiple            Ignore                                                                 

AllUsers NoProxy

 

An exemple of running time:

Priority 7Priority 4
PowerCLI_6547mn7mn
Powercli_1136mn17mn

 

With PowerCLI_11 raise now in Windows an Event 10016

 

Can someone help to correct this issue?

Thanks for suggestions.

 

Regards

Denis

Disconnect CD Drive

$
0
0

Hi,

I'm trying to build a script which disconnect all mounted CD Drives in a specific Cluster.

When running this script, I get errors.

 

Script:

# Connection to vCenter
$cred = Get-VICredentialStoreItem -File "D:\Scripts\Credentials\credentials.xml"
Connect-VIServer -server $cred.host -User $cred.User -Password $cred.Password

# Get VMs of specific Cluster and search for VMs with CDDrive mounted
$vms = Get-Cluster -name STRETCHED-MS-ONLY | Get-VM | Get-CDDrive | Where {$_.IsoPath -ne $null} | Select Parent

if($vms -ne $null) {

# Loop through VMs and unmount CDDrive
foreach ($vm in $vms) {
    Get-VM -name $vm | Get-CDDrive | Set-CDDrive -Connected:$false -NoMedia -Confirm:$false
    Write "Disconnecting CD Drive from VM $vm"
}
}
else {
Write "No CD-Drive mounted on VMs"
}

 

Error:

Disconnecting CD Drive from VM @{Parent=vm10152}
Get-VM : 21.02.2019 11:39:49 Get-VM  VM with name '@{Parent=as07813}' was not found using the specified filter(s).
At D:\Scripts\VM\DetachCdrom.ps1:12 char:5
+     Get-VM -name $vm | Get-CDDrive | Set-CDDrive -Connected:$false -N ...
+     ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (:) [Get-VM], VimException
    + FullyQualifiedErrorId : Core_OutputHelper_WriteNotFoundError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM

 

So the Problem seems to be the VM Name. But why is it set into @{Parent=vmname}??

 

 

Thank's

 

best regards

Andi

hosts are not responding state/frozen state after upgrade from 5.5U3 to 6.5U2

$
0
0

We recently upgraded esxi 5.5 U3 to esx 6.5 U2 with cisco customized image  on C240-M4S Server. We first upgrade cisco firmware from 2.0(6) to 4.0(1c) and then esxi host upgrade from 5.5 u3 to 6.5 U2.(Please find the attached text to know Driver and FW details before and after upgrade)

 

After upgrade, hosts are going not responding state/frozen state where in esxi hosts are reachable via PING over network, but unable to re-connect host back to vCenter.

 

During host not responding state ,we can login into putty with multiple session ,however we can’t see/run any commands (like, if df- h, to view logs under cat /var/log ) .When we ran df-h, hosts won’t display anything, gets struck until we close putty session and then can re-connect .

During host not responding state, vms continue to be running, but we can’t migrate those vms into another host and also we are unable to manage those vms via vCloud panel .

 

We have to reboot host to bring back host and then will connect to vcenter .

 

We working with Vmware and Cisco since from 3 weeks ,no resolution yet .

 

We can see lot of Valid sense data: 0x5 0x24 0x0 logs in vmkernel.logs and VMware suspect something with the LSI MegaRAID (MRAID12G) diver. So Vmware asked to contact hardware vendor to check hardware/firmware issues and LSI issues as well

 

2019-02-18T19:51:27.802Z cpu20:66473)ScsiDeviceIO: 3001: Cmd(0x439d48ebd740) 0x1a, CmdSN 0xea46b from world 0 to dev "naa.678da6e715bb0c801e8e3fab80a35506" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x24 0x0
This command failed  4234 times on "naa.678da6e715bb0c801e8e3fab80a35506"

Display Name: Local Cisco Disk (naa.678da6e715bb0c801e8e3fab80a35506)
Vendor: Cisco | Model: UCSC-MRAID12G | Is Local: true | Is SSD: false

 

Cisco did not see any issues with Server /hardware after analyzing Tech support logs and also we performed Cisco diagnostics test on few servers,all components tests/ checks looks good .Only one recommendation given by cisco is to change Power Management policy from balance to High Performance under esxi host->configure->Hardware->Power Mgmt->Active policy ->High Performance

 

Can someone help me to find cause/fix .

 

  Thanks in advance

all components tests/ checks looks good 


Apple VPP used for version control

$
0
0

Anyone able to use VPP via Airwatch to withhold new versions of app published in apple appstore from coming to your appstore in Airwatch?

Automate CSV output to performance chart view powercli

$
0
0

Team,

 

I was wondering if i can automate below powercli script CSV output to a graphical chart(X,Y coordinates)  to understand capacity management of devices. This script will produce output in hourly basis & same need to convert into graphical chart. Urgent response is highly appreciable. thanks in advance.

 

 

connect-viserver vCenter_Name

$vm= Get-Content D:\Script\Server.txt

Get-VM $vm | Select Name, `

@{N="Mem Usage( % )" ; E={ $_ | get-stat -Stat mem.usage.average -MaxSamples 1 -Start (Get-Date).AddDays(-1) -IntervalMins 60}} , `

@{N="CPU Usage( % )" ;E={ $_ | get-stat -Stat cpu.usage.average -MaxSamples 1 -Start (Get-Date).AddDays(-1) -IntervalMins 60}} |

Export-Csv -Path d:Report.csv -NoTypeInformation

Extremely high datastore latency spikes from one VM

$
0
0

Veeam ONE Monitor keeps sending me alerts about VM total disk latency at random intervals.This has been happening for a while now, and only with one specific VM.

 

If I check datastore latency for this VM in vSphere, it shows read latency spikes up to 250 trillion ms. None of the other VM's have this problem, even the ones on the same datastore.

Some of the spikes in Datastore metrics correlate with spikes in Virtual disk latency metric, eg. the 250T ms datastore read latency spikes correlates with a 45ms Virtual disk read latency spike. At the same time CPU usage is low, disk write was around 80000 KBps.

 

exported.jpg

 

VM is running CentOS7 64 bit with VMWare tools 10282, SCSI controller is VMware Paravirtual, datastore type is VMFS 6

Server is running HPE Custom ESXi image 6.7

 

There is a discrepancy with this VM that may or may not be related to this. Under "Summary -> Guest OS" it says CentOS 6 (64-bit), but under "Edit Settings -> VM Options -> General Options -> Guest OS Version" it correctly shows CentOS 7 (64-bit). All the other CentOS7 VMs correctly show the version under summary.

 

Why is this false metric showing up and how can I get to the root of this issue?

"Host power management technology is not set to OS Controlled" on Cisco UCS B200-M3

$
0
0

I have been troubleshooting some performance issues (CPU latency) on one particular host which seems to have plenty of resource in theory.  The most likely candidate seems to be ...

 

https://kb.vmware.com/s/article/1018206

 

Especially given that in vROPs for this host (and others alarmingly) show a warning stating "Host power management technology is not set to OS Controlled" attached is a image of the BIOS power management settings.  Oddly I dont appear to be able to change them in the BIOS, not sure if its done at chassis level.  I wondered if you helpful chaps would kindly cast your eye over them and let me know if all looks correct.  Not sure if C1 Enhanced should be disabled, or C6 should be Enabled although I cant changed them regardless here.

Shared folders not appearing on guest VM

$
0
0

I just created a new VM, configured two shared folders, but I cannot find them on the guest.

I'm not really expert on VMs so it may be an error of configuration or something missing...

I'm using VMware Workstation 15 Player and on both host and guest is running Win 10 PRO.

Sharing folder is configured as "always enabled" and "Map as network drive in Windows guest" is flagged.

 

Any suggestion?

Capture a screen stream from a virtual machine

$
0
0

Hi everyone,

I am looking for a way to get access to the VM screen from the API level, I am trying to find kindo of VNC (but not VNC). I'm looking for  something offered by the vmware API. Is there an API that gives me access to the frame buffer, or function which will be sending current VM frames to me? I found the "VIX API" and the "VixVM_CaptureScreenImage" function, which returns a frame in PNG format, but this is not exactly what I need.

 

Thanks in advance

Horizon View and PowerCLI

$
0
0

Hello everyone.

 

I'm a relatively new coder to the VM PowerCli enviornment.

And I am trying to code for automation the creation of a desktop pool and incorporate it into a Global Desktop Entitlement.

 

The pool, will be created from a virtual machine hosted in vSphere, and has GRID enabled.

 

Now, I do know the key to enable renderer3D, and what the value should be.

But, my problem comes along when trying to add this pool to a Global Entitlement.

I'm getting error thrown out that there is a mismatch with the with the 3D rendering setting between the desktop pool and the global entitlement.

 

Up until now, I have been using the lmvutil command, which is very clunky to use and very limited.

I'm trying to find a way to do this through PowerCLI without having to invoke lmvutil.

 

I know that I can get the Global Entitlement ID with the Get-HVPool cmdlet, and what it returns is not practical to use.

So I was hoping there was something similar for global entitlements, but I'm not seeing anything.

 

Hoping someone can point me in the right direction.

 

Thanks.

 

Update:

OK, so I was testing a PowerShell script that creates a manual desktop pool from a virtual machine on our vCenter and creates a Global Desktop Entitlement, and assigns a user to that as well as the newly created desktop pool.

The virtual machine does have the NVIDIA GRID GPU enabled.

When I run my script, it throws the following error:

 

Exception calling "Desktop_Create" with "2" argument(s): "ExceptionType : VMware.Hv.InvalidArgument

ErrorMessage : Machine Machine/NzA2ZjhkYWQtYWU2NC00Yjk4LTkxOGEtZjA1ODg1NGY0NTNj/VW5hc3NpZ25lZFZpcnR1YWxNYWNoaW5l/M2VkYzk3NTctZDcwNS00MWViLWJhODEtN2FlNT

E3ZGYyMDRi/L0RDMSAoQ2xpZnRvbiwgTkopL3ZtL1dvcmtzdGF0aW9ucy9Vc2VyL0lTL05ldE9wcy9NT05HRUxMUDAxREMx/dm0tMjU1 requires GRID, but the desktop is not enabledto support it

ParameterName : manualDesktopSpec.machines"

At C:\Users\*********\Documents\WindowsPowerShell\Modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:3403 char:5

+     $desktop_helper.Desktop_create($services,$desktopSpecObj)

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

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

    + FullyQualifiedErrorId : VimException

 

Now, I see that it is coming from the the New-HVPool cmdlet from the module.

And the reason, because it is not enabled on the desktop, but it is.

So I am not sure where it is looking to determine if GRID is enabled on the desktop.

 

Through the GUI, on the Horizon Connection server everything works fine.

 

Thanks again.


Why does VMRC sometimes open as a very small window

$
0
0

Sometimes when I open a new console window VMRC starts a a very small window, much smaller than the resolution of the VM. It also doesn't have any scroll bars. Why does this happen? Is there a way to prevent this behavior.

Re: There was an issue with validating your login credentials against our backend database

$
0
0

I am also having the same problem logging on today, can my account be added too. Thanks

Problema no valor do datastore

$
0
0

Bom dia, Estou com esse problema na visualização do meu datastore, o valor provisionado + free ultrapassa o valor total do datastore.Captura de Tela 2019-02-22 às 09.36.36.png

Background Autoprotect Snapshots

$
0
0

I have two Linux VMs.  One is 64-bit RedHat 6 created under VMWare Fusion 7 or 8 about 2 years ago.  The other is 64-bit RedHat 7 created under VMWare Fusion 10 about 1 week ago.  Both are configured to create autoprotect snapshots once an hour.  When the older VM snapshots run, they run in the background:  the VM continues to be accessible during the snapshot, and progress is shown by a spinning wheel in the host machine window's menu bar.  When the new VM snapshots run they run in the foreground:  the VM pauses "partially" and becomes inaccessible and progress is shown by the overlaid progress bar similar to when the VM is being suspended.  There are two problems with this:  1. the VM is inaccessible during the snapshot process; 2. when the snapshot is finished, the client OS watchdog reports an error that the CPU paused inexplicably for n seconds.  How can I configure the newer VM to also do its snapshots in the background?

(I quoted "partially" above because the client OS seems to be aware that something is going on, differently from when the machine is being suspended, but is nevertheless inaccessible to the user.)

vRealize Orchestrator- Run Program in Guest fails with interactive session

$
0
0

I tried to use a default workflow to automate my software installation name: Run Program in Guest. With simple software not require interactive logon, it works perfectly. However, i have to automate a software and it requires to reboot server and follow by someone to login to complete the installation. I noticed the workflow has 1 options to select Interactive Logon but any time when i select this option, the workflow will fail with the error:

The guest operations agent could not be contacted. (Workflow:Run program in guest / Scriptable task (item1)#15

I am stuck here for a few weeks. Anyone has experience on this, please help me. Thanks so much in advance and apology for my poor English

Viewing all 178097 articles
Browse latest View live


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