GuestOperationsUnavailable

Hello

I need to use the InitiateFileTransferToGuest method to set a file (s) on a VM (s).  I couldn't get my code to use (no available GuestFileManager?), so I tried to call the method using the CROWD.  When I do this, I get a message saying: "GuestOperationsUnavailable."  Can someone tell me what to do to GuestOperationsAvailable?

Thank you very much!

The model (the same thing in any language kit, but some can summarized some menial details) is the following.

gom_mor = RetrieveServiceContent (.guestOperationsManager)

Some language kits require that you instantiate a GuestOperationsManager object using the managed object reference provided by the ServiceContent (gom)

gomfm = gom.fileManager

Returns an another moref, yet language kits handle differently and you have to may not be not instantiate the object (get its properties)

AUTH = new NamePasswordAuthentication() / / subclass of object GuestAuth

auth.username = "user name".

auth.password = "password"

auth.interactiveSession = false / / usually fake, basically should it initializes a user for the process environment of

gomfm.auth = auth

moref = virtualmachineMoRef / / need to get this by querying the vCenter inventory

guestFilePath = "c:/coolfile.txt".

fileAttributes = new GuestFileAttributes() / / use default or set correctly

coolfile_bytes = file size / / important, it determines the buffer when you submit later PUT the request for transfer

Overwrite = false / / who would ever want to crush coolfile?

put_url = InitiateFileTransferToGuest (gomfm, moref, guestFilePath, fileAttributes, fileSize, overwrite)

most of the language kits add this function to the gomfm itself then-

put_url = gomfm. InitiateFileTransferToGuest (guestFilePath, moref, fileAttributes, fileSize, overwrite)

Then, you must apply a HTTP PUT to this put_url, set your content-length header on the bytes that you define in the file size.  In the same way with the content-type.  Your language may have a simple library PUT that does it all for you of course, William used Perl's LWP make the option PUT.

You probably have questions b/c technically, you need to get the content of GuestOperationsManager to get the GuestFileManager, AuthManager.  You can not just jump to GuestFileManager, you must value MOREF, you get from the GuestOperationsManager.guestFileManager to the InitiateFileTransferToGuest().

Which language kit that you use for your project?

Tags: VMware

Similar Questions

Maybe you are looking for

  • I downloaded the update and I can't open the package I need help?

    I downloaded the update and cannotopen software package, why? I need help...

  • TECRA 8200 does not recognize the second module memory

    Hi, I have a problem with one of the TECRA 8200. The machine only recognizes the first module and not the second 128 M I tried form to upgrade memory up to 256 M. module is compatible because it works without problem with an other TECRA 8200! I updat

  • Satellite Pro A200-PSAE4E - WLan speed falls steadily

    Hello Anyone know what is causing my laptop to lose wifi on a regular basis? It's a Satellite Pro A200-PSAE4E running on XP. I bought the new laptop in February and it came with Vista loaded but the wifi kept stalling and was Advisor to swap to XP, b

  • Windows 7 will not update

    My toshiba windows 7 continues to try to update, get to 68%, then comes back.  I can't do something... off, open in safe mode, so I can use it.  It is only 18 months old has been in stock 8 months.  It doesn't help.  Can I recover?  or go buy another

  • U3415W, extreme vertical distortion

    Last week, I bought a U3415W of the Amazon. I put it for the first time this weekend. In one day, the beautiful image went from glorious to unusable. Here the pictures of what it looks like now. I tried several cables including different HDMI and Dis