Comments (6)
Hm, this is not a use case I've previously encountered. I can look into it (could you provide an OVF file?) but I'm curious, is there a reason you're using a different InstanceID for different configurations, instead of using the same InstanceID for each config-specific CPU item?
from cot.
Because according to the OVF spec, section 8.3:
InstanceID A unique instance ID of the element within the section.
Although, looking back at the VCSA .ovf, that does re-use the InstanceID too. I don't see anything in either the VirtualHardwareSection or DeploymentOptionSection parts of the docs that actually says you can though :-)
I've attached an example OVF also.
from cot.
Thanks!
You want section 9.8 (DeploymentOptionSection):
- Each Item has an optional ovf:configuration attribute, containing a list of configurations separated by a single space character. If not specified, the item shall be selected for any configuration. If specified, the item shall be selected only if the chosen configuration ID is in the list. A configuration attribute shall not contain an ID that is not specified in the DeploymentOptionSection.
- Within a single VirtualHardwareSection or ResourceAllocationSection, multiple Item elements are allowed to refer to the same InstanceID. A single combined Item for the given InstanceID shall be constructed by picking up the child elements of each Item element, with child elements of a former Item element in the OVF descriptor not being picked up if there is a like-named child element in a latter Item element. Any attributes specified on child elements of Item elements that are not picked up that way, are not part of the combined Item element.
That said, your approach is also valid (if less common in my own experience), so I will keep looking into this issue
Thanks!
from cot.
Aaah. OK. I'll switch over then. There's no need to make life harder :-)
If I could get cot to add disks with no images, I think I could ditch my own work altogether, then.
from cot.
"Disks with no images" - as in Disk elements with no associated fileRef? COT recognizes these as valid but I don't currently have support for creating them. Wouldn't be hard to add though I think. If that's not what you're looking for, please clarify.
from cot.
yes - A type 17 <Item> and a <Disk> with a capacity but no fileRef or populatedSize, so it shows up as an unformatted block device in the final VM. I think a few things use this kind of arrangement for log or database partitions where the sizing is different depending on the deployment option chosen. In my use case, the extra disks only exist in some of the configurations.
from cot.
Related Issues (20)
- cot edit-hardware RuntimeError when adding NICs and creating a profile at the same time
- ESXi rejects streamOptimized VMDKs built with QEMU < 2.5.1
- 2.0.1 - in-place editing of TAR files fails HOT 2
- UnboundLocalError in vmdk.py when disk image conversion errors
- COT support for creating placeholder disks
- COT shouldn't clone existing items to lower InstanceID
- Does COT support <ovf:VirtualSystemCollection></ovf:VirtualSystemCollection> HOT 1
- Unable to manage an OVF with multiple Product Section HOT 1
- [SSL: CERTIFICATE_VERIFY_FAILED] during "Fixing up serial ports" HOT 1
- any CONFIG_FILE format example ? HOT 2
- Distutils Error in version.py HOT 1
- LookupError on inspection of OVA file HOT 2
- os.statvfs not available in Windows HOT 1
- Support editing (or removing) auxiliary devices from ovf HOT 1
- Edit network port forward rules HOT 4
- OVA image created with cot 2.2.1 and Python 3.8.5 fails the ovftool validation HOT 3
- Enhancement Request - Please add support for Cisco Catalyst 8000v HOT 2
- Hello
- Way to set <ProductSection ovf:required="false">? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cot.