Quantcast
Channel: VMware Communities: Message List
Viewing all 231052 articles
Browse latest View live

Re: Host dropping vmsyslog logs

$
0
0

This issue has been documented in 6.5U3 release notes under resolved issues section:

 

VMware ESXi 6.5 Update 3 Release Notes

 

Limitations in the network message buffer (msgBuffer) size might cause loss of log messages

The size of the network msgBuffer is 1 MB but the main msgBuffer supports up to 25 000 lines of any length, which is at least 3 MB. If the network is slow, the write thread to the network msgBuffer is faster than the reader thread. This leads to loss of log messages with an alert: lost XXXX log messages.

This issue is resolved in this release. The size of msgBuffer is increased to 3 MB.

Please mark my comment as the Correct Answer if this solution resolved your problem


Migrating a lot of vm's and need a quick powercli script to keep track of vm's progress

$
0
0

Excuse the easy question but I could use a hand putting this together.

 

This command gets me the percent complete of the vm migrations

 

This command gets me the names of the vm's being migrated.

 

  • Sorry can't show output of actual server names

 

How can I combine the commands to get the vm and its percent complete?

No Datastore found after power outage and new ESXi installation

$
0
0

Hello,

 

We had a big power outage and were not able to shutdown the server in time. If that was not enough, the USB key used to boot ESXi seems to have died since the last boot and is unreadable so I had to rebuild a new ESXi 6.0 on a new key.

 

Dell PowerEdge T430

ESXi 6.0.0 Update 3 (Build 13635687) (Latest from Dell.)

Small place, no vCenter, no other servers connecting to those datastores.

Both local datastores on a raid and icsci datastores for backups have the same problem.

 

The devices are found, (normal, degraded) I can see the vmfs partitions on them but no datastore or vm are found. I also get an unhandled exception in the ESXi web client when trying to browse datastore, adding a new vm does not open any new window or anything.

 

I tried a couple console commands (voma, esxcli storage, vmfkstools, etc...) found here or in the vmware support website when searching for datastore problems but none worked so far. (Sorry, I've been at this for hours and I'm a bit tired and don't remember all I tried.)

 

Rebuilding all the vms would not be a problem if at least I could access the datastores for the bare metal backups of AD and Exchange.

 

I'm going to sleep now but I'll be able to provide logs or more info in a couple hours.

 

Thank you!

Re:Export to CSV a list of VMs with specific custom attribute values

$
0
0

Hi lucD,

I'm not sure if that error is for all the VMs or just the VMs with that specific value. As you already know, the error isnt that informative and is not giving us enough information to determine what VMs have the issue. So i dont know what the problematic VMs are... how this makes sense?

PowerShell 5.1

PowerCLI 6.5 Release 1

Funshion 11.5 &Mac os Catalina

$
0
0

When I started to use the Fushion

I've found that my mouse can't move

Then, I installed the system through the keyboard

Next,I installed the driver through the keyboard again

After the driver is installed,The mouse can move but not click,so I go here for help!

Re: Creating a new TTY in ESXi 4.1

$
0
0

Hi,

 

When I use this method when installing ESXi 6.5, I get an error on the screen before the reboot, "Warning: network command not specified. Defaulting to DHCP". Because we're substituting the shell on the first vty, you can't use it to look at the logs or troubleshoot the process. Any ideas what this message means or how to fix it?

 

Thanks!

Re: vCenter Permissions: AD User Groups fail but individual users work

$
0
0

During my research I also ran across forum postings saying that using LDAP would work. It is just frustrating because we have 5 other VCSAs that do no have this problem. This particular VCSA resides in the same subnet as the DC that it would be communicating with, so there are no firewalls causing issues.

 

If I cannot find a solution by Tuesday, then I will try the LDAP solution. Not ideal, as it would be configured differently than the rest of the environment.

Re: vCenter Permissions: AD User Groups fail but individual users work

$
0
0

just try one more time disjoin vcsa from domain and re added ( reboot required) , check domain and vcsa time synchronization ,


Re:Export to CSV a list of VMs with specific custom attribute values

$
0
0

The following should show the VMs that produce the error.

 

$vCenters=Import-Csv \\REMOTESERVER\vCenters.csv

 


$i=0

ForEach($vCenterin$vCenters){

    $i+=1

    Write-Progress-Activity "Processing VCenter $($vCenter.name)"  -PercentComplete ($i/$vCenters.count*100)-Id 0

    Connect-VIServer-Server $vCenter.name

}


$excludedValues="Windows 7","Windows 10"

Get-VM|ForEach-Object-Process {

    try{

        $attr1=Get-Annotation-Entity $_-CustomAttribute "flag"-ErrorAction Stop

    }

    catch{

        Write-Host"Error for attr1 on VM $($_.Name)"

    }

    try{

        $attr2=Get-Annotation-Entity $_-CustomAttribute "custom2"-ErrorAction Stop

    }

    catch{

        Write-Host"Error for attr2 on VM $($_.Name)"

    }

    if($attr1-and$attr2){

        $_|Where-Object{$attr1-eq$true-and$excludedValues-notcontains$attr2}|

        Select-Object-Property Name

    }

}|Export-Csv-Path C:\server\report.csv -UseCulture -NoTypeInformation

Re: Migrate VMs from ESXi to Hyper-V - MVMC is no option

$
0
0

Perhaps a Microsoft forum would be a better place to ask?

Re: Migrating a lot of vm's and need a quick powercli script to keep track of vm's progress

$
0
0

You can use a calculated property on the Select-Object cmdlet.

 

Get-Task-Status Running |where{$_.Name-like"RelocateVM*"}|

Select StartTime,PercentComplete,

    @{N='VM';E={(Get-View-Id $_.ObjectId-Property Name).Name}}

Re: UEM for PCs and VMs

$
0
0

I use IP ranges to distinguish between VDI and physical as VDIs are typically in a different VLAN then physical PCs.

Re: NUMA node count not right

$
0
0

thanks! As soon as I can powr off the servers I will check..

Re: NUMA node count not right

$
0
0

how many cores per socket ..? i would like to know the total number of cores you have on the server..

 

also can you navigate through these BIOS setting and share an output..

 

Setting NUMA Group Size Optimization

  1. From the System Utilities screen, select System Configuration> BIOS/Platform Configuration (RBSU)> Performance Options> Advanced Performance Tuning Options> NUMA Group Size Optimization

Unneeded Output on Screen but Out-Null discards important value

$
0
0

Hi,

 

I have the following script :

 

$dc = New-Datacenter -location (Get-Folder -NoRecursion) -Name vDatacenter

New-Cluster -Name iSCSI_Cluster -Location $dc

New-Cluster -Name vSAN_Cluster -Location $dc

 

$csvFile = Import-CSV -Path C:\Users\Administrator\Desktop\esxiHostsDeployment.csv

 

foreach ($val in $csvFile)

   {

      $esxiHosts = $val.Hosts

      $clusterName = $val.Cluster

      $virtualSwitch = $val.Switch

      $nic = $val.NIC

      $vmK = $val.VMK

      $ip = $val.IP

 

      Add-vmhost $esxiHosts -User root -Password "" -Location $clusterName -Force -ErrorAction SilentlyContinue

 

      try

         {

            $gSwitch = Get-VirtualSwitch -Name $virtualSwitch -VMHost $esxiHosts -ErrorAction Stop

         }

      catch

         {

            $gSwitch = New-VirtualSwitch -Name $virtualSwitch -VMHost $esxiHosts

         }

 

      $nAdapter = Get-VMHostNetworkAdapter -VMHost $esxiHosts -Physical -Name $nic

      $gSwitch | Add-VirtualSwitchPhysicalNetworkAdapter -VMHostPhysicalNic $nAdapter -Confirm:$false

      New-VMHostNetworkAdapter -VMhost $esxiHosts -PortGroup $vmK -IP $ip -subnetmask 255.255.255.0 -VirtualSwitch $gSwitch -confirm:$false

   }

 

When the script executes the get statements in both $gSwitch and $nAdapter both during runtime display information (shown below) which is not needed to be displayed as this slows down processing

 

Name                 ConnectionState PowerState NumCpu CpuUsageMhz CpuTotalMhz   MemoryUsageGB   MemoryTotalGB Version

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

esxi21.v.lab         Connected       PoweredOn       2           0        5184           0.000           5.995   6.7.0

 

VMotionEnabled               : False

FaultToleranceLoggingEnabled : False

ManagementTrafficEnabled     : False

IPv6                         :

AutomaticIPv6                :

IPv6ThroughDhcp              :

IPv6Enabled                  :

Mtu                          : 1500

VsanTrafficEnabled           : False

PortGroupName                : ManagementNetwork2

Id                           : key-vim.host.VirtualNic-vmk1

VMHostId                     : HostSystem-host-31

VMHost                       : esxi21.v.lab

VMHostUid                    : /VIServer=vsphere.lab\administrator@vcsa.v.lab:443/VMHost=HostSystem-host-31/

DeviceName                   : vmk1

Mac                          : 00:50:56:6e:2f:cd

DhcpEnabled                  : False

IP                           : 192.168.2.31

SubnetMask                   : 255.255.255.0

Uid                          : /VIServer=vsphere.lab\administrator@vcsa.v.lab:443/VMHost=HostSystem-host-31/HostVMKernelVirtualNic=key-vim.host.VirtualNic-vmk1/

Name                         : vmk1

ExtensionData                : VMware.Vim.HostVirtualNic

 

When I try Out-Null or > $null I get errors since the variable values are already discarded by the Out-Null and > $null.

 

How do I discard screen output yet keep the values as I could not find anything in Powershell that does this.

 

Thank You


Re: Mac Catalina and Fusion Has Black Screen

$
0
0

This works perfectly well and is the simplest way to address the issue.

 

Thanks a lot!

Re: Unneeded Output on Screen but Out-Null discards important value

$
0
0

What you are seeing is not coming from the Get-VirtualSwitch/New-VirtualSwitch or Get-VMHostNetworkAdapter cmdlets.

The objects that both these cmdlets send out are captured in the variables.

 

You are seeing the output from the Add-VMHost and the New-VMHostNetworkAdapter cmdlets.
There are several ways to avoid this data to appear on the console, capture it in a variable, pipe it to Out-Null or redirect it to $null.

Re: NUMA node count not right

$
0
0

Thanks Hussain, each CPU has 22 cores and HT is enabled. As soon as I can schedule an activity to power off the server I'll post the result of that setting, thanks again

Re: Who has seen a voma module named advfix in action and is willing to talk about it ?

$
0
0

Thank you for the hint on undocumented options.If we look, then neither adfix, nor -p are described in the help on voma.

Can you tell me, if there is a way to start the advfix on the partition on which the ESXi are directly installed.For all my attempts, the system refuses under the pretext that this partition is used by the host (in fact, this is the localhost, in my case 130.21).

How do i repair the VMFS on such installations? Can i unmount or other way? I tried to choose shift+R/O even when loading, there is no way to openl the console for cli ((

 

[root@ESXi-U1-DL8:~] esxcli storage vmfs extent list
Volume Name  VMFS UUID                            Extent Number  Device Name                           Partition
-----------  -----------------------------------  -------------  ------------------------------------  ---------
datastore1   5d4468de-4daee3be-0f47-509a4c9492de              0  naa.64cd98f01bea570024d71af30c1c246a          3
[root@ESXi-U1-DL8:~] voma -m vmfs -f advfix -d /vmfs/devices/disks/naa.64cd98f01bea570024d71af30c1c246a:3 -p /vmfs/volumes/datastore1/   Successfully created patch file /vmfs/volumes/datastore1/naa.64cd98f01bea570024d71af30c1c246a:3_Sun_Nov__3_08:56:58_2019
Checking if device is actively used by other hosts
Scanning for VMFS-6 host activity (4096 bytes/HB, 1024 HBs).
Found 1 actively heartbeating hosts on device '/vmfs/devices/disks/naa.64cd98f01bea570024d71af30c1c246a:3'
1): MAC address 50:9a:4c:94:92:de, IP 192.168.130.21
[root@ESXi-U1-DL8:~] voma -v
voma version 0.8

Re: NUMA node count not right

$
0
0

22 cores per socket and 4 sockets..

 

so that is a total of 88 cores. that is a lot of compute power

Viewing all 231052 articles
Browse latest View live


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