deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koper, Dies" <di...@fast.au.fujitsu.com>
Subject RE: OVF support in deltacloud
Date Sun, 18 Aug 2013 04:43:29 GMT
Hi David,

curl --user user:pwd http://localhost:3001/cimi/systems/import -X POST
-d @import.xml -H "Content-Type: application/xml" -H "Accept:
application/xml"

where import.xml is in your current directory with content:

<Action xmlns="http://schemas.dmtf.org/cimi/1">
  <action>http://schemas.dmtf.org/cimi/1/action/import</action>
  <source>D:\ubuntu\ubuntu.ovf</source>
</Action>

There may be a requirement for vsphere (I'm not sure) to have the ovf
files in a subdirectory with the same name as the descriptor.

The format default to "application/ovf" so no need to specify it.

For export, query the CEP to find the url to list the system collection
(that's where you'll also find the import url I use above), then query
the system you want to export to find the export url to POST to. You'd
post an XML body similar to the above one with the right action value
and other elements.

Regards,
Dies Koper


-----Original Message-----
From: David Madner [mailto:e0926741@student.tuwien.ac.at] 
Sent: Saturday, August 17, 2013 8:57 PM
To: dev@deltacloud.apache.org
Subject: Re: OVF support in deltacloud

Thank you for this information, could you provide a small example?
Which URL should be used to import the OVF specs (e.g. 
http://localhost:3001/cimi/system_import)?
Do I need some special HTTP Header value, like "Content-Type: 
application/ovf" ?

Cheers,
David

On 13.08.2013 21:17, Koper, Dies wrote:
> Hi David,
>
> It's a work in progress, but have a look at this commit:
>
> https://github.com/dkoper/deltacloud-core/commit/69d7d6f70169af07a1b73
> a1
> 66560abe41b24a35d
>
> A lot of values are still hard-coded (including the entry in the 
> systems collections), but if you change them according to your 
> environment you be able to import and export OVF packages using the 
> CIMI interface with a vCenter backend.
>
> Regards,
> Dies Koper
>
> -----Original Message-----
> From: David Madner [mailto:e0926741@student.tuwien.ac.at]
> Sent: Tuesday, August 13, 2013 7:58 PM
> To: dev@deltacloud.apache.org
> Subject: OVF support in deltacloud
>
> Hi all,
>
> I am currently writing on my master's thesis and I try to use 
> deltacloud in combination with OVF (Open Virtualization Format) 
> through the CIMI interface.
> Unfortunately I can not find any examples how to use an OVF virtual 
> system description in combination with deltacloud.
> Do you have any working examples?
>
> Thanks in advance,
> Best regards
> David
>
>
>




Mime
View raw message