Bug 523948 - VM cannot boot from the disk converted by qemu-img
Summary: VM cannot boot from the disk converted by qemu-img
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Glauber Costa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-17 10:54 UTC by Han Pingtian
Modified: 2009-09-24 08:15 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-24 08:15:16 UTC


Attachments (Terms of Use)
log files (2.19 KB, application/x-gzip)
2009-09-22 02:16 UTC, Han Pingtian
no flags Details

Description Han Pingtian 2009-09-17 10:54:54 UTC
Description of problem:
I have a VM using raw file disk, it works fine. But it failed to boot from the converted qcow2 file disk."Boot failed: not a bootable disk".

Version-Release number of selected component (if applicable):
qemu-img-0.10.92-1.fc12.x86_64

How reproducible:
always

Steps to Reproduce:
1.cd /var/lib/libvirt/images
2.qemu-img convert -O qcow2 <original image> <new image name>
3.virsh pool-refresh default
4.virsh edit <vm name>
  
Actual results:


Expected results:


Additional info:

Comment 1 Han Pingtian 2009-09-18 09:14:53 UTC
qemu-img-0.10.92-4.fc12.x86_64 fails, too.

Comment 2 Mark McLoughlin 2009-09-21 13:45:05 UTC
Thanks for the report 

Could you include the guest XML config - i.e. virsh dumpxml <vm name>

This is libvirt-0.7.1-1.fc12, I assume

Also, please include the log file for the guest from /var/log/libvirt/qemu

http://fedoraproject.org/wiki/Reporting_virtualization_bugs

Comment 3 Han Pingtian 2009-09-22 02:16:27 UTC
Created attachment 362023 [details]
log files

Comment 4 Han Pingtian 2009-09-22 02:17:29 UTC
(In reply to comment #2)
> Thanks for the report 
> 
> Could you include the guest XML config - i.e. virsh dumpxml <vm name>
> 
> This is libvirt-0.7.1-1.fc12, I assume

No, this is libvirt-0.7.1-4.fc12.x86_64.

> 
> Also, please include the log file for the guest from /var/log/libvirt/qemu
> 
> http://fedoraproject.org/wiki/Reporting_virtualization_bugs

Comment 5 Mark McLoughlin 2009-09-23 15:36:55 UTC
Thanks

Okay, the XML contains:

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/var/lib/libvirt/images/v1-qcow2.img'/>
      <target dev='vda' bus='virtio'/>
    </disk>

If you change it to:

    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/var/lib/libvirt/images/v1-qcow2.img'/>
      <target dev='vda' bus='virtio'/>
    </disk>

Does it work?

(Note, it's better to attach files as text/plain so people can look at them in their browser rather than having to download and unzip a tar file)

Comment 6 Han Pingtian 2009-09-24 02:38:16 UTC
oh, I didn't notice the driver type ... Yes, after this change, the VM works fine.

Sorry for the wrong bug report.

Comment 7 Mark McLoughlin 2009-09-24 08:15:16 UTC
Thanks for confirming han


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