Ask Your Question
0

how to put a local file into instance in openstack?

asked 2013-07-08 03:28:57 -0600

openstack gravatar image

updated 2013-07-08 03:29:32 -0600

can someone tell me ,how can i put a local file into a (running) instance in openstack essex with python ? my instance's operating system is windows ,thanks so much

edit retag flag offensive close merge delete

Comments

Does this assume you don't have horizon or VNC installed and hence you don't have direct access to your running VM's or you don't want to open the console and then save it?

Jobin gravatar imageJobin ( 2013-07-08 12:31:05 -0600 )edit

i have installed horizon and vnc . i just want to upload the file in my code. is there some kind of apis that i can make use of?

openstack gravatar imageopenstack ( 2013-07-10 02:24:53 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-07-10 05:18:06 -0600

cyberang3l gravatar image

The metadata service might be able to help you.

I haven't tried it myself, but I guess you will then need to run a startup script (powershell?) in the windows machine to check the "user-data".

http://docs.openstack.org/trunk/openstack-compute/admin/content/metadata-service.html http://docs.openstack.org/trunk/openstack-compute/admin/content/instance-data.html

Take a look also to the answers here if you try this approach: http://serverfault.com/questions/17685/how-to-get-an-ec2-windows-machines-instance-id-into-a-batch-variable

edit flag offensive delete link more

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

Stats

Asked: 2013-07-08 03:28:57 -0600

Seen: 138 times

Last updated: Jul 10 '13