Marc Haber
2011-Aug-08 20:37 UTC
[libvirt-users] virt-manager - how to add /dev/mapper as a storage pool
Hi, I would like to be able to configure VMs running off dm-crypt devices that were unlocked in the host. Unlocked dm-crypt devices show up in /dev/mapper/devicename, with devicename being the second parameter given to cryptsetup luksOpen. The LVM storage pool type insists on searching in /dev/vgname and cannot be tricked into reading /dev/mapper by giving it a fake VG named mapper; the LVM storage pool type "dir" mishandles /dev/mapper/control ("illegal seek"). Is there a workaround to be able to use such devices in virt-manager without having to define a single storage pool for every device used? Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190
Cole Robinson
2011-Aug-09 15:09 UTC
[libvirt-users] virt-manager - how to add /dev/mapper as a storage pool
On 08/08/2011 04:37 PM, Marc Haber wrote:> Hi, > > I would like to be able to configure VMs running off dm-crypt devices > that were unlocked in the host. Unlocked dm-crypt devices show up in > /dev/mapper/devicename, with devicename being the second parameter > given to cryptsetup luksOpen. > > The LVM storage pool type insists on searching in /dev/vgname and > cannot be tricked into reading /dev/mapper by giving it a fake VG > named mapper; the LVM storage pool type "dir" mishandles > /dev/mapper/control ("illegal seek"). > > Is there a workaround to be able to use such devices in virt-manager > without having to define a single storage pool for every device used? > > Greetings > Marc >cc-ing virt-tool-list Latest virt-manager-0.9.0 allows adding a libvirt mpath pool which might be what you're looking for. If you don't have that version you can try configuring it on the command line with virsh. Some more info: http://libvirt.org/storage.html#StorageBackendMultipath - Cole