Bug 489090

Summary: creating VM fails with "could not open disk image" on LVM partition
Product: [Fedora] Fedora Reporter: Andy Burns <fedora>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: berrange, clalance, crobinso, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-07 11:45:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andy Burns 2009-03-07 11:38:32 UTC
Description of problem:

creating a new VM with virt-manager under KVM on F10 x86_64, specify to use an newly created LVM partition (either as /dev/mapper/vgxxx-lvxxx or as /dev/vgxxx/lvxxx) for the virtual disk, when the VM is being created I always receive an error as show below.

Version-Release number of selected component (if applicable):

libvirt.x86_64                        0.5.1-2.fc10                installed
libvirt-python.x86_64                 0.5.1-2.fc10                installed
python-virtinst.noarch                0.400.0-5.fc10              installed
virt-manager.x86_64                   0.6.0-5.fc10                installed

How reproducible:

100%
  
Actual results:

Unable to complete install '<class 'libvirt.libvirtError'> internal error QEMU quit during console startup
qemu: could not open disk image /dev/mapper/vg0-lv_cen52

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 723, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 732, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 767, in _do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib64/python2.5/site-packages/libvirt.py", line 915, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: internal error QEMU quit during console startup
qemu: could not open disk image /dev/mapper/vg0-lv_cen52

Expected results:

VM should be created on an LVM

Additional info:

It does work if I create a .img file for the virtual disk

Comment 1 Andy Burns 2009-03-07 11:45:44 UTC
Ahh, just considered this some more and realised it was a SELINUX problem, sorry for the noise.