From owner-freebsd-current@FreeBSD.ORG Sat Aug 23 23:16:08 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B721D1065672 for ; Sat, 23 Aug 2008 23:16:08 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.231]) by mx1.freebsd.org (Postfix) with ESMTP id 891CF8FC13 for ; Sat, 23 Aug 2008 23:16:08 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1733731rvf.43 for ; Sat, 23 Aug 2008 16:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=ehj5PyVFzx3mdofnXbGBVqzRhpFB0y0H4QwlQycev9M=; b=dRsY2rlBtnubJTQQR3A3gd9k91DrnoIWM0n5FXuSnSoGvBvS8ahK8zj4PrY9y5QwIi 64Mm/hj9smlDMkVTa1TXZ1JTyRI5oosafdGZsZOKELLlstkMSaHrAyFR9OAXQzuinH76 AAudd0O+rk+Bdv00io4FBp5g6kAxQ4Qz6e5fk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=pEAO8yC1pAkXteUlzqp6PSbvaFozZadCjPK80KDYr01UhrrvnH0XyEWDdvW0rIjS1y jiO2g8yN7isXgA6hGEwkEvsZBELqMtFJBuCxeIt0EeobGNHOCMIwJyxEd2m8njtNnlU2 h+fiUDAzf0nD3eqdCC9fDFSZTLtuiqqHmE2f8= Received: by 10.141.29.21 with SMTP id g21mr1317364rvj.248.1219533367921; Sat, 23 Aug 2008 16:16:07 -0700 (PDT) Received: by 10.141.101.21 with HTTP; Sat, 23 Aug 2008 16:16:07 -0700 (PDT) Message-ID: <3c1674c90808231616y111580adp6674989c13ce7627@mail.gmail.com> Date: Sat, 23 Aug 2008 16:16:07 -0700 From: "Kip Macy" Sender: mat.macy@gmail.com To: "Brad Pitney" In-Reply-To: <3dd203290808230331m7dcc314ve40988eba1b0a42@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3dd203290808221612r338afd77h7397595eb48ce6a7@mail.gmail.com> <3c1674c90808221625gda3be13gf63a71666876cfef@mail.gmail.com> <3dd203290808221808m2cff2e50tef3b3407628dea17@mail.gmail.com> <3c1674c90808221813w3874230dh945a6579819e76fd@mail.gmail.com> <3dd203290808230331m7dcc314ve40988eba1b0a42@mail.gmail.com> X-Google-Sender-Auth: f813ba23d268aa0b Cc: freebsd-current@freebsd.org Subject: Re: [XEN] xs_single device/vbd xs_talkv read_reply panic: bad stray interrupt X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Aug 2008 23:16:08 -0000 I've just committed a change so that hda corresponds to xbd0. Also I've tested xen 3.3 from hg and have booted a kernel off an md. I think the key thing is just to give it the right root. -Kip On Sat, Aug 23, 2008 at 3:31 AM, Brad Pitney wrote: > On Sat, Aug 23, 2008 at 2:13 AM, Kip Macy wrote: >> There is no way for a device to show up as xbd0 at this time. Next >> time you see the mount root prompt type ?. >> >> From my config: >> <...> >> disk = [ 'file:/home/kmacy/xen/mdroot-7.0,hda,w' ] >> <...> >> extra += ",vfs.root.mountfrom=ufs:/dev/xbd768a" >> <...> > > sorry, I sent the mail before finishing: > > once I type ? at the mount root prompt type, I get: > > mountroot> ? > > List of GEOM managed disk devices: > xbd1cs1d xbd1cs1c xbd1cs1a xbd1cs1 xbd1s1d xbd1s1c xbd1s1a xbd1c > xbd1a xbd1s1 xbd3 xbd2 xbd1 > > Manual root filesystem specification: > : Mount using filesystem > eg. ufs:da0s1a > ? List valid disk boot devices > Abort manual input > > mountroot> bad stray interrupt > > sometimes that 'bad stray interrupt' pops up. > > once I type ufs:xbd1s1a I then get: > > mountroot> ufs:xbd1bad stray interrupts1a > Trying to mount root from ufs:xbd1s1a > panic: vm_fault: fault on nofault entry, addr: c0877000 > cpuid = 0 > KDB: enter: panic > [thread pid 12 tid 100024 ] > Stopped at kdb_enter+0x3a: movl $0,kdb_why > db> bt > Tracing pid 12 tid 100024 td 0xc16a8cc0 > kdb_enter(c0340eed,c0340eed,c0360502,cbe448ec,0,...) at kdb_enter+0x3a > panic(c0360502,c0877000,1,cbe44a0c,cbe449fc,...) at panic+0x12c > vm_fault(c0871000,c0877000,1,0,c0877fd0,...) at vm_fault+0x178 > dblfault_handler() at dblfault_handler+0x551 > --- trap 0x17, eip = 0, esp = 0, ebp = 0 --- > db> > > I tried both ufs:xbd1s1a and ufs:xbd1cs1a, I have managed to get > further than this. > > I actually need to redo the file image as it is completely > un-configured in the sense of no fstab, etc. > > to create the image I did: > > # cd /tmp && truncate -s +1G xbd0 > # mdconfig -a -f xbd0 > # fdisk -i /dev/md0 > # disklabel -wB /dev/md0s1 && disklabel -e /dev/md0s1 > # mount /dev/md0s1a /dist > # cd /usr/src && make world distribution DESTDIR=/dist > # umount /dist && mdconfig -d -u 0 > > then transferred to my Xen dom0. > > my config: > ## > name = "bldr-fbsd32" > kernel = "/var/xen/" + name + "/kernel" > disk = [ 'file://var/xen/' + name + '/xbd0,0x01,w', > 'file://var/xen/' + name + '/xbd1,0x02,w', > 'file://var/xen/' + name + '/xbd2,0x03,w' ] > vif = [ 'mac=00:bd:c4:12:00:ef,bridge=bridge0' ] > memory = 256 > on_crash = 'preserve' > #extra = "boot_verbose" > extra = "boot_single" > extra += "vfs.root.mountfrom=ufs:/dev/xbd1s1a" > extra += ",kern.hz=100" > > thanks > > -- > Best regards, > Brad >