VMware Cloud Community
Grzesiekk
Expert
Expert

copy-vmguestfile when sourcevm is linux and user auth comes from AD.

Hi all, quickquestion, has onyone seen an issue with copy-vmguestfile to get file from linux vm, to local disk(windows), when the guestcredential is a user on active directory ?

Copy-VMGuestFile -GuestToLocal -VM $myvm -HostUser 'root' -HostPassword 'mypass' -GuestCredential (get-credential) -Source '/tmp/newtestfile' -Destination 'c:\scripts\commands' -Verbose:$true

i tried: greg // pass , gregk@domain.my // pass, domain\greg // pass , and still i am geting Failed to authenticate with the guest operating system using the supplied credentials. When i will use local user, it works fine. Is there some limitation or i am typing my username incorrectly ?

--- @blog https://grzegorzkulikowski.info
Tags (1)
Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership

Can you run a command in the guest OS with an AD account via Invoke-VMScript?
See Invoke-VMScript to an domain joined Ubuntu VM since there are some intricacies to enable that.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
Grzesiekk
Expert
Expert

Thanks for that Luc, unfortunatelly there is no /etc/sssd/sssd.conf in that particular machine, im not the owner. It's a centos 6.5. Instead of sssd.conf  they are using nslcd.conf . I will make myself lateron my own linux vm and try to reproduce this.

--- @blog https://grzegorzkulikowski.info
Reply
0 Kudos