Bug 489090 - creating VM fails with "could not open disk image" on LVM partition
creating VM fails with "could not open disk image" on LVM partition
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: libvirt (Show other bugs)
10
All Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Veillard
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-07 06:38 EST by Andy Burns
Modified: 2009-03-07 06:45 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-03-07 06:45:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Andy Burns 2009-03-07 06:38:32 EST
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 06:45:44 EST
Ahh, just considered this some more and realised it was a SELINUX problem, sorry for the noise.

Note You need to log in before you can comment on or make changes to this bug.