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

Re: Migrate/Replace Device Services Server W2008 to a new W2016 Server -Method/HowTo?

$
0
0

Hi VegardAarseth,

 

thanks for your reply! So it is absolutely neccesary to renew the DEP & VPP on the new Server?

Thanks for the hint & your comment

 

Best wishes

 

Sven

__

UPDATE:

My Colleague told me that the VPP/DEP Token is also stored in the SQL Database. So there is normaly no need to exchange the certificates when there is an additional Device Services Server added or migrted. (Even when the new Server has new IP/Name)

 

Important is that you import the SSL Certificates from the old Server and that the site URL for the DSS is matching the new Server (You find the settings under Groups & Settings - All Settings - System - Advanced - Site URL). The new DSS installation should of course have the same Airwatch version than the old DSS. Thats all i think.

 

Best wishes

 

Sven


Re: App Volumes 4.0, 1909, VMware Horizon 4.12 and Ivanti UWM (Startmenu Missing when no AppStack Attached)

$
0
0

Ivanti and Appvolumes don't like eachother I'm afraid.

It also depends on what conditions you are setting on the shortcut creation. Does it check if the file actually exists and only then creates the shortcut? If so, try to not set that option and let it create the shortcut anyway.

 

Thing is that not all files are there when shortcuts are being created because Appvolumes wants logon time to be as short as possible, merging of the appstacks still happens when logging in. UEM/DEM (i hate rebranding ) has an option to check for an Allvolumesattached value and refreshes the startmenu automatically after that. If Ivanti has the same option that might be worth a try.

Re: VCSA User account has expired

Re: update vm information in csv only which changed in vcenter

$
0
0

What I have did is before running the script logged into vc and  I have powered off all the vms and executed the script 1st time then a report is generated with all vms as below:

VM,CPU,Memory,powerstate,Harddisk

vm1,2,       4,    Poweredoff,       harddisk1

vm2,2,       2,    Poweredoff,       harddisk1

vm3,4,       8,    Poweredoff,       harddisk1

 

after 15 mins I logged into vcenter and added hard disk to VM1 and changed cpu and memory for vm1,vm2,vm3 and powered on all the vms.


waited for 1 hr and executed 2nd time. And here is the output

VM,CPU,Memory,powerstate,Harddisk

vm1,2,       4,    Poweredoff,       harddisk1

vm2,4,       6,    Poweredoff,       harddisk1

vm3,2,       4,    Poweredoff,       harddisk1

vm1,4,      12,   Poweredoff,       harddisk2


powerstate is not changed.

What sequence do you mean?

the VM1 output is not sequence in csv after 2nd

execution.

 

Do you see the corresponding events when you do a Get-VIEvent?

yes I can see the events in vc.


note: I have changed $start = (Get-Date).AddMinutes(-1) in the script.

Re: ESXi VLAN tagging vmnetwork problems

$
0
0

Ok I tested it tagging all necessary VLAN's to the desired ports with the same result.

Attached you can find my vswitch / physical switch configuration.

 

VLAN 10 has 10.0.1.0/24

VLAN 20 has 10.0.2.0/24


ESXi has 10.0.2.1 -> I can connect to over VLAN 20

VM has 10.0.2.44 -> I Can't connect to.

 

Ports at the physical switch are tagged.

ESXi host - combined

$
0
0

Hi all

 

 

I'm all new to this ESXi / vSpere setup, I hope that you can help me answer a question.

Previous, I worked with old fashion windows server / domain server/ client setup, one bare metal for each,  one project at a time.

 

 

Now I'm starting to configure a single server - one large ESXi host for all these projects combined. Each of the bare metal back then, are now running on each of their VMware machine, on this ESXi host. I'm using windows server 2016 as domain server and server and thin clients for RDP access.

 

 

Question:

The question is, how does the ESXi host handle the communication / separates the different virtual machines from each other ?

 

 

The reason to this question is that all projects have the sameDomain name, but different subnet.   Such as,  192.168.51.xxx , 192.168.52.xxx  and so on..

I expect that the virtual machines on all projects are up and running on the same time, no VM's are shut down...

 

 

Do you know if it is possible that all Domain server and servers are running with exact same domain name but different subnet ??? there wont be any conflict between project ?

Re: update vm information in csv only which changed in vcenter

$
0
0

I did some further tests, and it looks like the script was not capturing all types of power off events.
I also added sort on VM name and Hard Disk name.

Is that the order you mean?

 

functionGet-VMInfo{

    param(

        [string]$Name

    )


    $vm=Get-View-ViewType VirtualMachine -Property Name, runtime.powerState, Guest.net, Config.Hardware.numCPU, Config.Hardware.MemoryMB, Runtime.Host, Guest.GuestFullName,

    Config.GuestFullName, Parent, ResourcePool, Config.Hardware.Device, Config.version, guest.toolsversionstatus,

    Config.Files.VMPathName -filter @{'Name'="^$Name$"}

    if($vm){

        $t=Get-View$vm.ResourcePool-Property Name, Parent

        while($t.getType().Name -eq"ResourcePool"){

            $t=Get-View$t.Parent-Property Name, Parent

        }

        if($t.GetType().Name -eq"ClusterComputeResource"){

            $cluster=$t.Name

        }else{

            $cluster="Stand Alone Host"

        }

        while($t.getType().Name -ne"Datacenter"){

            $t=Get-View$t.Parent-Property Name, Parent

        }

        $datacenter=$t.Name

  

        $vm.Config.Hardware.Device|Where-Object{$_.GetType().Name -eq"VirtualDisk"}|

        Select-Object@{N="vCenter";E={$script:vmhost=Get-View-Id $vm.Runtime.Host;$script:vmhost.Client.ServiceUrl.Split('/')[2]}},

        @{N="VM";E={$vm.Name}},

        @{N='powerState';E={$vm.runtime.powerState}},

        @{N='IP';E={[string]::Join(',',($vm.Guest.Net|ForEach-Object{$_.IpAddress|Where-Object{$_.Split('.').Count -eq4}|ForEach-Object{$_}}))}},

@{N='NumCPU';E={$vm.config.Hardware.NumCpu}},

@{N='Memory GB';E={$vm.Config.Hardware.MemoryMB|ForEach-Object{[math]::Round($_/1kb,2)}}},

@{N='VMHost';E={$script:esx=Get-View-Id $vm.Runtime.Host;$script:esx.name}},

@{N='GuestOS';E={$vm.Guest.GuestFullName}},

@{N='ConfiguredOS';E={$vm.Config.GuestFullName}},

#@{N="Folder";E={$path}}, 

@{N="Cluster";E={$cluster}},

@{N="Datacenter";E={$datacenter}},

@{N="Scsi";E={$_.UnitNumber}},

@{N="Hard Disk";E={$_.DeviceInfo.Label}},

@{N="Disk datastore";E={$_.Backing.Filename.Split(']')[0].TrimStart('[')}},

@{N="Disk capacity GB";E={$_.CapacityInKB|ForEach-Object{[math]::Round($_/1MB,2)}}},

@{N="Disk type";E={

        if($_.Backing.GetType().Name -match"flat"){

            "Flat"

        }else{

            $_.Backing.CompatibilityMode

        }}

},

@{N='DeviceName';E={

        if($_.Backing.GetType().Name -match'raw'){

            ($_.Backing.DeviceName)-join'|'

        }else{

            $script:lunnaa=(Get-View-Id $_.Backing.Datastore).Info.Vmfs.Extent[0].DiskName

            $script:lun=$script:esx.Config.StorageDevice.ScsiLun|Where-Object{$_.CanonicalName-eq$script:lunnaa}

        $script:lun.Descriptor|Where-Object{$_.Id-match'vml.'}|Select-Object-ExpandProperty Id

}}

},

@{N='LUN NAA';E={

        if($_.Backing.GetType().Name -match'raw'){

            $lunUuid=$_.Backing.LunUuid

            $script:lun=$script:esx.Config.StorageDevice.ScsiLun|Where-Object{$_.Uuid-eq$lunUuid}

        $script:lun.CanonicalName

    }else{

        $script:lunnaa

    }}

},

@{N='LUN ID';E={

        $dev=$script:esx.Config.StorageDevice.PlugStoreTopology.Device|Where-Object{$_.Lun-eq$script:lun.Key}

    $script:esx.Config.StorageDevice.PlugStoreTopology.Path|Where-Object{$_.Device-eq$dev.Key}|

    Select-Object-First 1-ExpandProperty LunNumber

}

},

@{N='VMConfigFile';E={$VM.config.files.VMpathname}},

@{N='VMDKPath';E={$_.Backing.FileName}},

@{N="HW Version";E={$vm.Config.version}},

@{N="Tools Status";E={$vm.guest.toolsversionstatus}},

@{N="NIC Name";E={($vm.config.hardware.device|Where-Object{($_.DeviceInfo.Label-like"Network*")}).DeviceInfo.Label -join'|'}},

@{N="Mac";E={($vm.Config.Hardware.Device|Where-Object{$_.DeviceInfo.Label-like"Network*"}).MacAddress -join'|'}},

@{N="Portgroup";E={

        $nic=$vm.Config.Hardware.Device|Where-Object{$_.DeviceInfo.Label-like"Network*"}

    [string]::Join(',',(

            $nic|ForEach-Object{

                if($_.DeviceInfo.Summary-notmatch'DVSwitch'){

                    $_.DeviceInfo.Summary

                }else{

                    Get-View-ViewType DistributedVirtualPortgroup -Property Name -Filter @{'Key'=$_.Backing.Port.PortgroupKey}|

                        Select-Object-ExpandProperty Name

                }}))}

}

}

}


$fileName='.\VMreport.csv'


$configFile=$fileName.Replace('.csv','.cfg')

$eventTypes='VmReconfiguredEvent','VmRemovedEvent','VmDeployedEvent','VmCreatedEvent','VmPoweredOffEvent',

'VmPoweredOnEvent','DrsVmPoweredOnEvent'

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


$hash=@{}

$now=Get-Date


if(Test-Path-Path $fileName){

    Import-Csv-Path .\VMreport.csv -UseCulture |

        ForEach-Object-Process {

            $hash.Add("$($_.VM)$($_.'Hard Disk')",$_)

        }

    $start=[DateTime](Get-Content-Path $configFile)

    Get-VIEvent-Start $start-MaxSamples ([int]::MaxValue)|

        Where-Object{$eventTypes-contains($_.GetType()).FullName.Split('.')[2]-or$eventTypes-contains($_.GetType()).BaseType.Name }|

        Group-Object-Property {$_.VM.Name}|

        ForEach-Object-Process {

            Write-Host"Looking at $($_.Name)"

            $_.Group|Sort-Object-Property CreatedTime |

            ForEach-Object-Process {

                $event=$_

                switch($event.GetType().FullName.Split('.')[2]){

                    'VmRemovedEvent'{

                        $rows=$hash.GetEnumerator()|Where-Object{$_.Key-match"^$($event.VM.Name)"}

                    $rows|ForEach-Object-Process {

                        $hash.Remove("$($_.Value.VM)$($_.Value.'Hard Disk')")

                    }

            }

            {'VmDeployedEvent','VmCreatedEvent'-contains$_}{

                Get-VMInfo-Name $event.VM.Name|

                    ForEach-Object-Process {

                        $hash.Add("$($_.VM)$($_.'Hard Disk')",$_)

                    }

            }

            'VmReconfiguredEvent'{

                Get-VMInfo-Name $event.VM.Name|

                    ForEach-Object-Process {

                        $hash.Item("$($_.VM)$($_.'Hard Disk')")=$_

                    }

            }

            {'VmPoweredOnEvent','DrsVmPoweredOnEvent'-contains$_}{

                $rows=$hash.GetEnumerator()|Where-Object{$_.Key-match"^$($event.VM.Name)"}

            $rows|ForEach-Object-Process {

                $_.Value.PowerState='poweredOn'

                $hash.Item($_.Key)=$_.Value

            }

    }

    'VmPoweredOffEvent'{

        $rows=$hash.GetEnumerator()|Where-Object{$_.Key-match"^$($event.VM.Name)"}

    $rows|ForEach-Object-Process {

        $_.Value.PowerState='poweredOff'

        $hash.Item($_.Key)=$_.Value

    }

}

}

}

}

}else{

    Get-View-ViewType Virtualmachine -Property Name -Filter @{'Config.Template'='False'}|

        ForEach-Object-Process {

            Write-Host"Looking at $($_.Name)"

            Get-VMInfo-Name $_.Name|

                ForEach-Object-Process {

                    $hash.Add("$($_.VM)$($_.'Hard Disk')",$_)

                }

        }

}


$hash.Values|

    Sort-Object-Property VM,'Hard Disk'|

    Export-Csv-Path $fileName-NoTypeInformation -UseCulture

$now.ToString()|Out-File-FilePath $configFile

ESXCLI | LUN ID for protocol endpoint.

$
0
0

Hi,

is there any way to check which LUN ID belongs to the protocol end point?

LUN id is not presenting with the following command:

esxcli storage vvol protocolendpoint list

 

Thanks


W10 virtual network editor rights

$
0
0

Our users all have non admin rights.

In Windows 7 we could use a local group named "Networkconfigurationoperators" to give the users rights to change settings in the Virtual Network Editor.

But in Windows 10 this group no longer seems to give the rights to change settings in the Virtual Network Editor and our users are stranded.

 

Is this a known issue? How can we allow them to change settings in the Virtual Network Editor without giving them full admin rights?

 

(see attached image)

Re: ESXi host - combined

$
0
0

You think waaaaaaaaaaaaaaaayy to complicated.

ESXi doesnt care about IPs, DNS, Routing, Domains and so on. Within the vNetworking for VMs you specify the way/flow of the packets and with 2 abstraction layers (Portgroup and Upink) he decouple the  VM Settings from the phys. environment(pNIC).

 

If you like you can send everything trough the same Portgroup, vSwitch and single Uplink and its your job as an Admin to take care not to configure  systems with same IP, broadcasts or deal with things like Windows AD.

 

Within ESXi you can do the same as in the phys. world to make life a little bit easier and use VLANs to separate networks.  Create Portgroups with a proper name for every customer/project and add a unique VLAN ID for every Portgroup so you dont have to mess around with VLANs in the Guest OS.

 

Regards,
Joerg

Re: Horizon view 7.10 help desk tool not showing any session information

$
0
0

This is all i see.

 

Regards Jean

Re: VMware Learning Zone

$
0
0

The last time you asked a similar question, I told you that VCA-DBT was the only certification for which the training was free (and that training isn’t even “required”, you could just register and pay for the exam if you wanted to)

 

That is still true regardless of the VLZ promotion - there are no VLZ courses which meet the training requirement for VCP.

 

In terms of your last question, select the path on this page which matches your current situation and you’ll see the requirements: VMware Certified Professional - Data Center Virtualization 2020 (VCP-DCV 2020)

vCenter 6.7 down

$
0
0

I had to reboot this server for a maintenance.  since then the services are not coming up.  Is it because of /storage/archive being 100% full ?

 

root@XXXXXXX [ ~ ]# service-control --status

Running:

lwsmd vmafdd vmcad vmdird vmdnsd vmware-analytics vmware-certificatemanagement vmware-cis-license vmware-eam vmware-pod vmware-postgres-archiver vmware-rhttpproxy vmware-sca vmware-statsmonitor vmware-sts-idmd vmware-stsd vmware-vapi-endpoint vmware-vmon vmware-vpostgres vmware-vpxd-svcs vsphere-client vsphere-ui

Stopped:

applmgmt pschealth vmcam vmonapi vmware-cm vmware-content-library vmware-imagebuilder vmware-mbcs vmware-netdumper vmware-perfcharts vmware-rbd-watchdog vmware-sps vmware-topologysvc vmware-updatemgr vmware-vcha vmware-vpxd vmware-vsan-health vmware-vsm vsan-dps

 

2020-03-09T14:51:41.420Z Done running command

2020-03-09T14:51:41.421Z Successfully started service vmware-vmon

2020-03-09T14:51:41.421Z Running command: ['/usr/bin/systemctl', 'unset-environment', 'VMON_PROFILE']

2020-03-09T14:51:41.430Z Done running command

Successfully started service vmware-vmon

2020-03-09T14:51:41.431Z Running command: ['/usr/lib/vmware-vmon/vmon-cli', '--batchstart', 'ALL']

2020-03-09T14:58:49.248Z Done running command

Service-control failed. Error: Failed to start services in profile ALL. RC=1, stderr=Failed to start topologysvc, vmonapi, applmgmt, cm services. Error: Operation timed out

 

 

2020-05-15T05:13:14.486-04:00 | ERROR | state-manager1 | DefaultStateManager | Could not initialize endpoint runtime state.

com.vmware.vapi.endpoint.config.ConfigurationException: Failed to retrieve SSO settings.

        at com.vmware.vapi.endpoint.cis.SsoSettingsBuilder.buildInitial(SsoSettingsBuilder.java:48)

        at com.vmware.vapi.state.impl.DefaultStateManager.build(DefaultStateManager.java:353)

        at com.vmware.vapi.state.impl.DefaultStateManager$1.doInitialConfig(DefaultStateManager.java:167)

        at com.vmware.vapi.state.impl.DefaultStateManager$1.run(DefaultStateManager.java:150)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

        at java.util.concurrent.FutureTask.run(FutureTask.java:266)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)

        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)

Caused by: com.vmware.vapi.endpoint.config.ConfigurationException: com.vmware.vim.vmomi.client.common.UnexpectedStatusCodeException: Unexpected status code: 503

        at com.vmware.vapi.endpoint.cis.ls.LookupServiceClientWrapper.lookup(LookupServiceClientWrapper.java:292)

        at com.vmware.vapi.endpoint.cis.ls.LookupServiceClientWrapper.lookupSso(LookupServiceClientWrapper.java:206)

        at com.vmware.vapi.endpoint.cis.SsoSettingsBuilder.ssoSettings(SsoSettingsBuilder.java:107)

        at com.vmware.vapi.endpoint.cis.SsoSettingsBuilder.buildInitial(SsoSettingsBuilder.java:41)

        ... 10 more

Caused by: com.vmware.vim.vmomi.client.common.UnexpectedStatusCodeException: Unexpected status code: 503

        at com.vmware.vim.vmomi.client.common.Response$Status.getStatus(Response.java:58)

        at com.vmware.vim.vmomi.client.http.impl.HttpExchangeBase.parseResponse(HttpExchangeBase.java:156)

        at com.vmware.vim.vmomi.client.http.impl.HttpExchange.run(HttpExchange.java:53)

        at com.vmware.vim.vmomi.client.http.impl.HttpProtocolBindingBase.executeRunnable(HttpProtocolBindingBase.java:226)

        at com.vmware.vim.vmomi.client.http.impl.HttpProtocolBindingImpl.send(HttpProtocolBindingImpl.java:106)

        at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.sendCall(MethodInvocationHandlerImpl.java:629)

        at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl$CallExecutor.executeCall(MethodInvocationHandlerImpl.java:610)

        at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.completeCall(MethodInvocationHandlerImpl.java:360)

        at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invokeOperation(MethodInvocationHandlerImpl.java:311)

        at com.vmware.vim.vmomi.client.common.impl.MethodInvocationHandlerImpl.invoke(MethodInvocationHandlerImpl.java:184)

        at com.sun.proxy.$Proxy38.list(Unknown Source)

        at com.vmware.vapi.endpoint.cis.ls.LookupServiceClientWrapper.lookup(LookupServiceClientWrapper.java:288)

        ... 13 more

 

# df -h

Filesystem                                Size  Used Avail Use% Mounted on

devtmpfs                                  9.8G     0  9.8G   0% /dev

tmpfs                                     9.8G  864K  9.8G   1% /dev/shm

tmpfs                                     9.8G  684K  9.8G   1% /run

tmpfs                                     9.8G     0  9.8G   0% /sys/fs/cgroup

/dev/sda3                                  11G  6.1G  4.0G  61% /

tmpfs                                     9.8G  912K  9.8G   1% /tmp

/dev/mapper/dblog_vg-dblog                 15G  470M   14G   4% /storage/dblog

/dev/mapper/core_vg-core                   50G  831M   46G   2% /storage/core

/dev/mapper/db_vg-db                      9.8G  324M  8.9G   4% /storage/db

/dev/sda1                                 120M   34M   78M  31% /boot

/dev/mapper/netdump_vg-netdump            985M  1.3M  916M   1% /storage/netdump

/dev/mapper/log_vg-log                    9.8G  6.6G  2.7G  71% /storage/log

/dev/mapper/autodeploy_vg-autodeploy      9.8G   23M  9.2G   1% /storage/autodeploy

/dev/mapper/imagebuilder_vg-imagebuilder  9.8G   23M  9.2G   1% /storage/imagebuilder

/dev/mapper/archive_vg-archive             50G   47G   20M 100% /storage/archive

/dev/mapper/updatemgr_vg-updatemgr         99G   64M   94G   1% /storage/updatemgr

/dev/mapper/seat_vg-seat                   25G  1.1G   23G   5% /storage/seat

Re: VCSA User account has expired

Re: vCenter 6.7 down

$
0
0

For break/fix issues, please open a support case with VMware.


Re: Network connectivity to freshly installed esxi 6.5 host!

$
0
0

If ESXi is showing NICs are available, you do not need to update drivers. You probably have a simple networking issue that is outside of ESXi. Start with basic troubleshooting.

Re: ESXi Maintenance mode

$
0
0

No, with Select-Object you get a different object.

You could do

 

$esxState=Get-VMHost-Name $esx.Name| select -ExpandProperty connectionstate

 

Then you have the state in the variable $esxState.

But I'm not sure why you would want to do that.

Re: Unable to setup passwordless ssh to esx node

$
0
0

No, you didn't.:

 

For ESXi 5.x, 6.0, 6.5 and 6.7, the authorized_keys is located at: /etc/ssh/keys-<username>/authorized_keys

Re: Horizon view 7.10 help desk tool not showing any session information

$
0
0

Please confirm below:

 

> Make sure help desk licensing shows as 'Enabled' under View admin > View configuration > Product licensing

> Make sure you are logged in with one of the account having administrator role assigned (View admin > view configuration > Administrator)

> Make sure horizon view agent running on VDI is same as connection server version.

> If the issue still persist, reinstall horizon agent on VDI with same build as of connection server and make sure 'help desk plugin' is enabled.

Copy Paste and screen sizing not working for one guest Linux user on Win 7 pro host

$
0
0

VMware® Workstation 15 Pro

The linux guest is cent-os 6.6.

Host in Win 7 pro.

 

When I sign on as root all works well, that is the screen can be sized any way I like (4k monitor) and copy and paste works completely.

 

When I sign on as a different user (also an admin), screen sizing does not work at all unless I use the guest to select specific sizes.  Copy and paste does not work at all.

 

ALL files for vmware on the guest have at least r set for all

 

Very inconvenient and was happening in previous workstation versions.

 

Any help would be appreciated.

 

Ben Chernys

Viewing all 213099 articles
Browse latest View live


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