From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: raw disks no longer work in latest kvm (kvm-88 was fine) Date: Sun, 7 Mar 2010 11:36:10 +0200 Message-ID: <20100307093610.GR16909@redhat.com> References: <4B92BF97.4040001@nagafix.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Antoine Martin Return-path: Received: from mx1.redhat.com ([209.132.183.28]:64317 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751737Ab0CGJgU (ORCPT ); Sun, 7 Mar 2010 04:36:20 -0500 Content-Disposition: inline In-Reply-To: <4B92BF97.4040001@nagafix.co.uk> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Mar 07, 2010 at 03:48:23AM +0700, Antoine Martin wrote: > Hi, > > With qemu-kvm-0.12.3: > ./qemu-system-x86_64 [..] -drive file=/dev/sdc9,if=virtio,cache=none [..] > [ 1.882843] vdc: > [ 2.365154] udev: starting version 146 > [ 2.693768] end_request: I/O error, dev vdc, sector 126 > [ 2.693772] Buffer I/O error on device vdc, logical block 126 > [ 2.693775] Buffer I/O error on device vdc, logical block 127 > [ 2.693777] Buffer I/O error on device vdc, logical block 128 > [ 2.693779] Buffer I/O error on device vdc, logical block 129 > [ 2.693781] Buffer I/O error on device vdc, logical block 130 > [ 2.693783] Buffer I/O error on device vdc, logical block 131 > [ 2.693785] Buffer I/O error on device vdc, logical block 132 > [ 2.693787] Buffer I/O error on device vdc, logical block 133 > [ 2.693788] Buffer I/O error on device vdc, logical block 134 > [ 2.693814] end_request: I/O error, dev vdc, sector 0 > [ 3.144870] end_request: I/O error, dev vdc, sector 0 > [ 3.499377] end_request: I/O error, dev vdc, sector 0 > [ 3.523247] end_request: I/O error, dev vdc, sector 0 > [ 3.547130] end_request: I/O error, dev vdc, sector 0 > [ 3.550076] end_request: I/O error, dev vdc, sector 0 > > Works fine with kvm-88: > cp /usr/src/KVM/kvm-88/pc-bios/*bin ./ > cp /usr/src/KVM/kvm-88/x86_64-softmmu/qemu-system-x86_64 ./ > ./qemu-system-x86_64 [..] -drive file=/dev/sdc9,if=virtio,cache=none [..] > > [ 1.650274] vdc: unknown partition table > [ 112.704164] EXT4-fs (vdc): mounted filesystem with ordered data mode > > I've tried running as root, using the block device directly (as > shown above) rather than using a softlink, etc.. > > Something broke. > Host and guest are both running 2.6.33 and latest KVM. > Are you sure you have write access to the block device? -- Gleb.