LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 05-22-2010, 08:21 AM   #1
TonyC
LQ Newbie
 
Registered: Jul 2007
Posts: 7

Rep: Reputation: 0
qemu: could not open disk image :


Running Fedora 12 2.6.32.12-115.fc12.i686.PAE on Quad-Core AMD Opteron 2352.

Built a VM with the following command:

$ sudo virt-install \
--hvm \
--vnc \
--arch=x86_64 \
--os-type=linux \
--os-variant=rhel6 \
--name=rhel6-x86_64 \
--ram=512 \
--disk path=/var/lib/libvirt/images/rhel6-x86_64.img \
--cdrom=/work/distros/rhel6/RHEL6-Server-x86_64-DVD.iso

I got a warning during the install that the disk was corrupted and needed to be re-initialized. I allowed the install to re-initialize the disk, and all proceeded normally.

However, the VM did not reboot, and when I try to start the new VM, whether from virsh or virt-manager, I get the following error.
Error starting domain: internal error unable to start guest: qemu: could not open disk image : No such file or directory
I did a lot of googling of the problem, but I could not figure out what exactly to do from the sites I visited.

Getting the idea from some of the sites that there may have been a permissions problem, I tried moving the file out of /var/lib/libvirt/images into my /home/user directory, and editing the virtual machine's xml file accordingly, but I still get the same error.

Please advise.

Details of the error:

Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/engine.py", line 589, in run_domain
vm.startup()
File "/usr/share/virt-manager/virtManager/domain.py", line 150, in startup
self._backend.create()
File "/usr/lib/python2.6/site-packages/libvirt.py", line 293, in create
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error unable to start guest: qemu: could not open disk image : No such file or directory
 
Old 05-22-2010, 08:38 AM   #2
TonyC
LQ Newbie
 
Registered: Jul 2007
Posts: 7

Original Poster
Rep: Reputation: 0
OK, according to https://bugzilla.redhat.com/show_bug.cgi?id=581978, the workaround is to remove the CDROM from the configuration, as it will try to boot from the CDROM first. As far as I can tell, this is new and unwelcome behavior, which is why there is a bug report, and a newer version of libvirt is forthcoming.

However, the VM appears to hang where it says, "Booting from hard disk ..."

Any advice?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mount qemu image secretlydead Linux - Software 11 05-14-2010 04:12 PM
Trying to convert VMWare image to raw using Qemu: error - "image open" JamesHall Linux - Software 1 07-22-2008 04:59 AM
Canīt mount a qemu image bruno buys Linux - Software 2 03-31-2006 10:00 PM
qemu create disk image kpachopoulos Linux - General 3 11-29-2005 10:49 AM
Mounting a qemu created root disk image Valhalla Linux - Software 4 10-26-2005 08:34 PM


All times are GMT -5. The time now is 06:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration