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

Re: [Xen-devel] domU crash

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] domU crash
From: Stephan Böni <boeni@xxxxxx>
Date: Sat, 15 Oct 2005 17:03:32 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sat, 15 Oct 2005 15:00:52 +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: AcXRlzBUFP2Yhh1DQ2eXc+nGLNxObAAAViMg
Thread-topic: [Xen-devel] domU crash
> xend is trying to look up the device number for /dev/hda1. Since your 
> system doesn;t have a /dev/hda1, and you are presumably using udev, 
> this lookup fails. If you created that node manually in /dev/ 
> then all 
> should be fine.
> 
> Really the device name should be passed to domU as a string, and 
> resolved to a number there. Or xend can just have a table of simple 
> name lookups for thing like hda, hdb, ...

Hi Keir

Now i've created it:

# cd /dev
# mknod hda b 3 0
# mknod hda1 b 3 1
# chown root.disk hda*
# chmod 664 hda*
# ls -l /dev/hd*
brw-rw-r--  1 root disk 3, 0 2005-10-15 16:52 /dev/hda
brw-rw-r--  1 root disk 3, 1 2005-10-15 16:53 /dev/hda1
#
# /etc/init.d/xend restart
Restarting xend (old pid 6559)                                done
#
# xm create /etc/xen/inhouse
Using config file "/etc/xen/inhouse".
Started domain inhouse
#
# xm list
Name              Id  Mem(MB)  CPU VCPU(s)  State  Time(s)
Domain-0           0      123    0      1   r----     22.8
#
# cat /var/log/xend.log
.....
[2005-10-15 16:55:19 xend] DEBUG (image:156) initDomain: cpu=-1 mem_kb=2097152 
ssidref=-1 dom=2
[2005-10-15 16:55:19 xend] DEBUG (XendDomainInfo:843) init_domain> Created 
domain=2 name=inhouse memory=2048
[2005-10-15 16:55:19 xend] INFO (XendRoot:141) EVENT> xend.domain.create 
['inhouse', 2]
[2005-10-15 16:55:19 xend] INFO (image:217) buildDomain os=linux dom=2 vcpus=1
[2005-10-15 16:55:19 xend] DEBUG (image:255) dom            = 2
[2005-10-15 16:55:19 xend] DEBUG (image:256) image          = /boot/vmlinuz-xen
[2005-10-15 16:55:19 xend] DEBUG (image:257) store_evtchn   = 1
[2005-10-15 16:55:19 xend] DEBUG (image:258) console_evtchn = 2
[2005-10-15 16:55:19 xend] DEBUG (image:259) cmdline        =  
ip=:1.2.3.4:::inhouse:eth0:dhcp root=/dev/hda1 rw 3
[2005-10-15 16:55:19 xend] DEBUG (image:260) ramdisk        = /boot/initrd-xen
[2005-10-15 16:55:19 xend] DEBUG (image:261) flags          = 0
[2005-10-15 16:55:19 xend] DEBUG (image:262) vcpus          = 1
[2005-10-15 16:55:21 xend] INFO (xsobj:326) DBMap>introduceDomain> 2 833158 
<EventChannel dom1:0:18 dom2:2:1> /domain/d3ec0c25-f952-4384-b620-7a53f2bc5bb7
[2005-10-15 16:55:21 xend] DEBUG (XendDomainInfo:698) writing key 
availability=online to path /cpu/0 in store
[2005-10-15 16:55:21 xend] WARNING (XendDomainInfo:1100) Unknown config field 
boot
[2005-10-15 16:55:21 xend] ERROR (XendDomainInfo:443) ['vif', ['mac', 
'aa:00:00:39:63:6e']]
[2005-10-15 16:55:21 xend] INFO (XendRoot:141) EVENT> xend.domain.unpause 
['inhouse', 2]
[2005-10-15 16:55:21 xend] DEBUG (XendDomain:233) XendDomain>reap> domain died 
name=inhouse id=2
[2005-10-15 16:55:21 xend] INFO (XendRoot:141) EVENT> xend.domain.exit 
['inhouse', 2, 'crash']
.....
#
# cat /etc/xen/inhouse | grep -v ^#
kernel = "/boot/vmlinuz-xen"
ramdisk = "/boot/initrd-xen"
memory = 2048
name = "inhouse"
disk = [ 'phy:xenvg/inhouse-root,hda1,w' ]
dhcp="dhcp"
hostname = "inhouse"
root = "/dev/hda1 rw"
extra = "3"
#

It does still not work. :-(

Stephan

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

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