how to add 2 devices with '--block-device' in 'nova boot'
when I try to create vm by 'nova boot' command, it's hard to add 2 devices into that vm. And, it always boot the second device 'bootindex=2' For example, I want to add 2 cdroms into vm:
nova boot --block-device source=image,dest=local,id=<>,bus=ide,type=cdrom,bootindex=1 --image xx1.iso --block-device source=image,dest=local,id=<>,bus=ide,type=cdrom,bootindex=2 --image xx2.iso --flavor xxxxx --nic net-id=<>,subnet-id=<> name
So, could anyone tell me how to add more than devices?
I am not aware of ability to boot 2 block devices. The workaround is to boot with one block device, and after span add another block device to the instance
Thanks, then, how to use command to achieve this? I mean how to use command to add another device? I am not able to use dashboard recently.
the command you are looking for is
nova volume-attach <server id> <volume id> <opt /dev/vdX>
.You must first create a volume prior to attaching it with
cinder create
.no, that command can not add cdrom device which I want to include windows drivers when installing windows system