List of parameters of configuration of a virtual machine

I would like to be able to retrieve the list of the configuration of a virtual machine settings, specifically those under Options > advanced > General > Configuration settings when you go to change the settings of a virtual machine.  I found this article in the powershell community - http://communities.vmware.com/docs/DOC-18653 (parameters to retrieve and set Advanced Configuration (VMX) VM).  I run the script according to the example of the first connection to vCenter with vSphere PowerCLI and then execution of Get - VM vm - name | Get-VMAdvancedConfiguration.  It seems to be working and gives no errors, but returns nothing.  I know that this virtual machine parameters according to the Configuration settings also so I know it's not the script I'm looking for, or I am doing something wrong.  Is there a way to retrieve this information through powershell.  I would like to provide this information to the Auditors.

Which is caused by the Select-Object, you used on the first line.

I'm not sure how you want to display the results, but it's just a way to do

$vms = Get-VM -Location Clusternameforeach ($vm in $vms){
  $vm.ExtensionData.Config.ExtraConfig |  Select @{N="VM";E={$vm.Name}},Key,Value}

Tags: VMware

Similar Questions

  • How to get the configuration of the virtual machine, please give me some ideas

    How to get the configuration of the virtual machine, please give me some ideas

    Hello

    Take a look at

    For the General operations of VM

    https://docs.google.com/viewer?a=v&q=cache:F3tEld7LNv0J:communities.vmware.com/servlet/JiveServlet/downloadBody/11301-102-1-10681/GettingStartedGuide.pdf+accessing+virtual+machine+configuration+settings+,+vsphere+sdk&hl=en&gl=uk&pid=bl&srcid=ADGEESgXQlnYzxO10t-E1uHDiz3o1zBBt4ojDZDbzAmHPO3Odcl2HhLlbrSODQjtDPccHMBK7NZ3F_N6xEJqEl29ZD_l-ZUxgSzSirW6qO47dH-bR9E4mfivkf3Ip30jTbBMKQm-7rwR&sig=AHIEtbQaMKQ21DFCex0Wi6NQtHQmEvQvng

    For the settings advanced VM:

    http://blogs.VMware.com/vSphere/2012/03/Acessing-virtual-machine-advanced-settings.html

    Other general settings of the SDK:

    http://vSphere-land.com/vSphere-links/scripting-links-2.html

    Many tx

  • 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}}
    
  • Checking configuration of the Virtual Machine NIC

    Hello people.

    I put in a virtual infrastructure that separates discrete security (DMZ/Intranet/Extranet/etc.) areas using port groups.  My main concern is to ensure that VM is not accidentally bridged for port groups on two separate security zones.  Someone is aware of a third party or tools included that will allow me to list and checking the configuration of virtual NETWORK map of all VM in my data center?  We use ESX 3.5 and Virtual Center 2.5.

    Thank you...

    Did you watch NetWrix VMware Reporter?  It will monitor and audit of your VMware changes and much more.  Have you thought about streamlining your authorization center VC so that no one else can reach your VM and more groups specified admin settings.  You can then use the tasks & events to see what activities were conducted by users / specific actions.  We have implemented strict access to our systems of VC and the Strip unnecessary permissions to that effect.

    If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!!!

    Kind regards

    Stefan Nguyen

    VMware vExpert 2009

    iGeek Systems Inc.

    VMware, Citrix, Microsoft Consultant

  • How to configure NTP between Virtual Machines without using Vsphere Client

    I have a group of 8 virtual servers of 5.5 ESXi without an Internet connection. There are virtual machines on each of these 8 virtual servers.

    I did one of these 5.5 virtual ESXi host a NTP server by editing the file /etc/ntp.conf with below configuration and

    started the ntpd daemon. He began to take the time to its local clock, here's the output of ntpq Pei

    IP server 10.108.190.14

    ip address of the client 10.108.190.15

    Server /etc/ntp.conf

    > > driftfile/var/lib/ntp/drift

    > > server 127.127.1.0 maxpoll 4

    > > fondant 127.127.1.0 stratum 10

    | ntpq Pei

    |   refid distance st t when poll reach delay offset jitter

    | ==============================================================
    | * LOCAL (0). LIUX. 10 l 2 64 377 0.000 0.000 0.001

    Then I edited the file /etc/ntp.conf on customers with below configuration but the customer would not synchronize with the server. He

    wouldn t get response from the server. Here is the output of ntpq Pei

    Customer /etc/ntp.conf

    > > driftfile/var/lib/ntp/drift

    > > server 10.108.190.14 iburst

    | ntpq Pei

    |      refid distance st t when poll reach delay offset jitter

    | ==================================================================
    | 10.108.190.14 INIT. 16 u

    Now, when I configure NPT Client/Server on virtual machines through the Configuration Option under Option Configuration time

    in Vsphere Client everything works fine and the client and the server to synchronize with each other. I checked the file /etc/ntp.conf on both the client

    and the server and it has a couple of restrict 127.0.0.1 and restrict the lines added by default kod nomodify etc.

    So why NPT Server featured when enabled via Vsphere Client works very well, but it does not work when it is configured manually

    in the virtual servers directly.

    I was connected to a vCenter Server Appliance through the VSphere Client and enabled the synchronization of time of the NPT.

    I really need to know how to configure the NTP server without using the Vsphere Client so that I can automate the

    task by writing a python script that would connect to each virtual server and NTP Client/Server configuration.

    Any help in this issue deeply appreciated!

    Thank you!

    You can configure the ntp server without using viclient.

    Take a look @ http://kb.vmware.com/selfservice/documentLinkInt.do?micrositeID=&popup=true&languageId=&externalID=1003063

    Hope this helps

    -Assane

  • Serial Port is configured for a virtual machine...

    Dear team,

    I found the serial port is configured on one of the virtual machine, which follows is the blink of an eye the same.

    1.JPG

    Just want, serial port is required for the devices on which?

    Usually, you see the serial port after a P2V and not detached from the VM.

    Why is it necessary?  Nowadays it probably isn't, but there are days where we still used modems on (among other things) serial ports.  Introducing a serial port to the virtual machine, you can go through the device that was attached to the serial port of the server host directly on the virtual computer.

    Today it is not really useful and you can probably just close the virtual machine and remove it.

    Matt

    http://www.thelowercasew.com

  • Get a list of available hosts to run a virtual machine?

    I've searched the forums have not found the answer to this, but please let me know if I missed it. Given a virtual machine name, I would like to a list of hosts that can run on the virtual machine to output. The only way I was able to do this is a two step process and I'm trying to enter a single line:

    Assume that the name of the virtual computer is SQLVS01

    $a = foreach ($vmname in get-vmhost - vm SQLVS01) {get-cluster - vmhost $vmname}

    Check that the value of $a for example for purposes:

    $a

    Name HAEnabled HAFailover DrsEnabled DrsAutomationLe

    Level vel

    -


    -


    -


    -


    -


    True SQLCluster1 1 true FullyAutomated

    Use the name of the cluster retrieved as a parameter:

    C:\ & gt; Get-vmhost-location $b.SID

    Output shows the VMHosts in this cluster

    Name

    -


    VMHost1

    VMHost2

    .. etc...

    Any ideas? It must be easier I have do it.

    Thank you

    Ed

    How about this?

    Get - vm SQLVS01 | Get-cluster | Get-vmhost | Select name

    _____________

    Jason

    Twitter: @jrob24

  • 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".

  • Network configuration for two virtual machines on a host

    I have two XP running on a Vista 64 host using 6.5 guests.  I would like to power instant message between the two guests.  I use the option open, and each guest can comminicate outward, very well.  However, if I send an instant message from one guest to another, the message can't.  All parameters in the virtual network editor are the default values on the two hosts.  Thank you.

    so IM between two virtual machines should work as well.

    There must be a factor that we haven't talked yet - any ideas?

    ___________________________________

    Description of the vmx settings: http://sanbarrow.com/vmx.html

    VMware-liveCD: http://sanbarrow.com/moa.html

  • How to get a list of the DRS rules and their virtual machines.

    If I try the following, I get no output. (PowerShell 2, vCenter & ESXi 5.1, PowerCLI 5.1 Release 1)


    ()get-cluster ). ExtensionData.ConfigurationEx.group |? {$_.vm}

    or

    ()get-cluster ). ExtensionData.ConfigurationEx.group

    I know that I have a DRS rule because when I try the following I am able to see it in Object Explorer in PowerGUI and I created it just in the Web Client.

    $Clusters = Get-Cluster

    The problem is that you have DRS groups who do not have vms - possibly accommodate groups of DRS.  If you want only vms something like this should work and does not give the error:

    foreach ($cluster (get-cluster)) {}

    write-host "$($cluster.name)".

    foreach ($drsGroup in $cluster. ExtensionData.ConfigurationEx.group) {}

    write-host "$($drsGroup.name)".

    {foreach ($vm to $drsGroup.vm)}

    If {($vm)

    $vmname = (get-vm-id $vm) .name

    write-host "$vmname".

    }

    }

    }

    ECHO «»

    }

    If you want to get the VMhosts and the VirtualMachines then try this:

    foreach ($cluster (get-cluster)) {}

    write-host "$($cluster.name)".

    foreach ($drsGroup in $cluster. ExtensionData.ConfigurationEx.group) {}

    write-host "$($drsGroup.name)".

    write-host "VMHosts".

    {foreach ($vmhost to $drsGroup.host)}

    If {($vmhost)

    $esx = (get-vmhost-id $vmhost) .name

    write-host "$esx".

    }

    }

    ECHO «»

    write-host "Virtual Machines".

    {foreach ($vm to $drsGroup.vm)}

    If {($vm)

    $vmname = (get-vm-id $vm) .name

    write-host "$vmname".

    }

    }

    ECHO «»

    }

    ECHO «»

    }

  • List of the types of all the virtual machines network cards

    How can I view maps of different types of all VMs in a row, without taking change them the settings for each virtual machine.

    Aneesh

    Hello

    It is possible via power cli...

    http://communities.VMware.com/message/2013514

    Thank you

    SA

  • Facing a problem while RAC configuration on my virtual machine

    Hi all

    While configuration RAC 10 g on VMWare with Cent OS 4, I came across a few issues that have been resolved by rebooting (last resort)

    The problem is after the installation of the database by checking the cluster resources using crs_stat - t, the State shows off line for 2 resources.
    [oracle@rac1 bin]$ ./crs_stat -t
    Name           Type           Target    State     Host
    ------------------------------------------------------------
    ora....SM1.asm application    ONLINE    OFFLINE   rac1
    ora....C1.lsnr application    ONLINE    OFFLINE   rac1
    ora.rac1.gsd   application    ONLINE    ONLINE    rac1
    ora.rac1.ons   application    ONLINE    ONLINE    rac1
    ora.rac1.vip   application    ONLINE    ONLINE    rac1
    ora....SM2.asm application    ONLINE    ONLINE    rac2
    ora....C2.lsnr application    ONLINE    ONLINE    rac2
    ora.rac2.gsd   application    ONLINE    ONLINE    rac2
    ora.rac2.ons   application    ONLINE    ONLINE    rac2
    ora.rac2.vip   application    ONLINE    ONLINE    rac2
    The + ASM1 instance and listening on the RAC1 began not when I checked. So I started the manually.
    But when the instance is started, I got an error
    WARNING: cache failed to read fn=3  indblk=0 from disk(s): 2
    ORA-15196: invalid ASM block header [kfc.c:7910] [endian_kfbh] [3] [2147483648] [0 != 1]
    NOTE: a corrupted block was dumped to the trace file
    System State dumped to trace file /u01/app/oracle/admin/+ASM/bdump/+asm1_lgwr_12518.trc
    NOTE: cache initiating offline of disk 2  group 1
    WARNING: offlining disk 2.3912953495 (DATA_0002) with mask 0x3
    NOTE: PST update: grp = 1, dsk = 2, mode = 0x6
    Wed Sep 12 22:43:44 2012
    ERROR: too many offline disks in PST (grp 1)
    Wed Sep 12 22:43:44 2012
    NOTE: PST not enabling heartbeating (grp 1): group dismounted
    I was unable to disassemble and reassemble the drive. It gave an error saying
    ORA-15130: diskgroup "DISK" is being dismounted
    Firstly can someone tell me what "ora". SM1.asm' and «ora...» C1. LSNR"there? Why the TARGET column was also showing online?

    I also tried to close resources, then by restarting the services rawdevice. But after that, while trying to start (resources from crsctl) the order was simply hanging on both instances.

    I then didn't know what to do and just restarted both machines and then saw that everything was in place. I managed to create the database and everything works fine now.

    I didn't know where else to find errors. Can someone help me understand the question please?

    Now after setting up, I see the error in the newspaper of the ASM alerts for both nodes below.
    Errors in file /u01/app/oracle/admin/+ASM/bdump/+asm1_rbal_9071.trc:
    ORA-15183: ASMLIB initialization error [/opt/oracle/extapi/32/asm/orcl/1/libasm.so]
    ORA-15183: ASMLIB initialization error [driver/agent not installed]
    I checked the support of oracle DOC ID 1054033.1 and tried to check permissions. But I do not see the file asmadmin in $ORACLE_HOME/bin

    The support doc
    Solution
    
    1. Manually change the oracle binary ownership and permission:
    as root user:
    # cd $ORACLE_HOME/bin
    # chgrp asmadmin oracle
    # chmod 6751 oracle
    # ls -l oracle
    Thank you
    Abhishek.

    I'll find a virtual solution taken in charge for this and put in place on that :)

    I'll close this thread for now

  • read the file of configuration for the virtual machine performance

    Hello

    is it possible to read a file from a virtual computer vmx when it is in use? The system is vSphere 5.5

    Regards Wolfgang

    Edit

    Please mention: I want to do with a vm running . The file is locked and I can't access it.

    Go to the copy and store the virtual computer is running in data and paste the .vmx into another folder. Then you should be able to download.

  • Virtual machine Configuration parameters

    Is it possible to set the configuration settings of virtual machines on a global scale?  Instead of going into the VIC and changing each other?  I have a lot of rules that must be applied to each virtual machine in my environment.

    Thank you

    Ryan

    You can do this for all your guests in the VC in this way:

    get-vm | %{
      $vm = $_ | Get-View
    
      $vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec
      $vmConfigSpec.extraconfig += New-Object VMware.Vim.optionvalue
      $vmConfigSpec.extraconfig[0].Key = "isolation.tools.paste.disable"
      $vmConfigSpec.extraconfig[0].Value = "True"
      $vm.ReconfigVM($vmConfigSpec)
    }
    
  • Hello. I need help developing a PowerCli script that will show me the current configuration of the video Ram of each individual virtual machine on a host\cluster or a vcenter. Can you help me?

    I have a script that will allow me to change the configurations of VRAM, but I need a script that retrieves the configuration of all virtual machines VRAM in my infrastructure.
    I need to get out information to a csv file and run this report on a monthly basis... can you help me?

    Right now my environment is mixed. I have Windows XP virtual machines set to 4 MB, Windows 7 virtual computers set to 8 MB and a subset of sall of virtual machines set to automatic detection of settings.

    I need to be able to recover these settings in a CSV file in order to use this information for comparisons of trdouble-shot performance issues...

    Thank you.

    vram.JPG

    Try something like this

    Get - VM |

    Select Name,

    @{N = "OS"; E={$_. ExtensionData.Config.GuestFullName}},

    @{N = "VideoRamMB"; E = {}

    [math]: Round (($_.)) ExtensionData.Config.Hardware.Device |

    where {$_-is [VMware.Vim.VirtualMachineVideoCard]} |

    (Select VideoRamSizeInKB - ExpandProperty) / 1 Ko, 1).

    }} |

    Export-Csv vm - videoram.csv - NoTypeInformation - UseCulture

Maybe you are looking for

  • AirPort Extreme & Electrical Outlet Timer

    Hello I have the newest AirPort Extreme (http://www.apple.com/shop/product/ME918LL/A/airport-extreme?fnode=7f) and I recently moved to my room in my basement to the second guest room floor providing a 2.4 GHz and the private network wifi 5 GHz (two s

  • Restart the StampAngle.Plist question

    It is the new screen I get when my iMac restarts now, I don't know why this started happening <? XML version = "1.0" encoding = "UTF-8"? > <! DOCTYPE plist PUBLIC "-computer //Apple / / DTD PLIST 1.0 / / IN" "http://www.apple.com/DTDs/PropertyList-1.

  • Satellite L650-123 - computer lag during the CoD game

    I've had this computer for a little while now, and it lags when I play games. The shift appears every time when I play Modern Warfare 2 and it lags even when I play Age of Empires 3. The computer is running smoothly for 2 seconds, then he accuses a d

  • Confused about Skype

    What is my Skype number to give if someone wants to call me?

  • Skype credit appears on the mobile phone 0

    I have a credit non-zero on my Skype account. However, I recently bought a ZTE Blade S (Android 2.3.5), downloaded Skype on it, but I found 0 euros on the account (same ident, same password, so it is normally the same account). When I connect Skype o