← Back to team overview

openstack team mailing list archive

Re: Way to attach floppy device to VM while booting

 

I am sorry , I have missed mentioning in the previous mail  that I had set
--config-drive=true in the nova boot command


 nova boot --config-drive=true  --flavor 3 --image bae8715c-1758-4949-8bf7-
e6bb4e983e67 --key_name key1  --file /tmp/input.xml=/home/ubuntu110/input.xml
 vm2

Thanks,
Rashmi



On Tue, May 21, 2013 at 3:47 PM, Rashmi SN <snrashmisn@xxxxxxxxx> wrote:

> hi Ken'ichi Ohmichi,
>
> Without --file option boot succeeds !
>
> Thanks,
> Rashmi
>
>
> On Tue, May 21, 2013 at 3:41 PM, Ken'ichi Ohmichi <
> oomichi@xxxxxxxxxxxxxxxxx> wrote:
>
>>
>> Hi Rashmi,
>>
>> On Tue, 21 May 2013 15:04:50 +0530
>> Rashmi SN <snrashmisn@xxxxxxxxx> wrote:
>> >
>> > Thanks for the suggestion ! I tried --file option but it failed.
>>
>> If not specifying --file option, does the command succeed?
>>
>>
>> Thanks
>> Ken'ichi Ohmichi
>>
>> ---
>> > Command:
>> > nova boot --flavor 3 --image bae8715c-1758-4949-8bf7-e6bb4e983e67
>> > --key_name key1  --file /tmp/input.xml=/home/ubuntu110/input.xml  vm2
>> >
>> > nova.conf file :,
>> > --config_drive_format=iso9660
>> > --libvirt_inject_partition=-2
>> >
>> >
>> > It fails with the following error:
>> >
>> > *2013-05-21 02:04:49 TRACE nova.rpc.amqp Command: sudo nova-rootwrap
>> mkdir
>> > -p /tmp/openstack-disk-mount-tmpWvaDMs/tmp*
>> >
>> > *2013-05-21 02:04:49 TRACE nova.rpc.amqp Exit code: 1*
>> >
>> > *2013-05-21 02:04:49 TRACE nova.rpc.amqp Stdout: ''*
>> >
>> > *2013-05-21 02:04:49 TRACE nova.rpc.amqp Stderr: "/bin/mkdir: cannot
>> create
>> > directory `/tmp/openstack-disk-mount-tmpWvaDMs/tmp': Read-only file
>> > system\n"*
>> >
>> > *2013-05-21 02:04:49 TRACE nova.rpc.amqp*
>> >
>> > 2013-05-21 02:04:54 DEBUG nova.manager [-] Running periodic task
>> > ComputeManager._publish_service_capabilities from (pid=1479)
>> periodic_tasks
>> > /usr/lib/python2.7/dist-packages/nova/manager.py:152
>> >
>> > 2013-05-21 02:04:54 DEBUG nova.manager [-] Notifying Schedulers of
>> > capabilities ... from (pid=1479) _publish_service_capabilities
>> > /usr/lib/python2.7/dist-packages/nova/manager.py:203
>> >
>> > 2013-05-21 02:04:54 DEBUG nova.rpc.amqp [-] Making asynchronous fanout
>> > cast... from (pid=1479) fanout_cast
>> > /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:359
>> >
>> > 2013-05-21 02:04:54 DEBUG nova.manager [-] Running periodic task
>> > ComputeManager._poll_rescued_instances from (pid=1479) periodic_tasks
>> > /usr/lib/python2.7/dist-packages/nova/manager.py:152
>> >
>> > 2013-05-21 02:04:54 DEBUG nova.manager [-] Skipping
>> > ComputeManager._sync_power_states, 1 ticks left until next run from
>> > (pid=1479) periodic_tasks
>> /usr/lib/python2.7/dist-packages/nova/manager.py
>> >
>> >
>> >
>> > Regards,
>> >
>> > Rashmi
>> >
>> >
>> > On Thu, May 9, 2013 at 9:45 AM, Ken'ichi Ohmichi
>> > <oomichi@xxxxxxxxxxxxxxxxx>wrote:
>> >
>> > >
>> > > Hi Rashmi,
>> > >
>> > > On Thu, 9 May 2013 09:31:25 +0530
>> > > Rashmi SN <snrashmisn@xxxxxxxxx> wrote:
>> > > > On Sun, May 5, 2013 at 11:08 AM, Rashmi SN <snrashmisn@xxxxxxxxx>
>> wrote:
>> > > > >
>> > > > > I would want to associate a floppy disk image say "example.flp"
>> to a VM
>> > > > > when I instantiate.
>> > > > > The idea is that , during installation , the image picks up
>> certain
>> > > > > configuration details from a defined file from the floppy image
>> (flp).
>> > > > > How do I achieve this with openstack nova (boot) commands.
>> > >
>> > > I guess you can use --file option of 'nova boot' command, if a defined
>> > > file is small.
>> > >
>> > >
>> > > Thanks
>> > > Ken'ichi Ohmichi
>> > >
>> > > _______________________________________________
>> > > Mailing list: https://launchpad.net/~openstack
>> > > Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> > > Unsubscribe : https://launchpad.net/~openstack
>> > > More help   : https://help.launchpad.net/ListHelp
>> > >
>>
>
>

References