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

Minimum components to run PowerCli scripts

$
0
0

Diring the time I installed lots of PowerShell and PowerCli components on the PC I usually use to create and run PowerCli scripts.

Now I need to install on a Windows Server 2016 server the minimum components required to create, edit and run PowerCli scripts for a vSphere infrastructure based on 6.5 and 5.5 hosts.

Which components should I download and install?

Regards

marius


Issue with ESXi 6.5 and Datastores disappearing after rebooting host

$
0
0

So this is my first attempt at  ESXi 6.5 and I wanted to see if anyone else has seen this. The hosts are ESXi 6.5 HP Custom image and everytime I reboot the host, the data stores disappear. Everything looks fine under Storage adapters and Storage Devices but the Datastores are just not showing up. However if I run a rescan of all storage adapters everything comes back just fine? I have never seen this with any previous version of ESX before. I thought that it could be an issue with out of date firmware which I then went to HP's site and downloaded the latest  Firmware available and applied it to one of the 3 in my cluster, but no change.

 

The Hardware is HP ProLiant BL460c Gen8.

Mandatory User Profile / Start Menu Tiles

$
0
0

Hi,

I try to set up a Windows 10 Golden Image with Window 10 1803 with this guide: https://techzone.vmware.com/creating-optimized-windows-image-vmware-horizon-virtual-desktop and a mandatory profile. But I'm unable to save the start menu (Tiles) layout of a user with UEM 9.5 and after login I'm getting always the same layout:

I use the follwing settings in UEM:

 

[IncludeRegistryTrees]

HKCU\Software\Microsoft\Windows\CurrentVersion\CloudStore

 

[IncludeIndividualRegistryValues]

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\EnableAutoTray

HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\SlowContextMenuEntries

 

[IncludeFolderTrees]

<LocalAppData>\Microsoft\Windows\Caches

<LocalAppData>\Microsoft\Windows\CloudStore

<LocalAppData>\Microsoft\Windows\Explorer

Backup-VCSAToFile in a weird error

$
0
0

Hello to all, some time ago I wrote this post below:

 

Backup-VCSA module error

 

and now I have the exact same error again. The box where I used to run my scripts died (Window 2012 R2) and it was replaced with a 2016 (PS 5.1.14393.2248 - PowerCLI 11(latest)). I just set the usual script below and I got again that error:

 

Import-Module "C:\Scripts\Pro\VCSA-Backup\Backup-VCSA.psm1" -Force


$vcenter = 'xxxxxxxxxx'


      $Creds = Import-Clixml -Path "C:\Scripts\Pro\VCSA-Backup\config.xml"      $cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $Creds.UserName,$Creds.Password                  Connect-CisServer -Server $vcenter -User $cred.GetNetworkCredential().UserName -Password $cred.GetNetworkCredential().Password      Connect-VIServer -Server $vcenter -User $cred.GetNetworkCredential().UserName -Password $cred.GetNetworkCredential().Password                $Comment = "Full Backup $vcenter-$(Get-Date).ToString('yyyy-MM-dd')"        $LocationType = "FTPS"        $location = "xxxxxxxxx/backup/$vcenter-$((Get-Date).ToString('yyyy-MM-dd'))"        $LocationUser = "vcsa-backup-user"        [VMware.VimAutomation.Cis.Core.Types.V1.Secret]$locationPassword = "xxxxxxxxxx"        Backup-VCSAToFile -LocationType $LocationType -Location $location -LocationUser $LocationUser -LocationPassword $locationPassword -Comment $Comment -FullBackup

 

 

Error:

 

The property 'parts' cannot be found on this object. Verify that the property exists and can be set.
At C:\Scripts\Pro\VCSA-Backup\Backup-VCSA.psm1:62 char:9
+         $CreateSpec.parts = $parts
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException    + FullyQualifiedErrorId : PropertyAssignmentException

The property 'backup_password' cannot be found on this object. Verify that the property exists and can be set.
At C:\Scripts\Pro\VCSA-Backup\Backup-VCSA.psm1:63 char:9
+         $CreateSpec.backup_password = $BackupPassword
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException    + FullyQualifiedErrorId : PropertyAssignmentException

The property 'location_type' cannot be found on this object. Verify that the property exists and can be set.
At C:\Scripts\Pro\VCSA-Backup\Backup-VCSA.psm1:64 char:9
+         $CreateSpec.location_type = $LocationType
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException    + FullyQualifiedErrorId : PropertyAssignmentException

etc...

 

This time the module is exactly as it is published on the Github. What could it be? After the logins are done if I run

 

Get-CisService com.vmware.appliance.recovery.backup.job 

 

I get a proper response!

 

Can it be the PowerCli or the PS version?

Script to create a scheduled task

$
0
0

I created a script to create scheduled tasks to move VMs among datastores based on the excellent page Scheduled Tasks - MethodAction - LucD notes

It worked fine until I replaced the old vCenter 5.5 with a VCSA 6.5.

I attempted to use the same script but I got lots of errors and I cannot see the list of created scheduled tasks.

Should I change the script?

Regards

marius

Office 365 Slow when ANY appstack attached

$
0
0

So we've been looking into some performance issues we have with Microsoft Office and it turns out it is App Volumes causing it.  First I'll explain the issue.  If you are using a Microsoft Office product the first thing you will notice is launching an Office app i.e. Microsoft Word it will take 2-3 times longer if you have ANY appstacks attached to the VM.  If this was the only problem I could get over it, as a 6 second launch time as opposed to a 2 second launch time isn't killer, rather just a bit annoying, but the real kicker is even once the application has launched certain things are very slow within the application and users can't stand it.  An example of this, when you have Microsoft Word open, open a blank word document and go to insert and select Object.  It will bring up this window:

 

If you have no appstacks attached this will happen in 1-2 seconds.  If you attach ANY appstacks at all this will take 10-15 seconds.  This isn't the only thing that happens slowly within Office, but it is the easiest to reproduce so I put it on here. 

 

The real issue here is that this isn't just if you have Microsoft Office in an appstack, this happens anytime you attach any appstack to your vm.  You can literally have a machine with Microsoft Office installed and everything will work fine, and while you are sitting there go to the app volumes manager and deploy an appstack with just notepad++ for instance immediately to your vm.  Now if you try to launch Word/Excel whatever it is significantly slower and doing certain things (as in the example above) is ridiculously slow.  Basically using app volumes at all makes Microsoft Office painfully slow at points. 

 

This happens if you are using Windows 7 or Windows 10, and App Volumes agents 2.13.0 to 2.14.0 at the minimum as I've tested all of those. Anyone have any ideas as to a way to fix this or help with this?

Configuring a VMware Tools Repository in vSphere 6.7U1

VMware vSphere ESXi Dump Collector 6.7 Update 1 Configuration

$
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

Tony


vCenter 6.7 Backup Not Working

$
0
0

When I try to backup my vCenter 6.7.140000 system it fails.  Excerpt from backup.log:

 

2018-11-28T16:09:19.205 [LotusBackup:PID-61411] INFO: stdout: VdcBackupDB: Server in state (5) in which it cannot perform backup. error(9125)

 

2018-11-28T16:09:19.205 [LotusBackup:PID-61411] ERROR: BackupLotus: command "/usr/lib/vmware-vmdir/bin/vdcbackup /storage/db/vmware-vmdir/ /tmp/backup_lotus/" failed. rc: 165.

2018-11-28T16:09:19.206 [LotusBackup:PID-61411] INFO: Successfully completed Lotus cleanup.

2018-11-28T16:09:20.70 [MainProcess:PID-61142] ERROR: Error at process LotusBackup; rc:165.

2018-11-28T16:09:20.70 [MainProcess:PID-61142] ERROR: stderr:Encounter error during dump Lotus, check log for details: backup.log

2018-11-28T16:09:20.70 [MainProcess:PID-61142] INFO: Following error message isn't localized:

  stderr:Encounter error during dump Lotus, check log for details: backup.log

2018-11-28T16:09:20.70 [MainProcess:PID-61142] ERROR: BackupManager encountered an exception: Hit exception inside process LotusBackup:

2018-11-28T16:09:20.71 [MainProcess:PID-61142] INFO: Cleaning up the backup job.

 

 

When I run "/usr/lib/vmware-vmdir/bin/vdcbackup /storage/db/vmware-vmdir/ /tmp/backup_lotus/" manually it gives the following error:

 

Warning: could not create partner listVdcBackupDB: Server in state (5) in which it cannot perform backup. error(9125)

 

I have searched online and have not found anything helpful.

tera1, View 7 - It worked then it didn't

$
0
0

Hi, Strange behaviour with our EVGA tera1 zero clients. I have followed all the relevant documents on enabling TLS1.0 and had the following results which I hope someone can help with.

 

I have several hosts running Vsphere 5.5 u3 and View 6.02. I want to upgrade this to esx 6.5 and View 7.x so I removed all current VMS from one of my hosts (still on 5.5), then installed a 2008 r2 server with View composer 7.4, a VCSA V6.5 and another Win server with View Connection server 7.4. I then took one of my golden images across and updated it to View Agent 7.4 and created a linked clone VM. After adding registry entries for Pcoip.ssl_protocols in the linked clone and pcoip.ssl_Cipher_list in the linked clone, and the SSLprotcol and SSLcipherlist registry entires in the connection server I managed to connect to the VM using one of my zero clients. I tested this several times after rebooting etc. and it worked every time.

 

I then decided to see if I could get it to work with View 7.7 so I snapshott'd both the connection server and composer server then upgraded both to 7.7. When I tried to connect the tera1 wouldn't connect to the connection server. I then tried reverting back to the snapshotted V7.4 composer and connection server. This time I could connect to the connection server, but when I tried to login to the machine I got 'Session Negotiation Failed. Client may not be compatible with the host session negotiation cipher setting'. I have tried deleting and recreating the VCSA, uninstalling View Composer and connection server. Still the same.

 

Finally I have started completely from scratch on the test host. Loaded esx 6.5, Created a new VCSA, built a new 2008 R2 server and loaded 7.2 composer, ditto with 7.21 connection server, reverted back to the golden image with the 6.02 agent, uninstalled and installed 7.1 agent and added the pcoip.ssl_protocol lines then composed a new VM. I still get the Session negotiation failed.!

 

Is there anything that 7.7 might have done / added to the AD controller or something on the rest of my original network machines that has stopped this working suddenly (the live V6.02 view linked clones are still working with no issues on the 6.02 view vcenter, composer and connection server)

 

Hopefully someone can help as I have 60 users all using tera1 machines.

vRA 7.4 - Custom Forms Data Grid

$
0
0

Hello!

 

I am playing around with the Data Grid in the New Custom forms Designer - more precisely with the "disks" Grid. What I found so far:

 

  • Adding the Grid to the Forms I got this Error:

 

Schema fields [[is_clone, initial_location, volumeId, id, label, custom_properties, userCreated, storage_reservation_policy, capacity]] should match the default value fields [[is_clone, initial_location, volumeId, id, label, userCreated, storage_reservation_policy, capacity]].

 

Cause: there is no "custom_properties" Field in the Grid Layout

 

Solution: Look at the "Default" Value and remove the "custom_properties," from the Header and the "," bevor the capacity - in my case before the "80":

 

is_clone,initial_location,volumeId,id,label,custom_properties,userCreated,storage_reservation_policy,capacity

true,,0,1525072814859,Hard disk 1,,false,,80

 

is_clone,initial_location,volumeId,id,label,custom_properties,userCreated,storage_reservation_policy,capacity

true,,0,1525072814859,Hard disk 1,,false,80

 

  • Using the "disks" Grid "breaks" any approval Policies based on Storage Size

 

Cause: If you add more disks to the Grid the Value of "Storage (GB)" will not be incremented

 

Solution: Well... its more a workaround since I have not found a way to pass the Values of a Data Grid to an vRO Action. I created a vRO Action which fills the "disks" Grid based on Values in the Custom Form (the size of the template base disks are Hardcoded):

 

  • If you use an external vRO Action for the Grid Values the Return type of the Action must be "Array/Properties". In my Case the Action was not found if I use this return Type.

 

Cause: Bug?

 

Workaround: I changed the Return Type to "Array/String" and the Action was found in vRA. After I changed the Values Binding in the Custom Form, Saved the Blueprint and corrected the Return Type of the Action to Array/Properties.

Auto-Deploy Image building and UMDS/VUM

$
0
0

We want to use auto-deploy for provisioning ESXi Hosts. We are on an air-gapped network Should/Could we use content downloaded from UMDS to build / update our auto-deploy images or should we manually download content from the vmware patch site (along with any vendor drivers, etc.)

View Mandatory Profile

$
0
0

Hello,

 

We have setup a mandatory profile for our View Desktops and I am curious to know how we can confirm the profile is indeed being used??  When I login to a view desktop, I look up C:\Users and see the mandatory.v2 folder however I also see a folder for the user logged into the desktop.

 

How can I know for sure the mandatory profile is being used?

 

Thank you.

VCSA 6.5 not working via web client / HTML client

$
0
0

Hi

 

We had setup vSphere 6.5 infrastructure 2 months ago in 2 sites as active-passive. Each site has VC with PSC as external deployment to avail linked mode feature.

 

Vcenter version: 6.5 Update 1

 

Couple of days ago in secondary site, one of the host where my PSC was running gone done and i had brought it up on another host. Post which vcenter did not worked and i restarted the services using (service-control --stop/--start --all). From then i unable to manage the secondary site VC using web-client or HTML UI client.

 

When i login to my Primary VC, there i can able to manage both my Primary Vcenter and secondary vcenter server.

But when i try to login individually to my secondary vcenter server via web browser then i am getting error message as shown below before it prompts me to enter the credentials.

===========================================================================================================

A server error occurred.

[400] An error occurred while sending an authentication request to the vCenter Single Sign-On server - An error occurred when processing the metadata during vCenter Single Sign-On setup - javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty.

Check the vSphere Web Client server logs for details.

===========================================================================================================

 

In vcenter, the vsphere-client logs (/var/log/vmware/vsphere-client/logs/vsphere_client_virgo.log) shows error message as below

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

[2019-01-11T11:29:54.080Z] [ERROR] http-bio-9090-exec-9         70000181 100007 ###### c.v.vsphere.client.security.websso.WebssoLoginRequestHandler      javax.servlet.ServletException: An error occurred when processing the metadata during vCenter Single Sign-On setup - javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

 

Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

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

 

When accessing via HTML UI client via broswer getting error message as below.

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

[400] An error occurred while sending an authentication request to the vCenter Single Sign-On server - An error occurred when processing the metadata during vCenter Single Sign-On setup - javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.

 

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

 

Thought of certificate issue and replaced the certificates on VC and finally did reset all certificates on Vcenter server, but no luck.

Checked the time synchronization between VC and PSC and all looks good.

 

Could you please help me to fix this issue as i am struggling hard for 3-4 days.

VMware vSphere Client не может получить доступ к ESXI 5.5

$
0
0

Доброго времени суток. Ситуация следующая. После добавление vSwitch перестал коннектится VMware vSphere Client к ESXI 5.5 Зашел через консоль включил ssh, но к гипервизору не подключится не через ssh, не  через vSphere Client, не по http. Ребут не помог, виртуалки на нем работают нормально, с виртуалок пробовал зайти на гипервизор и так же без результатно. Пинг до ESXI есть. пробовал удалить созданный vSwitch1 через консоль, но я совершил ошибку создавая portgroup - назвал его Vkernel backup - через пробел. Теперь не могу отключить portgroup от vSwitch1 (второе слово в названии мешает) и как следствие удалить свич, после создания которого и пропала связь гипера с vSphere Client. Но почему я потерял доступ удаленный к гиперу? И как его востановить через локальную консоль? Подскажите.


VMWare VM network kernel parameters change doesn't any performance improvement

$
0
0

Hello all,

  I'm having TX drops on VM interface, when i'm sending some traffic throught that interface. So i tried to tune the kernel parameters for the interface, like setting the ring buffers, changing the read/write buffer memory to more than 2 MB which is the default. But none of the changes helps in lowering the TX drops.

 

Anyone have any idea how to lower the TX drops ?

 

Thanks,

Hanish

vCenter 6.5 : failed to stat the service "vpxd"

$
0
0

Hello,

 

I have this error message :
"

Cmd "sc queryex vpxd" failed with exit code 1060

  Cmd "sc qfailure vpxd" failed with exit code 1060

"

I just finish to install the vCenter 6.5 (ESXi 6.5 Essential Plus) wit success, and I just restart the Windows server.

 

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

From :

c:\Program Files\VMware\vCenter Server\bin\

 

I try :

service-control --start vpxd-svcs

 

and the result is :

Perform start operation. vmon_profile=None, svc_names=['vpxd-svcs'], include_coreossvcs=False, include_leafossvcs=False

2018-06-11T15:47:19.793Z   Service vpxd-svcs state STOPPED

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

 

 

How to fix this problem ?

 

Regards,

Migrating App Volumes and Connection Server databases

$
0
0

Hi,

Has anyone migrated the databases App Volumes and the Connection Server to a new database server? I have not found anything on the web as yet.

Thanks!

Home Lab Buildout

$
0
0

Hey all,

 

I'd like to build out a vRA home lab setup.  I know some people have used those Intel NUC's, etc..  I'm looking to learn vRA...  Any recommendations or guides?

On Windows 2016 server is this possible?

$
0
0

Good morning! A user has requested a VMware server (win 2016) have a RAID installed?

Viewing all 178257 articles
Browse latest View live




Latest Images