Solved

Get-VM doesnt work

Posted on 2009-04-06
7
1,158 Views
Last Modified: 2012-06-27
So I downloade the VMware Infrastructure Toolkit (for Windows) from http://www.vmware.com/sdk/vitk_win/index.html. I installed it on a Vista client and wanted to access my VMWare Server 2.0 based on a Debian host(I have no domain set up at home by the way). I connected to the vmware server like this:
[VI Toolkit] C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> Connect
-VIServer -Server 192.168.1.102 -Protocol https -Port 8333 -User Admin -Password
password
WARNING: There were one or more problems with the server certificate:

* A certification chain processed correctly, but terminated in a root
certificate which isn't trusted by the trust provider.

* The certificate's CN name does not match the passed value.


Name                       Port                       User
----                       ----                       ----
192.168.1.102              8333                       Admin

I then try to list all VM's:
[VI Toolkit] C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> Get-VM
Get-VM : Angitt argument var utenfor området for gyldige verdier.
Parameternavn: i
At line:1 char:6
+ Get-VM <<<<

This is Norwegian and translates to something like: The specified argument is outside valid values. Parametername: i

So what did I do wrong?
0
Comment
Question by:itnifl
  • 4
  • 2
7 Comments
 
LVL 22

Expert Comment

by:65td
ID: 24080768
Was the following command line issued before using PS-VI:
set-executionpolicy remotesigned
0
 
LVL 18

Expert Comment

by:BSonPosh
ID: 24080790
execution policy is not considered when executing cmdlets... only scripts.

Get-VM is a cmdlet and should work.  

What happens when you do this

Get-VMHost

or

Get-VIToolkitVersion

I imagine you are running the wrong version
0
 
LVL 2

Author Comment

by:itnifl
ID: 24086254
Get-VMHost gives same reply as Get-VM did, described above.

[VI Toolkit] C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> Get-VIToolkitVersion

VI Toolkit Version
------------------
VMware VI Toolkit for Windows 1.5 build 142961

The Vmware server 2.0 is using the newest VIX API downloaded from VMWare's site. The whole thing is installed on Debian Linux as the host.
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 18

Expert Comment

by:BSonPosh
ID: 24087180
Perhaps there is a discovery issue with the provider.

Have you tried being specific?

Get-VM <Name of VM>

If you have further problems... it is most likely a bug... post it here
http://communities.vmware.com/community/developer/windows_toolkit
0
 
LVL 2

Author Comment

by:itnifl
ID: 24094737
I get the same errors all the time, even when I am specific.
Should I re-install the tools or something?
0
 
LVL 2

Author Comment

by:itnifl
ID: 24095205
Didnt help to re-install it. I guess I should post it as a bug.
0
 
LVL 2

Accepted Solution

by:
itnifl earned 0 total points
ID: 24118492
Seems like only VI Toolkit version 1.0 works against vmware server. 1.5 is intended for Virtual Center Server or standalone ESX hosts
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now