Giter VIP home page Giter VIP logo

bosh-windows-stemcell-builder's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bosh-windows-stemcell-builder's Issues

AWS stemcell build should not require specific envvars

The AWS stemcell build task requires environment variables specific to IAM user access and doesn't support alternative forms of AWS authentication, including instance profiles and STS tokens. Rather than expecting a specific authentication method, the AWS task should delegate authentication to the SDK. This may be as simple as replacing

    client = S3::Client.new(
      aws_access_key_id: aws_access_key_id,
      aws_secret_access_key: aws_secret_access_key,
      aws_region: aws_region
    )

with

    client = S3::Client.new

cc @wjwoodson

Add HTTP proxy support to install windows updates

it would be great if Install-WindowsUpdates could take a flag that could allow you to specify http/https proxy to get out to the windows updates servers.

I ran into this in a client environment. As a temporary workaround I added
netsh winhttp set proxy proxy-server="http=proxy..com:80;https=proxy..com:80" bypass-list="*.noproxu.com"

as the fist command in the install-windowsUpdates function @ https://github.com/cloudfoundry-incubator/bosh-windows-stemcell-builder/blob/master/bosh-psmodules/modules/BOSH.WindowsUpdates/BOSH.WindowsUpdates.psm1#L41

windows2016 stemcells should turn off realtime malware scanning (and windows2012R2 if possible)

Leaving on Windows Defender realtime malware scanning introduces a large performance cost for windows2016 vms (especially those running containers during create and delete).

We would like to disable Windows Defender realtime malware scanning to mitigate this.

I'm not sure which part of the BOSH.CFCell module is the right place for this but we would like to add:

Set-MpPreference -DisableRealtimeMonitoring $true

To turn off realtime scanning on the windows2016 stemcell.

I am not sure if the same powershell module is available in the builtin modules for the windows2012R2 stemcell but if it is, it would be great to disable it there as well.

References:

Description text contains broken links

Broken links in:
This repo contains a set of scripts for automating the process of building BOSH Windows Stemcells. A [Concourse](http://concourse.ci/) [pipeline](https://github.com/cloudfoundry-incubator/greenhouse-ci/blob/master/bosh-windows-stemcells.yml) for the supported platforms (AWS, vSphere) can be found [here](https://main.bosh-ci.cf-app.com/pipelines/windows-stemcells).

404:
https://github.com/cloudfoundry-incubator/greenhouse-ci/blob/master/bosh-windows-stemcells.yml
not found?
https://main.bosh-ci.cf-app.com/pipelines/windows-stemcells

It's still very unclear to me how to create a windows stemcell on aws based on the documentation i've found.

Http/s proxy issues

Two issues:

Issue One:

Can quotes be added (my preference) or require all three varaibles? Currently, when the variables expand in ruby they are used in powershell without quoting so if you don't specify one then the params shift position when passed to the Set-ProxySettings function since it avoids spaces

https://github.com/cloudfoundry-incubator/bosh-windows-stemcell-builder/blob/7cf67af6c927b3b43db631e414a4faf412377153/lib/packer/config/provisioners.rb#L18

Current:

"Set-ProxySettings #{http_proxy} #{https_proxy} #{bypass_list}"
Variable values
  • http_proxy: "111.222.333.444"
  • https_proxy: ""
  • bypass_list: "some.domain;anotherdomain"
Expands to: Set-ProxySettings 111.222.333.444 some.domain;anotherdomain



Expected code:

"Set-ProxySettings \"#{http_proxy}\" \"#{https_proxy}\" \"#{bypass_list}\""
Variable values:
  • http_proxy: "111.222.333.444"
  • https_proxy: ""
  • bypass_list: "some.domain;anotherdomain"

Expands to:
Set-ProxySettings "111.222.333.444" "" "some.domain;anotherdomain"

Issue Two:
Invoke-WebRequest, which is used in the BOSH utils, does not seem to respect or use the proxy settings from netsh winhttp without explicitly using the -Proxy param. This might be due to the default powershell version on the VM being built (windows2012 in this case) and could behave differently in newer windows server version. Can the -Proxy param be used if proxy settings are specified?

To compensate for this I had to make a hack-type of change to the packer provisioning. I used the powershell/.net WebProxy every time the server was rebooted/restarted prior to executing any additional provisioning steps. The challenge is that now the ruby code has been updated in this Github to no longer specify the list/array of provisioners in provisioners.rb. Instead, it is now relying on the ERB template so my override needs to be done and maintained differently. Prior to these changes I had a fully operational stemcell provision/build process using vSphere, the jetbrains packer plugin, and concourse + custom ruby based off work done by Stark and Wayne. Essentially I continued on from https://www.pivotaltracker.com/n/projects/1479998/stories/154538547 and got it working.

Here is the example of my provisioning step.

def self.powershell_webproxy_restart_provisioner(command, timeout="1h")
{
'type' => 'windows-restart',
'restart_command' => "powershell.exe -Command [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;[system.net.webrequest]::defaultwebproxy = new-object system.net.webproxy(Get-Content c:\provision\proxyaddress);#{command}",
'restart_timeout' => "#{timeout}"
}
end

There was no easy way to set this value in ruby without hard-coding it since the provisioning vvalues in provisioners.rb didn't take any params from the calling code. So instead of modifying all of that every time it was needed, I made a copy of the existing function and modified it to the above.

The final step, as you could guess, was to have a custom provisioning step at the start to copy the proxyaddress file to c:\provision. That way it could be referenced across reboots until provisioning was complete. This is just one solution I came up with that could work and was verifiable on the cell during testing but might not be ideal.

Last notes:

  • When using either the -Proxy param or the WebProxy object for Invoke-WebRequest, credentials could be needed (not needed in our case).
  • Also, ensuring proper masking of those credentials in any stdout that ruby/powershell emit.
  • The bummer is that right after getting this all to work (in early October), the strategy this repo is using has changed drastically so I have to do a lot of this over again and figure out how to inject these changes. However if the proxy issues can be fixed then it is only extensibility that has been lost and I can use the updated ruby unedited without my mods to provisioners.rb. I think it would be more appropriate to tackle the extensibility discussion as it relates to this item in another post/comment, so I'll do that.

Thanks,

-Red

Enable w32time service and set to auto start in Install-CFFeatures2012

When the bosh agent starts up it sets NTP servers. If the w32time service is not started the agent will fail to start.

Suggest adding a check to BOSH.CFCell.psm1 to enable the service and set it to autostart like you do with WINRM https://github.com/cloudfoundry-incubator/bosh-windows-stemcell-builder/blob/master/bosh-psmodules/modules/BOSH.CFCell/BOSH.CFCell.psm1#L47

I think the new code would be

Write-Log "Setting Window Time startup type to automatic"
Get-Service | Where-Object {$_.Name -eq "w32time" } | Set-Service -StartupType Automatic
net start w32time

ESXi Compatibility for Windows2016

We are building a Windows2016 stemcell using vCenter. The directions say to "Select compatibility, ensure that you choose ESXi 6.0 and later" for Windows2016; however, the choice for Windows2016 only appears when we select ESXi 6.5 and use “hardware version 11.” Instructions probably just need to be updated to reflect that.

VM becomes unresponsive to bosh after reboot

Not sure if you realize this issue.

I tried a test to deploy a simple workload on Windows VM on Azure, it deployed successfully. The problem is that when I tried to restart the VM (via azure portal), the VMs became unresponsive forever and never came back to service.

guwe@guwecf0628:~/workspace/sample-go-windows-boshrelease$ bosh -e azure vms
Using environment '10.0.0.4' as client 'admin'

Task 967. Done

Deployment 'webapp'

Instance                                      Process State       AZ  IPs  VM CID
                   VM Type  Active
webapp1/56d68506-4ed6-4e0c-a9bf-fa9624a29b09  unresponsive agent  z2  -    agent_id:f95268c3-a067-4b09-ba9f-65c0ae2d2fe8;resource_gr
oup_name:guwe0628  small    true
webapp1/8452e005-bb6e-49ff-b7dc-0b74b492db0e  unresponsive agent  z1  -    agent_id:066b3e8d-6c9e-4c8e-84a3-fcf4b3b262a8;resource_gr
oup_name:guwe0628  small    true

2 vms

Succeeded

My env:

---
name: webapp

instance_groups:
- name: webapp1
  azs: [z1, z2, z3]
  instances: 2
  vm_type: small
  stemcell: windows1803
  networks:
    - name: default
      default: [gateway, dns]
    #- name: network2
  jobs:
  - name: simple-go-web-app
    release: sample-go-windows
    properties:
      port: 3000


variables: []

stemcells:
- alias: windows
  os: windows2012R2
  version: latest
- alias: "windows1803"
  os: "windows1803"
  version: "1803.2"

update:
  canaries: 1
  canary_watch_time: 1000-120000
  update_watch_time: 1000-120000
  max_in_flight: 1
  serial: false

releases:
- name: sample-go-windows
  version: 1.0.0
  url: https://github.com/cloudfoundry-community/sample-go-windows-boshrelease/releases/download/v1.0.0/sample-go-windows-1.0.0.tgz
  sha1: 7d15b2bd43acf849fac5f6ec805e0b6cfa1b9bb5

I believe the VM was up because it had response to RDP. Maybe there is an issue with bosh-agent, however, I don't have a credential to login to VM to check.

Windows 2019 stemcell could only be created using a vmdk set to use BIOS

Using: VMWare Workstation
Context: Step 1

When the VM was created with firmware type set to UEFI (which is the default option if you follow along the create-a-vm process on VMWare Workstation), the final stemcell would not boot. It hung on "Operating system not found".

When the same process was repeated with firmware type set to BIOS, a bootable stemcell was successfully created. It would be good idea to add this in the wiki!

HTTP(S)_PROXY env vars causing 504's connecting to WinRM

The latest version of Packer now obeys the semi-standard environment variables for HTTP(s) proxies. This creates interesting problems when creating a Windows stemcell in VMWare Workstation and the host computer sits behind a corporate proxy.

When behind a proxy and you run the create-vsphere-stemcell.rb script it does a bundle install which reaches out to the internet, i.e. Rubygems.org. This will fail unless you set the following env vars to your proxy: HTTP_PROXY and HTTPS_PROXY. Once those are set you should be able to bundle install, however you run into a new problem with Packer.

Packer as of version 0.12.3 now uses these environment variables as supported in the upstream winrm lib. This causes the build to hang for the 8m winrm timeout and then finally fail because it cannot connect to winrm on the guest. Enable Packer debug logging PACKER_LOG=1 you might see 504 error responses from the Proxy or perhaps some other nonsense.

Now if you clear the HTTP_PROXY and HTTPS_PROXY env vars and re-run the script again, it'll now work properly because it has all the gems properly cached and can correctly connect to the guest VM without going through a proxy.

Add support for S3 compatible storage to rake tasks

rake build:vsphere_add_updates and rake build:vsphere have a hardcoded dependency to use amazon S3 to push and pull files. Some environments have internal S3 compatible offerings that can be leveraged for this. I have a fork that supports this and would happy to pair with the team to have it pulled in.

2019 Stemcell Build Failing - DISM Related Failure

We are suddenly getting a DISM related failure every time we execute our 2019 Stemcell build pipeline in Concourse:

Could not prepare VM: unknown error Post http://<IP_address>:5985/wsman: read tcp <IP_address>:58604-><IP_address>:5985: read: connection reset by peer

In the VM, we can see that the c:\provision\log.log file shows this:

Error: Running Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
Dism.exe failed
Failed to clean up the VM's disk. See 'c:\provision\log.log' for more info
Failed to prepare the VM. See 'c:\provisions\log.log' for more info.

Lastly, in the actual DISM log c:\windows\logs\dism.log we see:

Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800f0806)
The operation could not be completed due to pending operations. - GetCbsErrorMsg
Failed processing package changes - CDISMPackageManager::StartComponentCleanupEx(hr:0x800f0806)
The operation could not be completed due to pending operations. - GetCbsErrorMsg
Failed to start component cleanup. - CPackageManagerCLIHandler::ProcessCmdLine_CleanupImage(hr:0x800f0806)
Failed while processing command clenaup-image. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f0806)

This process worked fine for the previous several months of stemcells.

Windows Stemcell Size too large

The size of the windows stemcell created is around 11 GB which is when uploaded to BOSH director gives error that the stemcell size is too large.!!

The data area passed to a system call is too small

im trying to use the windows-stemcell builder with https://github.com/jetbrains-infra/packer-builder-vsphere

and i keep running in to this error when its starting to install the OpenSSH-Win64.zip

the template is windows 2012 r2 with the latest updates
using the latest bosh-psmodules.zip and agent.zip

does anyone here have a idea?

2017/08/17 13:43:23 [INFO] (telemetry) Starting provisioner powershell
1502977403,,ui,say,==> vsphere: Provisioning with Powershell...
2017/08/17 13:43:23 packer: 2017/08/17 13:43:23 Found command: $ErrorActionPreference = "Stop";
2017/08/17 13:43:23 packer: 2017/08/17 13:43:23 Found command: trap { $host.SetShouldExit(1) }
2017/08/17 13:43:23 packer: 2017/08/17 13:43:23 Found command: Install-SSHD -SSHZipFile 'C:\provision\OpenSSH-Win64.zip'
1502977403,,ui,say,==> vsphere: Provisioning with shell script: /tmp/packer-powershell-provisioner116706102
2017/08/17 13:43:23 packer: 2017/08/17 13:43:23 Opening /tmp/packer-powershell-provisioner116706102 for reading
2017/08/17 13:43:23 packer: 2017/08/17 13:43:23 Building command line for: if (Test-Path variable:global:ProgressPreference){$ProgressPreference='SilentlyContinue'};$env:PACKER_BUILDER_TYPE="vsphere"; $env:PACKER_BUILD_NAME="vsphere"; &'c:/Windows/Temp/script.ps1';exit $LastExitCode
2017/08/17 13:43:23 packer: 2017/08/17 13:43:23 [INFO] 123 bytes written for 'uploadData'
2017/08/17 13:43:23 [INFO] 123 bytes written for 'uploadData'
2017/08/17 13:43:23 packer-builder-vsphere.linux: 2017/08/17 13:43:23 Uploading file to 'c:/Windows/Temp/script.ps1'
2017/08/17 13:43:24 packer-builder-vsphere.linux: 2017/08/17 13:43:24 [INFO] starting remote command: powershell -executionpolicy bypass -encodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAJABlAG4AdgA6AFAAQQBDAEsARQBSAF8AQgBVAEkATABEAEUAUgBfAFQAWQBQAEUAPQAiAHYAcwBwAGgAZQByAGUAIgA7ACAAJABlAG4AdgA6AFAAQQBDAEsARQBSAF8AQgBVAEkATABEAF8ATgBBAE0ARQA9ACIAdgBzAHAAaABlAHIAZQAiADsAIAAmACcAYwA6AC8AVwBpAG4AZABvAHcAcwAvAFQAZQBtAHAALwBzAGMAcgBpAHAAdAAuAHAAcwAxACcAOwBlAHgAaQB0ACAAJABMAGEAcwB0AEUAeABpAHQAQwBvAGQAZQA=
2017/08/17 13:43:25 packer-builder-vsphere.linux: 2017/08/17 13:43:25 [INFO] command 'powershell -executionpolicy bypass -encodedCommand aQBmACAAKABUAGUAcwB0AC0AUABhAHQAaAAgAHYAYQByAGkAYQBiAGwAZQA6AGcAbABvAGIAYQBsADoAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAKQB7ACQAUAByAG8AZwByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAnAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAJwB9ADsAJABlAG4AdgA6AFAAQQBDAEsARQBSAF8AQgBVAEkATABEAEUAUgBfAFQAWQBQAEUAPQAiAHYAcwBwAGgAZQByAGUAIgA7ACAAJABlAG4AdgA6AFAAQQBDAEsARQBSAF8AQgBVAEkATABEAF8ATgBBAE0ARQA9ACIAdgBzAHAAaABlAHIAZQAiADsAIAAmACcAYwA6AC8AVwBpAG4AZABvAHcAcwAvAFQAZQBtAHAALwBzAGMAcgBpAHAAdAAuAHAAcwAxACcAOwBlAHgAaQB0ACAAJABMAGEAcwB0AEUAeABpAHQAQwBvAGQAZQA=' exited with code: 1
2017/08/17 13:43:25 packer-builder-vsphere.linux: 2017/08/17 13:43:25 [INFO] RPC endpoint: Communicator ended with: 1
1502977405,,ui,message,    vsphere:
2017/08/17 13:43:25 [INFO] 960 bytes written for 'stderr'
2017/08/17 13:43:25 [INFO] 19825 bytes written for 'stdout'
2017/08/17 13:43:25 [INFO] RPC client: Communicator ended with: 1
2017/08/17 13:43:25 [INFO] RPC endpoint: Communicator ended with: 1
2017/08/17 13:43:25 packer: 2017/08/17 13:43:25 [INFO] 960 bytes written for 'stderr'
1502977405,,ui,message,    vsphere: The data area passed to a system call is too small.
1502977405,,ui,message,    vsphere:
1502977405,,ui,message,    vsphere: Directory: C:\Program Files
1502977405,,ui,message,    vsphere:
1502977405,,ui,message,    vsphere:
1502977405,,ui,message,    vsphere: Mode                LastWriteTime     Length Name
1502977405,,ui,message,    vsphere: ----                -------------     ------ ----
1502977405,,ui,message,    vsphere: #< CLIXML
1502977405,,ui,message,    vsphere: d----         8/17/2017   6:43 AM            SSHTemp
1502977405,,ui,message,    vsphere: 2017-08-17T06:43:25.2998183-07:00 Unzipping: C:\provision\OpenSSH-Win64.zip to C:\Program Files\SSHTemp
1502977405,,ui,message,    vsphere: 2017-08-17T06:43:25.4873262-07:00 Protect-Dir: Remove BUILTIN\Users
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\bin
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\docs
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\etc
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\OpenSSH-Win64
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\openssh.url
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\tmp
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\uninstall.exe
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\usr
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\var
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\bash.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\chmod.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\chown.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygasn1-8.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygattr-1.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygcom_err-2.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygcrypt-0.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygcrypto-1.0.0.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygedit-0.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cyggcc_s-seh-1.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cyggssapi-3.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cyggssapi_krb5-2.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cyghdb-9.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygheimbase-1.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygheimntlm-0.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cyghx509-5.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygiconv-2.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygintl-8.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygk5crypto-3.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygkadm5clnt-7.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygkadm5srv-8.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygkafs-0.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygkrb5-3.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygkrb5support-0.dll
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\bin\cyglsa
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygncursesw-10.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygreadline7.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygroken-18.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygrunsrv.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygsqlite3-0.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygssp-0.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygwin1.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygwind-0.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cygz.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\editrights.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\false.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\junction.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\last.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\ls.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\md5sum.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\mkdir.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\mkgroup.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\mkpasswd.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\mv.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\quietcmd.bat
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\rm.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\scp.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\sftp.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\sh.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\sha1sum.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\ssh-add.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\ssh-agent.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\ssh-host-config
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\ssh-keygen.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\ssh-keyscan.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\ssh.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\switch.c
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\switch.exe
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\bin\cyglsa\cyglsa64.dll
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\CREDITS
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\cygwin-GPL.txt
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\last-copyright.txt
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\LICENCE
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\openssh-license.txt
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\OVERVIEW
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\PROTOCOL
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\PROTOCOL.agent
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\PROTOCOL.certkeys
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\PROTOCOL.mux
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\README
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\README.dns
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\README.platform
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\README.privsep
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\README.tun
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\scp-manual.htm
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\sftp-manual.htm
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\sftp-server-manual.htm
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\ssh-add-manual.htm
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\ssh-agent-manual.htm
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\ssh-keygen-manual.htm
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\ssh-keyscan-manual.htm
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\ssh-manual.htm
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\sshd-config-manual.htm
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\docs\sshd-manual.htm
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\etc\banner.txt
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\etc\group
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\etc\moduli
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\etc\passwd
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\etc\sshd_config
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\etc\ssh_config
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\etc\ssh_host_dsa_key
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\etc\ssh_host_dsa_key.pub
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\etc\ssh_host_ecdsa_key
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\etc\ssh_host_ecdsa_key.pub
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\etc\ssh_host_rsa_key
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\etc\ssh_host_rsa_key.pub
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5 Classic
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\Administrator
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\All Users
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\Default
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\Default User
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\home\desktop.ini
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\Public
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\sshd_server
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Application Data
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Cookies
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Desktop
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Documents
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Downloads
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Favorites
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Links
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Local Settings
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Music
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\My Documents
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\NetHood
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\home\.NET v4.5\NTUSER.DAT
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\home\.NET v4.5\ntuser.dat.LOG1
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\home\.NET v4.5\ntuser.dat.LOG2
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\home\.NET v4.5\NTUSER.DAT{8901c074-71dd-11e4-80c1-0026b94a1097}.TM.blf
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\home\.NET v4.5\NTUSER.DAT{8901c074-71dd-11e4-80c1-0026b94a1097}.TMContainer00000000000000000001.regtrans-ms
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\home\.NET v4.5\NTUSER.DAT{8901c074-71dd-11e4-80c1-0026b94a1097}.TMContainer00000000000000000002.regtrans-ms
1502977405,,ui,message,    vsphere: processed file: C:\Program Files\OpenSSH\home\.NET v4.5\ntuser.ini
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Pictures
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\PrintHood
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Recent
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Saved Games
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\SendTo
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Start Menu
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Templates
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\Videos
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\LocalLow
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Roaming
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\History
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Microsoft
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Temp
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Temporary Internet Files
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\History
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Microsoft
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Temp
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Temporary Internet Files
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\History
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Microsoft
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Temp
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Temporary Internet Files
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\History
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Microsoft
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Temp
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Temporary Internet Files
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\History
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Microsoft
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Temp
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Temporary Internet Files
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\History
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Microsoft
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Temp
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Temporary Internet Files
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\History
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Microsoft
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Temp
1502977405,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Temporary Internet Files
1502977406,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data
1502977406,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\History
1502977406,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Microsoft
1502977406,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Temp
1502977406,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Temporary Internet Files
1502977406,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data
1502977406,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\History
1502977406,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Microsoft
2017/08/17 13:43:26 packer: 2017/08/17 13:43:26 [INFO] 19825 bytes written for 'stdout'
2017/08/17 13:43:26 packer: 2017/08/17 13:43:26 [INFO] RPC client: Communicator ended with: 1
1502977406,,ui,message,    vsphere: processed dir: C:\Program Files\OpenSSH\home\.NET v4.5\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Temp
1502977406,,ui,message,    vsphere: <Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><S S="Error">Error setting ACL for C:\Program Files\OpenSSH exited with 122_x000D__x000A_</S><S S="Error">At C:\Program Files\WindowsPowerShell\Modules\BOSH.Utils\BOSH.Utils.psm1:93 _x000D__x000A_</S><S S="Error">char:9_x000D__x000A_</S><S S="Error">+         Throw "Error setting ACL for $path exited with $LASTEXITCODE"_x000D__x000A_</S><S S="Error">+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error">    + CategoryInfo          : OperationStopped: (Error setting A...exited with _x000D__x000A_</S><S S="Error">    122:String) []%!(PACKER_COMMA) RuntimeException_x000D__x000A_</S><S S="Error">    + FullyQualifiedErrorId : Error setting ACL for C:\Program Files\OpenSSH e _x000D__x000A_</S><S S="Error">   xited with 122_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>

In-place Agent Upgrades

When trying to upgrade the agent, by default the LGPO settings cannot be overwritten, so you have to delete C:\bosh\lgpo.

Can we add a flag to the Powershell scripts that will overwrite the LGPO settings? This is important from a CI perspective, for customers which cannot use the MSDN ISO for varying business reasons.

For example, a 🛬 company cannot use the MSDN ISO, so they have a golden server that runs to receive updates and configuration changes, and the agent is reinstalled every time to make sure it's current when they want to build a new stemcell. So the CI aspect of installing or reinstalling the most recent agent version is very important.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.