Mailing List Archive

Unable to create a new domain
Hi,

I have a same question posted by punamia , when I am trying to create
domain using xen-2.0 built on Fedora 2/ Pentium PC with IDE drive:

"Kernel panic: No init found. Try passing init= option

to kernel".

Below is console dump. Any suggestions ?


Thanks

Console Dump:

Linux version 2.6.8.1-xenU (root@localhost.localdomain) (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/sda1 ro 3

Initializing CPU#0

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

Xen reported: 1794.963 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

[XEN:vbd_update:drivers/xen/blkfront/blkfront.c:130] >

[XEN:vbd_update:drivers/xen/blkfront/blkfront.c:131] <

kjournald starting. Commit interval 5 seconds

EXT3-fs: mounted filesystem with ordered data mode.

VFS: Mounted root (ext3 filesystem) readonly.

Freeing unused kernel memory: 92k freed

Warning: unable to open an initial console.

Kernel panic: No init found. Try passing init= option to kernel.

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

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


-------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: Unable to create a new domain [ In reply to ]
>
> EXT3-fs: mounted filesystem with ordered data mode.
>
> VFS: Mounted root (ext3 filesystem) readonly.
>
> Freeing unused kernel memory: 92k freed
>
> Warning: unable to open an initial console.
>
> Kernel panic: No init found. Try passing init= option to kernel.

it looks to me like this root file system is empty. There's no
/dev/console and no /sbin/init.

Did you remember to populate it?

Ian


-------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: Unable to create a new domain [ In reply to ]
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@localhost.localdomain) (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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: Unable to create a new domain [ In reply to ]
I think your disks are set up wrong.

Instead of this:
disk = [ 'phy:/dev/hda1,sda1,r']
disk = [ 'phy:/dev/loop1,sda2,w' ]
disk = [ 'phy:/dev/loop2,sda3,w' ]
Try this:
disk = [ 'phy:/dev/hda1,sda1,r', 'phy:/dev/loop1,sda2,w',
'phy:/dev/loop2,sda3,w' ]
Hope that helps.




>>>yi yang <yangyiyy@gmail.com> 10/27/04 2:19 pm >>>
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@localhost.localdomain) (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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: Unable to create a new domain [ In reply to ]
Hi,

I had the same problem last week and it was due to the fact that the
Xen0 kernel didn't by default came with a driver for my hard disc.
The following suggestion by Mark Williamson solved the problem for me.

"If you have an existing .config for vanilla Linux that works, you should
copy it to xenroot/install/boot/config-2.6.8.1-xen0 then do make world.
This will reuse your existing config options where possible, although it
might need to confirm a few new options with you - just choose the
defaults."

nayden

On Wed, 27 Oct 2004 16:19:24 -0400, yi yang <yangyiyy@gmail.com> wrote:
> 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@localhost.localdomain) (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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
>


-------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel
Re: Unable to create a new domain [ In reply to ]
Thanks Charles, your suggestion is really helpful. Now I can pass that
part . But then I have a respawnin problem when I star #xm console
domain no :

Linux version 2.6.8.1-xenU (root@localhost.localdomain) (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 4

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

[XEN:vbd_update:drivers/xen/blkfront/blkfront.c:130] >

[XEN:vbd_update:drivers/xen/blkfront/blkfront.c:131] <

EXT3-fs: INFO: recovery required on readonly filesystem.

EXT3-fs: write access will be enabled during recovery.

kjournald starting. Commit interval 5 seconds

EXT3-fs: recovery complete.

EXT3-fs: mounted filesystem with ordered data mode.

VFS: Mounted root (ext3 filesystem) readonly.

Freeing unused kernel memory: 92k freed


INIT: version 2.85 booting


/etc/rc.d/rc.sysinit: line 57: /dev/tty6:2345:respawn:/sbin/mingetty:
No such file or directory

/etc/rc.d/rc.sysinit: line 57: /dev/ttyttyS0: Read-only file system

/etc/rc.d/rc.sysinit: line 60: [.: ttyS0: integer expression expected

Welcome to Fedora Core

Press 'I' to enter interactive startup.

Configuring kernel parameters: [ OK ]


hwclock is unable to get I/O port access: the iopl(3) call failed.

Setting clock (localtime): Wed Oct 27 20:49:59 EDT 2004 [ OK ]


Setting hostname localhost.localdomain: [ OK ]


Your system appears to have shut down uncleanly


Press Y within 5 seconds to force file system integrity check...
Press Y within 4 seconds to force file system integrity check...
Press Y within 3 seconds to force file system integrity check...
Press Y within 2 seconds to force file system integrity check...
Press Y within 1 seconds to force file system integrity check...

Checking root filesystem

[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/sda2

/dev/sda2 has been mounted 39 times without being checked, check forced.

/dev/sda2: 70361/262144 files (0.1% non-contiguous), 210183/524288 blocks

[ OK ]


Remounting root filesystem in read-write mode: [ OK ]


Activating swap partitions: [ OK ]


Checking filesystems

Checking all file systems.

[/sbin/fsck.ext3 (1) -- /boot] fsck.ext3 -a /dev/sda1

/dev/sda1: recovering journal

/dev/sda1: clean, 42/65536 files, 29560/262144 blocks

[ OK ]


Mounting local filesystems: [ OK ]


Enabling local filesystem quotas: [ OK ]


Enabling swap space: [ OK ]


INIT: Entering runlevel: 4


Entering non-interactive startup

Setting network parameters: [ OK ]


Bringing up loopback interface: [ OK ]


Starting system logger: [ OK ]


Starting kernel logger: [ OK ]


/etc/rc4.d/S13irqbalance: line 1: id: command not found

/etc/rc4.d/S13irqbalance: line 18: [: =: unary operator expected

Starting portmapper: [ OK ]


Starting NFS statd: [ OK ]


Initializing random number generator: [ OK ]


Starting pcmcia: [ OK ]


Mounting other filesystems: [ OK ]


Starting sshd:execvp: No such file or directory

[FAILED]


/etc/rc4.d/S56xinetd: line 1: id: command not found

/etc/rc4.d/S56xinetd: line 31: [.: =: unary operator expected


INIT: Id "6" respawning too fast: disabled for 5 minutes



INIT: no more processes left in this runlevel


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

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


On Wed, 27 Oct 2004 14:45:14 -0600, Charles Coffing <ccoffing@novell.com> wrote:
>
> I think your disks are set up wrong.
>
> Instead of this:
> disk = [ 'phy:/dev/hda1,sda1,r']
> disk = [ 'phy:/dev/loop1,sda2,w' ]
> disk = [ 'phy:/dev/loop2,sda3,w' ]
>
> Try this:
> disk = [ 'phy:/dev/hda1,sda1,r', 'phy:/dev/loop1,sda2,w',
> 'phy:/dev/loop2,sda3,w' ]
>
> Hope that helps.
>
>
>
>
> >>>yi yang <yangyiyy@gmail.com> 10/27/04 2:19 pm >>>
>
>
> 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@localhost.localdomain) (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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
>


-------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xen-devel