How to select the cluster/resourcepool data store?

Hello

as you know others my son, I'm working on a workflow to create several identical virtual machines on a VC-cluster.

At this time a virtual computer is created like this:

task = vmFolder.createVM_Task( configSpec, vmCluster.resourcePool);

Context is being filled with the configuration of the virtual machine. vmCluster is a workflow input parameter and contains the cluster.

It works well, but I still have to specify the data store to store files on a different input parameter, because the cluster has several shared storage units.

Note also that our clusters have only a single pool of resources, the default.

Let the user select a data store is not a very nice solution because of possible errors and mistakes (the user can select the local drive of the VMHost, lack of space on the storage selected etc..). But I, as a developer, also can not predefine the storage to use (several storage units, unit of different names etc.).

Now, what I've been thinking about (and trying to implement) was to get the vmCluster data warehouses or the resourcePool, check if they are put in place for the virtual machine files and if they have enough space for the virtual machine.

I know how to check the size and which storage are to be used for virtual machines, but I don't know how to get out them of the cluster/resourcepool.

Can someone help me with this?

Thank you and

Concerning

Andreas

PS: Is it just me or I really make things complicated with orchestrator here?

Hi Andreas,

One way to get the value of storage of data is to use VcSdkConnection.getAllDatastores

For more information, see here: http://www.vmware.com/support/orchestrator/doc/vco_vsphere41_api/html/VcSdkConnection.html#getAllDatastores

Personally, I have not played with it, but it seems very powerful.

There is discussion on the use of xpath in such a case in this topic (to get the value of VMs): http://communities.vmware.com/message/1673575

Other than that you could:

-use VcSdkConnection.getAllClusterComputeResource (gets all clusters) or VcSdk.getAllResourcePools

-in case you work with clusters - each cluster's data store property that returns an array of data for this cluster warehouses

-in case you use pools of resources, you must check that is the parent of each resource pool and get its data warehouses.

Kind regards

-Martin

Tags: VMware

Similar Questions

  • How to monitor the growth of data store

    I want to see what others are using to monitor the growth of data store. Everyone prefers Foglight HP SIM, Plugins and custom scripts?

    Mike

    Hello

    I played with them all, it's 6 of these, 6 of those. Nagios also has a plugin as well. All you need is something that will send/page when there is a problem. This is crucial.

    Best regards
    Edward L. Haletky
    VMware communities user moderator
    ====
    Author of the book ' VMWare ESX Server in the enterprise: planning and securing virtualization servers, Copyright 2008 Pearson Education.
    Blue gears and SearchVMware Pro items - top of page links of security virtualization - Security Virtualization Round Table Podcast

  • How to select the path of data through labview

    Hello gurus...
    I'm new user in labview. I want to read and write to the database via labivew. I have
    read and write the program. Now, I want to choose the way of storage of data through labview.
    I tried different ways, but I couldn't.
    First of all read and write the program I did via the UDL file path. Now, I want to choose ".mdb" file path directly.

    I do not know how...
    So if you know please help me...
    Thanks

    Concerning
    Joel M
    India

    Rather than trying to create an Access database, I have simply included a blank database with the installation.  Open, build the tables as required (as your example shows), and then copy (using the copy of the palette of Advanced File i/o) whenever you need it.  Your program will need to know where it is, therefore, store the connection information in a configuration file (as already mentioned) is a possibility.

    Here's how to use a connection string to open a database:

  • Script of VM inventory for VM name with the location, the name of the Cluster and data storing total size and free space left in DS.

    Hello

    I wanted to collect script inventory VM VM name with location, name of the Cluster and data store total size and free space left in Datastore.I have script but his mistake of shows during its execution. Any help on this will be apreciated.

    Thank you

    VMG

    Error: -.

    Get-view: could not validate the argument on the parameter "VIObject". The argument is null or empty. Provide an argument that is not null or empty, and then try
    the command again.
    E:\script\VM-DS-cluster.ps1:7 tank: 20
    + $esx = get-view < < < < $vm. Runtime.Host - name of the Parent property
    + CategoryInfo: InvalidData: (:)) [Get-view], ParameterBindingValidationException)
    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.DotNetInterop.GetVIView

    Get-view: could not validate the argument on the parameter "VIObject". The argument is null or empty. Provide an argument that is not null or empty, and then try
    the command again.
    E:\script\VM-DS-cluster.ps1:8 tank: 24
    + $cluster = get-view < < < < $esx. Parent - the name of the property
    + CategoryInfo: InvalidData: (:)) [Get-view], ParameterBindingValidationException)
    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.DotNetInterop.GetVIView

    Get-view: could not validate the argument on the parameter "VIObject". The argument is null or empty. Provide an argument that is not null or empty, and then try
    the command again.
    E:\script\VM-DS-cluster.ps1:9 tank: 24
    + += get-view $report < < < < $vm. Store data-name of the property, summary |
    + CategoryInfo: InvalidData: (:)) [Get-view], ParameterBindingValidationException)
    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.DotNetInterop.GetVIView

    It seems that your copy/paste lost some.

    I have attached the script

  • How can I get the list of data stores in a cluster data store?

    How can I get the list of data stores in a cluster data store? I mean the command line option.

    Hello

    by command line, you mean PowerCLI?

    If so, you can display data with this warehouses:

    Get-DatastoreCluster-name DSClustername | Get-Datastore

    Tim

    Edit: Moved the thread to the PowerCLI community

  • shows how to create the cluster of refnum user event

    I try to understand and copy this sup - VI, but I have problem in the construction of this cluster of refnum user event, and how to build the local variable?

    \

    It looks like your confusion comes from not knowing how to make a group of data, it's an accurate observation?

    To a cluster, you must create an empty cluster and new drag and drop in the cluster. In this case, how to make a refnum of the event, which is the right type of data, you must follow these steps:

    1. Set up the user event create with datatype.
    2. Right-click in the output, and then click on create Constant. This constant is now your refnum of correct data type
    3. Drag the new constant to a cluster to add it to the cluster. This could be within your DataSet defined Type called "Private Events" or another cluster.

    If you change the data type of your event, the wires that connect this event to the cluster of data interrupts the measure where you will have a data type mismatch.

  • Download VMDK files from the browser to the Web-based data store

    Hello

    I want to download the virtual computer VMDK file using the browser of the Web-based data store. I know how to do, but there is something I don't understand.

    I have configured my VM with a provisioning. From the VI client, I see that the size of the vm.vmdk is 4 GB.  The size of proviosned is 20 GB.

    Technically speaking, if I download the VMDK file, it should be 4 GB, however, from the browser on the vm - flat hard size Web-based data store is 20 GB... What is the standard behavior? Is there a way to download only the actually used 4 GB?

    Hello.

    This is the expected behavior, and as much as I know there is no work around if you use the browser to store data.

    Good luck!

  • How to find the last update date, time and user of the file field peoplecode

    How to find the last updated date time fields of peoplecode records?

    Thank you.

    We can check the update date-time using the following query

    SELECT LASTUPDDTTM IN THE PSPCMPROG WHERE OBJECTVALUE1 LIKE "RECNAME" AND OBJECTVALUE2 AS "FIELDNAME".

  • Printer all in one HP3520 - how to select the wireless network and enter the WEP key?

    According to print my wireless network is detected.

    How to connect the! @# % printer $ fo the wireless network and enter the WEP key?

    Instructions on the HP site tell me to selet NETWORK on the printer control panel.  Well, there's a way to select the NETWORK from the control panel.  It is not an option for him.

    I downnloaded and installed the latest drivers.

    I have restored the default settings.

    How to select the wireless network and enter the WEP key?

    All of HP's instructions seem to be for a newer printer with a touchscreen.

    I want that the printer is connected to my main computer via the USB port.  I want to be able to print wireless phones and tablets.

    My 3520 is not a 'touch Screen' and it has wifi.

    However, the following work:

    Try to open the HP Deskjet 3520 icon, open the utilities tab, click on convert USB wireless, by following the steps on the screen.

    This leads me to believe that ONLY the wireless doesn't work.  I know now that the part of the sentence "Convert USB to wireless connection" is supposed to mean "works like USB and wireless.

    Thank you for your help

  • How to select the pieces of my image in black and white?

    How to select the pieces of my image in black and white? FOW example letter J or the circle or the two together?

    jaguar_growler_blur best8.png

    It's actually pretty easy, but I have to assume that you know a few basics in Photoshop

    (1) open your existing image

    (2) double click on the layer and the 'layer style' appears. In the mix if area set the sliders so the whites in the image disappears

    You will be left with just the black elements in design

    (3) duplicate layers

    and merge them together

    to give a standard layer

    (4) ctrl or cmd click on the layer to select and create a layer mask

    (5) you now have a mask of the image. Duplicate the layer, click alt or option, click on the layer mask to call

    (6) the blacks and the whites are not completely black and white for the use of levels to adapt to the absolutes

    (7) now you have to decide what you want to select. In this case, I chose the lettering and simply covered everything else to the top with black. You do this by lasso selection and fill and items when it's delicate brush just the details with a black brush "hard." .

    (8) at this stage, you can do what you want you have a layer mask. So you can color the text for example

    or place in a background color and apply a layer as Beveling effect

    Hope that makes some sense. It is much easier to do than to describe.

  • How to create the cluster in weblogic

    Hello to all the ups...

    We pass our 6i has 11 GR 1 material. After the migration of our very poor server performance. So now, we want to use clusters. After a google search, I have not found any better way to do. We create two independent with machine

    Server Admin

    Forms

    Reports

    Lets assume that the machine name is SACHIN1 and SACHIN2.

    Now, how to create the cluster on SACHIN1?

    Please help me.

    Thank you

    Sachin

    Hi salah

    I understand, he has several steps. The steps apply only to the WebLogic Server.

    To ensure high availability with a top layer products it is WDM. I did research more far and I found that there is a WDM for forms and reports.

    I found WDM for forms and reports 11.1.1.2:

    http://www.Oracle.com/technetwork/database/features/availability/MAA-EDG-frd-129690.PDF

    Is there a reason on why migration is 11 GR 1 matter? first support for 11 GR 1 matter ended in June 2014

    http://www.Oracle.com/us/support/library/LSP-middleware-chart-069287.PDF

    We could get help on the following forums:

    Oracle reports (MOSC)

    Oracle Forms (MOSC)

    Best regards

    Luz

  • Vcenter/VSphere/ESX 5.0.0 question: could not download /opt/vmware/www/build/Tenacity.iso for the san-core8 data store. == &gt; Build fails

    I built this different ways now, and I still get this same exact error. I spin as 'Admin' and I have so any available privilege.

    There are no special characters in the password, I tried this file generation and he got away on my computer than this (v-soft bootable with interface).

    Please help me get to the next step, I'm stuck here.

    Everything seems fine until:

    09/10/2013 18:00:25 [info] validation available disk space...
    09/10/2013 18:00:25 [info] prepares the operating system installation files.
    09/10/2013 18:00:25 [info] looking for /opt/vmware/www/ISV/ISO/CentOS-6.4-x86_64-bin-DVD1.iso
    09/10/2013 18:00:25 [info] Validating md5 checksum for /opt/vmware/www/ISV/ISO/CentOS-6.4-x86_64-bin-DVD1.iso (may take a few minutes)
    09/10/2013 18:01:15 [info] verification of repositories of request for the installation of the packages packet...
    09/10/2013 18:01:16 [info] creating package repositories...
    09/10/2013 18:01:16 [info] create the virtual machine model.
    09/10/2013 18:01:17 [info] VM carrying from the Studio to the host configuration. This may take a few minutes...
    09/10/2013 18:02:20 [warn] cannot download /opt/vmware/www/build/Tenacity.1/Tenacity.1_provstart.iso for the s-core9 data store.
    09/10/2013 18:02:20 [warn]
    %3 %7% 11% 15% 19% 23% 26% 30% 34% 38% 42 failure: (22, ' the requested URL returned error: 401')
    09/10/2013 18:02:20 [error] met a unrecoverable build error!

    I am able to use this model for Centos on my computer actually install and build a paralytic with centos on that - unfortunately I do a

    hacks to make it work properly and I cannot get it to install other real applications (perhaps there is a new version for workstation 10?)

    So I went to vsphere, and I KNOW my generation model is ok, at least to get the installed operating system.

    What information can I give you or what can I try, thanks!

    Is it really "sort of" loading ie 42% or which is a total failure?

    OK, I have a build that WORKED, now I see what you mean about watching build/deploy the VM guest.

    Here is the solution to my problem: our vcenter uses names with spaces, we also use the domain names for our connections. In addition, each admin password was 'special characters', that I've debugged meticulously by ALL of them and much more. Basically, it did not matter that I have "URL" code things, used new tools or edited different scripts to encode things one way or another.

    What finally gave us successes was to go to a 'clean' Vcenter implementation that

    (a) use/did not require a domain name (not / credentials)

    (b) all had the "BACK original' legal names, IE no spaces, no special characters, etc..

    (c) the passwords contained NO "special characters".

    (because I changed this way, 'URL' encoding didn't work, tried it)

    Moral of the story: building a new, simply configured Vcenter or get one and use it.

    (Note: I even downloaded a new ovftool and tried every way that I could but it did not success)

  • How to select the Type of industry 8.3 Professional P6

    Hi all

    According to the document to change the type of industry for 8.3 Professional P6, I had to go to P6, Application settings, general link.

    But in the P6 Web client to administrator > Application Configuration > General there is no option is available for the type of industry.

    Let me know, how to select the type of industry?

    You can see the OPINION score "How to change the Type of industry P6 P6 PPM (Professional), P6 EPPM E8.2 and later versions (Doc ID 1386047.1)".

    Also can you paste a screenshot here.

  • How to select the path to a file icon button to a table?

    I have a SYSTEM_PATHS table name. All physical access paths as 'where the forms of execution are located' or 'where performance reports are located' are stored in its ranks for example (C:\HRMS\FORMS\)
    I memorized the path of the icon files (.ico) inside. The forms of execution can take the path of the icons for the buttons of this table. And access the icon of the chosen path. I use forms 6i. Normally, I put the path of the icon files in the nerve to property of the button as (C:\HRMS\ICON\). But now, here, I don't have a path but its in the column of a table. How to select the path to a file icon button to a table using forms 6i?

    Hello Gul,

    have you tried

    set_item_property('Button name',ICON_FILENAME,);
    

    Concerning
    Marcus

  • How to fix the error "insufficient data" in Acrobat Reader 11.0.04?

    How to fix the error "insufficient data" for Acrobat Reader 11.0.04?

    Hi Johnkel1524,

    Please visit: http://helpx.adobe.com/acrobat/kb/insufficient-data-image.html

    Also, try to update on 11.0.5 and check.

Maybe you are looking for