You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to run several commands against my Windows Guest after cloning a VM from the template. I tried to configure "Run Once" in Customization Specification Manager from vSphere but it does not seem to work. Then I noticed I can run command on Guest with knife vsphere vm execute VMNAME COMMAND ARGS but it does not seem to work either. The error is:
knife vsphere vm execute HOSTNAME--exec-user ADMIN--exec-passwd PASSWORD -- C:\\Windows\\System32\\xcopy C:\\Windows\\System32\\drivers\\etc\\hosts C:\\tmp
ERROR: RbVmomi::Fault: FileNotFound: File C:\Windows\System32\xcopy was not found
Hi,
I need to run several commands against my Windows Guest after cloning a VM from the template. I tried to configure "Run Once" in Customization Specification Manager from vSphere but it does not seem to work. Then I noticed I can run command on Guest with
knife vsphere vm execute VMNAME COMMAND ARGS
but it does not seem to work either. The error is:I also tried the following but with no luck.
The text was updated successfully, but these errors were encountered: