VMware Communities
rabbott_2003
Contributor
Contributor

VmPerl on Solaris 10 64-Bit Guest System

I've been using the VMPerl API on Linux for some time now and I'm trying to port my code to Solaris. I installed a Solaris 10 64 Bit Guest OS using Vmware Workstation 6.0.4 build 93057. I ran the vmware tools installer but I see no information about the VmPerl pm being created. I've had a look through the config tools script and I see that the code is there for compling it, however it never seems to run on my machine.

I've done google searches and searches of the Vmware KB. I can't seem to find much on this. It seems to me like it should be supported but I can't tell why it's not compling (and I have not seen any definitive "This is not supported" information either). My other perl scripts are working fine.

I simply want to be able to start a vmware machine on another host from this host so if there's another way to do that I'd be happy to know about that too. Here's a bit of the code (although the code is not the issue, it's the fact that VmPerl is not there).

sub start_vm($$$$){

use VMware::VmPerl;

use VMware::VmPerl::VM;

use VMware::VmPerl::Server;

use VMware::VmPerl::ConnectParams;

use strict;

my $server_name = shift;

my $vmConfiguration = shift;

my $user = shift;

my $passwd = shift;

  1. Change this to your port if it is different.

my $port = 902;

  1. Create a ConnectParams object

my $connect_params =

VMware::VmPerl::ConnectParams::new($server_name,$port,$user,$passwd);

  1. Create a Server object

my $server = VMware::VmPerl::Server::new();

  1. Establish a persistent connection with server

if (!$server->connect($connect_params)) {

my ($error_number, $error_string) = $server->get_last_error();

die "Could not connect to server: Error $error_number: $error_string\n";

}

my $vm = VMware::VmPerl::VM::new();

Any help would be appreciated.

Thanks

Rick

0 Kudos
0 Replies