vCloud Director storage profiles

Hi all

I'm trying to set up a script to set up the new organization and virtual Datacentres in our vCloud 5.1 environment.  The problem, I came up against, it's that I can't specific what storage profiles are assigned to the new Vcc as it is created, it uses just for "* (all) ' storage profile.  What I need to do is add storage profiles I need for the VDC and then remove the "* (all)" profile.

I am sure that there is a way to do it using the vCloud API and I understand that you can work with that of PowerCLI.  I've never worked with a REST API before, so I don't really know what to do with it.  I managed to interview gives information on existing storage profiles to help search for the clouds to find items and I'm sure that I can use to turn off the "* (all)" profile of an Org vDC but I can not understand how to go about adding a new profile (or rather, by adding one of my provider vDC storage profiles) to an Org VDC.

Any help/pointers appreciated!

Dave

I had another game around this afternoon and there remove the * (all) profile once the new profile is added.  This will be part of a script to create a new Org vDC so I didn't do something to ensure that the * (a) is not in use because it will not.

Maybe this isn't the most effective way to do this, so I'm more than happy to have criticized him if there is a way to better / easier to go about it!


$OrgvDCName = "DLTest_vDC"
$NewProfileName = "Bronze Storage"
$NewProfileMBAlloc = 51200

# Get the object representing the new Storage Profile in the Provider vDC
$PvDCProfile = search-cloud -QueryType ProviderVdcStorageProfile -Name $newProfileName | Get-CIView

$spParams = new-object VMware.VimAutomation.Cloud.Views.VdcStorageProfileParams
$spParams.Limit = $newProfileMBAlloc
$spParams.Units = "MB"
$spParams.ProviderVdcStorageProfile = $PvDCProfile.href
$spParams.Enabled = $true
$spParams.Default = $false

$UpdateParams = new-object VMware.VimAutomation.Cloud.Views.UpdateVdcStorageProfiles
$UpdateParams.AddStorageProfile = $spParams

$orgVdc = Get-OrgVdc -Name $OrgvDCName
$orgVdc.ExtensionData.CreateVdcStorageProfile($UpdateParams)

# Get object representing the new Storage Profile in the Org vDC
$newvDCProfile = search-cloud -querytype AdminOrgVdcStorageProfile | where {($_.Name -match $newProfileName) -and ($_.VdcName -eq $orgvDC.Name)} | Get-CIView

# Make the new Storage Profile the default
$newvDCProfile.Default = $True
$newvDCProfile.UpdateServerData()

# Get object representing the * (Any) Profile in the Org vDC
$orgvDCAnyProfile = search-cloud -querytype AdminOrgVdcStorageProfile | where {($_.Name -match '\*') -and ($_.VdcName -eq $orgvDC.Name)} | Get-CIView

# Disable the "* (any)" Profile
$orgvDCAnyProfile.Enabled = $False
$orgvDCAnyProfile.UpdateServerData()

# Remove the "* (any)" profile form the Org vDC completely
$ProfileUpdateParams = new-object VMware.VimAutomation.Cloud.Views.UpdateVdcStorageProfiles
$ProfileUpdateParams.RemoveStorageProfile = $orgvDCAnyProfile.href
$orgvDC.extensiondata.CreatevDCStorageProfile($ProfileUpdateParams)

Tags: VMware

Similar Questions

  • vCloud Director for 5.6.3 - level storage disk virtual machine profiles service provider

    Hello

    A new feature has been ad with vCloud Director for provider 5.6.3

    Profiles of storage disk virtual machine level:

    Unlock loads such as databases and e-mail servers that require different levels of a single VM disks to balance the cost of storage with performance.

    Can someone show me how I can do?  When I try to add a second disk to a virtual machine I can not change the storage for that specific disc profile!

    Thank you

    It is a unique feature of the API.

    I think that this should be the right section of the API schema: http://pubs.vmware.com/vcd-56/topic/com.vmware.vcloud.api.reference.doc_56/doc/types/DiskType.html

  • How to remove auto set the profile of the vcloud Director of storage

    Hello

    I would like to delete the free storage set the vcloud Director profile. But have no corresponding button, anyone has idea?

    I already removed "self storage defined profile" and "storage cap" vcenter.

    Thank you

    Simon

    Oh ~ ~
    Sorry about that, found that it remove the provider vDC.

    Thank you

  • Get the object of StoragePod storage profiles [vCloud Director]

    Hi all

    I'm automating DTS stuff for the creation of new vApps in vCloud Director and I want to integrate and use the workflow to Change Storage DRS by virtual machine configuration , but to do this I need to provide him with an object of type VC:StoragePod...  I have worked out how to get the default storage of each virtual computer profile, but may not know how to get to the StoragePod that it covers.

    Don't laugh, but I only managed to get this far before getting stuck:

    var vms = vApp.getChildrenVms();
    for each (var vm in vms) {
     storageProfile = vm.storageProfile;
     ....
    }
    

    Can someone show me how to get a StoragePod of a profile of storage object ideally default virtual machines?

    Thank you!

    Mark

    Have you had the opportunity to see this thread: http://communities.vmware.com/message/2147437#2147437 - it seems debating what you are interested... The catch here is that you are trying to do from the side the cloud... I can't look at this right now, but I suspect that you MUST have access to the underlying infrastructure to do what you ask... in this case, you will need to extract the object from VC:VirtualMachine of your vCloud:VM object, then the thread above can deepen assistance.

  • vCLoud Director isn't picking up profiles of newly defined storage in vSphere.

    Hello

    I created the different profiles of storage with warehouses of data in vSphere, but after the weekend and several updates to profiles of storage via the new profiles are still not appearing in the management console of Director.

    Thank you

    Please do not forget to do all the steps... and it must conform to the version (5.1 = client heavy, 5.5 customer web)

    1. create the affected user / tag attribute in vSphere

    2. create the storage policy/profile and associate it with the attribute tag.

    3 activate the profiles of storage on hosts

    4 associate the attribute tag / the data store

    5. connect to vCD as a system administrator

    6. go in storage vCenter list and updating profiles

    7. go to the list of providers vDC

    8. double click on the provider

    9. go to the storage profile tab

    10. click on the + and add the storage profile

    11. go to the list of Org vDC and double-click the org VDC

    12 go to the storage profile tab

    13. click on the + and add the storage profile and set the value of award/unlimited

  • Storage vMotion in vCloud Director

    Hello

    It is already possible to have a vm to a data store to another without interruption in service (storage vmotion ) with vCloud Director. If this isn't yet - it is planned to apply this? This isn't a feature for the Org Admin, but for the vCloud Admin, especially when - storage systems go to replace. And don't tell me to use a storage-virtualization product. Even those who should be replaced one day ;-)

    That would be average cource, Org-Admin would see several data stores during the migration the vapps. One thing to consider is of course how manage fast-provioned vm. Consolidation is no real option, since the virtual machine must be turned off (unless the gui). And of course, it's a unique solution...

    Thank you

    You should be able to use Storage vMotion directly * BUT * there * traps * you need to be aware of:

    (1) you * need * of storage vMotion virtual machine from this data store in your PvDC

    (2) If you use Fast provisioning (Linked Clones) the Storage vMotion, no he will not keep the format of the source, and * WILL * consolidate the virtual machine.

    If you want to keep the disc format, use the vCloud API and the * move * call the API (it will take care of everything you need to keep it as a linked clone).

    Note: I speak on 1.5.x, as you have profile storage & DTS 5.1, you can manage differently with DTS Maintenance mode >

    Hope this helps,

  • Cannot delete the storage policy to vCloud Director 5.5

    I'm trying to delete the storage policy to vCloud Director 5.5. I did in several vCloud Director organization VDC but stuck with one on the same instance of vCloud Director. I migrated all the VMs, the media and the VAPP model to another storage strategy. I checked in vCenter as there is no VMs who belong to this policy. Always in the vCloud Director, I see 30MB "asked" to this strategy of storage for this VDC.

    Any ideas what I need to check? How can I find what always uses this storage strategy?

    The problem has been resolved. Failed ISO image was only visilble in Administration and media & other only. After it has been removed, we were able to delete the storage policy.

  • The transfer server storage shared for vcloud Director cells

    Hello

    I'm building a cluster of vCloud Director (3 guests) in our environment, but I was wondering about transfer server shared storage that is required for downloads and uploads the data among all cells, here is that excerpts from the Director Cloud installation guide for the same

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

    To provide temporary storage for uploads and downloads, shared storage must be accessible to all hosts in a cluster of clouds Director. The amount of storage to transfer server must have permissions writable by root. Each host must ride this storage $VCLOUD_HOME

    / Data/Transfer (in general transfer/opt/vmware/cloud-director/data/transfer). Uploads and downloads are the storage for a short time (a few hours a day), but because the transferred images can be large, allocate at least several hundred gigabytes at this volume.

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

    I have some questions related to this,

    1. can I use storage iSCSI for this "shared forwarding server storage" or only a NFS storage will do.

    2 storage is recommended according to the prospective of VMware.

    3. If anyone has references to the configuration for this storage documentation, please let me know.

    Thank you

    Keryan

    It is not explicitly stated above all because there are several options and alternatives.

    NFS is by far the easiest and also the easiest to wear but CIFS, for example, would work.  Like any other technique of file-sharing system that makes the blob of data readable and accessible in writing of all cells at the same time.

    iSCSI is not enough to really say yes or no to the subject.  If you have a shared several cells and do iscsi lun on it ext3 file system, then the cells will tear system metadata of file into pieces in a relatively short deadline, because ext3fs is not designed to be multi-homed.

    This isn't a limitation of iSCSI, or a lun SAN, or tours with virtual machines to share the same file several VMS vmdk, is put on top of this file system.

  • Migration of all the catalog items to a different data store in the same storage profiles

    Hello

    is any possibility to migrate everything in the catalog (time and iso files) to a different data store that has the same profile (Silver) storage group?  Because I have 2 groups of data store with the same profile of storage (Silver) and I want to delete one of this cluster.

    I found this kb: http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 2058094 but it speaks solely of media files of migration between different storage profiles.

    Have vCD 5.6.4

    You happen to use rapid Provisioning?  This is probably the only problem I can think of.

    Environments that have no linked Clones or shadows created from them, you can just Storage vMotion them between the same storage policy data warehouses.  Just make sure that the data store or a store of data clusters are visible in vCloud Director first of all in the framework of this storage policy.

    When you use linked clones, I don't remember the exact process... I think that I have in my office somewhere (I'm at home now).

  • Issue of SDRS to vCloud Director after you add the new data store to the Cluster of DTS

    Hi people,

    We use vCloud Director 5.5 in a vSphere full 5.5 environment.

    We have several DTS Cluster in vSphere and connected to vCloud Director.

    Following problem.

    When I add a data store to a Cluster of DTS and connect this to the corresponding storage profile data store, the storage profile is not available to vCloud Director more.

    After removing the new store data in the cluster of DTS, the profile becomes available again.

    Any ideas?

    Concerning

    Jean

    How did you the storage profile associated with the data store?  via c# client or vSphere web client?

    If you did the wrong way (c#) there no storage class label appropriate against it.

    A data cluster store has the storage class who would have all preparations of data contained inside.

    I think that you should check the service class is associated properly in vSphere web client (before adding to the DS Cluster).  Once it displays correctly, and then add the data store to the cluster.

  • vCloud connector 2.5 - copy the model of vSphere to vCloud Director fails

    Hi all

    I'm trying to make a copy of the model of the private Cloud for vSphere (e.g. my instance of vCenter lab) the vCloud Director private cloud (my instance vCD lab, which is deployed and registered with the same instance of vCenter mentioned above) with vCloud connector 2.5.

    I have deployed the server component of vCC, configured and deployed two nodes of vCC - a to connect to vCenter for private cloud config vSphere and another to connect to the vCloud Director org for the basic cloud vCD config private. Moreover, the vCloud Director is registered to the same instance of vCenter which is used for vSphere cloud.

    I then tried to open a copy of the model from the vSphere cloud node to the node of vCD. The task to export the OVF template will start, and the task of SCR plugin will also display the copy task. This vCD instance also model any TIME if you go to the properties of the VDC organization selected during the SCR copy Wizard.

    After about 18%, the percentage remains stuck there for a little bit before the 'Export OVF Template"task fails with"Operation timed out ". After that, the task indicated in the vCC plugin will fail also later with (OVF Export failed. Null message) and the import of VAPP model in vCD job will fail also - VAPP failure will take upward of space inside the affected storage however profile until I have manually remove the failing through vCD VAPP model object.

    Anyone else having this problem? I've seen this problem on both environments so far: vCenter 5.1 update 1 with vCD 5.1.2 and vCenter 5.5 with vCD 5.5. If the problem seems to be specific to the version of vSphere. The logs generated by server SCR bee all that useful for me to understand what went wrong did not.

    Thank you

    You can consult this KB, if you haven't done so yet:

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=2078110

    I hope this helps.

  • vCloud Director - SVMOTION ERROR

    When I try to SVMotion a virtual machine. I get the error "this virtual machine is managed by vcloud Director solution.» It is not recommended to edit it directly. Instead, use the management console.

    The virtual machine is turned off in State

    Please suggest how to SVMOTION a virtual computer managed by vCLOUD Director

    Hello

    Even if it's a warning, we can migrate the virtual machine as long as under conditions are checked.

    Note: migrate through Storage vMotion is possible, but there are several caveats.

    • Make sure that the new data stores have the correct storage policy and are assigned to the correct hosts. There is no vCloud check engine steering investment using this method and it can cause serious problems if you do it right.
    • This is not recommended for virtual machines configured quickly as they are inflated to the full clones.
    • It is not possible for VAAI quickly put into service of the virtual machines being unable to Storage vMotion them vSphere.
    • Balancing of virtual machines on data warehouses is entirely manual.

    Follow each step diligently---> http://download3.vmware.com/vcat/documentation-center/index.html#page/Consuming%20a%20vCloud/3c%20Consuming%20a%20VMware%20vCloud.2.083.html

    VMware KB: Best practice for migrating to new storage in vCloud Director vCloud infrastructure

  • vCloud Director page does not open.

    Hi all

    Today I faced a strange problem in my vcloud Director. all of a sudden all the URLs for org and admin home page of vcloud stopped.

    I tried to search in google and find a few KB, but they are not useful. As below.

    VMware KB: Access to the URL of the organization fails with the browser error: error 404 not found

    I have tried different browsers and restarted my vcloud server but nothing helped. Any help or idea please.

    Thank you

    vCloud newspapers are not specific to the problem. I checked and found the watchdog .log and found that the server is not the storage space. in any case, I'd drive and his works fine and went smoothly. .

    Thanks for your help. Have a nice day everyone.

  • How to remove the local drive of the storage profile

    I use 5.1.1 with last vcenter vcloud. My problem is that my profile of single storage includes local disk. (when I click on * all properties in vcloud)

    I went to vsphere client to vcenter (Home > inventory > data warehouses and the cluster data store) I see ESXi local disk. is there a way to delete it without deleting the content of the discs? the vcloud vms will go to local disk? concern is not shared between hosts. Thank you

    You create profiles of storage for data storage you want to use.

    First, assign user-defined storage capacities:

    1. Home-> inventory-> data and data Clusters store warehouses
    2. R.Click the data store you want to use-> Assign User-Defined storage capacities
    3. Click new... and set a name and a Description
    4. Repeat for all warehouses of data to include in the PVDC

    Second, to create profiles of VM storage

    1. Home-> management-> VM storage profiles
    2. Create a VM storage profile
    3. Name and assign storage capacities of the list defined by the user that you created
    4. IMPORTANT: Select the VM storage profile (buttons at the top of the window)

    Third, VCD storage profiles update

    1. Manage and control-> them vCenters
    2. r.Click vCenter and refresh the storage profiles (may take a few minutes)

    Fourth, edit PVDC

    1. Manage and monitor--> provider TDC-> open your PVDC
    2. Storage Profiles tab
    3. Add new profile storage
    4. Remove the * any storage profile (disable and then delete r.click)
  • vCloud Director agent 1.5 and 5.0 ESX install

    So I was stuck on this problem all day. I have install a LABORATORY VC, vCloud Director on ANY 1.5 and imported the vShield device. 2 guests can see both the same two LUN 1 TB. In VC is all looks good, but the question is now, I cannot prepare my 2 hosts. I have rebuilt the 4 times each. Both hosts are in an active cluster with DRS. I get the following error in vCloud Director:

    "Cannot prepare host."


    Failure occurred during the preparation of the host 'esxi2 '.
    -esxi2
    -esxi2

    I tried to force a manual installation:

    / var/log # esxcli software install--force d /opt/vmware/vcloudagent-1.5.0-453916.zip vib
    Result of the installation
    Message: The Operation completed successfully.
    Restart required: false
    VIBs installed: VMware_bootbank_vcloud - agent_1.5.0 - 453916
    VIBs deleted:
    VIBs ignored:

    But then goes to vCD, it is not ready... I tried everything I can think of.

    Logfiles which I need to sift through on the host to submit more information about why the TI of fails?

    Thank you!

    even if you manually install the VIB, you always run the step 'prepare' vcloud Director.  VIB itself is just a module, and it will be not configured correctly until you run the action to prepare vcloud.

    Please make sure you have a persistent scratch location, if it was a compact installation.  If you are on an SD card or a USB storage, make sure that it happens soon enough to process the download and install it in a minute or two... or it's a timeout.

    either elsewhere newspapers that you would need to look at are the vcloud-container - debug.log (from the time of the State of the error), and perhaps the esx host logs in case there is a Setup error.

    / opt/vmware/vcloud-Director/logs /.

    See you soon,.

    Jon

Maybe you are looking for

  • Satellite A350D-110 freezes on splashscreen

    I have a 110 A350D, somewhere bought in February of this year. It runs Vista Home Premium 32 bit. Until recently, the laptop behaved very, very well. There was the occasional "hiccup" on some games or applications more demanding, but other that that,

  • software update without App Store

    app store is not available in my country, so how can update to OS X Captian

  • load power

    I bought a charger USB multiport. It works for my phone and my friend Kindle. But it does not load my Slate7. Why not? Does anyone know?

  • Data of Downcasting DMA from U8 to U16

    Hello world I have a situation that I hope someone can shed some light on. Currently I have a FPGA design that collect data highspeed made some treatment on it and spits the results on DMA to read out and record the host TDMS files. Currently I read

  • Messenger 800401f3

    Warum geht meine msn nicht