Mapping a raw disk to guest VM?

asked 2013-10-22 08:50:48 -0600

blackberet gravatar image

updated 2013-10-25 16:48:20 -0600

smaffulli gravatar image

Is there a way to map a host(KVM) local SATA disk to a guest in OpenStack? (Bypassing Cinder, I guess)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-11-17 12:23:12 -0600

kishore gravatar image

updated 2015-11-17 12:24:18 -0600

yes, using ephemeral disk

When you create a flavor you can specify a ephemeral disk. Then when the instance is launched, select the flavor with the ephemeral disk. The guest VM should see a /dev/sdb device.

nova flavor-create --ephemeral 10 --swap 1024 --is-public True testflavor5 64 1024 30 4

run lvmdiskscan to view the device or fdisk -l


fdisk -l

edit flag offensive delete link more


This does not map a raw physical disk to the guest. The switch "--ephemeral 10" allocates 10GB of the local disk to the node as an "ephemeral disk". To the guest it appears as a normal disk, but on the host it is a file.

seano gravatar imageseano ( 2017-05-02 04:04:47 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-10-22 08:50:48 -0600

Seen: 407 times

Last updated: Nov 17 '15