Automation

 View Only
  • 1.  How to copy file from local machine to virtual machine?

    Posted Mar 11, 2009 05:09 PM

    I have VI Toolkit v1.5 installed. Been looking through the cmdlet reference and can't see a cmdlet that would allow me to copy a file from host to guest.

    Is there a way to do this that I am missing?

    Using the VIX api I could call the CopyFileFromHostToGuest() function.



  • 2.  RE: How to copy file from local machine to virtual machine?

    Posted Mar 11, 2009 05:20 PM

    With VITK 1.5 there is no such cmdlet available. It is in our roadmap for one of the upcomming releases.



  • 3.  RE: How to copy file from local machine to virtual machine?

    Posted Mar 11, 2009 06:57 PM

    If you want a PowerShell-based solution you can use until we have this as a cmdlet, check out this blog entry.



  • 4.  RE: How to copy file from local machine to virtual machine?

    Posted Mar 11, 2009 07:44 PM

    Thanks for the reply.

    I had started creating my own cmdlet to copy files based on a VIX wrapper I had written ...

    Just to confirm, the cmdlet add-type is only available in Powershell v2 right? Otherwise this would be an interesting alternative.



  • 5.  RE: How to copy file from local machine to virtual machine?

    Posted Mar 11, 2009 08:59 PM

    Yes, Add-Type is v2 only.