WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: Unable to create guest domain AND mm.c/grant_table.c

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: Unable to create guest domain AND mm.c/grant_table.c
From: "Bonnell, David" <David_Bonnell@xxxxxxx>
Date: Wed, 21 Sep 2005 10:22:25 -0500
Delivery-date: Wed, 21 Sep 2005 15:20:18 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcW+uF5Yr73xN4exQQOGUXhTkAH7+wABwY1A
Thread-topic: Unable to create guest domain AND mm.c/grant_table.c
Yeah, I saw an error along the lines of "unable to find major/minor
number for /dev/sda1" earlier today and when I discovered there was no
/dev/sda1 in dom0 I was optimistic that was the problem but alas it was
not.  (I used  MAKEDEV to create all the sda? devices in the root fs' of
both dom0 and the guest domain).


-Dave

-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
xen-devel-request@xxxxxxxxxxxxxxxxxxx
Sent: Wednesday, 21 September 2005 3:34 PM
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Xen-devel Digest, Vol 7, Issue 142

Send Xen-devel mailing list submissions to
        xen-devel@xxxxxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel
or, via email, send a message with subject or body 'help' to
        xen-devel-request@xxxxxxxxxxxxxxxxxxx

You can reach the person managing the list at
        xen-devel-owner@xxxxxxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Xen-devel digest..."


Today's Topics:

   1. Need help getting http interface with Xen 3 working (Jerry Gulla)
   2. Re: Need help getting http interface with Xen 3 working
      (Tom Wilkie)
   3. Re: Unable to create guest domain AND mm.c/grant_table.c
      errors (Chris Bainbridge)
   4. Re: moderated list? (James Bulpin)
   5. Re: Unable to create guest domain AND mm.c/grant_table.c
      errors (Chris Bainbridge)
   6. Re: kernel oops with virtual block device driver
      (Chris Bainbridge)


----------------------------------------------------------------------

Message: 1
Date: Wed, 21 Sep 2005 09:44:01 -0400
From: Jerry Gulla <jgulla@xxxxxxxxx>
Subject: [Xen-devel] Need help getting http interface with Xen 3
        working
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Message-ID: <ca21afba05092106442f6fc3f0@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

I'm trying to get the http interface working w/ Xen 3.0 and am running
into some problems. I know that in 3.0, twisted is no longer being
used for the http front end (using Apache w/ mod_python instead). 
I've read Tom Wilkie's post
(http://lists.xensource.com/archives/html/xen-devel/2005-09/msg00081.htm
l)
on how he's modified things to work under Apache, and it's got me a
bit further, but now I'm stuck. Here's what I've done do far:

I've installed Fedora Core 4, and set up Xen according to the
FedoraXenQuickStart guide (which tracks xen-unstable) at
http://www.fedoraproject.org/wiki/FedoraXenQuickstart . My dom0 kernel
boots nicely, and I can issue commands with the "xm" command.

I have mod_python installed and working for Apache 2 (I've tested it
with a simple program).

I've symlinked /var/www/html to /usr/lib/python2.4/site-packages/xen/sv

I think I have to modify my Apache config to include the something
like the following:

<Directory /var/www/html>
        AddHandler mod_python .py
        PythonHandler ?????
        PythonDebug On
</Directory>

My (obvious) question is how to I properly wire up Apache/mod_python
to the correct file so I can query/change my Xen configuration via
http?

Any help appreciated. Thanks!

Jerry



------------------------------

Message: 2
Date: Wed, 21 Sep 2005 14:58:43 +0100
From: Tom Wilkie <tw275@xxxxxxxxx>
Subject: Re: [Xen-devel] Need help getting http interface with Xen 3
        working
To: Jerry Gulla <jgulla@xxxxxxxxx>
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Message-ID: <43316713.6030608@xxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi there

Jerry Gulla wrote:
> I'm trying to get the http interface working w/ Xen 3.0 and am running
> into some problems. I know that in 3.0, twisted is no longer being
> used for the http front end (using Apache w/ mod_python instead). 
> I've read Tom Wilkie's post
>
(http://lists.xensource.com/archives/html/xen-devel/2005-09/msg00081.htm
l)
> on how he's modified things to work under Apache, and it's got me a
> bit further, but now I'm stuck. Here's what I've done do far:
> 
> I've installed Fedora Core 4, and set up Xen according to the
> FedoraXenQuickStart guide (which tracks xen-unstable) at
> http://www.fedoraproject.org/wiki/FedoraXenQuickstart . My dom0 kernel
> boots nicely, and I can issue commands with the "xm" command.
> 
> I have mod_python installed and working for Apache 2 (I've tested it
> with a simple program).
> 
> I've symlinked /var/www/html to
/usr/lib/python2.4/site-packages/xen/sv
> 
> I think I have to modify my Apache config to include the something
> like the following:
> 
> <Directory /var/www/html>
>         AddHandler mod_python .py
>         PythonHandler ?????
>         PythonDebug On
> </Directory>
> 
> My (obvious) question is how to I properly wire up Apache/mod_python
> to the correct file so I can query/change my Xen configuration via
> http?

So the correct setup for me (on centos 4) is to edit the 
/etc/http/conf.d/python file and put the following lines in the top of 
the file:

AddHandler mod_python .psp
PythonHandler mod_python.psp
PythonDebug On

See the page:

http://www.modpython.org/live/current/doc-html/hand-psp.html#hand-psp

Then for me it just works.  I haven't looked at SV for what must be a 
month now, some there is prolly some code rot in there.  If I get a 
chance I'll give it a quick check.  Also its not that functional atm ;-)

Cheers

Tom


> Any help appreciated. Thanks!
> 
> Jerry
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel




------------------------------

Message: 3
Date: Wed, 21 Sep 2005 15:10:57 +0100
From: Chris Bainbridge <chris.bainbridge@xxxxxxxxx>
Subject: Re: [Xen-devel] Unable to create guest domain AND
        mm.c/grant_table.c      errors
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Message-ID: <623652d505092107102af9e745@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=WINDOWS-1252

Hi,

I'm been struggling with this for a couple of days.. I'd assumed that
there was just something wrong with my setup rather than a bug. I've
seen the same PTE error. In trying to eliminate possible problems I've
started using the nightly binary xen builds. So I'm using the binary
precompiled hypervisor, dom0 and domU kernels.

The really weird thing is that I have another machine with the same
Xen build, same xen and kernel image binaries, and it works. I pulled
the hard disk and put it in the bad machine, and it worked. So it
appears there's something wrong with that particular domain 0 root fs
that is causing it to fail, rather than anything wrong with the Xen
binaries or hardware.

I've tried rm -rf /var/lib/xenstored but no luck - does Xen store
state anywhere else? Is there anything else in the domain 0 root fs
that could be causing this error? In fact I did find something, that
if we try to create a device (eg. /dev/hda1) in domU then it has to
exist in dom0, otherwise xend can't find a major/minor number. That
can be tricky with udev if you don't have a tarball of standard
devices, maybe it can be fixed?

The only other thing I could think of was that I built this root fs
with '-mno-tls-direct-seg-refs' in CFLAGS, and glibc with nptlonly (it
has no linuxthreads). AFAIK, this set up should work fine with Xen.
Can anyone confirm that?

domU:

Event-channel device installed.
xen_blk: Initialising virtual block device driver
xenbus: failed to write error node for device/vbd/2049 (22 writing
ring-ref)
vbd: probe of vbd-2049 failed with error -22
xen_blk: Timeout connecting to device!
xen_net: Initialising virtual ethernet driver.
xenbus: failed to write error node for device/vif/1 (22 writing tx
ring-ref)
vif: probe of vif-1 failed with error -22
xen_net: Timeout connecting to device!

xen console:
smp_send_stop disable_local_APIC
<Sometimes the PTE error appears after this smp msg>
(XEN) DOM0: (file=mm.c, line=2458) Could not find PTE entry for address
d0d4c000
(XEN) DOM0: (file=mm.c, line=2458) Could not find PTE entry for address
d0d4d000
(XEN) (file=grant_table.c, line=1054) Grant unref rd(1) ld(0) frm(eef9)
flgs(0).
(XEN) (file=grant_table.c, line=1054) Grant unref rd(1) ld(0) frm(eef8)
flgs(0).

xend-debug.log:
ERROR: do_evtchn_op: HYPERVISOR_event_channel_op failed: -1
ERROR: do_evtchn_op: HYPERVISOR_event_channel_op failed: -1

# xend.log
2005-09-21 11:36:44 xend] DEBUG (image:164) initDomain: cpu=-1
mem_kb=98304 ssidref=0 dom=1
[2005-09-21 11:36:44 xend] DEBUG (XendDomainInfo:702) init_domain>
Created domain=1 name=ubuntu memory=96
[2005-09-21 11:36:44 xend] INFO (image:202) buildDomain os=linux dom=1
vcpus=1
[2005-09-21 11:36:44 xend] DEBUG (image:246) dom            = 1
[2005-09-21 11:36:44 xend] DEBUG (image:247) image          =
/boot/vmlinuz-2.6-xenU
[2005-09-21 11:36:44 xend] DEBUG (image:248) store_evtchn   = 1
[2005-09-21 11:36:44 xend] DEBUG (image:249) console_evtchn = 2
[2005-09-21 11:36:44 xend] DEBUG (image:250) cmdline        =
root=/dev/sda1
[2005-09-21 11:36:44 xend] DEBUG (image:251) ramdisk        =
[2005-09-21 11:36:44 xend] DEBUG (image:252) flags          = 0
[2005-09-21 11:36:44 xend] DEBUG (image:253) vcpus          = 1
[2005-09-21 11:36:44 xend] DEBUG (DevController:181) DevController:
writing {'virtual-device': '2049', 'backend-id': '0', 'backend':
'/domain/0e9d1b5f-ae27-40c0-8f78-b1c1039815dc/backend/vbd/64dd317d-dbcf-
4e\
9e-be5a-b392e83da1fa/2049'} to
/domain/64dd317d-dbcf-4e9e-be5a-b392e83da1fa/device/vbd/2049.
[2005-09-21 11:36:44 xend] DEBUG (DevController:183) DevController:
writing {'params': '/var/tmp/ubuntu.img', 'domain': 'ubuntu', 'type':
'file', 'frontend': '/domain/64dd317d-dbcf-4e9e-be5a-b392e83da1fa/dev\
ice/vbd/2049', 'frontend-id': '1'} to
/domain/0e9d1b5f-ae27-40c0-8f78-b1c1039815dc/backend/vbd/64dd317d-dbcf-4
e9e-be5a-b392e83da1fa/2049.
[2005-09-21 11:36:44 xend] DEBUG (DevController:181) DevController:
writing {'backend-id': '0', 'mac': 'aa:00:00:00:00:11', 'handle': '1',
'backend': '/domain/0e9d1b5f-ae27-40c0-8f78-b1c1039815dc/backend/vif\
/64dd317d-dbcf-4e9e-be5a-b392e83da1fa/1'} to
/domain/64dd317d-dbcf-4e9e-be5a-b392e83da1fa/device/vif/1.
[2005-09-21 11:36:44 xend] DEBUG (DevController:183) DevController:
writing {'bridge': 'xen-br0', 'mac': 'aa:00:00:00:00:11', 'handle':
'1', 'script': '/etc/xen/scripts/vif-bridge', 'frontend-id': '1',
'doma\
in': 'ubuntu', 'frontend':
'/domain/64dd317d-dbcf-4e9e-be5a-b392e83da1fa/device/vif/1'} to
/domain/0e9d1b5f-ae27-40c0-8f78-b1c1039815dc/backend/vif/64dd317d-dbcf-4
e9e-be5a-b392e83da1fa/1.
[2005-09-21 11:36:44 xend] INFO (XendRoot:141) EVENT>
xend.domain.create ['ubuntu', 1]
[2005-09-21 11:36:44 xend] INFO (XendRoot:141) EVENT>
xend.domain.unpause ['ubuntu', 1]
[2005-09-21 11:37:05 xend] DEBUG (XendDomain:232) domain died
name=ubuntu domid=1
[2005-09-21 11:37:05 xend] INFO (XendRoot:141) EVENT> xend.domain.died
['ubuntu', None]

And I once saw this bug, could be related:

xen_blk: Initialising virtual block device driver
xen_blk: Timeout connecting to device!
xen_net: Initialising virtual ethernet driver.
XENBUS ack device/vif/1/tx-ring-ref fail -5
kernel BUG at drivers/xen/xenbus/xenbus_xs.c:151 (xs_talkv)!
 [<c0244c3d>] xs_talkv+0x15d/0x170
 [<c0245880>] watch_thread+0x0/0x180
 [<c0244c95>] xs_single+0x45/0x50
 [<c0244e43>] xenbus_directory+0x33/0x120
 [<c0245880>] watch_thread+0x0/0x180
 [<c0244f4f>] xenbus_exists+0x1f/0x40
 [<c0246711>] dev_changed+0x51/0x140
 [<c0245880>] watch_thread+0x0/0x180
 [<c0244c95>] xs_single+0x45/0x50
 [<c0245880>] watch_thread+0x0/0x180
 [<c024565e>] find_watch+0x1e/0x60
 [<c0245988>] watch_thread+0x108/0x180
 [<c0136110>] autoremove_wake_function+0x0/0x60
 [<c0136110>] autoremove_wake_function+0x0/0x60
 [<c0135c1a>] kthread+0xba/0xc0
 [<c0135b60>] kthread+0x0/0xc0
 [<c0107395>] kernel_thread_helper+0x5/0x10
Kernel panic - not syncing: BUG!


Chris


On 21/09/05, Bonnell, David <David_Bonnell@xxxxxxx> wrote:
>  
>  
> 
> Since a few changesets back (currently using 6963) I am unable to
create a
> guest domain.  It appears the front-end VBD cannot connect to the
backend
> and as such the guest cannot mount its root filesystem and panics. 
> 
>   
> 
> The xen console log and xend logs are attached.  Below is the bottom
part of
> the guest's console output 
> 
>   
> 
> ... 
> 
> Event-channel device ubstakked, 
> 
> xen_blk: Initialising virtual block device driver 
> 
> *** A FEW SECONDS DELAY *** 
> 
> xen_blk: Timeout connecting to device! 
> 
> xen_net: Initialising virtual Ethernet driver. 
> 
> NET: Registered protocol family 2 
> 
> ... 
> 
> Root-NFS: No NFS server available, giving up. 
> 
> VFS: Unable to mount root fs via NFS, trying floppy. 
> 
> VFS: Cannot open root device "sda1" or unknown-block(2,0) 
> 
> Please append a correct "root=" boot option 
> 
> Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(2,0) 
> 
>   
> 
> The "Unable to read memory/target" console message at the end of the
Xen
> console log is new for this changeset.  Also, every now and then a
failed
> attempt to create a guest domain ends with the following sequence of
errors
> on the Xen console and after such a failure the guest domain is not
> automatically destroyed as it is normally and needs a manual "xm
destroy
> ???" command to remove it. 
> 
>   
> 
> (XEN) DOM0: (file=mm.c, line=2458) Could not find PTE entry for
address
> c8cec000 
> 
> (XEN) DOM0: (file=mm.c, line=2458) Could not find PTE entry for
address
> c8ced000 
> 
> (XEN) (file=grant_table.c, line=1054) Grant unref rd(7) ld(0)
frm(1ff51)
> flgs(0). 
> 
> (XEN) (file=grant_table.c, line=1054) Grant unref rd(7) ld(0)
frm(1ff50)
> flgs(0). 
> 
>   
> 
>   
> 
> -Dave 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
> 
> 
> 
>

------------------------------

Message: 4
Date: Wed, 21 Sep 2005 15:12:22 +0100
From: James Bulpin <james@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] moderated list?
To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Message-ID: <43316A46.4080407@xxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Could someone at IBM who works with Robb please alert him to this:

Your message

   To:      Robb Romans
   Cc:      xen-devel
   Subject: Re: [Xen-devel] moderated list?
   Sent:    Wed, 21 Sep 2005 06:25:55 -0700

did not reach the following recipient(s):

3r@xxxxxxxxxx on Wed, 21 Sep 2005 06:25:55 -0700
     The e-mail account does not exist at the organization this message
was sent to.  Check the e-mail address, or contact the recipient
directly to find out the correct address.
     <d03nh003.boulder.ibm.com #5.1.1 X-Notes; User 3r (3r@xxxxxxxxxx)
not listed in Domino  Directory >

Reporting-MTA: dns; xenexchange.xensource.com

Final-Recipient: RFC822; 3r@xxxxxxxxxx
Action: failed
Status: 5.1.1
X-Supplementary-Info: <d03nh003.boulder.ibm.com #5.1.1 X-Notes; User 3r 
(3r@xxxxxxxxxx) not listed in Domino  Directory >
X-Display-Name: 3r@xxxxxxxxxx


James Bulpin wrote:
> Robb Romans wrote:
> 
>> It seems to be taking an inordinately long time for my messages to 
>> appear on this list. Also, only half of the emails I sent this
morning 
>> have appeared. FYI, there should be EIGHT mails with patches marked 
>> [RESEND]. There are two sets of four...
> 
> 
> I can see 8 [RESEND] posts are there any missing?
> 
> [Xen-devel] [RESEND] Documentation Patches - 1/4, Robb Romans, 16:26
> [Xen-devel] [RESEND 4/4] (doc) Separate "info" file for interface.tex,

> Robb Romans, 16:25
> [Xen-devel] [RESEND 3/4] (doc) Separate "devices" file for 
> interface.tex, Robb Romans, 16:25
> [Xen-devel] [RESEND 2/4] (doc) Separate "memory" file for
interface.tex, 
> Robb Romans, 16:24
> [Xen-devel] [RESEND 1/4] (doc) Separate architecture file for 
> interface.tex, Robb Romans, 16:24
> [Xen-devel] [RESEND] Documentation Patches - 3/4, Robb Romans, 16:23
> [Xen-devel] [RESEND] Documentation Patches - 4/4, Robb Romans, 16:23
> [Xen-devel] [RESEND] Documentation Patches - 2/4, Robb Romans, 16:21
> 
> They look to have come through with no delay:
> 
> from ppsw-9.csi.cam.ac.uk ([131.111.8.139])    by mta2.cl.cam.ac.uk
with 
> esmtp (Exim 3.092 #1)    id 1EHOQv-0002Ln-00    for 
> xen+James.Bulpin@xxxxxxxxxxxx; Mon, 19 Sep 2005 17:23:57 +0100
> 
> by skyhawk.austin.ibm.com (Postfix, from userid 1000)    id AADB1B909;

> Mon, 19 Sep 2005 11:22:41 -0500
> 
>> Is this a moderated list?
> 
> 
> If you post with the same address that you subscribe with then the 
> message should go straight to the list. Only messages from unknown 
> addresses are moderated, we normally check for messages awaiting 
> moderation once a day. This is why your posts on 14 September were 
> delayed. e.g.:
> 
> Sep 14 19:08:19 2005 (22598) Xen-devel post from 3r@xxxxxxxxxx held, 
> message-id= <200509141408.40988.3r@xxxxxxxxxx>: Post by non-member to
a 
> members-only list
> 
> Sep 15 01:54:09 2005 (27709) held message approved, message-id: 
> <200509141408.40988.3r@xxxxxxxxxx>
> 
> Regards,
> James
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



------------------------------

Message: 5
Date: Wed, 21 Sep 2005 15:18:59 +0100
From: Chris Bainbridge <chris.bainbridge@xxxxxxxxx>
Subject: Re: [Xen-devel] Unable to create guest domain AND
        mm.c/grant_table.c      errors
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Message-ID: <623652d5050921071815bfabf5@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

hmm, dmesg also says:

store_evtchn = 14
Unable to read memory/target



------------------------------

Message: 6
Date: Wed, 21 Sep 2005 15:25:16 +0100
From: Chris Bainbridge <chris.bainbridge@xxxxxxxxx>
Subject: [Xen-devel] Re: kernel oops with virtual block device driver
To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Message-ID: <623652d5050921072560ed0fa0@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

On 19/09/05, Chris Bainbridge <chris.bainbridge@xxxxxxxxx> wrote:
> [2005-09-19 17:15:14 xend] DEBUG (image:250) cmdline        =
> ip=192.168.1.2:1.2.3.4::::eth0:off root=/dev/hda1 ro
> [2005-09-19 17:15:14 xend] DEBUG (image:251) ramdisk        =
> [2005-09-19 17:15:14 xend] DEBUG (image:252) flags          = 0
> [2005-09-19 17:15:14 xend] DEBUG (image:253) vcpus          = 1
> [2005-09-19 17:15:15 xend] DEBUG (blkif:24) exception looking up
> device number for hda1: [Errno 2] No such file or directory:
> '/dev/hda1'

^^^^^^ /dev/hda1 didn't exist in domain 0, I think that was causing
the oops here.



------------------------------

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


End of Xen-devel Digest, Vol 7, Issue 142
*****************************************


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>