DraK-KarD's Posts

It seems the ticket went to the Engineer, and they will provide a fix. I'm a bit surprise from their answer.
It seems that we found the culprit. It's the suffix DNS, the client wants à suffix with multiples dots like a.b.c.d We changed to c.d and the install ended successfully.  
The only error I fond regarding Content-Library service is in the content-library-runtime.log.stderr Error is : Exception in thread "main" org.springframework.beans.factory.BeanCreationException: E... See more...
The only error I fond regarding Content-Library service is in the content-library-runtime.log.stderr Error is : Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'vmTemplateMinitor': Invocation of init method failed; nested exception is java.lang.NullPointerException.
Hello Kinnison, yeah it's for production environment . We're building the virtual environment and we're stuck at this stage. We have sent already support-bundle to VMware support, but since friday... See more...
Hello Kinnison, yeah it's for production environment . We're building the virtual environment and we're stuck at this stage. We have sent already support-bundle to VMware support, but since friday no answer. So I try here for some idea.
Hello all, I'm trying to install or deploy VCSA v8.0.1.21560480 on ESXi v8.0.1.update1-21495797. Every time it failed at 92% in stage 2 when it try to start the Content-Library service. DNS is OK ... See more...
Hello all, I'm trying to install or deploy VCSA v8.0.1.21560480 on ESXi v8.0.1.update1-21495797. Every time it failed at 92% in stage 2 when it try to start the Content-Library service. DNS is OK for ESXi et VCSA, direct and reverse.   Any idea ?
Hello Luc, thank you for your answer who pointed me to my idiotic way of doing thing. In fact I can reset the administrator password in the OSCustomizationSpec,  use this account and normally I wil... See more...
Hello Luc, thank you for your answer who pointed me to my idiotic way of doing thing. In fact I can reset the administrator password in the OSCustomizationSpec,  use this account and normally I will not face the problem again. I'll try it asap
Hello all, actually I'm trying to deploy VM Windows. And I'm stuck with some problems. At first I couldn't connect to domain, flow were filtered, so I was using the option GuiRunOnce that was runni... See more...
Hello all, actually I'm trying to deploy VM Windows. And I'm stuck with some problems. At first I couldn't connect to domain, flow were filtered, so I was using the option GuiRunOnce that was running some powershell commands. It was working well. Now flow are opened, and GuiRunOnce is not working until I open session, but I don't want to do it, so I converted the command from GuiRunOnce to invoke-VMScript, one invoke for one command. But during the deployment, the Invoke seems not working nothing done on the VM, but if I run the same invoke from a powershell console it works. I must say that from the deployment script I update VMtools before calling the invoke. Also, I have tryed to not join the domain at the OSCustomizationSpec, by setting domain to null the same for credential, but the deployment failed in this case. Any idea, recommendation ? Thanks in advance. Ben
I'll make this thread as solved. Thank you Luc for your time and help !!!
Funny, now, that I found that a proxy was configured, and I set a bypass for the ESXi, the command Invoke-VMScript works. But your version still failed.
So, from IE, the error messge is : DLG_FLAGS_INVALID_CA from Powershell, the error message is : The remote certificate is invalid because of errors in the certificate chain: PartialChain ( And I ... See more...
So, from IE, the error messge is : DLG_FLAGS_INVALID_CA from Powershell, the error message is : The remote certificate is invalid because of errors in the certificate chain: PartialChain ( And I found that a proxy was lastly configured on the JumpBox where I run scripts, that explain the "127.0.0.1:80" ) So the certificate that my colleagues have installed seems bad.  
  Hello Luc, the ESXi version is : VMware ESXi, 8.0.0, 21203435 My bad... I forgot to change to update the context, In new console I got what your wanted : VERBOSE: 26/04/2023 08:36:59 Get-Vie... See more...
  Hello Luc, the ESXi version is : VMware ESXi, 8.0.0, 21203435 My bad... I forgot to change to update the context, In new console I got what your wanted : VERBOSE: 26/04/2023 08:36:59 Get-View Finished execution VERBOSE: 26/04/2023 08:36:59 Get-View Finished execution VERBOSE: 26/04/2023 08:36:59 Get-View Finished execution VERBOSE: 26/04/2023 08:36:59 Get-View Finished execution VERBOSE: No GuestOSType value provided. Trying to determine now. VERBOSE: It's a Windows guest OS VERBOSE: Created temp folder in guest OS C:\Users\deploy\AppData\Local\Temp\myAccount_17704vmware76 VERBOSE: Created temp script file in guest OS C:\Users\deploy\AppData\Local\Temp\myAccount_17704vmware76\myAccount_17704vmware181.ps1 VERBOSE: Created temp output file in guest OS C:\Users\deploy\AppData\Local\Temp\myAccount_17704vmware76\myAccount_17704_outputvmware159 VERBOSE: File transfer location https://hypsrvesx01.lz2.dom:443/guestFile?id=136&token=52467ed1-b7f8-5e76-5a6e-5b47cd44866b136 VERBOSE: hypsrvesx01.lz2.dom Select-Object: C:\Users\myAccount\Documents\tst\Scripts\Invoke-VMScriptPlus.ps1:220 Line | 220 | … = Resolve-DnsName -Name $ip | Select-Object -ExpandProperty NameHost | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Property "NameHost" cannot be found. VERBOSE: Copying Data to C:\Users\deploy\AppData\Local\Temp\myAccount_17704vmware76\myAccount_17704vmware181.ps1 Invoke-WebRequest: C:\Users\myAccount\Documents\tst\Scripts\Invoke-VMScriptPlus.ps1:224 Line | 224 | $copyResult = Invoke-WebRequest -Uri $fileInfo -Method Pu … | ~~~~~~~~~ | Cannot bind parameter 'Uri'. Cannot convert value | "https://:443/guestFile?id=136&token=52467ed1-b7f8-5e76-5a6e-5b47cd44866b136" to type "System.Uri". Error: | "Invalid URI: The hostname could not be parsed." Exception: C:\Users\myAccount\Documents\tst\Scripts\Invoke-VMScriptPlus.ps1:227 Line | 227 | … Throw "ScripText copy failed!`rStatus $($copyResult.Statu … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ScripText copy failed!Status
Yes exactly, I changed the script like below : 213 $attr = New-Object VMware.Vim.GuestFileAttributes 214 $clobber = $true 215 $fileInfo = $gFileMgr.InitiateFileTransferToGuest($moref, $auth, $Fil... See more...
Yes exactly, I changed the script like below : 213 $attr = New-Object VMware.Vim.GuestFileAttributes 214 $clobber = $true 215 $fileInfo = $gFileMgr.InitiateFileTransferToGuest($moref, $auth, $File, $attr, $Data.Length, $clobber) 216 Write-Verbose "File transfer location $fileInfo" 217 if ($NoIPinCert.IsPresent) 218 {
Below the result :   VERBOSE: 25/04/2023 23:09:38 Get-View Finished execution VERBOSE: 25/04/2023 23:09:38 Get-View Finished execution VERBOSE: 25/04/2023 23:09:38 Get-View Finished execution VE... See more...
Below the result :   VERBOSE: 25/04/2023 23:09:38 Get-View Finished execution VERBOSE: 25/04/2023 23:09:38 Get-View Finished execution VERBOSE: 25/04/2023 23:09:38 Get-View Finished execution VERBOSE: 25/04/2023 23:09:38 Get-View Finished execution VERBOSE: No GuestOSType value provided. Trying to determine now. VERBOSE: It's a Windows guest OS VERBOSE: Created temp folder in guest OS C:\Users\deploy\AppData\Local\Temp\myAccount_1460vmware42 VERBOSE: Created temp script file in guest OS C:\Users\deploy\AppData\Local\Temp\myAccount_1460vmware42\myAccount_1460vmware177.ps1 VERBOSE: Created temp output file in guest OS C:\Users\deploy\AppData\Local\Temp\myAccount_1460vmware42\myAccount_1460_outputvmware255 VERBOSE: hypsrvesx01.lz2.dom Select-Object: C:\Users\myAccount\Documents\tst\Scripts\Invoke-VMScriptPlus.ps1:219 Line | 219 | … = Resolve-DnsName -Name $ip | Select-Object -ExpandProperty NameHost | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Property "NameHost" cannot be found. VERBOSE: Copying Data to C:\Users\deploy\AppData\Local\Temp\myAccount_1460vmware42\myAccount_1460vmware177.ps1 Invoke-WebRequest: C:\Users\myAccount\Documents\tst\Scripts\Invoke-VMScriptPlus.ps1:223 Line | 223 | $copyResult = Invoke-WebRequest -Uri $fileInfo -Method Pu … | ~~~~~~~~~ | Cannot bind parameter 'Uri'. Cannot convert value | "https://:443/guestFile?id=133&token=52c79fd9-6fb6-c7e3-24d9-4a5ee41f9f41133" to type "System.Uri". Error: | "Invalid URI: The hostname could not be parsed." Exception: C:\Users\myAccount\Documents\tst\Scripts\Invoke-VMScriptPlus.ps1:226 Line | 226 | … Throw "ScripText copy failed!`rStatus $($copyResult.Statu … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ScripText copy failed!Status
Luc, I just tryed the NoIPinCert, but got the error message : Select-Object: C:\Users\myAccount\Documents\tst\Scripts\Invoke-VMScriptPlus.ps1:219 Line | 219 | … = Resolve-DnsName -Name $ip | Sele... See more...
Luc, I just tryed the NoIPinCert, but got the error message : Select-Object: C:\Users\myAccount\Documents\tst\Scripts\Invoke-VMScriptPlus.ps1:219 Line | 219 | … = Resolve-DnsName -Name $ip | Select-Object -ExpandProperty NameHost | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Property "NameHost" cannot be found. VERBOSE: Copying Data to C:\Users\Deploy\AppData\Local\Temp\myAccount_1460vmware56\myAccount_1460vmware43.ps1 Invoke-WebRequest: C:\Users\myAccount\Documents\tst\Scripts\Invoke-VMScriptPlus.ps1:223 Line | 223 | $copyResult = Invoke-WebRequest -Uri $fileInfo -Method Pu … | ~~~~~~~~~ | Cannot bind parameter 'Uri'. Cannot convert value | "https://:443/guestFile?id=126&token=52c66c60-5ca0-fec9-90c7-11f9b419d67c126" to type "System.Uri". Error: | "Invalid URI: The hostname could not be parsed." Exception: C:\Users\myAccount\Documents\tst\Scripts\Invoke-VMScriptPlus.ps1:226 Line | 226 | … Throw "ScripText copy failed!`rStatus $($copyResult.Statu … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ScripText copy failed!Status If I execute the Resolve-DnsName manually it works with 2 answers there is an alias for the ESXi. Do you have any idea ?
Hello Luc,   thanks for your help, I have just tested your fonction and got same result, but as there is a "but" I have seens that, the function was able to connect to the VM create both output... See more...
Hello Luc,   thanks for your help, I have just tested your fonction and got same result, but as there is a "but" I have seens that, the function was able to connect to the VM create both output file ( empty ) and .ps1 file ( empty also ). Below the result : VERBOSE: 25/04/2023 08:05:58 Get-View Finished execution VERBOSE: 25/04/2023 08:05:58 Get-View Finished execution VERBOSE: 25/04/2023 08:05:58 Get-View Finished execution VERBOSE: 25/04/2023 08:05:59 Get-View Finished execution VERBOSE: No GuestOSType value provided. Trying to determine now. VERBOSE: It's a Windows guest OS VERBOSE: Created temp folder in guest OS C:\Users\Deploy\AppData\Local\Temp\myAccount_1460vmware100 VERBOSE: Created temp script file in guest OS C:\Users\Deploy\AppData\Local\Temp\myAccount_1460vmware100\myAccount_1460vmware31.ps1 VERBOSE: Created temp output file in guest OS C:\Users\Deploy\AppData\Local\Temp\myAccount_1460vmware100\myAccount_1460_outputvmware69 VERBOSE: Copying Data to C:\Users\Deploy\AppData\Local\Temp\myAccount_1460vmware100\myAccount_1460vmware31.ps1 VERBOSE: HTTP/1.1 PUT with 11-byte payload Invoke-WebRequest: C:\Users\myAccount\Documents\tst\Scripts\Invoke-VMScriptPlus.ps1:223 Line | 223 | … copyResult = Invoke-WebRequest -Uri $fileInfo -Method Put -Body $Data | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée. Exception: C:\Users\myAccount\Documents\tst\Scripts\Invoke-VMScriptPlus.ps1:226 Line | 226 | … Throw "ScripText copy failed!`rStatus $($copyResult.Statu … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ScripText copy failed!Status   And I saw also that when I was testing the invoke-VMscript function in this way : Invoke-VMScript -ScriptType Powershell -scriptText "New-Item -ItemType Directory -Path 'C:\Test'" -VM tstW2019 -GuestUser Administrateur -GuestPassword "ThePass" -Verbose The folder was created, but the function was returning the error anyway. So, in both case the function was able to connect to the VM, then do something on the VM and then got an error. Any idea ?
Hello, I'm trying to run a basic command with the Invoke-VMScript on a Windows 2019 VM that is actually out of domain AD. Invoke-VMScript -VM tstW2019 -ScriptText "Get-Process" -GuestUser Deploy -G... See more...
Hello, I'm trying to run a basic command with the Invoke-VMScript on a Windows 2019 VM that is actually out of domain AD. Invoke-VMScript -VM tstW2019 -ScriptText "Get-Process" -GuestUser Deploy -GuestPassword "thePass" -Verbose Everytime I got the error message : Invoke-VMScript A connection could not be established because the target computer expressly refused it. (127.0.0.1:80) The credentials are fine as I can logon locally on server with them. On Windows, I don't see any logon error, I see some LogonType 4 granted or vmtoolsd validated credentials. Any idea of what I'm missing to make it work