Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Get-VM doesnt work

Posted on 2009-04-06
7
Medium Priority
?
1,196 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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

916 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