Unattended install of Visual Studio fails during the installation of SQL 
Server.  This appears to be due to the vagrant user not being able to use 
the CryptProtectData API when running via WinRM. Running the same 
unattended install while logged onto the guest as vagrant succeeds.

This appears to be related to CredSSP as discussed 
in https://tickets.opscode.com/browse/COOK-1172, which appears to have been 
fixed https://github.com/WinRb/vagrant-windows/issues/16

1) Do I have set CredSSP up on the guest box correctly? (see winrm config 
below)
2) Is there anything I need to specify in my Vagrantfile (or, preferalby 
.kitchen.yml) to get this to work?


Vagrant 1.7.2

kitchen-vagrant (0.16.0)

vagrant-cachier (1.2.0)

vagrant-share (1.1.3, system)

vagrant-vmware-fusion (3.2.5)

vagrant-winrm (0.7.0)


 On Guest: (Guest is Windows Server 2008 R2 Enterprise Service Pack 1)

Windows PowerShell

Copyright (C) 2009 Microsoft Corporation. All rights reserved.


PS C:\Users\vagrant> winrm get winrm/config

Config

    MaxEnvelopeSizekb = 150

    MaxTimeoutms = 1800000

    MaxBatchItems = 32000

    MaxProviderRequests = 4294967295

    Client

        NetworkDelayms = 5000

        URLPrefix = wsman

        AllowUnencrypted = false

        Auth

            Basic = true

            Digest = true

            Kerberos = true

            Negotiate = true

            Certificate = true

            CredSSP = true [Source="GPO"]

        DefaultPorts

            HTTP = 5985

            HTTPS = 5986

        TrustedHosts = * [Source="GPO"]

    Service

        RootSDDL = 
O:NSG:BAD:P(A;;GA;;;BA)S:P(AU;FA;GA;;;WD)(AU;SA;GWGX;;;WD)

        MaxConcurrentOperations = 4294967295

        MaxConcurrentOperationsPerUser = 15

        EnumerationTimeoutms = 60000

        MaxConnections = 25

        MaxPacketRetrievalTimeSeconds = 120

        AllowUnencrypted = true

        Auth

            Basic = true

            Kerberos = true

            Negotiate = true

            Certificate = false

            CredSSP = true [Source="GPO"]

            CbtHardeningLevel = Relaxed

        DefaultPorts

            HTTP = 5985

            HTTPS = 5986

        IPv4Filter = *

        IPv6Filter = *

        EnableCompatibilityHttpListener = false

        EnableCompatibilityHttpsListener = false

        CertificateThumbprint

    Winrs

        AllowRemoteShellAccess = true

        IdleTimeout = 180000

        MaxConcurrentUsers = 5

        MaxShellRunTime = 2147483647

        MaxProcessesPerShell = 15

        MaxMemoryPerShellMB = 512

        MaxShellsPerUser = 5


SQL Setup Error:

Loaded DLL:c:\867bf4eabd84ae7cf3790a83657144\xmlrw.dll Version:2.0.3609.0

Complete: ParseBootstrapOptionsAction at: 2015/5/11 22:42:11, returned false

Error: Action "ParseBootstrapOptionsAction" failed during execution.  Error 
information reported during run:

Could not parse command line due to datastore exception.

  Source File Name: utillib\persisthelpers.cpp

Compiler Timestamp: Wed Jun 14 16:30:14 2006

     Function Name: writeEncryptedString

Source Line Number: 124

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

writeEncryptedString() failed

  Source File Name: utillib\persisthelpers.cpp

Compiler Timestamp: Wed Jun 14 16:30:14 2006

     Function Name: writeEncryptedString

Source Line Number: 123

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

        Error Code: 0x80070005 (5)

Windows Error Text: Access is denied.

  Source File Name: cryptohelper\cryptsameusersamemachine.cpp

Compiler Timestamp: Wed Jun 14 16:28:04 2006

     Function Name: sqls::CryptSameUserSameMachine::ProtectData

Source Line Number: 50

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to