Quantcast
Channel: VMware Communities : Discussion List - Virtual Disk Development Kit
Viewing all articles
Browse latest Browse all 2039

How to update CPU and memory when ComposingVapp

$
0
0

I'm composing a vApp in .Net using the 1.5 API and am getting an exception when setting the CPU count

 

                vappTemplateItem.InstantiationParams = new InstantiationParamsType
                {
                    Items = new object[]
                    {
                        new VirtualHardwareSection_Type {  Item=new[] { new RASD_Type {
                                                               
                            AllocationUnits=new cimString{Value="hertz * 10^6"},
                            Description=new cimString{Value="Number of Virtual CPUs"},
                            ElementName=new cimString{Value="1 virtual CPU(s)"},
                            InstanceID=new cimString{Value="4"},
                            ResourceType=new ResourceType1{ Value="3"},
                            VirtualQuantity=new cimUnsignedLong{Value=2}
                        }}}
                    }
                };

 

Bad request  - Unexpected JAXB Exception  - cvc-complex-type.2.4.a: Invalid content was found starting with element 'Item'. One of '{"http://schemas.dmtf.org/ovf/envelope/1":Info}' is expected.

 

I'd also like some guidance on how to the same for the memory.

 

Many thanks,

Peter


Viewing all articles
Browse latest Browse all 2039

Trending Articles



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