Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

Vestris.VMWareLib.VMWareException: Insufficient permissions in host operating system

$
0
0

Hello,

 

I am unable to execute the host.open(..) command to return a machine object using the VIX API.

Code is like this:

 

 

           string pathToVM = "[csmrauto1a] " + name + "/" + name + ".vmx";
            Console.WriteLine(pathToVM);
            try
            {
                machine = host.Open(@pathToVM);
                return true;
            }

 

I get this stacktrace:

 

Vestris.VMWareLib.VMWareException: Insufficient permissions in host operating system

   at Vestris.VMWareLib.VMWareInterop.Check(UInt64 errCode)

   at Vestris.VMWareLib.VMWareJob.Wait[T](Object[] properties)

   at Vestris.VMWareLib.VMWareJob.Wait[T](Object[] properties, Int32 index, Int32 timeoutInSeconds)

   at Vestris.VMWareLib.VMWareJob.Wait[T](Int32 propertyId, Int32 timeoutInSeconds)

   at Vestris.VMWareLib.VMWareVirtualHost.Open(String fileName, Int32 timeoutInSeconds)

   at Vestris.VMWareLib.VMWareVirtualHost.Open(String fileName)

   at VMESX.VMESX.openMachine(String name) in C:\VMESX\VMESXControl\VMESX\VMESX\VMESX.cs:line 55

Successfully disconnected from host!!

 

I've verified that the connection is active by testing it during execution.

The VM admin gave my user administrator privileges.

 

Any idea what is causing this permissions problem?

 

Thanks,

Mark Meninger


Viewing all articles
Browse latest Browse all 34639

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>