Without knowing specifics - I've not used the hyper-v builder, this sounds 
like you have hit the 'second hop' authentication issue where, by design, 
windows doesn't allow use of resources (like file shares, printers) when 
you are running from a remote machine via winrm. There are some ways round 
this but I don't yet know enough about packer to know if packer is able to 
work around them (I discovered this using ansible).

Another possiblity is that the drive isn't visible due to session isolation 
- similar to what is described here: 
https://github.com/ansible/ansible/issues/33929#issuecomment-355400903

Sorry, none of the above is really an answer but some ideas of things to 
investigate.

Jon
On Wednesday, April 18, 2018 at 5:44:16 AM UTC+1, Robert Moore wrote:
>
> Hi, i'm using packer 1.2.2 with a hyper-v builder.
> I've successfully mapped a drive at windows startup. When I interact with 
> the vm from the console I can see this drive but I cannot get my packer 
> scripts to see this mapped drive. 
> -be it powershell: 'Copy-Item : Cannot find drive. A drive with the name 
> 'S' does not exist.'
> -or shell-local: 'Invalid drive specification'
>
> I've verified that the packer scripts are only running after the map drive 
> has actually happened
>
> any ideas?
> thanks 
>
>
>
>
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/040df34d-ae6e-4495-a677-18067750ac7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to