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

Re: [Xen-devel] Unable to create a new domain

To: Ian Pratt <ian.pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Unable to create a new domain
From: yi yang <yangyiyy@xxxxxxxxx>
Date: Wed, 27 Oct 2004 16:19:24 -0400
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx, maheswar@xxxxxxxxxxxx
Delivery-date: Wed, 27 Oct 2004 21:23:25 +0100
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=RzZkMnSr7QTBqURpd8KCMydSFCvWq6ekxfNCURvqCVJ/WmNqDNIYBbs8BZMnIWkPobR10GzrgHXoc/RQonDiAsQXTkLP9K80OWTSgdeRTZFGoB3SuZXhyyucMc/yd54yeZHFdZoTHbHTiXq2wqjZHkZpXWkrP8yDJ/G4lgMvy8s=
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <E1CMiwL-0002gY-00@xxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <df1e612204102621022502d45c@xxxxxxxxxxxxxx> <E1CMiwL-0002gY-00@xxxxxxxxxxxxxxxxx>
Reply-to: yi yang <yangyiyy@xxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Hi, 

Thanks for hellp. I think that's the problem of my setup file. So I
changed my setup file, andthe system give me a new problem:


Here is what the console dumps:

Linux version 2.6.8.1-xenU (root@xxxxxxxxxxxxxxxxxxxxx) (gcc version
3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 Fri Oct 1 12:26:31 EDT 2004

BIOS-provided physical RAM map:

 Xen: 0000000000000000 - 0000000004000000 (usable)

64MB LOWMEM available.

DMI not present.

Built 1 zonelists

Kernel command line:  ip=off:1.2.3.4::::eth0:off root=/dev/sda2 ro 3

Initializing CPU#0

PID hash table entries: 512 (order 9: 4096 bytes)

Xen reported: 1794.905 MHz processor.

Using tsc for high-res timesource

Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

Memory: 62504k/65536k available (1508k kernel code, 2944k reserved,
427k data, 92k init, 0k highmem)

Checking if this processor honours the WP bit even in supervisor mode... Ok.

Calibrating delay loop... 3827.30 BogoMIPS

Mount-cache hash table entries: 512 (order: 0, 4096 bytes)

CPU: CLK_CTL MSR was 0. Reprogramming to 20000000

CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)

CPU: L2 Cache: 256K (64 bytes/line)

CPU: AMD Athlon(tm) XP 2200+ stepping 01

Enabling unmasked SIMD FPU exception support... done.

Checking 'hlt' instruction... disabled

NET: Registered protocol family 16

Initializing Cryptographic API

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

Xen virtual console successfully installed as tty

Event-channel device installed.

[XEN] Initialising virtual block device driver

Using anticipatory io scheduler

[XEN] Initialising virtual ethernet driver.

[XEN] Netfront recovered tx=0 rxfree=0

NET: Registered protocol family 2

IP: routing cache hash table of 512 buckets, 4Kbytes

TCP: Hash tables configured (established 4096 bind 8192)

NET: Registered protocol family 1

NET: Registered protocol family 17

IP-Config: Unable to guess netmask for address 238.0.0.0

Looking up port of RPC 100003/2 on 1.2.3.4

RPC: sendmsg returned error 101

portmap: RPC call returned error 101

Root-NFS: Unable to get nfsd port number from server, using default

Looking up port of RPC 100005/1 on 1.2.3.4

RPC: sendmsg returned error 101

portmap: RPC call returned error 101

Root-NFS: Unable to get mountd port number from server, using default

RPC: sendmsg returned error 101

mount: RPC call returned error 101

Root-NFS: Server returned error -101 while mounting /tftpboot/238.0.0.0

VFS: Unable to mount root fs via NFS, trying floppy.

VFS: Cannot open root device "sda2" or unknown-block(2,0)

Please append a correct "root=" boot option

Kernel panic: VFS: Unable to mount root fs on unknown-block(2,0)

 ************ REMOTE CONSOLE: CTRL-] TO QUIT ********

************ REMOTE CONSOLE EXITED *****************



My xmdefconfig file and fstab file on /mnt/etc:

hda1 is my boot partition.  Before I ran the #xm create command , I
had losetup /dev/loop1 /dev/loop2 to some disk partitions.

Here is my fstab file after mount loop1 and loop2:

/dev/sda2  /        ext3    defaults        1 1
/dev/sda1  /boot    ext3    defaults        1 2
none /dev/pts   devpts  gid=5,mode=620  0 0
none /dev/shm   tmpfs   defaults        0 0
none  /proc      proc    defaults        0 0
none /sys       sysfs   defaults        0 0
/dev/sda3   swap   swap   defaults  0  0

  

#  -*- mode: python; -*-
#============================================================================
# Python configuration setup for 'xm create'.
# This script sets the parameters used when a domain is created using
'xm create'.
# You use a separate script for each domain you want to create, or 
# you can set the parameters for the domain on the xm command line.
#============================================================================

#----------------------------------------------------------------------------
# Kernel image file.
kernel = "/boot/vmlinuz-2.6.8.1-xenU"

# Optional ramdisk.
#ramdisk = "/boot/initrd.gz"

# The domain build function. Default is 'linux'.
builder='linux'
#builder='netbsd'

# Initial memory allocation (in megabytes) for the new domain.
memory = 64

# A name for your domain. All domains must have different names.
name = "ExampleDomain"

# Which CPU to start domain on? 
cpu = -1   # leave to Xen to pick

#----------------------------------------------------------------------------
# Define network interfaces.

# Number of network interfaces. Default is 1.
#nics=1
# Optionally define mac and/or bridge for the network interfaces.
# Random MACs are assigned if not given.
#vif = [ 'mac=aa:00:00:00:00:11, bridge=xen-br0' ]

#----------------------------------------------------------------------------
# Define the disk devices you want the domain to have access to, and
# what you want them accessible as.
# Each disk entry is of the form phy:UNAME,DEV,MODE
# where UNAME is the device, DEV is the device name the domain will see,
# and MODE is r for read-only, w for read-write.

disk = [ 'phy:/dev/hda1,sda1,r']
disk = [ 'phy:/dev/loop1,sda2,w' ]
disk = [ 'phy:/dev/loop2,sda3,w' ]


#----------------------------------------------------------------------------
# Set the kernel command line for the new domain.
# You only need to define the IP parameters and hostname if the domain's
# IP config doesn't, e.g. in ifcfg-eth0 or via DHCP.
# You can use 'extra' to set the runlevel and custom environment
# variables used by custom rc scripts (e.g. VMID=, usr= ).

# Set if you want dhcp to allocate the IP address.
#dhcp="dhcp"
# Set netmask.
#netmask=
# Set default gateway.
#gateway=
# Set the hostname.
#hostname= "vm%d" % vmid

# Set root device.
root="/dev/sda2 ro"

ip="off"
# Root device for nfs.
#root = "/dev/nfs"
# The nfs server.
#nfs_server = '169.254.1.0'  
# Root directory on the nfs server.
#nfs_root   = '/full/path/to/root/directory'

# Sets runlevel 4.
extra="3"

#----------------------------------------------------------------------------
# Set according to whether you want the domain restarted when it exits.
# The default is 'onreboot', which restarts the domain when it shuts down
# with exit code reboot.
# Other values are 'always', and 'never'.

#restart = 'onreboot'

#==================================================================

Thanks a lot!

Yi


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel