Need help to report on the configurations of the virtual machine using PowerCLI

Hi guys,.

I try to shoot down vCenter virtual computer configuration details and am not having much luck with vCPU multicore machines.

Looking at the lists of VMS in vSphere Client, it offers a column "Number of CPU" basis and does not include any other granularity (i.e. in terms of casings & carrots as opposed to simply 'CPU Count').

I thought that maybe I have better luck using PowerCLI and essentially, the cmdlet "Get - VM" has the kind of information I'm looking for, but I find that it lacks a bit when it comes to vCPU details.  Essentially, it turns out that does not do much better than the list of virtual machines in vSphere Client because it produces only a "CPU Num" value, which is not particularly useful.

For example, if "processors Num" 4, that '4' means?  This could mean one of the following:

  • 1 x 4 drivers
  • Core 2 x 2
  • Basic 4 x 1

I hope someone out there can help produce me a list of virtual machines with details of configuration that includes both sockets & carrots for vCPU?

Thanks in advance!

Try like this

Get-VM | Select Name, @{N="CPU";E={$_.ExtensionData.Config.hardware.numCPU/$_.ExtensionData.Config.hardware.numCoresPerSocket}}, @{N="Core per CPU";E={$_.ExtensionData.Config.hardware.numCoresPerSocket}}

Tags: VMware

Similar Questions

  • Report by the virtual machine with tools obsolete and/or material email

    Hi all

    The subject of this thread pretty much says all this, but just to remind I want to generate a report of computer virtual tools with just e-mail and or equipment outdated, I have searched around a bit but don't seem to find all the vm where I try to exclude the VMs to date of this report, also I prefer in a format of e-mail if possible. I'd appreciate any help or links to help meet this goal.

    Yes, that's what makes the - or in the condition of the Where clause.

    If one of the two conditions is not met, the virtual machine will be in the report.

  • Prevent VMware 12 office computer to always start the virtual machines using the full screen?

    I have Windows 10 with a 4 k monitor, and I want to display only virtual machines in a window of 1900 x 1200 (I need to see the other windows as well as the virtual machine).

    The problem is that since the upgrade from VMware 12, whenever I boot a new virtual machine, it always starts in mode full screen (3840 x 2160). Is there a way to prevent it from auto-cliquant the button "Enter full screen mode? He did not only VMware 10.

    Thank you!

    Andrea

    Computer virtual, Options, power settings: uncheck the box «enter full-screen mode» »

    Lou

  • PC to fast, to get into the BIOS of the virtual machine using F2

    Are on of you could give me a tip, to slow down the boot process to enter the BIOS of the virtual machine?

    There is another alternative to F2?

    Thank you for your help in advance

    Add bios.bootDelay = 10000 to the prompt .vmx file. It's a break in milliseconds.

    AWo
    VCP / VMware vEXPERT 2009

    \[:o]===\[o:]

    = Due to a lack of employees, human beings humans are working here. -Treat it with care, they are rare. =

  • How to determine the size the virtual machine using the VI SDK files

    VirtualMachineFileLayout a lot of files like snapshots, configuration files, log files. I have not found any object determine the size of them, but the VI Client GUI shows the sizes of them.

    Is there a VI SDK objects that provide the size of every file?

    Thank you

    RAM

    The virtual machine, you can find warehouses of data associated with (ownership of the data store). Each data store, you can find the HostDatastoreBrowser corresponding (the property browser). HostDatastoreBrowser object, you can call SearchDatastore_Task() or SearchDatastoreSubFolders_Task.

    When you call one of the methods, a task object is returned. To the success of the task, check the property info.result of the task, the object of HostDatastoreBrowserSearchResults actual result is there. Discover the FileInfo objects - they include sizes and lately of the modified files.

    Good luck.

    Steve JIN, VMware engineering

    Creator of VI Java API: http://vijava.sf.net/

  • Orchestrator 5.1 REPORT-all the virtual machines in the data center and create a CSV file

    Hello

    What I basically want to do is create a report CSV of all virtual machines in the data center with various information (VMname, domain name FULL, IPaddress, status, data warehouses, tools etc...).  The export list in the client feature is insufficient (especially for any KPI report).

    Problem: (workflow is still under construction so real email send does not not and need to clean the code)

    I am stuck at the part of the creation of a table that can be parsed correctly in the CSV file.  2 ways I've tried will produce a report of single object or combine all of the table into a single string (where I am now).  I think the main problem I have is that I have to create a 2D within my service to push toward the final table that is written to the CSV format.  Basically, I do not understand how to push my variables in a loop of a table.

    Any help or assistance?

    Thank you

    B

    BOOM!

    Added some comments, removed the hardcoded in the csv temp file, deleted path the hardcoded port 25 for SMTP - mail settings should come from the configuration of the MAIL plug-in. And fixed / confirmed that the workflow now includes the attachment for e-mail and ends with success!

  • Need of a component of the virtual machine for a program where I can find one?

    I just bought a program for windows 7 80 people have it but it doesn't work on my computer, a warning appears saying its lack a component of VM, I after troubleshooting it says its fixed the program but it comes up saying its compapitble how can I solve this virtual machine what program should I use. This new program s.

    Hello whitelotus,

    If the program is not compatible, then you try to install and run the program in compatibility mode.

    Use the following steps:

    (1) right click on the program

    2) click Properties

    3) click on the Compatibility tab

    (4) select run this program in compatibility mode and select Windows Vista or other operating system, the program has been run successfully.

    Check out the link here: make sure to run older programs in this version of Windows

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    If compatibility is not successful, then try and self-test program compatibility issues:

    1. open the program compatibility problems theStart button.

    Then click on Control Panel. In the search box, type troubleshooting tool, then clickTroubleshooting. Under programs, clickRun done for previous versions of Windows.

    2. follow the instructions in the troubleshooting.

    If you are unable to install a program, insert the installation disc for the program and, using the Troubleshoot utility, navigate to the program setup file, usually called Setup.exe, Install.exe, or something similar. This utility is not designed to work on programs that have an .msi file name extension.

    If you are running Windows 7 Professional or Ultimate version, install Windows Virtual PC and Windows XP mode (http://www.microsoft.com/windows/virtual-pc/default.aspx) and run your software in Windows XP.

    If you run Windows 7 Home Premium, try VirtualBox (www.virtualbox.org) or VMware Player (www.vmware.com), or any other software virtualization part 3rd and install a separate copy of Windows XP (family or professional edition) for this purpose. You can find the virtualization software free that will run on Windows 7 Home Premium.

    Hope that answers your question.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Need help to set up the VPN connection using my mobile

    Title: VPN

    I am running Windows Vista 32 with a NetGear WNR1000 router and need some giudance to set up a VPN with my phone Samsung Galaxy G3. Can someone help Sir with these steps?

    Hello

    Thannk you for the reply with the status of the issue.

    I suggest you go ahead and post the same question in the Microsoft Technet forum for assistance.

     
  • usable RAM is less to installed in the Virtual Machine

    Hi Admins,

    I have a 64-bit VM win2008R2. Recently, I've increased the RAM to 64 GB to 32 GB.

    But when I look in the system 64 GB (32 GB usable) properties.

    This means that the virtual machine has only 32 GB? what needs to be done for the virtual machine to use 64 GB?

    could you please help me?

    Noufel

    You have not written what edition you have, but for example the 'standard' and 'web' editions have maximum 32 GB of RAM. In order to use more, you must have Enterprise/Datacenter/HPC edition...

  • In opening the virtual machine: "could not find a peer valid to connect to" or "error of Transport (VMDB) - 32" / "-14" ""»

    Hello

    Since yesterday after a reboot of my host (DELL E6410, W7 SP1 64-bit, 8 GB RAM, 2x750GB SATA3 running WorkStation 9.0.2 Update Windows Update), I can't open my existing VM.

    I often get "can not find a valid peer to connect to" and sometime before: "Transport (VMDB) - 32 error: Pipe: reading is not'or'error of Transport (VMDB)"-14: fitting broke

    I worked for 2 years on this machine without a hitch, WS7 reclassification in WS9 without any problem.

    FYI: we have changed the domain 3 months ago, but it has never be a problem.

    I have google and search several Forum. So far, I tried to:

    -restart the service vmware-auth as an administrator

    -launch vmware.exe administrator

    stop/start the vmx86 service

    -uninstall / reboot / install Workstation.  3 times. First using uninstall from the Control Panel, then doing a / clean before installation and finally track down any file/reg entry.

    -HE asked if any group policy changes were made recently (like not allowing to run vmware.exe?)

    -Rename vmware.exe (logs I look similar to what is in this post: http://communities.vmware.com/thread/331099?start=0 & tstart = 0 ... but no luck)

    -excluded vmware.exe in my AV (Microsoft ForeFront). Unfortunately, in that I'm not allowed disabled...

    -Open the virtual machine using the drive == > does not work either.

    This isn't a file corrupted in a virtual machine (even backup - 7zipped - don't work on my laptop... but the launch on the other).

    Even a newly created WM (boneless), unbootable! :-(

    *, BUT to BE NOTE *: if a virtual machine is created as a shared virtual machine, I can start the application locally remotely! And this same VM, if started (via the.vmx) does not work using Workstation GUI!

    I have attached 2 newspapers. Work a (vmware.log remotely) and the inactive (vmware-vmx - 4072.log thru WS GUI).

    Of after what I saw (and what little I understand), it's as if the CPU is not detected?

    The two newspapers have this line:

    FeatureCompat: EVC masks:

    but the non-working goes - we with

    Module CPUID initialization failed.

    While working it display information on CPU (hostCPUID name / family / type... etc...)

    Any idea is welcome.

    I'll answer me to my problem!

    A lot of research to this knowledge.

    In summary: don't mess with the processor affinity... or keep it in mind!

    Response to distinguish:

    I installed 6 months ago a small utility named prio (search for "PRI prnwatch"), because it can save the priority of a given process. What I did notice, is that it also save the processor affinity ! What happened: I probably changed the affinity once for a VM running to give greater priority to a 7zip archive process to complete more quickly (setting HT no core to 7zip and one - or 2? - HT core to VM). Everything works until the next reboot, where the CPU detection during * start EVERY * VM has been somewhat "damaged" leading to the wrong log message: failed initialization Module CPUID.

    This is the reason of *my* question. Perhaps it might help someone else?

    TIPS:

    For advanced people who do not want to check the processor affinity of each process in the Task Manager, you can try this Windows Powershell command (remember to launch PowerShell as an administrator):

    Get-Process | Format-Table-PriorityClass name, ProcessorAffinity property

    ProcessorAffinity column gives the number of representation of the authorized core, 1-bit by heart.

    15 = 1111 is all possible core (for a logical processor 4). Mine is 1 CPU with 2 core HT <=>4.

    LSB is the core lowest. So if you allow only core0 and core3 (1001) on a process, the number of ProcessorAffinity will be 9...

    Post edited by: cbiero (LSB and MSB...)

  • vmreconfig.pl add a CD/DVD device will fail if the virtual machine created with vmcreate.pl

    I am trying to add a cdrom to my VM I created with the vmcreate.pl.

    When I use the script vmreconfig.pl to create the cdrom I get the following error...

    Cannot use a value that is not defined as a reference to a matrix to/usr/lib/vmware-vcli/apps/vm /... AppUtil/VMUtil.pm line 898.

    OK so I have create a cdrom in vSphere and try again manually...

    Addition of the cd 'cd '...
    Virtual machine 'vmname4' is reconfigured successfully.

    OK, so I think that my VM I created with the vmcreate.pl missing the ide0: 0 or something...

    Any suggestions on how I can do this?

    I'm doing the following...

    1. create the virtual machine by using vmcreate.pl.

    2. Add the CDrom to the virtual machine using vmreconfig.pl.

    Thanks in advance.

    Just watched this.

    The vmreconfig.pl script does not handle the case of a device not defined in the VirtualIDEController object array.

    Look like the real device table is not defined until an IDE device is actually connected (or when a new IDE device is added).  I'm not 100% sure of what generates the actual peripheral table off the coast of the VirtualIDEController, but the case of a table of undefined device should be handled in the script to reconfigure.

    I can see the two solutions here, first write a custom script that adds the CDROM and manages this one-off case.  Then, modify the vmreconfig.pl script to handle this particular case of a painting of the disconnected device.

    In VMUtil.pm, you will find line number 929:

    My = $unitNumber $# {$controller-> device} + 1;

    This is to change:

    My = $unitNumber (set $controller-> device)? $# {$controller-> device} + 1:0;

    There may be other cases in the VMUtil.pm module that needs to be updated as well.  For this reason, it may be better to just write your own custom tool.  However, the simple correction above may let you go ahead with your project in the short term.

  • No network on the virtual machine after the use of converter

    I was running a basic vm (WinXP) on an esxi4.1 host running short of disk space.

    So I ran the vCenter Converter Standalone client to copy the original VM on a new - the only thing that I changed the size of the disc thin provisioned avaiable.   The copy/convert seemed to work your.

    I started in the new virtual machine, and it came exactly as the old one (with the largest disk).

    ... but the network on the works of more than vm.

    I can still use vSphere to connect to the esxi server and bring up the VM console (which tells me that the network the server works very well).  When I look at the configuration of the virtual machine, it looks exactly like the old (complete with a network powered).   But on the virtual machine, I can't even ping the router, much less get to the dhcp server.

    I even went so far as to stop the virtual machine, remove the network card, restart the virtual machine (if the network has been removed from the virtual machine), stop the virtual machine again, add a NEW network adapter.

    Still the problem remains.  The virtual machine has a network card - but has no network.

    A few thoughts:

    You use a managed physical switch? If so, check if the MAC address of the VM is seen on one of the uplink ports.

    The network management and the virtual machine using the same IP subnet? You could probably try (if possible) is to create an another vSwitch and attach the XP VM to it to see if there is a problem with the virtual machine and the management on the same vSwitch network.

    André

  • Unexpected shutdown of the virtual machine when compacting

    I have VMWare Server 1.08 on CentOS 5.3 with guests from Windows server 2003. the virtual machine uses 2 GB non-preallocated split files. I'm trying to shrink the virtual machine using VMWare tools. After him "are preparing to shrink" the process is over and I click "Shrink now" after a few minutes (this time varies a little) the virtual machine stops. I have a 2nd vm on this host as well and it stops as well. The host is a Dell 2900 with 2 processors quad core and 32 GB of ram and appx 1 TB of storage in raid 5. I checked memory usage and cpu during the process and memory, the cpu more than 100% for a short periods, but goes back down. Any idea what can be the cause?

    I'm not a person "linux", but am learning.

    I appreciate all help.

    Thank you

    RL

    
    May 15 00:56:16: vmx| SCSI0:0: Command READ(10) took 3.059 seconds (ok)
    May 15 00:56:23: vmx| SCSI0:0: Command READ(10) took 2.254 seconds (ok)
    May 15 00:56:24: vmx| SCSI0:0: Command READ(10) took 3.059 seconds (ok)
    May 15 00:56:24: vmx| SCSI0:0: Command READ(10) took 3.059 seconds (ok)
    

    If you get a lot of lines like that it usually means that either-

    -your physical disks are dead slow

    -the virtual disk has not shrunk Age

    - or is it close to corruption

    Some of these lines are not alarming per se - but if you see thousands of them like in your case that should sound the alarm.

    I'll try to use vmware-vdiskmanager with function r - and just clone the drive for growth in a preallouee.

    ___________________________________

    VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual

  • Can I configure programmatically installed virtual machine?

    Hey guys, y at - it a low level that allows me to configure the virtual machine using c# api? (like increasing the memory or the addition of n/w adapter) VIX api does not have such functions.

    Take a look at the vSphere API and you should also take a look at this document if you're new to vSphere API/SDK - Getting Started with vSphere SDK - Update for SDK 4.1 release

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • load the file into the virtual machine

    How can I load any file to the virtual machine using java api

    How to download the file in the guest on VMware operating system:How to transfer the file to the operating system guest on VMware | DoubleCloud = & gt; Private cloud and Public Cloud

    How to download files from GOS on VMware:How to download a file from the operating system guest on VMware | DoubleCloud = & gt; Private cloud and Public Cloud

    If you have any question/problem related to this, please post on above blog

Maybe you are looking for