Vagrant 1.8.4로 구성된 Hyper-V VM이 있는데 "vagrant powershell"명령을 사용하여 시작하려고합니다. VM에 퍼핏 (인형 사용) 된 스크립트. 일부 디렉토리는 C : \ users \ vagrant와 같이 쉽게 액세스 할 수 있습니다. 나는이 폴더와 모든 후속 디렉토리에 대한 완전한 통제권을 가지고있다. 스크립트를 시작하거나 'dir'명령을 사용하여 일부 폴더에 액세스하려고 할 때마다 "permission denied"라는 오류 메시지가 나타납니다. 명령 : 여기 Hyper-V VM (Vagrant 버전 1.8.4)에 대한 Vagrant Powershell 문제 * 사용 권한 거부 *
간단한 " '\ 제공 \ 쉘 C'-c 방랑 PowerShell을"의 출력vagrant : The following WinRM command responded with a non-zero exit status.
+ CategoryInfo : NotSpecified: (The following W...ro exit status.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Vagrant assumes that this means the command failed!
dir 'C:\provision\shell'
Stdout from the command:
Stderr from the command:
#< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><S S="Error">dir : Access to the
path 'C:\provision\shell' is denied._x000D__x000A_</S><S S="Error">At line:1 char:40_x000D__x000A_</S><S
S="Error">+ $ProgressPreference='SilentlyContinue';dir 'C:\provision\shell'_x000D__x000A_</S><S S="Error">+
~~~~~~~~~~~~~~~~~~~~~~~~_x000D__x000A_</S><S S="Error"> + CategoryInfo :
PermissionDenied: (C:\provision\shell:String) [Get-ChildItem], UnauthorizedAccessExcepti _x000D__x000A_</S><S
S="Error"> on_x000D__x000A_</S><S S="Error"> + FullyQualifiedErrorId :
DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand_x000D__x000A_</S><S S="Error">
_x000D__x000A_</S></Objs>
누군가가 내가 무엇입니까 왜 저를 알아내는 데 도움 수 있다면이 "권한 거부" 오류, 그것은 큰 것입니다!
도움을 주시면 감사하겠습니다.
글쎄, 필자는 공유 폴더에 원격으로 액세스 할 수없는 이유를 찾지 못했습니다 ... ** 그러나 ** 공유 폴더의 내용을 내가 가지고있는 디렉토리에 복사 한 스크립트를 제공 할 수있었습니다 ** 에 대한 액세스. 조금 추악하고 세련되지 않지만 작동합니다. –