From: Ian Campbell Subject: Re: incorrect disk numbering with qemu Date: Wed, 15 Jan 2014 17:22:07 +0000 Message-ID: <1389806527.3793.106.camel@kazak.uk.xensource.com> References: <20140115171244.GA2596@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140115171244.GA2596@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Anthony Perard , Stefano Stabellini , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-01-15 at 18:12 +0100, Olaf Hering wrote: > It seems qemu does not enumerate the configured disks correctly with a > config like this: > > disk=[ > 'raw:/some.iso,hda:cdrom,r', > 'raw:/some.raw,xvda,w', > ] > > With a PV guest it works fine, the guest has a hda and xvda device. > But a HVM guest fails to start: > qemu-system-i386: -drive file=/some.raw,if=ide,index=0,media=disk,format=raw,cache=writeback: drive with bus=0, unit=0 (index=0) exists > > I think that kind of config used to work with xend. Did it? I thought xvda and hda were effectively considered two faces of the same device, so I'm not so sure. I'd be particularly surprised if this worked by design rather than coincidence. Based on docs/misc/vbd-interface.txt I wouldn't be all that surprised if some guest kernels had a problem with this even if you could convince the toolstack it was ok. Ian.