NetBSD Problem Report #39452

From www@NetBSD.org  Tue Sep  2 13:46:56 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 1B17963BC96
	for <gnats-bugs@gnats.netbsd.org>; Tue,  2 Sep 2008 13:46:56 +0000 (UTC)
Message-Id: <20080902134655.9CDCD63BC80@narn.NetBSD.org>
Date: Tue,  2 Sep 2008 13:46:55 +0000 (UTC)
From: thomas@feddersen-engineering.de
Reply-To: thomas@feddersen-engineering.de
To: gnats-bugs@NetBSD.org
Subject: "Internal error" with Xen 3.1.4 and HVM
X-Send-Pr-Version: www-1.0

>Number:         39452
>Category:       port-xen
>Synopsis:       "Internal error" with Xen 3.1.4 and HVM
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    bouyer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 02 13:50:00 +0000 2008
>Closed-Date:    Fri Sep 05 17:40:21 +0000 2008
>Last-Modified:  Fri Sep 05 17:40:21 +0000 2008
>Originator:     Thomas Feddersen
>Release:        NetBSD 4.0
>Organization:
Dipl.-Ing. Thomas Feddersen, Beratender Ingenieur
>Environment:
NetBSD bremen.feddersen.xx 4.0 NetBSD 4.0 (XEN3_DOM0) #0: Sun Dec 16 01:20:31 PST 2007  builds@wb34:/home/builds/ab/netbsd-4-0-RELEASE/i386/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/i386/compile/XEN3_DOM0 i386
>Description:
XEN3_DOM0 i386 and XEN3_DOMU i386 run fine, attempting to start WinXP as a HVM-DomU results in an errormessage:

# xm create winxp
Using config file "/usr/pkg/etc/xen/winxp".
Error: (1, 'Internal error', 'Could not deallocate guard page for HVM guest.\n (25 = Inappropriate ioctl for device)')

Before output of errormessage the debugger (green letters) echoes to console:
sys_ioctl: _IOWR('P', 0, 24) returned -1: pid=489 comm=python2.4

# ps -p 489
PID TTY STAT    TIME COMMAND
489 ?   Ia   0:01.64 /usr/pkg/bin/python2.4 /usr/pkg/sbin/xend start
>How-To-Repeat:
Install NetBSD 4.0 and make from Pkgsrc:
grub-0.97nb8
xentools3-3.1.4
xentools3-hvm-3.1.4
xenkernel3-3.1.4

and configure according http://www.netbsd.org/ports/xen/howto.html

# cat /usr/pkg/etc/xen/winxp
kernel = "/usr/pkg/lib/xen/boot/hvmloader"
builder='hvm'
memory = 512
name = "winxp"
vif = [ 'mac=00:16:3e:00:01:13, bridge=bridge0, type=ioemu' ]
device_model = '/usr/pkg/libexec/qemu-dm'
disk = [ 'file:/home/domains/winxp,ioemu:hda,w' ]
boot='c'
usb=1
usbdevice='tablet'
>Fix:
the HVM-DomU previously worked fine using 
- NetBSD 4.0_BETA2 
- Xen 3.0.3

(current NetBSD 4.0 is a fresh install, not an update)

>Release-Note:

>Audit-Trail:
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: port-xen-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
        netbsd-bugs@NetBSD.org
Subject: Re: port-xen/39452: "Internal error" with Xen 3.1.4 and HVM
Date: Tue, 2 Sep 2008 16:33:18 +0200

 On Tue, Sep 02, 2008 at 01:50:00PM +0000, thomas@feddersen-engineering.de wrote:
 > >Number:         39452
 > >Category:       port-xen
 > >Synopsis:       "Internal error" with Xen 3.1.4 and HVM
 > >Confidential:   no
 > >Severity:       critical
 > >Priority:       high
 > >Responsible:    port-xen-maintainer
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Tue Sep 02 13:50:00 +0000 2008
 > >Originator:     Thomas Feddersen
 > >Release:        NetBSD 4.0
 > >Organization:
 > Dipl.-Ing. Thomas Feddersen, Beratender Ingenieur
 > >Environment:
 > NetBSD bremen.feddersen.xx 4.0 NetBSD 4.0 (XEN3_DOM0) #0: Sun Dec 16 01:20:31 PST 2007  builds@wb34:/home/builds/ab/netbsd-4-0-RELEASE/i386/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/i386/compile/XEN3_DOM0 i386
 > >Description:
 > XEN3_DOM0 i386 and XEN3_DOMU i386 run fine, attempting to start WinXP as a HVM-DomU results in an errormessage:
 > 
 > # xm create winxp
 > Using config file "/usr/pkg/etc/xen/winxp".
 > Error: (1, 'Internal error', 'Could not deallocate guard page for HVM guest.\n (25 = Inappropriate ioctl for device)')
 > 

 Xen 3.1.4 doens't work with NetBSD 4.0. You need a kernel and userland from
 a recent netbsd-4 branch, and rebuild xentools3 and xentools3-hvm on
 this system (so that it uses the right /usr/include/xen/* files).

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

Responsible-Changed-From-To: port-xen-maintainer->bouyer
Responsible-Changed-By: bouyer@NetBSD.org
Responsible-Changed-When: Tue, 02 Sep 2008 19:37:33 +0000
Responsible-Changed-Why:
.


State-Changed-From-To: open->feedback
State-Changed-By: bouyer@NetBSD.org
State-Changed-When: Tue, 02 Sep 2008 19:37:33 +0000
State-Changed-Why:
Please confirm that it's fixed with a newer netbsd-4 install.


From: "Thomas Feddersen" <thomas@feddersen-engineering.de>
To: <gnats-bugs@NetBSD.org>
Cc: 
Subject: RE: port-xen/39452: "Internal error" with Xen 3.1.4 and HVM
Date: Tue, 2 Sep 2008 21:24:07 +0200

 Thanks for your quick reply!

 > -----Original Message-----
 > From: Manuel Bouyer [mailto:bouyer@antioche.eu.org]
 > Sent: Tuesday, September 02, 2008 4:35 PM
 > To: port-xen-maintainer@netbsd.org; gnats-admin@netbsd.org;=20
 > netbsd-bugs@netbsd.org; thomas@feddersen-engineering.de
 > Subject: Re: port-xen/39452: "Internal error" with Xen 3.1.4 and HVM
 >=20
 > =20
 >  Xen 3.1.4 doens't work with NetBSD 4.0. You need a kernel
 > and userland from  a recent netbsd-4 branch, and rebuild=20
 > xentools3 and xentools3-hvm on  this system (so that it uses=20
 > the right /usr/include/xen/* files).
 > =20

 Okay, a few questions please:

 I'm operating a production (file) server in a soho environment=20
 and feel comfortable with a stable release version
 1- is a version of Xen3 available, that will work with NetBSD 4.0? If =
 yes,
 from where?

 If no:=20
 2- can I use the "update" funtion of sysinst?
 3- which branch? netbsd-4-0? netbsd-4? HEAD?=20

 I would like to ask for your recommendation on the following config:
 INTEL ,DG965WH chipset (ICH8)
 4GB RAM =20
 6 AHCISATA drives =E0 300GB
 Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
 4- which architecture? i386? amd64?

 Kind Regards
 Thomas Feddersen

  --
 Dipl.-Ing. Thomas Feddersen, Beratender Ingenieur, Lange Reihe 84, 20099
 Hamburg
 tel. +49 40 2801276
 mobil +49 172 4149011=20

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
        thomas@feddersen-engineering.de
Subject: Re: port-xen/39452: "Internal error" with Xen 3.1.4 and HVM
Date: Wed, 3 Sep 2008 11:45:19 +0200

 On Wed, Sep 03, 2008 at 12:00:10AM +0000, Thomas Feddersen wrote:
 > The following reply was made to PR port-xen/39452; it has been noted by GNATS.
 > 
 > From: "Thomas Feddersen" <thomas@feddersen-engineering.de>
 > To: <gnats-bugs@NetBSD.org>
 > Cc: 
 > Subject: RE: port-xen/39452: "Internal error" with Xen 3.1.4 and HVM
 > Date: Tue, 2 Sep 2008 21:24:07 +0200
 > 
 >  Thanks for your quick reply!
 >  
 >  > -----Original Message-----
 >  > From: Manuel Bouyer [mailto:bouyer@antioche.eu.org]
 >  > Sent: Tuesday, September 02, 2008 4:35 PM
 >  > To: port-xen-maintainer@netbsd.org; gnats-admin@netbsd.org;=20
 >  > netbsd-bugs@netbsd.org; thomas@feddersen-engineering.de
 >  > Subject: Re: port-xen/39452: "Internal error" with Xen 3.1.4 and HVM
 >  >=20
 >  > =20
 >  >  Xen 3.1.4 doens't work with NetBSD 4.0. You need a kernel
 >  > and userland from  a recent netbsd-4 branch, and rebuild=20
 >  > xentools3 and xentools3-hvm on  this system (so that it uses=20
 >  > the right /usr/include/xen/* files).
 >  > =20
 >  
 >  Okay, a few questions please:
 >  
 >  I'm operating a production (file) server in a soho environment=20
 >  and feel comfortable with a stable release version
 >  1- is a version of Xen3 available, that will work with NetBSD 4.0? If =
 >  yes,
 >  from where?

 Not that I know, but netbsd-4 will probably be more stable on Xen than
 NetBSD 4.0 is :)

 >  
 >  If no:=20
 >  2- can I use the "update" funtion of sysinst?

 Yes

 >  3- which branch? netbsd-4-0? netbsd-4? HEAD?=20

 netbsd-4

 >  
 >  I would like to ask for your recommendation on the following config:
 >  INTEL ,DG965WH chipset (ICH8)
 >  4GB RAM =20
 >  6 AHCISATA drives =E0 300GB
 >  Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
 >  4- which architecture? i386? amd64?

 If you want Xen/amd64 you need HEAD. If you want to stay on netbsd-4
 you're stuck with i386. It'll work, but you'll be able to use only
 about 3GB RAM out of 4.

 -- 
 Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: David Holland <dholland-bugs@netbsd.org>
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: gnats-bugs@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
	thomas@feddersen-engineering.de
Subject: Re: port-xen/39452: "Internal error" with Xen 3.1.4 and HVM
Date: Wed, 3 Sep 2008 15:46:38 +0000

 On Wed, Sep 03, 2008 at 11:45:19AM +0200, Manuel Bouyer wrote:
  > If you want Xen/amd64 you need HEAD. If you want to stay on netbsd-4
  > you're stuck with i386. It'll work, but you'll be able to use only
  > about 3GB RAM out of 4.

 Although to be fair we should maybe note that right now HEAD is
 loosely comparable to 5.0_BETA.

 -- 
 David A. Holland
 dholland@netbsd.org

From: "Thomas Feddersen" <thomas@feddersen-engineering.de>
To: <gnats-bugs@NetBSD.org>
Cc: 
Subject: RE: port-xen/39452 ("Internal error" with Xen 3.1.4 and HVM)
Date: Wed, 3 Sep 2008 23:54:15 +0200

 Thanks for your fast reply, which solved my problem.
 I'll donate 50,- EUR to the NetBSD Foundation.

 One question remains:
 When I start WinXP from an Xterm, 'xm create' will not open an X window =
 on
 the current display for the virtal framebuffer. How can I get the =
 (console)
 window of WinXP?

 Kind Regards
 Thomas Feddersen,=20


 > -----Original Message-----
 > From: bouyer@NetBSD.org [mailto:bouyer@NetBSD.org]=20
 > Sent: Tuesday, September 02, 2008 9:38 PM
 > To: bouyer@NetBSD.org; port-xen-maintainer@netbsd.org;=20
 > netbsd-bugs@netbsd.org; gnats-admin@netbsd.org;=20
 > bouyer@NetBSD.org; thomas@feddersen-engineering.de
 > Subject: Re: port-xen/39452 ("Internal error" with Xen 3.1.4 and HVM)
 >=20
 > State-Changed-From-To: open->feedback
 > State-Changed-By: bouyer@NetBSD.org
 > State-Changed-When: Tue, 02 Sep 2008 19:37:33 +0000
 > State-Changed-Why:
 > Please confirm that it's fixed with a newer netbsd-4 install.
 >=20

 After an update to netbsd-4 and rebuild of xentools3 and xentools3-hvm =
 on
 this system WinXP runs as a HVM-DomU.=20
 # uname -a
 NetBSD bremen.feddersen.xx 4.0_STABLE NetBSD 4.0_STABLE (XEN3_DOM0) #0: =
 Mon
 Sep  1 12:49:13 PDT 2008
 builds@wb29:/home/builds/ab/netbsd-4/i386/200809010002Z-obj/home/builds/a=
 b/n
 etbsd-4/src/sys/arch/i386/compile/XEN3_DOM0 i386

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
        thomas@feddersen-engineering.de
Subject: Re: port-xen/39452 ("Internal error" with Xen 3.1.4 and HVM)
Date: Thu, 4 Sep 2008 15:43:51 +0200

 On Wed, Sep 03, 2008 at 09:55:02PM +0000, Thomas Feddersen wrote:
 > The following reply was made to PR port-xen/39452; it has been noted by GNATS.
 > 
 > From: "Thomas Feddersen" <thomas@feddersen-engineering.de>
 > To: <gnats-bugs@NetBSD.org>
 > Cc: 
 > Subject: RE: port-xen/39452 ("Internal error" with Xen 3.1.4 and HVM)
 > Date: Wed, 3 Sep 2008 23:54:15 +0200
 > 
 >  Thanks for your fast reply, which solved my problem.
 >  I'll donate 50,- EUR to the NetBSD Foundation.
 >  
 >  One question remains:
 >  When I start WinXP from an Xterm, 'xm create' will not open an X window =
 >  on
 >  the current display for the virtal framebuffer. How can I get the =
 >  (console)
 >  window of WinXP?

 I think you need
 sdl = 1
 in the config file. Or set
 vnc = 1
 and use vncviewer.

 -- 
 Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: "Thomas Feddersen" <thomas@feddersen-engineering.de>
To: <gnats-bugs@NetBSD.org>
Cc: 
Subject: RE: port-xen/39452 ("Internal error" with Xen 3.1.4 and HVM)
Date: Fri, 5 Sep 2008 19:34:31 +0200

 Problem Solved. PR can be closed.
 Thank you. I have donated $69,64 (50,- EUR) to the NetBSD Foundation

 Kind Regards
 Thomas Feddersen



 > -----Original Message-----
 > From: Manuel Bouyer [mailto:bouyer@antioche.eu.org]
 > Sent: Thursday, September 04, 2008 3:45 PM
 > To: bouyer@NetBSD.org; gnats-admin@netbsd.org; 
 > netbsd-bugs@netbsd.org; thomas@feddersen-engineering.de
 > Subject: Re: port-xen/39452 ("Internal error" with Xen 3.1.4 and HVM)
 > 
 >  
 >  I think you need
 >  sdl = 1
 >  in the config file. Or set
 >  vnc = 1
 >  and use vncviewer.
 >  

State-Changed-From-To: feedback->closed
State-Changed-By: bouyer@NetBSD.org
State-Changed-When: Fri, 05 Sep 2008 17:40:21 +0000
State-Changed-Why:
Fixed by an upgrade to netbsd-4.
Thanks for the donation !


>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.