Re: [openstack-dev] Attach an USB disk to VM [nova]

2014-09-15 Thread Denis Makogon
Agreed with Max. With nova you can use file injection mechanism. You just need to build a dictionary of file paths and file content. But I do agree that it's not the same as you want. But it's more than valid way to inject files. Best regards, Denis Makogon понедельник, 15 сентября 2014 г.

Re: [openstack-dev] Attach an USB disk to VM [nova]

2014-09-15 Thread Serg Melikyan
If data that are you planning to pass to the VM is considerably large Metadata mechanism may be used for passing at least a link to the source of data and simple shell script that will executed on VM with CloudInit right after the boot to obtain data via simple cURL. On Mon, Sep 15, 2014 at 10:20

Re: [openstack-dev] Attach an USB disk to VM [nova]

2014-09-15 Thread Serg Melikyan
Other approach to the way I have described in the mail above is to use openstack/os-collect-config https://github.com/openstack/os-collect-config project to handle downloading and running shell script. On Mon, Sep 15, 2014 at 10:35 AM, Serg Melikyan smelik...@mirantis.com wrote: If data that

Re: [openstack-dev] Attach an USB disk to VM [nova]

2014-09-15 Thread pratik maru
Hi All, Is there any way to do the same using Heat ? Thanks fipuzzles On Mon, Sep 15, 2014 at 12:09 PM, Serg Melikyan smelik...@mirantis.com wrote: Other approach to the way I have described in the mail above is to use openstack/os-collect-config

Re: [openstack-dev] Attach an USB disk to VM [nova]

2014-09-15 Thread Serg Melikyan
Sure, take a look at Software Configuration feature of Heat https://wiki.openstack.org/wiki/Heat/Blueprints/hot-software-config-spec Examples of SoftwareConfiguration usage may be found here: https://git.openstack.org/cgit/openstack/heat-templates/tree/hot/software-config On Mon, Sep 15, 2014 at

Re: [openstack-dev] Attach an USB disk to VM [nova]

2014-09-15 Thread Bohai (ricky)
I feel maybe usb redirection is a way to what you want. But unfortunately the blueprint has not been finished in juno. https://review.openstack.org/#/c/89834/ Best regards to you. Ricky From: pratik maru [mailto:fipuzz...@gmail.com] Sent: Monday, September 15, 2014 3:01 AM To:

Re: [openstack-dev] Attach an USB disk to VM [nova]

2014-09-14 Thread Xiandong Meng
What is your concrete user scenario for this request? Where do you expect to plugin the USB disk? On the compute node that hosts the VM or from somewhere else? On Mon, Sep 15, 2014 at 3:01 AM, pratik maru fipuzz...@gmail.com wrote: Hi, Is there any way to attach an USB disk as an external

Re: [openstack-dev] Attach an USB disk to VM [nova]

2014-09-14 Thread pratik maru
Hi Xian, Thanks for replying. I have some data which i wants to be passed to VM. To pass this data, I have planned this to attach as an usb disk and this disk will be used inside the vm to read the data. What I am looking is for the functionality similar to -usb option with qemu.kvm command.

Re: [openstack-dev] Attach an USB disk to VM [nova]

2014-09-14 Thread Maksym Lobur
Try to use Nova Metadata Serivce [1] or Nova Config Drive [2]. There are options to pass Key-Value data as well as whole files during VM boot. [1] http://docs.openstack.org/grizzly/openstack-compute/admin/content/metadata-service.html [2]