Virtual machines based on statement records

I'm looking to count the number of virtual machines that are contained in each of the top level folders in vCenter Server.  For example, there are 10 top-level folders - in folder1 of higher level, there are 200 virtual machines (including all folders under this folder), and in the 2 top-level folder there are 250 mV and so on.

Any contribution appreciated - thank you!

Greetings, @TheVMinator-

This can be done quite easily by using the parameter - NoRecursion on Get-file.  So, assuming that the folder structure is something like:

myVCenter
  smallDatacenter
    + topFolder0
    |   + subfolder0
    |   + anotherSubfolder
    + topFolder1
    |   + thisFolder0
    |   |   + deeperFolder
    |   + subfolderHere
    + topFolder2
    |...

You can use the following to get the top-level folder names and counting the number of VMS in each top-level folder and all their subfolders:

## get the given datacenter, then get the built-in "VM" folder, then get the top-level folders there, and foreach top-level folder
Get-Datacenter "smallDatacenter" | Get-Folder "VM" | Get-Folder -NoRecursion | %{
     ## create a new object that contains the folder name and the count of the VMs in this folder and all of its subfolders
     $oOutput = New-Object -Type PSObject -Property @{
          "FolderName" = $_.Name
          "VMCount" = @(Get-View -ViewType VirtualMachine -SearchRoot (Get-View $_).MoRef -Property Name).Count
     } ## end New-Object
     ## write out the info
     $oOutput
} ## end Foreach-Object

This will display a single object by top-level folder, each with the name of the folder and the number of VM for the folder and all its subfolders.

Enjoy

Tags: VMware

Similar Questions

  • Sorting of virtual machines based on the record, they are in

    I want to sort vm based on the record, they are everyone knows how to do this? Even better export to the excel sheet.

    You want only the name of folder or the complete file path?

    If it's only the name of the folder, you can use a slight variation on the script in the list of VMS by folder name.

    Something like that

    $report = @()
    
    Get-Folder | %{
      $folder = $_.Name
      $_ | Get-VM | %{
        $row = "" | select FolderName, VMName
        $row.FolderName = $folder
        $row.VMName = $_.Name
        $report += $row
      }
    }
    $report | Sort-Object -Property FolderName | Export-Csv "C:\VM-by-folder.csv" -NoTypeInformation
    
  • rename several virtual machines based on the State of food & VM name

    I'm looking for a powershell script to rename the virtual machine based on the state name and vm power.  For example, I have several virtual machines with a - temp at the end of the name of the server.  Some are turned on and some are turned off.  I am wanting to rename only those who is off

    Thank you

    tjw82

    Assuming that - temp is part of the name

    Get - vm | where {$_.powerstate - eq "poweredoff"} | foreach {Set-machine virtual - VM $_ - name (($_.name).)} Replace ("temp", "delete"))}

  • vRA 6.2 API - is possible to ask a new virtual machine based on a machine of model using the API

    Hello

    Is this possible in version 6.2 API at the request of a new virtual machine based on a model of Machine catalog?

    Thanks for the help in advance,

    Pieter

    Yes, you need to specify the new virtual machine in json format and publish it on/catalog-service/api/consumer/requests

  • Selection of virtual machines based on record of grandparent

    How can I get all the virtual machines that are NOT under a certain folder of grandparent?

    You could do something like that

    $folderName = "MyAccount".

    Get - VM | where {}

    (Get-View - ID (Get-view $_.)) ExtensionData.Parent | Select - ExpandProperty Parent) |

    (Select-ExpandProperty nom) - not $folderName}

    Or you can use the BlueFolderPath New-VIProperty of my post to file through .

    Then it would become

    $folderName = "MyAccount".

    Get - VM | where {$_.} BlueFolderPath - notmatch $folderName}

    If you have several files with the same name, you can provide the full folderpath, which would be more infallible in all cases.

    $folderName = "DC1, Blue1, myFolder.

    Get - VM | where {$_.} BlueFolderPath - notmatch $folderName}

  • Remove/delete virtual machines based on creation Date

    Hello

    I'm fairly new to PowerCLI and I'm not a coder strong. I've been reviewing through communities and [web] inter and this time, Google is not my best friend.

    I'm trying to make a script that deletes VMs of the disk based on the time of creation of virtual machines and the unique string in the VM name to avoid deleting other virtual machines then those I want. I would like to modify this script to remove the AD and SCCM objects, however, it's just a list of wishes

    You may be wondering why I don't want to do something like this and the answer is for testing purposes.

    I have a group trying to test applications in a lab environment and we want to make sure that the virtual machines are removed within 3 weeks being created without doing it manually.

    Any help with this would be greatly appreciated

    Then, you could make the Where clause more specific, something like

    where {$_ -is [VMware.Vim.VmCreatedEvent] -and $_.Vm.Name -like "LAB*} | %{
    
  • Auto-editions of production on virtual machines based on events

    Hello

    Is it possible to receive a VMS mail each time an event like high signature is detected, if we can automate this process, I am unable to find any these settings in virtual machines, can you please help me out of this.

    Thanks and greetings

    Salim

    This is a script that will work a bit on VMS and 4.1 sensors

    #! / usr/bin/perl

    Use Time::Local;

    #***********************************************************************

    #

    # FILE NAME: emailalert.pl

    #

    # DESCRIPTION: This file is a perl script that will be run as a

    action # when an event ID - MC rule fires and will send you a

    # e-mail to $EmailRcpt with additional parameters of the alerts (similar to)

    (# the features available with notifications of CSPM)

    #

    # NOTE: this script only works with 4.x sensors. It will be

    # does not work with the 3.x sensors.

    #

    # NOTE: This script takes the keyword ${Query} of the

    # triggered rule, extracts of all alarms that caused

    # the rule to trigger. It then reads the last alarm of

    # analysis of this set, the individual fields of alarm, and

    # calls the script inherited with the same set of command

    line arguments # as CSPM.

    #

    # The sequence of calling this script must be of the form:

    #

    # emailalert.pl "${Query}.

    #

    # Where:

    #

    # "${Query}"-this is the keyword query dynamically

    # output by the rule when it fires.

    # It MUST be wrapped in double quotes

    # When showing you in the Arguments

    # box on the rule Actions Panel.

    #

    #

    #***********************************************************************

    ##

    # The following is only two variables that must change. $TempIDSFile can be

    # filename (doesn't have to exist), make sure the directory you specify

    # exists. Make sure you use the backslashes 2 for each directory, the first backslash is

    # If the Perl interpreter is not error on the path.

    ##

    # $EmailRcpt is the person who will receive notifications by e-mail. Also

    # Make sure escape you the symbol by putting a backslash in front of him, if not @.

    # you will get a Perl syntax error.

    ##

    $TempIDSFile = "c:\\temp\\idsalert.txt";

    $EmailRcpt = "gfullage\@cisco.com";

    subroutine # add 0 in front in any variable of date that is less than 10.

    void add_zero {}

    my ($var) = @_;

    If ($var< 10)="">

    $var = '0 '. $var

    }

    return $var;

    }

    subroutine # to find one or more IP addresses within the XML tag (we can have several

    # victims or aggressors in an alert now).

    void find_addresses {}

    my ($var) = @_;

    my @addresses = ();

    If (m / $var /) {}

    $raw = $&;

    While ($raw = ~ m /(\d{1,3}\.)) {3} \d {1,3} /) {}

    push @addresses, $&;

    $raw = $';

    }

    $var = join (",", @addresses);

    return $var;

    }

    }

    # out command line arg

    $whereClause = $ARGV [0];

    # extract all the alarms corresponding search expression

    $tmpFile = "alarms.out";

    # Extract the XML from the database alert/event.

    System ("IdsAlarms-if" $whereClause\ "-f\" $tmpFile\ "");

    # Open corresponding output alarm

    If (! open (ALARM_FILE, $tmpFile)) {}

    Print "Could not open $tmpFile\n";

    Output - 1;

    }

    # read the last line

    While () {}

    chomp $_;

    push @logfile, $_;

    }

    # clean up

    Close (ALARM_FILE);

    unlink ($tmpFile);

    # Open the temp file to write data alerts

    Open(out,">$TempIDSFile");

    # split the XML output in

    $oneline = join('',@logfile);

    $oneline = ~ s /-<\ vents\="">/ / g;

    $oneline = ~ s /-<\ valert\="">/-<\ valert\="">, / g;

    @items = split(/,/,$oneline);

    # If you want to see the result of database query in the e-mail, a comment on the

    # line below (useful for troubleshooting):

    # (print "$oneline\n");

    # Loop until there are no more alerts

    {foreach (@items)

    if (m/\(.*)\<\ ostid\="">/) {

    $hostid = $1;

    }

    If (m/severity = "(.*?)") » /) {

    $sev = $1;

    }

    If (m/Zone\=".*"\ >(.*)-<\ ime\="">/) {}

    $t = $1;

    {If ($t = ~ m/(.*)(\d{9})/ {)}

    ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime($1);

    # Year is reported from 1900 (eg. 2003 is 103).

    $year = $year + 1900;

    # Months begin at 0 (January = 0, February = 1, etc.), add 1.

    $mon = $mon + 1;

    $mon = add_zero ($mon);

    $mday = add_zero ($mday);

    $hour = add_zero ($hour);

    $min = add_zero ($min);

    $sec = add_zero ($sec);

    }

    }

    If (m/sigName = "(.*?)") » /) {

    $SigName = $1;

    }

    If (m/iRIMS = "(.*?)") » /) {

    $SigID = $1;

    }

    If (m/subSigId = "(.*?)") » /) {

    $SubSig = $1;

    }

    $attackerstring = "\".

    If ($attackerstring = find_addresses ($attackerstring)) {}

    }

    $victimstring = "\".

    If ($victimstring = find_addresses ($victimstring)) {}

    }

    @actions = ();

    if (m/\(.*)\<\ ctions\="">/) {

    $rawaction = $1;

    While ($rawaction = ~ m /-<(\w*?)\>(. *?)------)

    $rawaction = $';

    If {($2 eq "true")

    push @actions, $1;

    }

    }

    If {(@actions)

    $actiontaken = join (",", @actions);

    }

    else {}

    $actiontaken = 'none ';

    }

    }

    # Now write your notification e-mail. You write the following in

    # the temporary file at the moment, but it will then be sent.

    ##

    # Even once, be sure to escape the special characters with a backslash (note the: between)

    (# the hamid and the SubSig).

    print (OUT "\n$hostid reported an alert of severity $sev to $mon / $mday / $year $hour: $min: $sec\n");

    ("print ("Signature $SigName \($SigID\:$SubSig\) from $attackerstring to $victimstring\n ");

    print (THE "measures taken: $actiontaken \n\n" "");

    print(OUT "----------------------------------------------------\n");

    }

    Close (out);

    # Gives the word "blat" to send the file content in the body of an e-mail message.

    # Blat is a freeware for Windows NT/95 e-mail program, it comes with the virtual machines in the

    # $BASE\CSCOpx\bin directory, make sure that you install first by running:

    ##

    # blat - install

    ##

    # For more information on blat, simply type "blat" to the prompt on your system (make VMS

    # It's in your path (feel free to move the executable to c:\winnt\system32 FRONT)

    (# run you the facility, which will ensure that your system can still find).

    System ("blat \"$TempIDSFile\"t - \"$EmailRcpt\ "s - \"Received ID alert\"');

  • How to build a new virtual machine based on cluster with powercli?

    When you create a new virtual machine on cluster in the user interface, you cannot select the host, it is decided by the cluster.

    Now, I want to create a new vm on cluster by powerCli. I have not found any parameter to specify the cluster.

    Only the "$vmhost" to specify the host.

    Why are they so different?

    Can someone help me understand it and how to create a new VM on cluster?

    Thank you in advance!

    Hello, bob1118-

    While, as you said, it has non - Cluster parameter to the cmdlet New - VM, you _can_ effectively specify the cluster at new time of creation of VM via PowerCLI: you specify the list of resources within the desired cluster.  So a partial New - VM call would look like:

    New-VM -Name myNewVM0 -ResourcePool (Get-Cluster myDestinationCluster | Get-ResourcePool -Name "Resources") -Template ...
    

    Who uses the resource pool default "Resources" that exists in a cluster.  And, you could fill in the rest of the parameters relevant to the new virtual machine of your desires.  How do I?

  • Start the virtual machine based on the load of another virtual machine

    Hi all

    I am looking for a solution that will start the VM on request depending on the load on the other virtual machines, perhaps in the same resource pool. Essentially, the expected result would be something like this:

    -When the dv01 reaches 75% CPU usage for 15 minutes,

    -Boot VM02

    -Once dv01 was less 40% use for 30 minutes,

    -Close the VM02

    This could also be a new virtual machine that is upwards of a model and Sysprep, rather than one that just sits there, offshore and unused.

    I hope that the final objective is clear. Does anyone have recommendations on how to do it? I just did a quick search on certain clauses that I thought would be relevant and did not really turn anything upwards.

    Thanks for your comments!

    -James

    jamesgreen wrote:

    Hi all

    I am looking for a solution that will start the VM on request depending on the load on the other virtual machines, perhaps in the same resource pool. Essentially, the expected result would be something like this:

    -When the dv01 reaches 75% CPU usage for 15 minutes,

    -Boot VM02

    -Once dv01 was less 40% use for 30 minutes,

    -Close the VM02

    This could also be a new virtual machine that is upwards of a model and Sysprep, rather than one that just sits there, offshore and unused.

    I hope that the final objective is clear. Does anyone have recommendations on how to do it? I just did a quick search on certain clauses that I thought would be relevant and did not really turn anything upwards.

    Thanks for your comments!

    -James

    with raise vm02, you can set the alarm action to run a script that will start vm02.

    PowerCLI command would be

    Start-VM - vm VM02

    you could probably add an alarm if dv01 has a less than 40% cpu

    run another script

    the command is:

    stop-vmguest - vm-VM02

  • Model of the virtual machine - based model to customize

    Hello

    Am currently adapting this script (thanks Alex) http://www.jasemccarty.com/blog/?tag=powercli is a script all encompassing.

    I want to be able to deploy virtual machines to a CSV file and customize the model with a static IP address, attach it to the domain etc etc, attached is my current effort (poor)... If anyone can help me then that would be really appreciated.

    Thank you


    Dan

    The error message explains, run the PowerCLI 32-bit version.

  • Alarm, based on the State of the virtual machine

    Hello

    I just started to evaluate the vFoglight to monitor our infrastructure VMware and so far, I really like the product, but there are a lot of things to take.

    Y at - it a predefined alarm that will enhance and alert and send me an email if a virtual machine crashes or goes offline? The default rule "VMW Virtual Machine power status change" will do that?  I feel that this will tell me if the virtual computer is shut down or restarted, but could not workout if it marked the top if a virtual machine has frozen or crashed.

    In the past I did using the base "no heartbeat Mike" in vsphere.

    Any help would be appreciated

    Thank you

    Dan

    Hi Dan,.

    The Virtual Machine VMW power state change will do as below:

    Goal
    This rule triggers an alarm if a virtual machine has been suspended or powered down recently.

    The rule definition
    Conditions                                                                                           State   Action
    The virtual machine was not suspended or updates turned off recently.     Normal no
    The virtual machine has been suspended recently.                               No warning
    The virtual machine has been powered down recently.                                Reviews email VMware admin

    Maybe you can add, action of e-mail to the severity of the warning from the rule.

  • Crash when the instant withdrawal: State of the virtual machine is 'unknown (invalid) '.

    Hi all

    Currently, I'm in the middle of a nightmare: a few moments I tried to delete a snapshot that has been there for a while on one of my virtual machines. Of course, it can take a loy of time for this kind of operation to achieve, so I waited patiently so that it reaches its end.

    But in the middle of it my host had a kernel panic (I'll have to diagnose this one).

    When I got to new host, the virtual machine was not the webui, try saving it shows the machine as being "unknow (invalid)"...

    I scoured Suur intrenet for a while, but everything I have read until knowledge is quiet frightneging.

    Currently, the directory that stores all the files of the virtual machine is looking as follows:

    drwxrwxrwx 2 root root 4096 12 October 2008 564d583c-363e-0c7a-96e0-cd07d5b1a8e1.vmem.lck

    -rw - 1 root root 2147221504 2 May 20:31 colossus2_2new - f001.vmdk

    -rw - 1 root root 2147221504 19 Dec 13:04 colossus2_2new - f002.vmdk

    -rw - 1 root root 1074266112 Jan 11 22:27 colossus2_2new - f003.vmdk

    -rw - 1 root root 528 2 May 20:31 colossus2_2new.vmdk

    -rw - 1 root root 2147221504 2 May 20:32 colossus2_3new - f001.vmdk

    -rw - 1 root root 2147221504 2 May 20:32 colossus2_3new - f002.vmdk

    -rw - 1 root root 2147221504 2 May 20:32 colossus2_3new - f003.vmdk

    -rw - 1 root root 2147221504 19 Dec 13:04 colossus2_3new - f004.vmdk

    -rw - 1 root root 2147221504 Jan 11 22:35 colossus2_3new - f005.vmdk

    -rw - 1 root root 1310720 Jan 11 22:35 colossus2_3new - f006.vmdk

    -rw - 1 root root 661 2 May 20:32 colossus2_3new.vmdk

    -rw - 1 root root 2147221504 2 May 20:32 colossus2_4new - f001.vmdk

    -rw - 1 root root 2147221504 2 May 20:33 colossus2_4new - f002.vmdk

    -rw - 1 root root 2147221504 2 May 20:33 colossus2_4new - f003.vmdk

    -rw - 1 root root 2147221504 2 May 20:34 colossus2_4new - f004.vmdk

    -rw - 1 root root 2147221504 2 May 20:35 colossus2_4new - f005.vmdk

    -rw - 1 root root 1310720 Jan 11 22:42 colossus2_4new - f006.vmdk

    -rw - 1 root root 661 2 May 20:35 colossus2_4new.vmdk

    -rw - 1 root root 1868365824 2 May 22:13 colossus2_5new-000001 - s001.vmdk

    -rw - 1 root root 1637482496 2 May 22:13 colossus2_5new-000001 - s002.vmdk

    -rw - 1 root root 2114256896 2 May 22:13 colossus2_5new-000001 - s003.vmdk

    -rw - 1 root root 2114256896 2 May 22:13 colossus2_5new-000001 - s004.vmdk

    -rw - 1 root root 2114256896 2 May 22:13 colossus2_5new-000001 - s005.vmdk

    -rw - 1 root root 2114256896 2 May 22:13 colossus2_5new-000001 - s006.vmdk

    -rw - 1 root root 2096824320 2 May 22:13 colossus2_5new-000001 - s007.vmdk

    -rw - 1 root root 554369024 2 May 22:13 colossus2_5new-000001 - s008.vmdk

    -rw - 1 root root 1728839680 2 May 22:13 colossus2_5new-000001 - s009.vmdk

    -rw - 1 root root 2114191360 2 May 22:13 colossus2_5new-000001 - s010.vmdk

    -rw - 1 root root 1659371520 2 May 22:13 colossus2_5new-000001 - s011.vmdk

    -rw - 1 root root 1527775232 2 May 22:13 colossus2_5new-000001 - s012.vmdk

    -rw - 1 root root 1578958848 2 May 22:13 colossus2_5new-000001 - s013.vmdk

    -rw - 1 root root 1611792384 2 May 22:13 colossus2_5new-000001 - s014.vmdk

    -rw - 1 root root 1602945024 2 May 22:13 colossus2_5new-000001 - s015.vmdk

    -rw - 1 root root 2114256896 2 May 22:13 colossus2_5new-000001 - s016.vmdk

    -rw - 1 root root 2085617664 2 May 22:13 colossus2_5new-000001 - s017.vmdk

    -rw - 1 root root 2114256896 2 May 22:13 colossus2_5new-000001 - s018.vmdk

    -rw - 1 root root 2114256896 2 May 22:13 colossus2_5new-000001 - s019.vmdk

    -rw - 1 root root 2114256896 2 May 22:13 colossus2_5new-000001 - s020.vmdk

    -rw - 1 root root 2114256896 2 May 22:13 colossus2_5new-000001 - s021.vmdk

    -rw - 1 root root 2114256896 2 May 22:13 colossus2_5new-000001 - s022.vmdk

    -rw - 1 root root 2114256896 2 May 22:13 colossus2_5new-000001 - s023.vmdk

    -rw - 1 root root 132055040 2 May 22:13 colossus2_5new-000001 - s024.vmdk

    -rw - 1 root root 327680 2 May 22:13 colossus2_5new-000001 - s025.vmdk

    -rw - 1 root root 65536 2 May 22:13 colossus2_5new-000001 - s026.vmdk

    -rw - 1 root root 1582 Mar 8 17:53 colossus2_5new - 000001.vmdk

    drwxrwxrwx 3 root root 4096 2 May 22:14 colossus2_5new - 000001.vmdk.lck

    -rw - 1 root root 2147221504 2 May 20:36 colossus2_5new - f001.vmdk

    -rw - 1 root root 2147221504 2 May 20:36 colossus2_5new - f002.vmdk

    -rw - 1 root root 2147221504 2 May 20:37 colossus2_5new - f003.vmdk

    -rw - 1 root root 2147221504 2 May 20:38 colossus2_5new - f004.vmdk

    -rw - 1 root root 2147221504 2 May 20:39 colossus2_5new - f005.vmdk

    -rw - 1 root root 2147221504 2 May 20:41 colossus2_5new - f006.vmdk

    -rw - 1 root root 2147221504 2 May 20:42 colossus2_5new - f007.vmdk

    -rw - 1 root root 2147221504 2 May 20:42 colossus2_5new - f008.vmdk

    -rw - 1 root root 2147221504 2 May 20:43 colossus2_5new - f009.vmdk

    -rw - 1 root root 2147221504 2 May 20:45 colossus2_5new - f010.vmdk

    -rw - 1 root root 2147221504 2 May 20:46 colossus2_5new - f011.vmdk

    -rw - 1 root root 2147221504 2 May 20:46 colossus2_5new - f012.vmdk

    -rw - 1 root root 2147221504 2 May 20:47 colossus2_5new - f013.vmdk

    -rw - 1 root root 2147221504 2 May 20:47 colossus2_5new - f014.vmdk

    -rw - 1 root root 2147221504 2 May 20:48 colossus2_5new - f015.vmdk

    -rw - 1 root root 2147221504 Feb 11 13:19 colossus2_5new - f016.vmdk

    -rw - 1 root root 2147221504 8 Mar 17:17 colossus2_5new - f017.vmdk

    -rw - 1 root root 2147221504 Jan 11 23:02 colossus2_5new - f018.vmdk

    -rw - 1 root root 2147221504 Jan 11 23:03 colossus2_5new - f019.vmdk

    -rw - 1 root root 2147221504 Jan 11 23:03 colossus2_5new - f020.vmdk

    -rw - 1 root root 2147221504 Jan 11 23:03 colossus2_5new - f021.vmdk

    -rw - 1 root root 2147221504 19 Dec 13:04 colossus2_5new - f022.vmdk

    -rw - 1 root root 2147221504 Jan 11 23:04 colossus2_5new - f023.vmdk

    -rw - 1 root root 2147221504 Jan 11 23:05 colossus2_5new - f024.vmdk

    -rw - 1 root root 2147221504 Jan 11 23:05 colossus2_5new - f025.vmdk

    -rw - 1 root root by 6553600 Jan 11 23:05 colossus2_5new - f026.vmdk

    -rw - 1 root root 1562 2 May 20:35 colossus2_5new.vmdk

    -rw - 1 root root 2147221504 2 May 20:31 colossus2 - f001.vmdk

    -rw - 1 root root 2147221504 2 May 20:31 colossus2 - f002.vmdk

    -rw - 1 root root 2147221504 2 May 20:31 colossus2 - f003.vmdk

    -rw - 1 root root 2147221504 2 May 20:31 colossus2 - f004.vmdk

    -rw - 1 root root 2147221504 2 May 20:31 colossus2 - f005.vmdk

    -rw - 1 root root 2147221504 2 May 20:31 colossus2 - f006.vmdk

    -rw - 1 root root 2147221504 2 May 20:31 colossus2 - f007.vmdk

    -rw - 1 root root 1075576832 2 May 20:31 colossus2 - f008.vmdk

    -rw - 1 root root 8684 2 May 20:19 colossus2.nvram

    -rw - 1 root root 714 2 May 20:31 colossus2.vmdk

    -rw - 1 root root 821 2 May 20:31 colossus2.vmsd

    drwxrwxrwx 2 root root 4096 2 May 22:13 colossus2.vmsd.lck

    -rwxr-xr-x 1 root root 2680 may 2 21:35 colossus2.vmx

    -rw - 1 root root 264 Jan 11 22:25 colossus2.vmxf

    -rw - rr 1 root root 98347008 1 October 2008 gparted-live - 0.3.9 - 4.ISO

    -rw - rr 1 root root 1581428 Jan 13 11:53 0.log - vmware

    -rw - rr 1 root root 771239 19 Dec 12:59 vmware - 1.log

    -rw - rr 1 root root 76388 Jan 11 23:21 vmware - 2.log

    -rw - rr 1 root root 10161063 2 May 20:18 vmware.log

    The vmx file contains the following:

    #! / usr/bin/vmware

    . Encoding = 'UTF-8 '.

    config.version = '8 '.

    virtualHW.version = "7".

    floppy0. Present = "FALSE".

    MKS. Enable3D = 'TRUE '.

    pciBridge0.present = 'TRUE '.

    pciBridge4.present = 'TRUE '.

    pciBridge4.virtualDev = "pcieRootPort"

    pciBridge4.functions = '8 '.

    pciBridge5.present = 'TRUE '.

    pciBridge5.virtualDev = "pcieRootPort"

    pciBridge5.functions = '8 '.

    pciBridge6.present = 'TRUE '.

    pciBridge6.virtualDev = "pcieRootPort"

    pciBridge6.functions = '8 '.

    pciBridge7.present = 'TRUE '.

    pciBridge7.virtualDev = "pcieRootPort"

    pciBridge7.functions = '8 '.

    vmci0. Present = 'TRUE '.

    NVRAM = "colossus2.nvram."

    virtualHW.productCompatibility = "hosted".

    FT.secondary0.enabled = 'TRUE '.

    Tools.Upgrade.Policy = "useGlobal".

    powerType.powerOff = 'soft '.

    powerType.powerOn = "hard."

    powerType.suspend = "hard."

    powerType.reset = 'soft '.

    displayName = "colossus2."

    extendedConfigFile = "colossus2.vmxf".

    scsi0. Present = 'TRUE '.

    scsi0.sharedBus = 'none '.

    scsi0.virtualDev = "free".

    memsize = "4096".

    scsi0:0. Present = 'TRUE '.

    scsi0:0. FileName = "colossus2.vmdk".

    IDE1:0. Present = "FALSE".

    IDE1:0. FileName = ' / vmachines/colossus2/gparted-live-0.3.9-4.iso '.

    IDE1:0. DeviceType = "cdrom-image".

    IDE1:0.allowGuestConnectionControl = "FALSE".

    ethernet0. Present = 'TRUE '.

    ethernet0.allowGuestConnectionControl = "FALSE".

    ethernet0. Features = "1".

    ethernet0.wakeOnPcktRcv = "FALSE".

    ethernet0.networkName = "Bridged".

    ethernet0. AddressType = 'generated '.

    guestOS = "rhel3.

    UUID. Location = "56 4 d 58 36 3 c 3F 0c 7 a - 96 cd 07 d5 b1 a8 e1 e0.

    UUID. BIOS = "56 4 d 58 36 3 c 3F 0c 7 a - 96 cd 07 d5 b1 a8 e1 e0.

    VC. UUID = "52 88 6f 19 b2 66 ae 20-28 5 c 6 b 8 b 96 a1 15 6 d.

    scsi0:1.present = 'TRUE '.

    scsi0:1.filename = "colossus2_2new.vmdk".

    scsi0:1.writeThrough = 'TRUE '.

    scsi0:2.present = 'TRUE '.

    scsi0:2.filename = "colossus2_3new.vmdk".

    scsi0:2.writeThrough = 'TRUE '.

    scsi0:3.present = 'TRUE '.

    scsi0:3.filename = "colossus2_4new.vmdk".

    scsi0:3.writeThrough = 'TRUE '.

    scsi0:4.present = 'TRUE '.

    scsi0:4.filename = "colossus2_5new - 000001.vmdk".

    scsi0:4.writeThrough = 'TRUE '.

    IDE1:0.startConnected = 'TRUE '.

    IDE1:0.clientDevice = "FALSE".

    ethernet0.generatedAddress = "00: 0C: 29:b1:a8:e1.

    tools.syncTime = "TRUE".

    scsi0:0. Redo = «»

    scsi0:1.redo = «»

    scsi0:2.redo = «»

    scsi0:3.redo = «»

    scsi0:4.redo = «»

    vmotion.checkpointFBSize = "16777216.

    pciBridge0.pciSlotNumber = "17".

    pciBridge4.pciSlotNumber = "21".

    pciBridge5.pciSlotNumber = "22".

    pciBridge6.pciSlotNumber = "23".

    pciBridge7.pciSlotNumber = "24".

    scsi0.pciSlotNumber = "16".

    ethernet0.pciSlotNumber = "32".

    vmci0.pciSlotNumber = "33".

    ethernet0.generatedAddressOffset = '0 '.

    vmci0.ID = "-709777183".

    sched.mem.pshare.Enable = "FALSE".

    mainMem.useNamedFile = "FALSE".

    MemTrimRate = '0 '.

    MemAllowAutoScaleDown = "FALSE".

    Could someone point me to a solution if there is? I have Saturday night here and I would not spend my Sunday to rebuild the server from scratch and have to explain Monday morning I lost 2 months of work for users little by relying on this virtual machine.

    Thank you very much in advance!

    bugjargal,

    In the past if I had a VM that is displayed as invalid when you try to add it to the inventory, I usually just created a new virtual machine based on the original settings & attached the existing VMDK.  Not sure how that will work with a virtual machine that has snapshots, but can be worth (nothing to lose)?

    Doug.

  • Several virtual machines are running, but are not in stock

    Hi all

    I hope that someone has experienced this condition and can help.

    Here's what I have.

    I have 13 VMs (Windows-based) I did some tests with the help of EMC RP DR. All servers in a group to ensure consistency with the two LUNs. I was able to failover of the environment on the site of copy and then restore to the original location.

    However, today when I didn't return the case I lost 4 virtual machines.

    -J' have 9 virtual machines I see in vCenter Server

    -The virtual machines that I've "lost" are running, and I can connect using RDP, but they do not appear in vCenter Server

    -Virtual machines are in their records in their data warehouses. When I find the appropriate folder and try to add to the inventory, the option is grayed out. Which suggests that the VM is saved, but when I search I do not see the instance.

    PowerCLI command revealed that the two Mas I have 9 powered on virtual machines. Like I said all 13 virtual machines are running.

    I asked each his vmInventory.xml of the host in the cluster file servers registered on all hosts are 9 instead of 13.

    I have not disassembled the DS during operations of RecoverPoint failover, power off just the virtual machines.

    Fortunately, this environment is not in full production, but which is the right thing.

    Someone at - he encountered this rather odd situation.

    If relevant, Bay storage is EMC VNX and access is any block.

    Kind regards

    no problem you are welcome!

  • Instant return reconfigure virtual machine

    I don't know if it's a bug or feature. anyway I can't find

    documented.

    symptoms:

    1 reconfigured vm (ethernet0.startConnected = 'FALSE')

    2. stop vm

    3 - create the snapshot ('x')

    4. turn on the virtual machine

    5 reconfigured vm (ethernet0.startConnected = 'TRUE')

    6 - work...

    7 - back to the snapshot ('x')

    8 turn on the virtual machine

    Well, what is the status of ethernet0.startConnected? does goto #3

    So FAKE (disconnected) or reconfiguration has nothing to do with

    Snapshots is TRUE (logged)?

    Well the result by me is false (disconnected) (but I would not trust

    This is a feature and would save the *.vmx file eitherway)

    no idea why? all changes to the virtual machine are NOT in the vmdk the vmx?

    KB article 1009402...

    A snapshot:

    • Represents the State of a virtual machine at the point where she was taken.

    • Includes files, and the memory of a guest virtual machine operating system state.

    • Includes the settings and configuration of a virtual machine and its virtual hardware.*

    • Is stored as a set of files in the same directory as the other files that make up a virtual computer.

    • Must be taken when testing something with unknown or potentially harmful effects.

    • Is not intended to be a robust backup and restore method. If a virtual machine files are lost, the snapshot files are also lost.

    • A negative impact on the performance of a virtual machine. This is based on how long it has been in place and how the virtual machine and the guest operating system have changed since the time that it was taken. It is not recommended to run virtual machines of production out of shots on a permanent basis.

    • Can take as much disk space as the virtual machine itself. If multiple snapshots are possible, the amount of disk space used increases with the number of snapshots in place.

    VMware VCP4

    Review the allocation of points for "useful" or "right" answers.

  • Maintain several XP Virtual Machines

    Hello, I am a developer consultant from several different companies.  I use a MacBook Pro bought this year and under snow leopard.  I bought the merger in order to maintain a XP Pro environment for each of my clients that require XP Pro.  In other words, for A Client I want to create an Image of XP for Client B I want to create XP Image B and so on.

    The first thing I did with the merger was to create a 'Basic Install' of XP Pro SP2 image and included several configurations I want present on each of my customer environments.

    Then, while this image was running, I took a snapshot.

    Then she draws from the virtual machine, I added a new virtual machine by selecting the following options...  Continue without disk > > use an existing virtual machine.  My goal here was to create a new virtual machine for A Client, but I wanted to use previously created base virtual machine.  Through the basic installation of hard file, I was able to create a virtual machine called A Client.

    Accordingly, I then had two virtual machines to choose "Install XP core" and "customer A".

    I have then boot the Client A virtual machine and install additional tools specific to the Client A.  After installation, I stopped the machine.

    In doing so, here are some of the questions that I ran...

    • 'Install base XP' also has new applications, even thought that I installed on another virtual machine

    • Cannot open disk '... vmdk' or one of the snapshot disks it depends on.  Reason: The virtual disk parent has changed since the child was created.

    What I am doing wrong?  It seems that even if I use another image to create a new virtual machine, the new machine should be completely separated from the mother.

    I was not able to find anything in help, Google or video tutorials on it.

    Please help me to stop the madness.

    When you select the vmdk creating the VM for A customer, that it will not create a snapshot based on this parent disk, rather he actually uses the disk parent (which explains why you get the error on the modification of the parent, because you have done this...)

    Fusion does not support trees instant (he can't go 1 branch), then you can't have several VM built on a single State as you can do it with my computer.

    Therefore, you will need to create a virtual machine from scratch (or simply copy it, launch it and then customize) for each of your Clients.

    So, the best solution I see would be to create a basic disk, and then copy it, and THEN create a new virtual machine based on this disc copied.

    Hope that clarifies things =)

Maybe you are looking for

  • Bluetooth Airpod and non-Apple devices

    Dear Sir I have laptop (Lenovo) with bluetooth Jabra wireless headset. Could I use the most recent Airpod with my laptop or any other non-Apple bluetooth device? Best regards Denis Miller

  • HP Jet 7: Cannot download the drivers

    Hi everyone, I am new to this forum and would be very grateful for any suggestions and help that you could give me. I have a 7 stream pc and have always had problems with internet connectivity and the rotation of the screen. I put and returned to zer

  • Recovering zwischen Laptop und Ethernet connection

    GIE muss the ich doch nur Stecker in die socket tuen oder den? den rest should mein portable gie allein machen... bin ich bisher gewohnt mixed so at least. ICH schaffe i - wie nicht kommen zu online, was muss ich dafur umstellen?

  • I want my hotmail unlocked!

    because your ad appeared I can't open my email.I want that it unlocked!

  • Is it Possible to downgrade Windows 7-Windwos Xp?

    It is Possible to downgrade Windows on a pc presario cq5300f to Windows XP? I already have a return of all drivers.