NetBSD Problem Report #42912

From www@NetBSD.org  Tue Mar  2 14:24:50 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 1E03163C2E4
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  2 Mar 2010 14:24:50 +0000 (UTC)
Message-Id: <20100302142449.98B6A63BFF3@www.NetBSD.org>
Date: Tue,  2 Mar 2010 14:24:49 +0000 (UTC)
From: hugo@barafranca.com
Reply-To: hugo@barafranca.com
To: gnats-bugs@NetBSD.org
Subject: Xen HVM guests detect a 0 MBytes hard disk in some situations (QEMU related?)
X-Send-Pr-Version: www-1.0

>Number:         42912
>Category:       pkg
>Synopsis:       Xen HVM guests detect a 0 MBytes hard disk in some situations (QEMU related?)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    haad
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 02 14:25:00 +0000 2010
>Closed-Date:    Mon Jun 20 05:33:40 +0000 2011
>Last-Modified:  Mon Jun 20 05:33:40 +0000 2011
>Originator:     Hugo Silva
>Release:        NetBSD 5.99.24
>Organization:
>Environment:
NetBSD 5.99.24 NetBSD 5.99.24 (XEN3_DOM0) #0: Sun Feb 28 19:27:54 WET 2010  root@:/usr/obj/sys/arch/amd64/compile/XEN3_DOM0 amd64
>Description:
QEMU detects a 0 MBytes hard disk in certain situations (see below), rendering the virtual machine (Xen HVM guest) unusable.

xentools33-3.3.2nb2 Userland Tools for Xen 3.3.x
xenkernel33-3.3.2   Xen 3.3.2 Kernel

-----
/dev/wd5d: (doesn't work)
xbd backend: attach device wd5d (size 2930277168) for domain 10

qemu: could not open vbd '/local/domain/10/device/vbd/768/phantom_vbd' \
or hard disk image '/dev/wd5d' (drv 'phy' format 'raw')
-----

-----
/dev/rwd5d: (works)
xbdback backend/vbd/11/768: unknown device 0x353 (major=3)

nothing in the qemu log.
-----

-----
/dev/mapper/testvg0-freebsd0: (doesn't work)
xbdback backend/vbd/7/768: can't VOP_OPEN device 0xa908: 16

qemu: could not open vbd '/local/domain/7/device/vbd/768/phantom_vbd' \
or hard disk image '/dev/mapper/testvg0-freebsd0' (drv 'phy' format 'raw')
-----

-----
/dev/mapper/rtestvg0-freebsd0: (doesn't work)
xbdback backend/vbd/8/768: unknown device 0xc208 (major=194)

nothing in the qemu log.
-----
>How-To-Repeat:
Try to use Xen HVM guest with an equivalent of:

disk =  [
    'phy:/dev/mapper/testvg0-freebsd0,hda,w',
    'file:/tmp/8.0-RELEASE-amd64-disc1.iso,hdc:cdrom,r'
    ]

Then launch the VM.
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->cegger
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Wed, 03 Mar 2010 02:18:06 +0000
Responsible-Changed-Why:
Could you take this?


Responsible-Changed-From-To: cegger->haad
Responsible-Changed-By: haad@NetBSD.org
Responsible-Changed-When: Wed, 03 Mar 2010 13:58:11 +0000
Responsible-Changed-Why:
I'm actively working on this issue.


State-Changed-From-To: open->feedback
State-Changed-By: haad@NetBSD.org
State-Changed-When: Fri, 07 Jan 2011 08:09:42 +0000
State-Changed-Why:
This problem fix was submitted to qemu people several times. It should be fixed now

patch was submited here

http://lists.gnu.org/archive/html/qemu-devel/2010-09/msg01581.html



State-Changed-From-To: feedback->closed
State-Changed-By: haad@NetBSD.org
State-Changed-When: Mon, 20 Jun 2011 05:33:40 +0000
State-Changed-Why:
Patch was submited to qemu-devel twice, later mbouyer@added this patch to pkgsrc.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.