Ask Your Question
0

How to make volume using IDE bus

asked 2015-05-02 20:12:58 -0500

brussels gravatar image

updated 2015-05-02 20:13:43 -0500

Hi, I have glance image with property hw_disk_bus = ide then it boots fine. When I make volume from the image and then boot new instance it fails to boot because volume is not on ide bus and OS has no appropriate drivers.

What is the default bus for cinder volumes? How can I change this bus to IDE from Openstack dashboard?

I know how to boot new instance from volume supplying volume with IDE bus but I'm unable to find a way how to do that without using CLI

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-05-03 03:26:57 -0500

dbaxps gravatar image

updated 2015-05-03 09:11:04 -0500

In case of LVMiSCSI backend for cinder bus type seems to be VirtIO

  <emulator>/usr/bin/qemu-kvm</emulator>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/dev/disk/by-path/ip-192.168.1.127:3260-iscsi-iqn.2010-10.org.openstack:volume-278049f3-efd3-4b3a-91f3-6281012dae91-lun-0'/>
      <target dev='vda' bus='virtio'/>
      <serial>278049f3-efd3-4b3a-91f3-6281012dae91</serial>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>

image description

Glance images was for F22,F21 where just uploaded via dashboard ( admin,public). I would try follow https://access.redhat.com/documentati...

ubuntu@ubuntu-System:~/devstack$ glance image-update \
> --property hw_disk_bus=virtio \
> --property hw_cdrom_bus=ide \
> --property hw_vif_model=virtio \
> 7db7f821-6be1-4345-ac08-47a938c8f33a
+-------------------------+--------------------------------------+
| Property                | Value                                |
+-------------------------+--------------------------------------+
| Property 'hw_cdrom_bus' | ide                                  |
| Property 'hw_disk_bus'  | virtio                               |
| Property 'hw_vif_model' | virtio                               |
| checksum                | a1771ebe76c65ca622a1676d4e55b603     |
| container_format        | bare                                 |
| created_at              | 2015-04-26T15:14:07.000000           |
| deleted                 | False                                |
| deleted_at              | None                                 |
| disk_format             | qcow2                                |
| id                      | 7db7f821-6be1-4345-ac08-47a938c8f33a |
| is_public               | True                                 |
| min_disk                | 0                                    |
| min_ram                 | 0                                    |
| name                    | VF22 Beta 3 image                    |
| owner                   | 77d4d7ed5dcd4fc8b01f3d2edb788643     |
| protected               | False                                |
| size                    | 221612032                            |
| status                  | active                               |
| updated_at              | 2015-05-03T14:07:57.000000           |
| virtual_size            | None                                 |
+-------------------------+--------------------------------------+
edit flag offensive delete link more
0

answered 2015-05-03 15:27:36 -0500

brussels gravatar image

My VM uses cinder volume which is copied from glance on machine boot. If I boot VM directly from glance VM runs with IDE disk. If I boot VM from image wich creates new volume - this new volume is on VirtIO bus and VM fails to boot.

How to make sure cinder volume inherit all glance image properties?

How to specify these properties from GUI?

edit flag offensive delete link more

Comments

Just for test, could you try make another copy of your glance image and attempt convert

glance image-update \
> --property hw_disk_bus=virtio \
> --property hw_cdrom_bus=ide \
> --property hw_vif_model=virtio \
> 7db7f821-6be1-4345-ac08-47a938c8f33a
dbaxps gravatar imagedbaxps ( 2015-05-04 01:04:08 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-05-02 20:12:58 -0500

Seen: 4,347 times

Last updated: May 03 '15