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

esxi output format file

$
0
0

Guys

 

anyone knows how to create a powershell in order to get the esxi host list on each vcenter and add some words to the output file like you can see the format below???

 

###    DoNotRemoveOrModifyThisLine

serverName    techspecName

a23veiesx01    techspec_generic_Remediation.csv

a23veiesx02    techspec_generic_Remediation.cs

 

thx inn advance!!!!


Get-Stat returns incorrect cpu.usagemhz.average values

$
0
0

Hi Everyone!

 

I have a script which is used to collect usage and capacity stats from vCenters and calculate N+1 capacity, availability and consolidation ratios etc.

 

This works perfectly across all except 2 of the VCs which it collects from.  The issue seems to be with the data returned by the Get-Stat cmdlet, specifically for the cpu.usagemhz.average stat.  mem.consumed.average appears to be accurate.

 

The VCs which are at fault are running VCSA 6.0 U3b (build 5318203), however, interestingly, 2 of the VCs which report correctly are also running this exact build as well.  The only differences are that:

  1. The incorrect ones were deployed on this build, whereas the working ones were deployed at U1 and later upgraded
  2. The incorrect ones have statistics level 3 configured for the top 3 options (5min/1day, 30mins/1week, 2hours/1month) and level one for the last (1day/1year) whereas the working ones have level 1 configured on all options.

 

It seems as though the values returned are about double what is shown on the performance charts.

 

I have tried running this from various versions of Powershell / PowerCLI and get the same result so I suspect the data returned by the vCenter is simply wrong.

 

This is a snippet of the script which shows the code I am using to collect the stats and then take the Max and Avg from the values:

 

$Clusters = @( Get-Cluster | Where {$_.Name -like "$ClusterFilter"} | Sort Name )

$ResPools = Get-View -ViewType ResourcePool

 

 

$CpuStats1d = Get-Stat -Entity $Clusters -Stat cpu.usagemhz.average -Start $StartTime.AddDays(-1)  -Finish $StartTime | Select Entity, MetricId, Value, Unit, Timestamp, Description, IntervalSecs

$MemStats1d = Get-Stat -Entity $Clusters -Stat mem.consumed.average -Start $StartTime.AddDays(-1)  -Finish $StartTime | Select Entity, MetricId, Value, Unit, Timestamp, Description, IntervalSecs

$CpuStats1w = Get-Stat -Entity $Clusters -Stat cpu.usagemhz.average -Start $StartTime.AddDays(-7)  -Finish $StartTime | Select Entity, MetricId, Value, Unit, Timestamp, Description, IntervalSecs

$MemStats1w = Get-Stat -Entity $Clusters -Stat mem.consumed.average -Start $StartTime.AddDays(-7)  -Finish $StartTime | Select Entity, MetricId, Value, Unit, Timestamp, Description, IntervalSecs

$CpuStats1m = Get-Stat -Entity $Clusters -Stat cpu.usagemhz.average -Start $StartTime.AddDays(-30) -Finish $StartTime | Select Entity, MetricId, Value, Unit, Timestamp, Description, IntervalSecs

$MemStats1m = Get-Stat -Entity $Clusters -Stat mem.consumed.average -Start $StartTime.AddDays(-30) -Finish $StartTime | Select Entity, MetricId, Value, Unit, Timestamp, Description, IntervalSecs

 

 

New-Variable -Name ClusterAudit -Value @() -Scope Script -Force

           

foreach ($Cluster in $Clusters) {

 

 

    $ResPool = $ResPools | Where {$_.MoRef -eq $Cluster.ExtensionData.ResourcePool}

 

 

    $ClstCpuStats1d = (($CpuStats1d | Where {$_.Entity.Name -eq $Cluster.Name}).Value | Measure-Object -Average -Maximum )

    $ClstMemStats1d = (($MemStats1d | Where {$_.Entity.Name -eq $Cluster.Name}).Value | Measure-Object -Average -Maximum )

    $ClstCpuStats1w = (($CpuStats1w | Where {$_.Entity.Name -eq $Cluster.Name}).Value | Measure-Object -Average -Maximum )

    $ClstMemStats1w = (($MemStats1w | Where {$_.Entity.Name -eq $Cluster.Name}).Value | Measure-Object -Average -Maximum )

    $ClstCpuStats1m = (($CpuStats1m | Where {$_.Entity.Name -eq $Cluster.Name}).Value | Measure-Object -Average -Maximum )

    $ClstMemStats1m = (($MemStats1m | Where {$_.Entity.Name -eq $Cluster.Name}).Value | Measure-Object -Average -Maximum )

 

 

    $ClusterDetails = New-Object -TypeName PSObject

 

 

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name Cluster                     -Value  $Cluster.Name

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name NumberOfHosts               -Value  $Cluster.ExtensionData.Summary.NumHosts

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name EffeciveNumberOfHosts       -Value  $Cluster.ExtensionData.Summary.NumEffectiveHosts

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name TotalCpuCapacityGHz         -Value ($Cluster.ExtensionData.Summary.TotalCpu / 1000)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name EffectiveCpuCapacityGHz     -Value ($Cluster.ExtensionData.Summary.EffectiveCpu / 1000)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name TotalMemoryCapacityGB       -Value ($Cluster.ExtensionData.Summary.TotalMemory / 1GB)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name EffectiveMemoryCapacityGB   -Value ($Cluster.ExtensionData.Summary.EffectiveMemory / 1KB)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name CpuReservationCapacityGHz   -Value ($ResPool.Runtime.Cpu.MaxUsage / 1000)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name CpuReservationUsedGHz       -Value ($ResPool.Runtime.Cpu.ReservationUsed / 1000)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name CpuResvPwrdOffVmsGHz        -Value ($Cluster.ExtensionData.Summary.UsageSummary.PoweredOffCpuReservationMhz / 1000)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name MemoryReservationCapacityGB -Value ($ResPool.Runtime.Memory.MaxUsage / 1GB)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name MemoryReservationUsedGB     -Value ($ResPool.Runtime.Memory.ReservationUsed / 1GB)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name MemoryResvPwrdOffVmsGB      -Value ($Cluster.ExtensionData.Summary.UsageSummary.PoweredOffMemReservationMB / 1GB)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name CpuUsageAvg1dGHz            -Value ($ClstCpuStats1d.Average / 1000)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name CpuUsageMax1dGHz            -Value ($ClstCpuStats1d.Maximum / 1000)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name CpuUsageAvg1wGHz            -Value ($ClstCpuStats1w.Average / 1000)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name CpuUsageMax1wGHz            -Value ($ClstCpuStats1w.Maximum / 1000)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name CpuUsageAvg1mGHz            -Value ($ClstCpuStats1m.Average / 1000)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name CpuUsageMax1mGHz            -Value ($ClstCpuStats1m.Maximum / 1000)

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name MemUsageAvg1dGB             -Value ($ClstMemStats1d.Average / 1MB )

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name MemUsageMax1dGB             -Value ($ClstMemStats1d.Maximum / 1MB )

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name MemUsageAvg1wGB             -Value ($ClstMemStats1w.Average / 1MB )

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name MemUsageMax1wGB             -Value ($ClstMemStats1w.Maximum / 1MB )

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name MemUsageAvg1mGB             -Value ($ClstMemStats1m.Average / 1MB )

    $ClusterDetails | Add-Member -MemberType NoteProperty -Name MemUsageMax1mGB             -Value ($ClstMemStats1m.Maximum / 1MB )

 

 

    $Script:ClusterAudit += $ClusterDetails

 

 

}

 

Usually, the only retained info is the Avg and Max value from the data, however, the below is a sample of what is returned:

 

Entity        MetricId                          Value    Unit   Timestamp                Description                                                 IntervalSecs

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

Cluster1    cpu.usagemhz.average 493505 MHz  08/04/2020 13:30:00 CPU usage in megahertz during the interval          300

Cluster1   cpu.usagemhz.average 490822 MHz  08/04/2020 13:25:00 CPU usage in megahertz during the interval          300

Cluster1    cpu.usagemhz.average 503932 MHz  08/04/2020 13:20:00 CPU usage in megahertz during the interval          300

Cluster1   cpu.usagemhz.average 502446 MHz  08/04/2020 13:15:00 CPU usage in megahertz during the interval          300

Cluster1   cpu.usagemhz.average 500512 MHz  08/04/2020 13:10:00 CPU usage in megahertz during the interval          300

Cluster1   cpu.usagemhz.average 517569 MHz  08/04/2020 13:05:00 CPU usage in megahertz during the interval          300

Cluster1   cpu.usagemhz.average 479613 MHz  08/04/2020 13:00:00 CPU usage in megahertz during the interval          300

etc.

 

The above is just the first first few results.  In total 288 results are returned which accounts for the 5 min interval for 24 hours as expected.

 

The problem is, these do not match the performance chart stats.  See below image for the same cluster at the same time period, 13:20 reports 503,932 MHz from Get-Stat and performance charts shows it at 253,483 MHz, which I would say is accurate.

 

Performance charts also shows the Max for the last day to be 277,762 MHz whereas Get-Stat Max is 552,252 MHz.

 

I have tried to attach an image below but it looks very small so I'm not sure if it will be helpful.

ClustStats.png

 

Has anybody else come across a similar issue to this before or have any suggestions as to what might be the issue?

 

I'm not likely to be available for a few days but I will try to provide any additional info you might need as soon as possible.

 

Thanks in advance for any help or advice.

 

Rob.

 

Message was edited by: Rob Hayward Edited due to code snippet formatting changing on posting.

VMware horizon 7.11 Compatability with F5

$
0
0

Hi All,

 

We have a environment 7.6 horizon and would like to upgrade to 7.11 version, currently we have a F5 setup for Internal and external connectivity, no security or UAG configured.

 

Current version.

1. Horizon - 7.6

2. BIG-IP - 14.1.2.1 Build 0.0.4

 

When I was running through comparability check, I didn't find 7.11 compatible BIG-IP any versions, please find below URL it says the support is till 7.10

We are on the way to setup a test F5 to test our horizon QA environment.

 

however, would like to check if anyone is using this kind of setup and has performed 7.11 upgrade without any issues.

 

Thanks in Advance.

#stayhome#staysafe.

 

Regards,

Naveen. S

Set different default value of optional dns based on network type using OVF template

$
0
0

I am using ovf template to create an ova , while deploying ova user first select the network type (either ipv4/ipv6) and then fills the values of IP, netmask and other details. I want to set the default value of optional dns as 0.0.0.0 for ipv4 case and similarly ::0 for v6 case but can't find how to write this logic in ovf template.

I got a problem when I install Windows Server 8 Beta

$
0
0

It says"Your computer need to restart.

              Please jold down the power butten.

              Error Code:0x0000001E

              Parameters:

               0xFFFFFFFF80000003

               0xFFFFF8017A810400

                0x0000000000000000"

Then the CPU down

I have tried for a long time,but it can't boot...

Перенос ВМ с хоста ESXi 5.5 на хост ESXi 5.1 . Можно ли?

$
0
0

Добрый день.

 

Имеется несколько хостов с версией ESXi 5.5  под управлением vCentr 5.5 . По ряду причин (не обсуждается) надо произвести их downgrade до версии ESXi5.1

 

Для этого выделен новый хост с установленным гипервизором 5.1

 

Возможно ли выполнить перенос ВМ хостов с более высокой версией гипервизора на хосты с более низкой версией?

(см. заголовок темы)??

 

Спасибо.

VMware vSphere and VMware Infrastructure SDK Redistribution Information

Запуск виртулаки MacOS на ESX

$
0
0

Коллеги, возникала необходимость запуска гостевой ОС macOS на ESX

вроде выкачал хакинтош 10.4 , он на vmworcstatison запускается , а вот ESX что 6.0 что 6.7 ругается:

The guest operating system 'darwin14_64Guest' is not supported ,как пофиксить ?


VMW_PVRDMA Port State Down

$
0
0

I have a problem while trying to install RDMA on my 2 VM on 2 Host ESXi (VM is different Host), I had created vDS, assign uplink, assign VMKernel, allow firewall RDMA service, create Portgroup with PVRDMA for VM.

My problem happened when I installed the driver for VM.

"ibstat -v" command show:

CA 'vmw_pvrdma0'

CA type: VMW_PVRDMA-1.0.1.0-k

Number of ports: 1

Firmware version: 2.0.0

 

 

Hardware version: 1

Node GUID: 0x0050560000846699

System image GUID: 0x0000000000000000

Port 1:

State: Down

Physical state: LinkUp

Rate: 2.5

Base lid: 0

LMC: 0

SM lid: 0

Capability mask: 0x04010000

Port GUID: 0x025056fffe846699

Link layer: Ethernet

 

"sminfo" command show: ibwarn: [9879] mad_rpc_open_port: client_register for mgmt 1 failed sminfo: iberror: failed: Failed to open '(null)' port '0'

How can i change state to Active ?

and both 2 Host are running EXSi 6.7U3 Dell Customize's ISO, vCenter 6.7, VM running Centos 7 build 1810

Cannot display vcenter client login interface and change https://localhost/websso/SAML2/SSOSSL

VMware Workstation Pro network adapter settings

$
0
0

hello there, i am using VM workstation 15.x

i create a virtual adapter VMnet1 - host only to communicate with host computer. it looks 100mbps speed and it caused a bottleneck on vms communicating with host

does it possible to create a virtual nic with 1gbps or more on workstation pro? i can not find any setting on virtual network editor about it

rev 15

Somebody deleted a vmdk. How to I tell who?

$
0
0

Hi all,

fast little info that is making me bang my head all day. I need to investigate who deleted a vmdk (persistent volume).

I am accused of having deleted a vmdk (persistent volume) created specifically for kubernetes with a vmware user to whom I have granted write permissions on that volume.Obviously we didn't do anything.

I need to find who deleted vmdk

On VM Task side I see this:

 

Reconfigure virtual machine

Status:

File [] /vmfs/volumes/xxxx/xx/xxxx.vmdk was not found

Initiator:

user to whom I granted write permission

Target:

name of the vm

Server:

xxxx

Related events:

date, time

Task: Reconfigure virtual machine

 

 

But he does not say who has canceled it, he only says that he does not find it

I searched on vpxa and hostd but I can't find anything, I only have the last 4 days but the event dates back to 15 days ago. Ideas?

Certificate error on ESXi Host page but not vSphere

$
0
0

I was able to get rid of the "This site is not secure" error when opening the vSphere web page by installing the certificates from the "Download trusted root CA certificates" link on the main VMware page. Is there a way to do the same for the two ESXi hosts web pages?

How do you disable system info screen overlay in top left corner?

$
0
0

This is really annoying, after the latest  update to VMWare Workstation build ver. 15.5.2 build-15785246 when I run an OS in the Workstation the screen shows overlay in top left corner with following stats:

 

EVGA Precision XOC v6.0.9

 

GPU clock: ###MHz

Memory clock: ###MHz

GPU temperature: ##C

Memory usage: ###MB

Framerate: ##FPS

 

At first I tough that maybe I have accidentally installed something in Windows 10 OS running in the workstation BUT even if I go to the earliest snapshot from like 6 months ago the overlay is still there also when I take screen snapshot in the virtual OS the overlay doesn't show, neither does it show when I take a screen snapshot with VMWare "Capture Screen" command, it only shows in a screen shot if I take a screen snapshot from the Host OS under which VMWare is running, see pic. below what I mean. So this overlay must be somehow enabled in WMWare, super annoying. Anyone knows how to disable this?

 

ScreenCap.jpg


ClonePrep customization script issue (7.11)

$
0
0

Hi,

 

I have a problem with the execution of the customization script of ClonePrep with Windows 7 SP1 full update.

With Windows 10 no problem!

 

I activated the full log mode and here is what I see in the file:

2020-04-08T18:10:27.728+02:00 DEBUG (0740-075C) <1884> [vmware-svi-ga] svmga::core::windows::Guest::SecureScript(): Script Name: Post-Customization, Script Path: "C:\Windows\Temp\Start.bat"

2020-04-08T18:10:27.728+02:00 DEBUG (0740-075C) <1884> [vmware-svi-ga] svmga::core::windows::Guest::SecureScript(): Failed Creating Post-Customization, Hash File: 0x80070003

...

2020-04-08T18:10:58.834+02:00 DEBUG (0740-075C) <1884> [vmware-svi-ga] svmga::core::windows::Guest::RunPostCustomizationScript(): Failed To Execute Post-Customization Script. It Was Not Secured

I tried to place the script in different places:

C: \ Windows \ Temp

C: \ ProgramData

And I always get the same error.

 

In the documentation it says:

Important:

Put the ClonePrep customization scripts in a secure folder to prevent unauthorized access.

What does secure folder mean?

What is the error I get indicating that the script is not secure?

 

And why don't I have this problem with Windows 10?

 

Thank you in advance for your help !

How can add configuration parameter for more than 100 VMS easier

$
0
0

Hi

 

I need add some parameters in configuration parameters of each vm  "for about 100 vm"

 

such as follow parametes ;

 

tools.setInfo.sizeLimit     false

isolation.tools.unity.disable     false

isolation.tools.ghi.protocolhandler.info.disable    false

 

It is not easy to add on each vm and need more time now want to know can I add all of these to custom vm via powershell command or ......?

 

BR

 

 

Visual Studio 2019 App Stack

$
0
0

I'm trying to App Stack VS 2019 after running a working 2017 VS App Stack for a while now. However if i try to either update my existing stack to include 2019, or try a fresh build of 2019 on a stack, i get the same error every time. In the installation log:

 

        MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.MinShell.Msi.Resources,version=16.0.28329.73,language=en-US\Microsoft.VisualStudio.MinShell.Msi.Resources.msi, Properties:  REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1  MSIFASTINSTALL="7"  VSEXTUI="1"

        Return code: 110

        Return code details: The system cannot open the device or file specified.

 

And in the log for the MSI mentioned above:

 

MSI (s) (5C:88) [16:50:52:171]: Machine policy value 'DisableUserInstalls' is 0

MSI (s) (5C:88) [16:50:52:311]: Note: 1: 2203 2: C:\WINDOWS\Installer\inprogressinstallinfo.ipi 3: -2147287038

MSI (s) (5C:88) [16:50:52:311]: SRSetRestorePoint skipped for this transaction.

MSI (s) (5C:88) [16:50:52:343]: Error: Wrong Long Path Name: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.MinShell.Msi.Resources,version=16.0.28329.73,language=en-US\Microsoft.VisualStudio.MinShell.Msi.Resources.msi

MSI (s) (5C:88) [16:50:52:343]: Error: Wrong Path Name: \\?\C:\SnapVolumesTemp\MountPoints\{4e05e36a-0000-0000-0000-100000000000}\SVROOT\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.MinShell.Msi.Resources,version=16.0.28329.73,language=en-US\Microsoft.VisualStudio.MinShell.Msi.Resources.msi

MSI (s) (5C:88) [16:50:52:343]: Error: Wrong Long Path Name: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.MinShell.Msi.Resources,version=16.0.28329.73,language=en-US\Microsoft.VisualStudio.MinShell.Msi.Resources.msi

MSI (s) (5C:88) [16:50:52:343]: Error: Wrong Path Name: \\?\C:\SnapVolumesTemp\MountPoints\{4e05e36a-0000-0000-0000-100000000000}\SVROOT\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.MinShell.Msi.Resources,version=16.0.28329.73,language=en-US\Microsoft.VisualStudio.MinShell.Msi.Resources.msi

MSI (s) (5C:88) [16:50:52:343]: Error: This file path is updated, hence failing to create: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.MinShell.Msi.Resources,version=16.0.28329.73,language=en-US\Microsoft.VisualStudio.MinShell.Msi.Resources.msi

MSI (s) (5C:88) [16:50:52:343]: Note: 1: 1309 2: 110 3: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualStudio.MinShell.Msi.Resources,version=16.0.28329.73,language=en-US\Microsoft.VisualStudio.MinShell.Msi.Resources.msi

MSI (s) (5C:88) [16:50:52:343]: MainEngineThread is returning 110

 

Has anyone managed to create a 2019 VS app stack, or have any recommendations on how to resolve the above issue?

 

Thanks!

Database Use

$
0
0
What is the most popular Database for VCenter?

How to get a free license for ESXi 7.0?

$
0
0

How to get a free license for ESXi 7.0?

Viewing all 207710 articles
Browse latest View live


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