VMware Communities > VMware Developer > Forums > VIX API > Discussions

This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
2 Replies Last post: Jul 9, 2009 2:55 AM by vijayagce
Reply

Running Commands on the guest from the VMWare 4.0 host

Jul 3, 2009 6:07 AM

Click to view vijayagce's profile Lurker vijayagce 4 posts since
Jul 3, 2009

Hi all,

I wrote a script which would execute command in the Guest OS and return the output back to the host os. For this I used a Perl script guestCommand.pl("http://blogs.vmware.com/vix/files/guestcommand.pl"). But when I tried to run the same script with the VMWare 4.0, the perl script guestCommand.pl is not working.

During VMWare VIX 1.6.2 installation I had to compile and install vix-perl to make the guestCommand.pl to work. But GCC and Make utils are not available in the VMWare 4.0. How can I install GCC and other development tools in 4.0 or is there anyother way to install the vix-perl in the VMWare 4.0 system.

Any help is highly appericiated.

Thanks,

Vijaya.


Reply Re: Running Commands on the guest from the VMWare 4.0 host Jul 3, 2009 8:29 AM
Click to view DougBaer's profile Expert DougBaer 600 posts since
Oct 20, 2004
Unless there is a strict requirement to run this from the actual ESX host, you may look into running this from the vMA.

http://www.vmware.com/support/developer/vima/vima40/vma40relnotes.html

It is basically a RedHat VM with the VMware Perl toolkit installed -- but you should be able to install the C/C++ compiler or whatever other tools you want into this and do what you need without impacting service console OS integrity.
Reply Re: Running Commands on the guest from the VMWare 4.0 host Jul 9, 2009 2:55 AM
Click to view vijayagce's profile Lurker vijayagce 4 posts since
Jul 3, 2009

Hi,

Thaks for your reply...

I got the required output using vmrun command.

Thanks,

vijaya.R


Actions