VM / resource pool Configuration

Now that I've answered my own question, and the little light in my head is enabled, I have a better understanding of the relationship between the virtual machines and Resource Pools.  But a follow-up question that I hope that experts can answer that for me is this: after I have create a pool of resources and define the limits of the resources, what I have to change anything on the virtual machines?  In other words, if the virtual machines are configured for unlimited CPU and memory, they are limited by the amount of correct pool?  What would be the reasoning to restrict the VMs and the memory, if I can control it by a pool of resources?  At least for me and please correct me if I'm wrong, if I put limits on virtual machines why I would put in resource pools?

limits/actions/reservations for the virtual machines are now applied to resources being provided by the resource pool - for example - if you have 10 GB limit set for the pool of resources out of 64 GB of the bunch, it's-if you have a limited memory set to unlimited for the virtual machine in this resource pool the maximum amount of memory for the virtual machine will never be able to get 10 GB is However if the resource pool memory limit has the unlimited value of the virtual machine will be able to go to 64 GB

If you find this or any other answer useful please consider awarding points marking the answer correct or useful

Tags: VMware

Similar Questions

  • vCenter Resource Pool Configuration Question

    Hello all - I did some research for this topic area, but was unable to find anything, so I thought I would ask:

    Is it possible to give less physical RAM that the VM sees a VM?

    Backstory is I know of course in more than one of you: DBA SQL insists that his VM needs X amount of RAM, so if I look at the performance of the virtual machine, it don't use Y, even in a year.  Given that it requires a significant portion of available RAM our guests, I would like to put him to bed in something easier to manage than it does currently.  It's been a while since I covered her in the class, but I recall being able to do what I'm trying with pools of resources, I'm not as experienced as I'd probably with them...

    Thank you.

    EDIT: so far I created a pool and added just that VM, then set a limit under the section of memory for the amount I know he needs, but I guess that I'm not sure if vCenter will see many trying to automated vMotion or if she'll still treat as the amount of RAM.

    Yes VIClient just click on modify Settingson the VM, go to the "resources" tab, highlight memory, clear the unlimited checkbox and then set a limit = to real RAM you want assigned to the computer by the hypervisor and not think the BONE there.

    In the Web Client, select change settings, hit the drop down to memory and make the same change.

  • pass fails with a missing resource pool alert

    Hi, I have a server dell power edge r510, with ESXi 5.0 is installed in it.

    in one of the virtual machines within this server, I installed Vcenter (I think that it is Version 5.1) everything was stable until the vcenter database gets 10 GB and crashed and I couldn't fix it. So I installed a new windows with vcenter 5.5 inside vps. and for this new vcenter reconnected to the server. so, I've reconfigured resource pools and VPS users again in this new vcenter.

    Watch ESXi host now as does not not to the vcenter. but all virtual machines inside the esxi server work without problems.  I can't reconnect to the host in vcenter, and I can't connect directly to the ESXi via vsphere client and root password.

    but I can log on to the esxi via ssh or console.

    from the console, I restarted the management services, but it does not help.

    the SSH, I ran the following commands:

    status /etc/init.d/vpxa #.

    vpxa is running

    status /etc/init.d/hostd #.

    pass is not running.

    When I restart pass, it is said has started, but after a few minutes still pass fails.

    l # /etc/init.d/hostd restart

    Watchdog - pass: PID of the file/var/run/vmware/watchdog-hostd. PID does not exist

    Watchdog - pass: impossible to end guard dog: no monitoring running processes to pass

    SH: you must specify which kill

    [421281] Begin ' pass ++ min = 0, swap, group = pass etc/vmware/hostd/config.xml', min-uptime = 60, max-fast-failures = 1, max-total-failures = 1000000, bg_pid_file = "

    pass began.

    **********************************************************

    status /etc/init.d/hostd #.

    pass is running.

    ***************************************************************

    but I can't use all the controls of esxcli.

    List of the allowedip of esxcli network firewall ruleset

    Connect to locahost failed: connection failure

    ************************************************************

    status /etc/init.d/hostd #.

    pass is not running.

    ***************************************************************

    I searched the problem on localhost, Ko, said check the CPU usage is below 90%, which is good in my esxtop, then says check network ports and pings, they were right, too, said to check/etc/hosts to 127.0.0.1 localhost entry and checking /etc/resolv.conf and they were right too. as I can ping localhost and localhost nslookup returns 127.0.0.1

    then I started reading the server logs and found this error output of vm-support: hostd.log

    [cntos58-64-Farzin - 105.vmx'] could not get the parameters of resource for a virtual machine under tension

    Award of the VM ' / vmfs/volumes/.../cntos58-64-Farzin-105.vmx' to the root resource pool - configured pool 'pool11' does not exist

    SysInfo error on return operation State: verification of Admission of cpu resource failure. See the VMkernel detailed error information log

    cntos58-64-Farzin - 105.vmx: vim.fault.InsufficientCpuResourcesFault

    *************************************************************************

    How can I change the list of resources of the VM to ssh when esxcli do not work?

    I am facing this problem recently, almost all the 5 days the server will respond is not in vcenter, restart the entire esxi server can solve the problem but it apears again.

    I think that resource in vcenter pools doesn't sync properly with the configuration of esxi, as when I connect to the server directly with root/vshpere it shows different configuration than what I see in vcenter!

    and I can't upgrade esxi host because there are about 10 VPSes important and stable running on this server which is my main server and I can not have time on this server or migrate virtual machines to a different server/IPs.

    because I'm not sure of the compatibility of the versions of drivers/bios nic with ESXi 5.5 and I fear that if I update the ESXi from 5.0 to 5.5 I face other questions strangers/downtime.

    I had the server up and running again, by editing this file: /etc/vmware/hostd/pools.xml

    then I found the VPS with id of the pool of resources 11 evil, changed for another pool of resources as the other virtual machines.

    2014 07-29 T 08: 38:52.64965Z

    2

    pool366

    and then made a

    restart the /etc/init.d/hostd

    all started working again without restarting the whole esxi server and turn off virtual machines, I have searched for about 1 day to solve this simple thing!

    even once when I made a few changes in the vcenter, and then restarted resource pool settings move it in ssh, it fails under vcenter changed the VM resource for a bad configuration pool.

    so I changed the resource pool manually xml and restarted spend, while vcenter can connect to the esxi host.

    then vcenter, again removed all the resource pools and created new resource pools. and this question of time is set.

    There was some resource pool configuration that was imported from esxi host to vcenter which was no longer available and has not been deleted in syncronizations between esxi and vcenter when changed resource pools. and the list of the missing resources caused problems.

  • N + 1 configuration with 4 physical blades that are assigned to a single resource pool

    I want to be able to define an N + 1 configuration where a resource pool gets the power of equivalent treatment of the 3-blade expandable in the fourth blade. In addition, I want to make it worth the custom action that ensures that the resource pool gets all the time shared four physical hosts in contention.

    Here is the command I use to customize this value. All I need to know is how to customize the number of shares to ensure that he is the owner of all the time the equivalents 4 blades in our cluster.

    Together-ResourcePool - ResourcePool (Get-ResourcePool 'STI WinSTIS Lab"- location xen01) MemReservationGB - 767.795356750488 - MemExpandableReservation 255.931785583496 - CpuReservationMhz 167940 - CpuExpandableReservation 55980 - CpuSharesLevel custom - NumCpuShares? -Confirm

    Please look at the picture to see the stats on the host machine. Thanks in advance for the help.

    As far as I know, the number of shares of CPU of a resourcepool is a relative number you should see with regard to the number of shares of the other resourcepools CPU.

    Chris has a very informative post, with a PowerCLI script on the subject, see Understanding the in VMware vSphere Resource Pools

  • Configuration issue Resource Pool

    We do currently not pools of resources within our environment. What we seek to do is implement with reserves resource pools memory based on our VM sizes. For example, we will create a pool of resources of 4 GB for virtual machines with 4 GB of memory, a pool of resources for virtual machines with 8 GB of memory, 8 GB etc. We would then define the reserve of memory halfway (the virtual machine) for each pool. Thus, the 4 GB VM will have a reserve of 2GB. Our goal in doing this is to reduce the size of our swap files. We have a few virtual machines spread in our environment that are configured independently. For example, a 12 GB VM with a reserve of 6 GB has a 6 GB swap file. At the global level, it could save us a lot of space to store data.

    A few questions while doing this, however. What will happen for the VMs who have already activated bookings? The resource pool overrides the individual VM settings?

    And no one sees this as having harmful effects on an HA event? We had problems in the past in a different environment with reservations (big 38 GB +), and when we lost a multitude of virtual machines have been unable to turn on because there was no more available resources.

    Resource pool reservations have no effect on the reservation of the virtual machine in the pool - they are independent

    Difficulties with HA is a question - another is by assigning reservations to all VM you can come to the point where an ESXi host won't have enough memory to satisfy the reserve causing the VM does not start.

  • The list of all the Resource Pools that are part of a group of ESXi

    Hello

    I'm trying to get a piece of code work that will list all the resource pools that are present in a cluster of ESXi.

    • I know I can find what list of resources of a virtual machine resides in.  I don't want that.

    // Find a matching resource pool on an ESXi hosts
      var esxiCluster = esxiHost.parent;
      var esxiClusterResourcePools = esxiCluster.resourcePool_ResourcePool;
    
    
      System.log("what is the ESXi cluster: " + esxiCluster.name);
      System.log("vimtype: " + esxiCluster.vimType);
      System.log("what pools exists: " + esxiClusterResourcePools);
    

    So I know that the vimType will come back with what I expect (ClusterComputeResource).  The question I have is the object "resourcePool" is reference to the root resource list (in my case, it is 'resources').

    What I want is all DRS resource pools are configured.  I need something like "resourcePool_ResourcePool.children".

    Any help is appreciated.

    Thank you

    B

    Hello

    Check if this code example that works in your case:

    var esxiCluster = esxiHost.parent;
    var esxiClusterResourcePools = esxiCluster.resourcePool_ResourcePool;
    var pools = System.getModule("com.vmware.library.vc.resourcePool").getAllChildResourcePool(esxiClusterResourcePools);
    
    // dump names of child pools
    for each (var pool in pools) {
      System.log(pool.name);
    }
    
  • How can I restrict a resource pool to a single data store?

    I am setting up an environment to exercise for different groups of users and you want to limit/permissions to users in each resource pool so that they see only the data store where their enclave of virtual machines.  I was able to configure the actions of CPU and RAM correctly, but access to storage is stumping me.  Clarification: I'm not worried about storage i/o, just permissions/quotas on the data store itself.  Did anyone done this before?  Any help would be greatly appreciated.  Thank you.

    Exactly what I need.  Thank you very much.

  • Resource pools/shares

    I was reading some post about resource pools and I assure you that I understand correct.

    When you change a specific value of the VM action, it's realitive to the share which sound in.  For example:

    If you have a high hand and a low pool resources share configured.

    In this resource pool low hand, you have three virtual computers.

    2 virtual machines have normal stock and 1 VM high shares

    Who would give highest priority to 1 VM compared to what is in the correct low resource only, pool?  He wouldn't have a higher priority, then lets say to a virtual machine that is in the list actions high resources?

    Hello

    Correct, the VM with the high unit value is always on the upper side to use resources from the pool.

  • Understanding of the resource pools

    I thought I knew pools of resources but realize that my interpretation is wrong and despite reading the documentation and navigation

    messages on this site, I'm still confused and hoping someone can help.

    I thought that:

    1. set up a reserve of 256 MB of Ram on a pool of resources means that each virtual machine has been awarded to a minimum of 256 MB of RAM and that if this

    was not available, then the VM not illuminate.

    2. If the limit has been set to unlimited (or even a limit capped to say 90% of the available RAM) a VM would use more RAM if needed.

    3. the allocation of memory in the definition of a virtual machine in the settings was not relevant because the vm used as much ram has been defined by the resource pool.

    However, I can see my graphics that some virtual machines, while using very little memory, resemble the memory is limited.

    What I mean is that when I look at vcentre: resource - VMS-> guest mem % pool. I see a percentage high and in some cases

    the bar indicator changes from green to yellow. I do not know what threshold is reached - possibly the amount of RAM allocated to the VM in its

    configuration settigs.

    So should I do the following:

    1 build a virtual machine and to allocate as much RAM as I think that the VM needs

    2. set the memory reserve on a pool of resources as being the sum of which has been attributed to each virtual machine

    3 or the reservation to be what I think, that each virtual machine will usually use the value

    4. If done correctly, then vms uses more memory in the limits imposed.

    Is none of this?

    TAM

    1 build a virtual machine and to allocate as much RAM as I think that the VM needs

    Of course, it is better to give more ram and maybe avoid swapping

    2. set the reserve memory on a pool of resources as being the sum of what

    have been allocated to each virtual machine

    Of course, you can, it depends on if you have too many commissioning

    3 or the reservation to be what I think, that each virtual machine will usually use the value

    Resource pools have just two functions restrict or warranty. Constraint is that if you overprovised a virtual computer, you can stop hunger on the other

    VMS. Or guarantee the current host does not have enough resources both by the DRS vmotion virtual machine to another host

    4. If done correctly, then the vms uses more memory limits

    imposed.

    Yes about

  • Understand how resource pools really work

    In the research on how to properly nail using the resources for the resource pools in our groups, I found that there are nuances that are not specifically documented about 'Booking' vs 'Limit' that relate to Resource Pools. If someone is an expert Resource Pool please chime. I am specifically looking for validation of what we believe is true.

    Here's the deal:

    So based on my interpretation of the response and our conception of resource pools, it looks like the 'limit' is always an important value that decided the full amount of the memory of the virtual computer (reserved memory + swapped memory shared memory + virtual memory) in a pool of resources to all virtual machines and does not imply that memory is drawn from a pool of resources of the parent.

    In our environment, we allow 'extensible booking '. Our question was, 'the value limit of importance. " We assumed that with the 'extensible' NOT VERIFIED that the value reserve limit didn't matter, even if it is not grayed out. So if the limit is not grayed out, it allows resources to be charged to the parent? I understand that this is not the case. In our case, the limit does not mean that the resources drawn from the parent, but seems rather this sets the cap of the memory of all virtual machines in the pool resource can use (reserved memory, expanded memory, shared memory + virtual memory).

    Example (1): we have a pool of resources called "Exchange-RP' 10 GB reserved, not expandable, and a limit of 20 GB. If we have 11 VMs each configured with 2 GB of ram (individual virtual machines have no reservation but the virtual machine is configured to 2 GB).

    We can power on the first 10 virtual machines (10 x 2 = 20 GB) but the 11 will not because it exceeds the limit.

    In this example how the 10VMs become the 2 GB? I guess everyone gets 1 GB of physical memory and consists of 1 GB of virtual memory (swap, shared, etc., not physical ram). At no time is issued physical memory of the mother.

    Example (2): given the exact scenario above. If the unlimited checkbox is enabled (limit is grey = unlimited), it would mean that the VM 11 would now be allowed to be turned on and booking of physical memory it is just must be shared by all the virtual machines in the pool. It seems that once that we receive too many virtual machines powered that there is too little physical ram per virtual computer and we will begin to see the excessive ballooning and swapping then in turn affect performance.

    Please confirm the above examples is accurate of how memory is managed.

    We are looking to validate that the RP limit value is always important as a strict limit of all memory used by the VMs, not only physical (reserved memory). None of the VMware documents speak to this.

    Thank you

    Jase

    Welcome to the Forums - example 1: I understand, it's the list resources should act as a host that you oversommit the memory assigned to the list of resources - so you should be able to on this 11th VM - with 11 VM all who are in need of 2 GB and with the limit set at 20 GB - if all VMs using their 2 GB and no page sharing occurring I expect to see ballooning by VM vmkernel swap files - now used if you have 2 GB reservations you would be able to turn on 5 VMs in this example because with 5 virtual machines would use you all 10 GB of memory reserved - value and the vmkernel will not power on a virtual machine if it cannot guarantee its reserve-

    Example 2 - see above - even with alimit together, you will be able to oversommit the memory in the RP - the only thing you will earn if you have the limit set to unlimited is that you be Basel to put multiple virtual machines and impact on all users on the ESx host or cluster -

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • Script to check the correct resource pools

    Hi guys

    Hoping someone can help with PowerCLI issue?

    I want to set up a script PowerCLI who together share CPU and memory allocated to all VMS in each Resource Pool, add them together and compare them with resource information in the list of resources and those who differ from a CSV output (including how on every property is different).

    The idea is that this script will quickly check through our vast domain for incorrectly configured in the resource pools (ie. those who have not been updated).

    Anyone able to help give advice on how I can get that data into PowerCLI from the pool of resources and the virtual computer?

    Thank you very much

    -


    a crazy penguin

    http://www.acrazypenguin.com

    I don't know if the values you provide are correct for what is planned.

    Especially the MaxCpuUsage won't say much because this will normally reflect the total amount of CPU resources on the host (provided that the customer has no defined limits).

    The following should give a better picture (I guess)

    $dcName = 
    $report = @()
    $dc = Get-View -ViewType Datacenter -Filter @{"Name"=$dcName}
    Get-View -ViewType ResourcePool -SearchRoot $dc.MoRef | where{$_.Name -ne "Resources"} | %{
         $rp = $_
         $rpMem = 0
         $rpCpu = 0
         Get-View -ViewType VirtualMachine -SearchRoot $rp.MoRef | %{
              $rpMem += $_.Summary.QuickStats.hostMemoryUsage
              $rpCpu += $_.Summary.QuickStats.overallCpuUsage
         }
         $report += New-Object PSObject -Property @{
              Name = $rp.Name
              "VmCpuTotal (MHz)" = $rpCpu
              "VmMemTotal (MB)" = $rpMem
              RpCpu = $rp.Runtime.Cpu.UnreservedForVm
              RpMem = $rp.Runtime.Memory.UnreservedForVm / 1MB
         }
    }
    $report | Export-Csv "C:\ResPool.csv" -NoTypeInformation -UseCulture
    

    Note that this does not overcommitment account. To have the script must use the unreservedForPool rather than the UnreservedForVm property property.

  • Question about Lab Manager and ESX Resource Pools

    Hello world

    I was wondering if I can get feedback from some of the members of the community.  We used Lab Manager very strongly in our support organizations and it has proved to be a valuable tool.  Recently, we collaborated with the Department of technical training and started hosting online seminars and classes for them using Lab Manager.  Last week we had a fairly large class of users (approx. 45), each duty deploy 2 rather Beefy VMs that were very intensive resources (Jboss, SQL, Mail to name a few).  My colleague and I went through a lot of trials and planning to ensure that our infrastructure can handle the load while allowing our users to date at the same speed and reliability, so that they are used.

    Our Lab Manager ESX server pools made up of the following:

    5 HP DL380 G5 servers with 2 x Quad Core 2.8 GHZ processors (8 cores each) with 32 GB of RAM each

    2 HP DL580 G5 servers with 4 x Quad Core 2.8 GHZ processors (16 cores each) with 128 GB of RAM each

    When the class is running and everyone has made their 2 machines, we noticed for some reason, he was all on ESX2 and 3 deployment (380 s).  Then came the ESX alarms, use of 90% of memory, then more than 100% bringing the disk page.  The CPU usage was at a all time high.

    I look at the 2 580 s and there are about 4 virtual machines deployed on them.

    So my question is...

    How does he know where to launch a Virtual Lab Manager machine?  There's no sense 2 servers have been brought to the red zone, and almost overloaded when the 2 most powerful servers in my farm are nearly dormant.  I noticed sometimes in the past, but not this bad.  Normally, we have about 45-50 computers deployed at some point and it seems to spread them out properly.

    This group of training has access to the same LUN and ESX server with Betclick as any other organization that we have.

    We have decided hosting several sessions of training may be greater than this one and would like to know that the virtual machines will be distributed properly.

    I would like to know your opinion on this

    First to answer your question, then make guess what happens.

    As indicated in response Ilya, LM distributed VMs differently with active DRS resource pools and pools of resources without active DRS.

    LM place VMs when the DRS is not used.

    When DRS is used, we use the DRS admission control to select the host to place virtual machines.

    DRS is turned off, LM uses its own placement routine:

    For each virtual machine, LM filter all managed servers that cannot run the virtual machine. A complete list of patterns are:

    • The managed server has not enough memory or quota for virtual machine to run the virtual machine.

    • The host is not connected to the data store that is the virtual machine.

    • The virtual machine has active state (suspended) and the CPU of the server managed by the waking state has been captured is not compatible with the managed server currently considered.

    • The virtual machine has been a guest on 64-bit and the managed server is not 64-bit capable.

    • The virtual machine has more processors than the managed server.

    • The managed server is not accessible or is set to "prohibit deployments." Not reachable may mean that the lm-agent or its not to ping queries is not answer (this is visible in the list of managed server page).

    Once we have the complete list of eligible servers, we place the virtual machines on the host including the smallest (MemoryReservation % + CPUReservation %). By default, we reserve not CPU on LM VMs, this internship will be largely due to the memory on the host computers if you have not changed the settings of reservation of CPU on your virtual machines.

    For closed deploy to the PF3, force us all virtual machines to go on the same host, so if any virtual machines have any special data store / CPU type specification, all virtual machines is forced to go on this host. If there are conflicting requirements between different virtual machines in the same configuration, deployment will fail. Closed VMs also have another condition to check that is rarely achieved in practice: number of closed networks available on the managed server. By default, this is 20 and you will need more than 20 different configurations closed running on a managed server before you who will strike.  (LM4 allows Cross fencing host, so this does not apply in LM4).

    To make a guess blind because of your distribution problem - if you use the saved state and fencing, it's probably the type of processor.  Processor type can be checked on the host properties page.

    If you not are not I would check that the images can deploy on the 580 s by disabling the 380s and trying to deploy them.

    If you use DRS (which you're not), it could be due to deployment of virtual machines too fast for the algorithm of control for the entrance of VC.  An easy solution for this is to extinguish the DRS on the cluster manager of laboratory.

    We tested load internal repeatedly, the product QA in different laboratories, we run (LM has been used in VMworld Labs for the past couple years and internal systems of training and demonstration for our Organization implemented SE), so no need to worry about this.  I assure you that the first 'real' performance problem you will encounter will be almost certainly due to an overload of your storage array (too many IOPS / s)... and for that you have to distribute content in data warehouses and use techniques of creating paths to balance the load.

    Kind regards

    Steven

    Another thread on this: http://communities.vmware.com/message/1258902.

  • The provision of Resource Pool error

    Hello, I use VDM Administrator 2.1.0 build-596 and VirtualCenter 2.5.0 Build 147633.

    I created a resource pool in VDM which worked for a few months.  Now I get "error duringdeployment...". date time stamp...: refused permission to perform this operation. "I tried to get this to work with two different users.  One is an administrator at the level of the VM and models.  The other is an administrator at the data center level.  It looks like a problem of permissions for me, but the two users are administrators at each level.  Can someone please point out what I'm missing.  Any help will be appreciated!

    Thank you.

    Verify the account in which you use in VDM administrator who will connect to your instance of vCenter.

    Click on the button Configuration - VirtualCenter servers.

  • CloneVM_Task fails on the resource pool when cloning tempalte

    I'm trying to use the CloneVM_Task to clone a template, but it keeps failing because no resource pool.  We have a cluster with no pool DRS/HA or resources configuration, we use the cluster for the VCA mode.

    I have a reference to the host server, but I don't know what is needed for the pool of resources, given that we have not one.

    While

    cloning a virtual machine from a template, the resource pool is a required parameter.

    It specifies the resource pool that this virtual machine should be attached.

    Incase you do not have a resourcePool hierarchy, you must specify the root

    resourcePool 'Resources' as a resourcePool. It's the resourcePool

    managed your ComputeResource object. A ComputeResource always has a root

    ResourcePool associated with him.

  • Resource pool limit Datastore Quota

    Hello

    I need to limit the quota of data store for a specific group, e.g. they can only allocate 1 TB to 10 TB data store for their virtual machines.

    CPU and RAM are possible with resource pools, but how can I accomplish this with data warehouses?

    what you are asking for can be easily achieved in vRealize Automation or vCloud Director.

    But in the vSphere environment, you have to achieve by using roles and permissions, where you create datastore with limited storage space and assign permission to users wished to not to exceed the use of storage space after certain limit. That way they won't see all data warehouses and they will not be able to use all the space.

Maybe you are looking for