Re: ovf file parser

2017-05-10 Thread Will Stevens
Hey Abhi, I am not sure where an ISO comes into play. I did not work with any ISOs in my flow. Maybe the OVA is generated in a different way? Do you have control over the way the OVA is created? I was using the following command to export a VM from VMware using the 'ovftool', which would

Re: ovf file parser

2017-05-10 Thread Abhinandan Prateek
Hi Will, We have hit some road blocks. The main issue here is that cloudstack sees the VM as a set of disks, while a OVA contains VM definition including instructions on pre boot steps, delays and maybe more. So even if we are able to reliably get disks from the OVA and orchestrate these

Re: ovf file parser

2017-05-04 Thread Abhinandan Prateek
The template generation related actions are better done on SSVM as they will be dealing/moving with various data/boot disks. Vim(VMWare infrastructure management), works with vCenter context and as such cannot be used inside SSVM. Vim gives a much better validation of OVF as it can make

Re: ovf file parser

2017-05-03 Thread Will Stevens
Cool. Let me know if you have questions. My instinct is that we probably want to keep the Ova manipulation in the context of vmware since I don't believe it will be used outside that context. Trying to manipulate the ovf files with generic tools may prove to be more complicated to manage going

Re: ovf file parser

2017-05-03 Thread Abhinandan Prateek
Hi Will, I am improving the multiple disk OVA feature. As part of revamp I am moving out some OVF manipulation code from the vmware hypervisor plugin context to secondary storage component. The existing code was using vim25 and managed objects to query and rewrite the OVF file. I have

Re: ovf file parser

2017-05-02 Thread Will Stevens
Hey Abhinandan, First, can you give us a bit more context regarding what you are doing so we can highlight potential areas to watch out for? I have done some OVF parsing/modification and there are a bunch of gotchas to be aware of. I will try to outline some of the ones I found. I have not