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

Serg Melikyan smelikyan at mirantis.com
Mon Sep 15 10:37:00 UTC 2014


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 1:54 PM, pratik maru <fipuzzles at gmail.com> wrote:

> 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 <smelikyan at mirantis.com>
> wrote:
>
>> 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 <smelikyan at mirantis.com>
>> wrote:
>>
>>> 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 AM, Denis Makogon <dmakogon at mirantis.com>
>>> wrote:
>>>
>>>> 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 г. пользователь 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]
>>>>> http://docs.openstack.org/grizzly/openstack-compute/admin/content/config-drive.html
>>>>>
>>>>> Best regards,
>>>>> Max Lobur,
>>>>> OpenStack Developer, Mirantis, Inc.
>>>>>
>>>>> Mobile: +38 (093) 665 14 28
>>>>> Skype: max_lobur
>>>>>
>>>>> 38, Lenina ave. Kharkov, Ukraine
>>>>> www.mirantis.com
>>>>> www.mirantis.ru
>>>>>
>>>>> On Sun, Sep 14, 2014 at 10:21 PM, pratik maru <fipuzzles at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> 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.
>>>>>>
>>>>>> Please let me know, how it can be achieved in openstack environment.
>>>>>>
>>>>>> Thanks
>>>>>> fipuzzles
>>>>>>
>>>>>> On Mon, Sep 15, 2014 at 8:14 AM, Xiandong Meng <
>>>>>> mengxiandong at gmail.com> wrote:
>>>>>>
>>>>>>> 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 <fipuzzles at gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> Is there any way to attach an USB disk as an external disk to VM
>>>>>>>> while booting up the VM ?
>>>>>>>>
>>>>>>>> Any help in this respect will be really helpful.
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> fipuzzles
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> OpenStack-dev mailing list
>>>>>>>> OpenStack-dev at lists.openstack.org
>>>>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Regards,
>>>>>>>
>>>>>>> Xiandong Meng
>>>>>>> mengxiandong at gmail.com
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> OpenStack-dev mailing list
>>>>>>> OpenStack-dev at lists.openstack.org
>>>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> OpenStack-dev mailing list
>>>>>> OpenStack-dev at lists.openstack.org
>>>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>>>
>>>>>>
>>>>>
>>>> _______________________________________________
>>>> OpenStack-dev mailing list
>>>> OpenStack-dev at lists.openstack.org
>>>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Serg Melikyan, Senior Software Engineer at Mirantis, Inc.
>>> http://mirantis.com | smelikyan at mirantis.com
>>>
>>> +7 (495) 640-4904, 0261
>>> +7 (903) 156-0836
>>>
>>
>>
>>
>> --
>> Serg Melikyan, Senior Software Engineer at Mirantis, Inc.
>> http://mirantis.com | smelikyan at mirantis.com
>>
>> +7 (495) 640-4904, 0261
>> +7 (903) 156-0836
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>


-- 
Serg Melikyan, Senior Software Engineer at Mirantis, Inc.
http://mirantis.com | smelikyan at mirantis.com

+7 (495) 640-4904, 0261
+7 (903) 156-0836
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140915/cd2531e6/attachment.html>


More information about the OpenStack-dev mailing list