Questions tagged [vix]

VIX is an API for writing scripts to automate VMware's virtual machine operations and run programs that manipulate files within guest operating systems.

31 questions
1
vote
1 answer

VixVM.LoginInGuest failure or insufficient permissions in guest operating system

I'm using VixVM's API to log-in to VMs and perform actions. I am able to log-in using a regular user account, but trying to do so using a domain user account, will issue the following error message: LoginToGuestAuthentication failure or…
Nisim Naim
  • 151
  • 1
  • 15
1
vote
0 answers

VMWARE VSphere VIX clone function

I have problem with cloning a virtual machine using VMware VIX api in C#. I am using following code to do so and getting following error. Code: VMWareVirtualHost virtualhost = new VMWareVirtualHost(); virtualhost.ConnectToVMWareVIServer("ip",…
Trusit Shah
  • 61
  • 1
  • 5
1
vote
0 answers

Connecting to VMWare Workstation using VMWare VIX

I'm trying to connect to my local vmware Workstation using the VIX API (VixCOMWrapper.dll, Interop.VixCOM.dll). When i'm trying the code below, I'm getting an exception saying: "Cannot connect with multiple service providers." I also tried passing…
1
vote
2 answers

Invoke-VMScript Object reference not set to an instance of an object.from VMware.VimAutomation.ViCore.Impl.V1.VixHelper.GetVixVersion()

Invoke-VMScript Object reference not set to an instance of an object. Which ultimately has come from : VMware.VimAutomation.ViCore.Impl.V1.VixHelper.GetVixVersion() On my machine, Invoke-VMScript fails when pointing at a VMGuest whose operating…
Jeff Maass
  • 3,632
  • 3
  • 26
  • 30
1
vote
0 answers

Get performance counters from VMWare vSphere using VIX?

I can use VMWare PowerCLI to get CPU usage with command line like "get-stat -entity $vm -realtime -maxsample $n -stat cpu.usage.average". As far as I know PowerCLI uses VMWare VIX API to communicate with vSphere server. But I can't find VIX API…
kolontsov
  • 626
  • 4
  • 6
1
vote
0 answers

Run program in virtual machine

I am using VixVM_RunProgramInGuest to run a executable in a guest virtual machine. If the EXE requires elevation, it fails with the VIX_E_PROGRAM_NOT_STARTED error code. It works fine if the exe is not elevated. I cannot figure out how to make this…
Ciprian
  • 3,533
  • 1
  • 18
  • 22
0
votes
1 answer

Vmware: enable VIX programmatically?

I found that it is possible to query if VIX is enabled by doing a VixVM_ReadVariable() for the variable "vmci0.present". Using VixVM_WriteVariable() to change this variable to enable VIX in a machine where it isn't enabled doesn't seem to be…
shoosh
  • 76,898
  • 55
  • 205
  • 325
0
votes
1 answer

Python VIX script throws exception after VMWare Worokstation upgrade

I have a python VMWare script I was using for a while. After recently upgrading my Workstation version from 15.5.5 to 15.5.6 the script is throwing exception in python VIX module: Traceback (most recent call last): File…
Uri
  • 479
  • 1
  • 4
  • 10
0
votes
0 answers

Failed to open virtual machine

I want to Power Off a VM, I am able to connect to vm using ConnectToVMWareVIServer method of VIX but I am getting error on when I try to Open the connection. I am getting an exception Failed to open Virtaul machine.. with inner exception "One of the…
0
votes
1 answer

Python VIX API run in guest vmware workstation

Dears I'm new to VIX API, based on following code How can use VixVM_RunProgramInGuest vix library in python? import vix host = vix.VixHost() vm = host.open_vm("/home/Somebody/VM/Windows.vmx") vm.login(username="User",…
0
votes
2 answers

Wix - How to run/install application without UI

I have exe file and a need convert it to msi and install it using Group policy on more computer in domain without user interaction. I found this tutorial…
user1277424
  • 21
  • 1
  • 6
0
votes
1 answer

VIX API clone call - the operation is not supported for the specified parameters

I have 2 instances of ESXi host and vCenter. I installed VIX API package on my Ubuntu 16.04 and tried to clone a VM. To do it i used the sample from documentation. Unfortunately, my program crashes with this message after executing the code below…
Adam Godefroy
  • 45
  • 1
  • 9
0
votes
1 answer

Using Vix API to get VM's domain and users' list

I'm trying to use the Vix API and i'm trying to receive some information of the virtual machines i'm working on. The information i need is the domain to which the VM is connected, and the list of users that are registered (i.e., have access) to the…
Nisim Naim
  • 151
  • 1
  • 15
0
votes
1 answer

How to get Virtual Machine name using VMWare API?

I'm using the Vestris.VMWareLib API to remotely control my VMs on an ESX 5.0 server. I use the VMWareVirtualMachine.Open method to power on my virtual images. My code is written in C#. The problem is that you need to know the path to the datastore…
bearaman
  • 1,071
  • 6
  • 23
  • 43
0
votes
1 answer

Sequence of commands sent to a virtual machine using Vix fails sometimes

I made a function called listProcesses which calls the following Vix commands, in this order: VixHost_Connect VixHost_OpenVM VixVM_LoginInGuest VixVM_ListProcessesInGuest VixVM_LogoutFromGuest VixHost_Disconnect Notice that I do not call…
Ionut Hulub
  • 6,180
  • 5
  • 26
  • 55