Ask Your Question
0

how to create instance from self-defined XML config

asked 2014-05-19 06:02:01 -0500

gavingo15 gravatar image

As title, is it possible to create a instance on openstack from a custom XML configuration(creating by our self) rather than create from auto-generated configuration? thanks, Gavin

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2014-05-19 09:37:59 -0500

dbaxps gravatar image

Please view http://virtual2privatecloud.com/troub...

Instance Creation Success
A successful instance creation results in following log messages.
Log Snippet
2013-11-21 14:34:58.728 3981 AUDIT nova.compute.manager [req-30856cb6-03fc-4891-b17b-01dcf571099b 3575a88c7fc748b5a2603e1f9f381695 48b0d7295bbe4907a5bea2f686c8e5e6] [instance: f27bd1c5-05c3-4e91-a430-96adb1e95fcb] Starting instance…
2013-11-21 14:35:03.166 3981 INFO nova.compute.manager [-] Lifecycle event 0 on VM f27bd1c5-05c3-4e91-a430-96adb1e95fcb
2013-11-21 14:35:03.255 3981 INFO nova.virt.libvirt.driver [-] [instance: f27bd1c5-05c3-4e91-a430-96adb1e95fcb] Instance spawned successfully.

and http://www.laurentluce.com/posts/open... the last one looks a bit outdated, but to_xml() method may be found in driver.py

Hence, XML def generation seems to be invollved in process of instance spawning .
My guess the answer is no.
edit flag offensive delete link more

Comments

Thanks a lot!

gavingo15 gravatar imagegavingo15 ( 2014-05-19 20:22:29 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-05-19 06:02:01 -0500

Seen: 116 times

Last updated: May 19 '14