Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Could not find hda disk attached: installed VM begins with setup again


I am using Packstack to try Openstack in a single node.

It is documented in Openstack installation instructions that one should attach a cdrom (named as hdc) in the place of vda to complete the setup of an instance.

I followed the exact procedures, as shown below:

Step 1: display the xml of the instance installed and get the target device, source of the running instance.

[root@localhost ~]# virsh dumpxml instance-0000001a
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/var/lib/nova/instances/8dd3023b-d61c-4394-b8d5-40a2e66985fa/disk'/>
      <target dev='hda' bus='ide' tray='open'/>
      <alias name='ide0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>

Step 2: attach the source disk obtained from above into hda device(also obtained from above).

[root@localhost ~]# virsh attach-disk --type cdrom instance-0000001a --source /var/lib/nova/instances/8dd3023b-d61c-4394-b8d5-40a2e66985fa/disk --target hda
Disk attached successfully

And thus, the attached device should reflect as a partition. But, its nowhere. Please see below again.

[root@localhost ~]# cat /proc/partitions
major minor  #blocks  name

   7        0   21600256 loop0
   7        1    2097152 loop1
   8        0  488386584 sda
   8        1     512000 sda1
   8        2  487873536 sda2
 253        0   52428800 dm-0
 253        1    3932160 dm-1
 253        2  431509504 dm-2

I also noticed that vdb patitions are not there. Thus, when I shutdown the instance and start it again, the same setup process starts.

Please note that there is nothing worth in log files.

Please suggest me things that are taking this wrong and workarounds for the same.

Thanks in advance.