Quantcast
Channel: VMware Communities : Discussion List - VMware vCloud Director
Viewing all 4515 articles
Browse latest View live

Provider vDC / Cluster Resources

$
0
0

Hi All,

 

Hopefully this is a simple question, but I am missing something here.

 

I've read in the vCAT that it is best practice to map a provider vDC to the entire cluster instead of using child resource pools.  I've also read that it's best practice to create different provider vDC's for each level of storage.

 

My problem is that after I create the first PvDC, I can't create another as the system will give me the error: No resource pools were found for vCenter 'myvcenter'.

 

From my understanding it seems that we are supposed to create a different PvDC for each level of storage, but for some reason I can't create a second PvDC. 

 

I have also read in the CAT where best practice is to use a 1:1 mapping of PvDC's to a single vSphere DRS cluster.

 

What am I missing and what is the best way to architect my cloud with the 3 Tiers of storage I've got?

 

Thanks in advance!


vCloud Suite 5.8

$
0
0

Does anyone who has been following the VMworld announcements know whether vCloud Suite 5.8 will give vCloud Director an upgrade too (to 5.8 of course)?

Getting ACCESS_TO_RESOURCE_IS_FORBIDDEN error when I try to instantiatevAppTemplate using vCloud Java REST API

$
0
0

Here is my request and response, did I miss anything?

 

http-outgoing-0 >> "POST /api/vdc/79dd1731-50b8-41bb-8e46-2ea1cb5db129/action/instantiateVAppTemplate HTTP/1.1[\r][\n]"

http-outgoing-0 >> "Accept: application/vnd.vmware.vcloud.vApp+xml;version=5.5[\r][\n]"

http-outgoing-0 >> "Content-Type: application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml[\r][\n]"

http-outgoing-0 >> "Content-Length: 769[\r][\n]"

http-outgoing-0 >> "Host: {my host}[\r][\n]"

http-outgoing-0 >> "Connection: Keep-Alive[\r][\n]"

http-outgoing-0 >> "User-Agent: Apache-HttpClient/4.3.4 (java 1.5)[\r][\n]"

http-outgoing-0 >> "Cookie: vcloud-token=n5RpIPHSOMxRsU6IykZncZzwbSlRfPe4nRdhwymOXp0=[\r][\n]"

http-outgoing-0 >> "Cookie2: $Version=1[\r][\n]"

http-outgoing-0 >> "[\r][\n]"

http-outgoing-0 >> "<?xml version="1.0" encoding="UTF-8" standalone="yes"?><InstantiateVAppTemplateParams xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ns2="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ns3="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ns4="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ns6="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns7="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns8="http://www.vmware.com/schema/ovf" deploy="true" powerOn="true" name="newRestvApp"><Source href="{my base url}/api/vAppTemplate/vappTemplate-c36fe2d6-0534-463c-ae8e-56c6fecf60b5"/></InstantiateVAppTemplateParams>"

http-outgoing-0 << "H"

http-outgoing-0 << "TTP/1.1 403 Forbidden[\r][\n]"

http-outgoing-0 << "Date: Fri, 29 Aug 2014 18:15:30 GMT[\r][\n]"

http-outgoing-0 << "Vary: Accept-Encoding[\r][\n]"

http-outgoing-0 << "Date: Fri, 29 Aug 2014 18:15:30 GMT[\r][\n]"

http-outgoing-0 << "Content-Type: application/vnd.vmware.vcloud.error+xml; version=5.5[\r][\n]"

http-outgoing-0 << "Content-Length: 442[\r][\n]"

http-outgoing-0 << "[\r][\n]"

http-outgoing-0 << HTTP/1.1 403 Forbidden

http-outgoing-0 << Date: Fri, 29 Aug 2014 18:15:30 GMT

http-outgoing-0 << Vary: Accept-Encoding

http-outgoing-0 << Date: Fri, 29 Aug 2014 18:15:30 GMT

http-outgoing-0 << Content-Type: application/vnd.vmware.vcloud.error+xml; version=5.5

http-outgoing-0 << Content-Length: 442

Connection can be kept alive indefinitely

http-outgoing-0 << "<"

http-outgoing-0 << "?xml version="1.0" encoding="UTF-8"?>[\n]"

http-outgoing-0 << "<Error xmlns="http://www.vmware.com/vcloud/v1.5" minorErrorCode="ACCESS_TO_RESOURCE_IS_FORBIDDEN" message="No access to entity &quot;com.vmware.vcloud.entity.vapptemplate:c36fe2d6-0534-463c-ae8e-56c6fecf60b5&quot;." majorErrorCode="403" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5http://10.32.112.163/api/v1.5/schema/master.xsd"></Error>[\n]"

Connection [id: 0][route: {s}->{my base url}:443] can be kept alive indefinitely

Connection released: [id: 0][route: {s}->{my base url}:443][total kept alive: 1; route allocated: 1 of 2; total allocated: 1 of 20]

Disconnected from the target VM, address: '127.0.0.1:59333', transport: 'socket'

 

After I retrieved the target vdc object, I find there is no /action/instantiateVAppTemplate link, does it mean the user has no privilege to perform the action, and then causes the 403 error?

http-outgoing-0 << "<Vdc xmlns="http://www.vmware.com/vcloud/v1.5" status="1" name="OVDCQEDFS" id="urn:vcloud:vdc:79dd1731-50b8-41bb-8e46-2ea1cb5db129" type="application/vnd.vmware.vcloud.vdc+xml" href="{my base url}/api/vdc/79dd1731-50b8-41bb-8e46-2ea1cb5db129" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5http://10.32.112.163/api/v1.5/schema/master.xsd">[\n]"

http-outgoing-0 << "    <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="{my base url}/api/vdc/79dd1731-50b8-41bb-8e46-2ea1cb5db129/metadata"/>[\n]"

http-outgoing-0 << "    <Link rel="add" type="application/vnd.vmware.vcloud.instantiateOvfParams+xml" href="{my base url}/api/vdc/79dd1731-50b8-41bb-8e46-2ea1cb5db129/action/instantiateOvf"/>[\n]"

http-outgoing-0 << "    <Link rel="add" type="application/vnd.vmware.vcloud.cloneVAppParams+xml" href="{my base url}/api/vdc/79dd1731-50b8-41bb-8e46-2ea1cb5db129/action/cloneVApp"/>[\n]"

http-outgoing-0 << "    <Link rel="add" type="application/vnd.vmware.vcloud.cloneVAppTemplateParams+xml" href="{my base url}/api/vdc/79dd1731-50b8-41bb-8e46-2ea1cb5db129/action/cloneVAppTemplate"/>[\n]"

http-outgoing-0 << "    <Link rel="add" type="application/vnd.vmware.vcloud.cloneMediaParams+xml" href="{my base url}/api/vdc/79dd1731-50b8-41bb-8e46-2ea1cb5db129/action/cloneMedia"/>[\n]"

http-outgoing-0 << "    <Link rel="add" type="application/vnd.vmware.vcloud.captureVAppParams+xml" href="{my base url}/api/vdc/79dd1731-50b8-41bb-8e46-2ea1cb5db129/action/captureVApp"/>[\n]"

http-outgoing-0 << "    <Link rel="add" type="application/vnd.vmware.vcloud.composeVAppParams+xml" href="{my base url}/api/vdc/79dd1731-50b8-41bb-8e46-2ea1cb5db129/action/composeVApp"/>[\n]"

http-outgoing-0 << "    <Link rel="edgeGateways" type="application/vnd.vmware.vcloud.query.records+xml" href="{my base url}/api/admin/vdc/79dd1731-50b8-41bb-8e46-2ea1cb5db129/edgeGateways"/>[\n]"

http-outgoing-0 << "    <Description/>[\n]"

Cloud Director 5.5.1 if you move a datastore in or out of a datastore cluster, vCloud Director will loose it.

$
0
0

I recently moved the Datstore in a cluster and after that the Cluster an datastore both were missing in my datastore inventory under vCD 5.5.1 .

 

I read the fix in KB 2075366 . Any permanent fix/Patch/workout is there?

 

Will be a great help.

vCloud 1.5 to 5.5 Migration

$
0
0

Hello All,

 

I am working on migrating tenants from vCloud Director 1.5 to 5.5. At this moment in time, I am using a replication tool to perform the activity, which doesn't seem to perform as expected and we are facing issues with creating network on the new vCloud.

 

Trying to find out if anyone else has gone through this task previously and what tools were used?.

 

Thanks in advance.

URLEncoding in query service of vCloud Director API

$
0
0

Hi,

 

Trying to use below vCloud Director Query Service API:

GET /api​/query​?type=vApp​&filter=%28vdcName%3D%3Dsikdervse%29​&format=records​


Getting below error:

Bad request: Expression %28vdcName%3D%3Dsikdervse%29 is not a comparison expression.


On the other hand I get successfull 200 OK for below call

GET /api/query?type=vApp&filter=(vdcName==sikdervse)&format=records


Only difference is that in first failing GET call, reserved characters like '(', '=', '=' & ')' are URLEncoded or Percent Encoded. Why is VCD throwing error when URLs are encoded using Percent encoding as per W3 standards. How can we make VCD accept encoded URLs?


Using vCloud Director 5.1.


Thanks,

Hemana

email: hemana.gouda@accenture.com



Renaming a Vapp template in a catalog using JAVA SDK 5.1

$
0
0

Hello,

 

I'm trying to rename a vApp template in that is stored in a Catalog. It ran fine but when I went to the VCloud director UI, the catalog name did not properly reflect that. Am I missing something here? Here is the code that I am using:

 

Catalog catalog = manager.searchForCatalog(vCloudClient, org, "CatalogA");

ReferenceType catalogRef = catalog.getCatalogItemRefByName("VApp Template to be renamed");

try {

     CatalogItem catalogItem = CatalogItem.getCatalogItemByReference(vCloudClient, catalogRef);

     CatalogItemType type = catalogItem.getResource();

     type.setName("Name to change to");

     catalogItem.updateCatalogItem(type);

} catch (VCloudException e) {

     // TODO Auto-generated catch block

     e.printStackTrace();

}

My public Catalogs are now showing any catalog which i created in my org vdc .

$
0
0

Hi All,

 

I deployed a vcloud director 5.5 . i Stucked in the end while creating the Catalog and assigning/sharing and publishing it. its not showing in Public Catalogs. Any idea how to fix it.

 

in vcloud 5.1 its quite easy but its make a mesh here in 5.5 ..

 

Adding screenshot of the error as well. hope it helps.

 

Thanks.


Deploy vCenter Opeartions manager 5.8.2 ovf to a vCloud 5.5.1 Tenant fails

$
0
0

Kia Ora.

 

Trying to upload a vCOPS 5.8.2 ovf into a vCloud tenant. It failed.

 

With

Error on line 4 of document  : Attribute "href" bound to namespace "http://schemas.dmtf.org/ovf/envelope/1" was already specified for element "File". Nested exception: Attribute "href" bound to namespace "http://schemas.dmtf.org/ovf/envelope/1" was already specified for element "File".

- Error on line 4 of document  : Attribute "href" bound to namespace "http://schemas.dmtf.org/ovf/envelope/1" was already specified for element "File". Nested exception: Attribute "href" bound to namespace "http://schemas.dmtf.org/ovf/envelope/1" was already specified for element "File".

 

Anybody tried this and had similar results?

 

thanks.

vCloud Host HDD Failure

$
0
0

I am dealing with a host HDD failure that was running ESXi on local disk and the customer did not set it up for RAID.  From a vCloud/vCenter perspective, once I get the new drive back in the system and up and running - what's the easiest way to clean up vCloud and vCenter?  The host has been offline long enough I believe HA has taken over on the vCenter side and restarted the VMs on another host, but I am a little unclear what steps might need to be taken on the vCD side since it still thinks the host is there just inaccessible.

 

Just add the host, and do an 'unprepare' on the phantom entry?

Blocking tasks + Storage lease expire

$
0
0

Hi,

 

Is it possible to utilize a blocking task when a storage lease expires?

 

in short, i want to kick off an orchestrator workflow to check if the vapp owner is on vacation or not.

Migrating VMs out of vCD and back into a standard ESXi cluster cleanly?

$
0
0

We currently have a relatively small ESXi cluster (5.0.0 1489271) that is using a dedicated vCenter install (5.0.0 1300600) and an associated vCD instance (vCD 5.1.2.1068441).  Our goal is to relocate the virtual machines running in this setup to our standard ESXi clusters (5.5.0 1892794) supported by a different vCenter install (5.5.0 1891313).

 

The vCD instance appears to add some additional parameters at the VM level that prevents the VM from being easily migrated out of the vCD instance.  What we are looking for is a way to easily migrate these servers over and completely remove vCD from the equation.  The only details around this we have found involve downtime for the VM and exports out of vCD which can be extended to due the total disk amount at the VM level, and we really do not think it is an option to get a window of downtime long enough to work through that process.

 

Has anyone gone down this path before?  We have about 120 VMs in the vCD cluster using roughly 52 TB of disk.

 

Maybe we are misunderstanding something fundamental about the nature of migrating VMs out of the vCD instance, but we have not been able to find much detail about what options exist to make this move.  We have talked with VMware support multiple times regarding this.  They have mentioned a potential tool in the works within engineering to migrate from vCD to vCAC (which doesn't really fall within scope of our goal, unless vCAC would then provide a clear path to return the VMs to a standard ESXi cluster).

 

Any suggestions or ideas are much appreciated.

Migrate existing Virtual machine in to Org VDC

$
0
0

Hi All,

 

We have an existing vmware environment with multiple resource pool for different department (ie Finance, Trading, engineering) having 250+ virtual machine each.

Now we deployed the vcloud in the same environment. and the initial setup is going on.

The issue is All the depart ment need their virtual machine in the vcloud now. i know how to import the machines from vsphere but still i want is there any recommended or easy way to do this for all those vms.

 

And what people use normally to do so?

 

Any help will be highly appreciated. Thanks.

vCloud API : Add user error: Bad request

$
0
0

I have problem with add user.

When I copy XML add user script from API doc and change to my user then I run script I got error

 

minorErrorCode="BAD_REQUEST" message="Bad request - Bad request - Error on line 1 of document  : Premature end of file. Nested exception: Premature end of file." majorErrorCode="400"

anyone know how to fix?

 

Demo XML:

<?xml version="1.0" encoding="UTF-8"?>
<User xmlns="http://www.vmware.com/vcloud/v1.5" name="xevarox">
<FullName>Xeva Pengpipat</FullName>
<EmailAddress>mond2@me.net</EmailAddress>
<Telephone/>
<IsEnabled>true</IsEnabled>
<IsLocked>false</IsLocked>
<Role type="application/vnd.vmware.admin.role+xml" name="Start,Stop,Suspend,Reset, Console Access, and view catalog &amp; media" href="xxxxxxxxx"/>
<Password>PaSsW0Rd</Password>
<GroupReferences/>
</User></xml>

shutdown partially running vApps automaticly

$
0
0

Hi Folks

 

Within an particular organisation i have to automate the shutdown of all vApps

 

1. which are partially running and all VMs within the vAPP are Powered OFF or Suspended

2. count all running VMs within an entire ORG (many vCDs)

 

How can i realize this and how would be an API call using REST CLI script (using curl e.g.)?

For the action 2. i cannot see the posibility to call an vCD API call for VM state (running) can i realize this using VCD API or do i need access to vSphere API?

 

 

Thanks Dominik


Looking for developer info/examples for VCD API extensions

$
0
0

I'm looking for the best place to find information and especially examples on developing VCD/vCloud API extenstions.  I've found presentations and some documentation, but no actual examples or current discussions (the latest here are from 2013, and few have answers).    Here are a couple of questions I have:

  • If not here, where is the best place to ask questions and find information about developing API extensions?
  • Are API extensions still a recommended way to extend/integrate with VCD?
  • I'm looking for examples of an API extension that creates new resource classes and uses VCD authentication/authorization to access external systems (correlating VCD users with external API users, etc.)?

 

Anything from actual code to best practices would be most helpful.

 

Thanks!

VCD single cell limitations? 5.1x - 5.5x

$
0
0

I am trying to find a official vmware document or whitepaper stating the best practices or limitations on how many Org's or/and VM's/vApps a single cell can comfortably support.

 

Talking about a fairly redhat 6.4 running as a VM on a recent AMD based blade with 16-24GB ram and 4 cores dedicated to the VCD.

 

Also in the paper if there is any notes on special precautions when dealing with single cell.

DHCP not being set on edge gateway - what's different to a firewall being set?

$
0
0

I have an edge gateway that I can set firewall rules on, and nat however when I try to add DHCP through powercli I don't get an error but nothing get's applied to the gateway, can anyone help?

 

Here is the function I have:

 

function configureDHCP {

        param ([String]$gwName )

 

        $edgeGWview = Search-Cloud -QueryType EdgeGateway -name $gwName | Get-CIView

              

        $dhcpService = New-Object vmware.vimautomation.cloud.views.dhcpservice

 

        $dhcpService.DefaultLeaseTime = "3600"

        $dhcpService.MaxLeaseTime = "7200"

        $dhcpService.IsEnabled = $true

        $dhcpService.IpRange = New-Object vmware.vimautomation.cloud.views.iprange

        $dhcpService.IpRange.StartAddress = "192.168.1.1"

        $dhcpService.IpRange.EndAddress = "192.168.1.254"

 

        $edgeGWview.ConfigureServices($dhcpService)

}

 

Interested to understand why DHCP is different and what I'm doing wrong. The API guide here does'nt really help as page 187 just says do the same thing as before (eg Firewall rules).

 

This has been a great source so far but doesn't cover DHCP.

VCD resouce Pool

$
0
0

Hi Guys,

    I created a DRS cluster having two ESXi say 10.10.10.11 and 10.10.10.12 and  added that cluster to VCD .

After adding Vcenter to VCD .. I removed one of the ESXi say .11 ,I created a Organisation called "Tarun" and Provisioned VM's which got Created on .12 .


Now i added ESXi  .11 later to Cluster and wanted to use it for creation of further VM's in Tarun Organisation.

When i create VM's in "Tarun "..they are getting Created on .12 . I want VM"s to get Created on .11 which i added later in the DRS Cluster..

Below are the few things i feel might be the Issue

 

1. Since when i created Tarun organisation .11 was not there ..therefore resource pools created in Tarun will always use .12

2. Can i add 2 resouce pool to Tarun from same VCenter ?

3 .Can a Organisation have more than one resouce pools  from same Vcenter?


Some of the Questions asked above might be silly ...any answers will be appreciated..

 

 

Thanks a lot

Tarun Gupta

vCell setup with two IPs and routing

$
0
0

Hi

My networking team suggested the following config:

VLAN-Public:    first nic of load balancer

VLAN-Front:     second nic load balancer

VLAN-Front:      first and second nic of vCloud Cell01 and the same for vCloud Cell02

VLAN-Back:     vCenter / ESXi / vShieldMgr / SQL / etc.

 

Traffic / routing between VLAN-Front and VLAN-Back is possible.

 

Now I installed vCell01 with two nics, each one IP: 192.168.1.1 and 192.168.1.11.

vCell02 with two nics, each one IP: 192.168.1.2 and 192.168.1.12.

 

Installation was no problem, connecting to SQL went smooth.

 

But then I noticed that I couldn't reach 192.168.1.11 from the vCenter Server. Which is logical now that I think of it, since traffic routed from the vCenter to 192.168.1.11 will come in on eth1 but because of the default gateway will leave over eth0. And vCenter will probably not like that.

 

My questions:

- Can I solve this through routing changes in the routing table of the vCells?

- Should I make a complete change in my configuration / network design?

- Should I continue and not worry about vCenter being unable to reach 192.168.1.11.

 

Any tips welcome

 

PS: Using CentOS 6.5

Regards

Gabrie

Viewing all 4515 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>