Bug 452422

Summary: qemu: could not open disk image
Product: [Fedora] Fedora Reporter: Dalibor Karlović <dado>
Component: qemuAssignee: David Woodhouse <dwmw2>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: hdegoede, nphilipp
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-24 04:13:03 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Dalibor Karlović 2008-06-22 14:44:48 EDT
Description of problem:
when I try to run some new downloaded ISOs with virt-manager, it says:

Unable to complete install: 'virDomainCreateLinux() failed internal error QEMU
quit during console startup
qemu: could not open disk image
/mnt/storage/software/linux/ISOs/openSUSE-11.0-KDE4-LiveCD-i386.iso

Details:

Unable to complete install '<class 'libvirt.libvirtError'>
virDomainCreateLinux() failed internal error QEMU quit during console startup
qemu: could not open disk image
/mnt/storage/software/linux/ISOs/openSUSE-11.0-KDE4-LiveCD-i386.iso

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 651, in do_install
    dom = guest.start_install(False, meter = meter)
  File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 845, in
start_install
    return self._do_install(consolecb, meter)
  File "/usr/lib/python2.5/site-packages/virtinst/Guest.py", line 866, in
_do_install
    self.domain = self.conn.createLinux(install_xml, 0)
  File "/usr/lib/python2.5/site-packages/libvirt.py", line 833, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: virDomainCreateLinux() failed internal error QEMU quit during
console startup
qemu: could not open disk image
/mnt/storage/software/linux/ISOs/openSUSE-11.0-KDE4-LiveCD-i386.iso

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

[dado@amelie ~]$ rpm -qi virt-manager qemu | grep -E "(Version|Release)"
Version     : 0.5.4                             Vendor: Fedora Project
Release     : 4.fc9                         Build Date: Fri 09 May 2008 08:21:13
PM CEST
Version     : 0.9.1                             Vendor: Fedora Project
Release     : 5.fc9                         Build Date: Mon 24 Mar 2008 10:32:08
PM CET

How reproducible:
Download a Live CD ISO, start virt-manager, connect to qemu and create the new VM.
  
Actual results:
The above error.

Expected results:
Created and running VM.

Additional info:
It could be related to https://bugzilla.redhat.com/show_bug.cgi?id=447808 but I
can't be sure. FWIW, this works on F8.
Comment 1 Nils Philippsen 2008-07-04 05:24:24 EDT
Same here. Is there any additional info that is needed to get this fixed?
Comment 2 Daniel Berrange 2008-07-23 11:20:25 EDT
All disk images must be in /var/lib/libvirt/images/ to comply with SELinux
policy. Failing that you need to ensure the alternative directory you are using
is labelled with 'virt_image_t'.
Comment 3 Nils Philippsen 2008-07-23 12:43:21 EDT
Thanks Dan, that works for me. As far as I'm concerned, the bug can be closed.

Dalibor, can you check if what Dan described in comment #2 works for you?
Comment 4 Dalibor Karlović 2008-07-23 13:14:15 EDT
Not really, I've already downgraded to F8, but I'll take your word on it that it
works. :) You can close this.
Comment 5 Nils Philippsen 2008-07-24 04:13:03 EDT
Thanks, closing.