Buffer I/O Errors with emulated usb disk image

Bug #616151 reported by thedward
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
qemu-kvm (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: qemu-kvm

Description: Ubuntu 10.04.1 LTS
Release: 10.04

qemu-kvm version 0.12.3+noroms-0ubuntu9.2

I expected using disk images with the -usbdevice option to work without errors.

Instead I get lots of I/O errors on the guest operating system.

When trying to use a emulated usb disk from an image like so:

   qemu -hda root.img -usbdevice disk:usb.img

When I write to the simulated disk in the guest operating sytem (Debian or Ubuntu)
I get several errors like this:

"Buffer I/O error on device sda1, logical block 570" (dozens)
"end_request: I/O error, dev sda, sector 656"

This also generally causes the disk image to become corrupted.

I have tried this with various image formats (including raw and qcow2)
and with both FAT and ext4 filesystems. I have tried creating the file systems
inside and outside of qemu.

The same disk images work fine if I attached them to a loop device
then give the loop device as the argument to -usbdevice:

    sudo losetup /dev/loop0 usb.img
    qemu -hda root.img -usbdevice disk:/dev/loop0

Thierry Carrez (ttx)
Changed in qemu-kvm (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.