Skip to contentSkip to conversation

Kernel panic - not syncing: Attempted to kill init!

DISCUSSION David F Barrera 3 participants 14 messages Dec 15, 2004 – Dec 21, 2004

lore
Share & tools
lore
#0 lore raw

I am trying to create an additional domain and have created a configuration file based on the examples. When I try to boot the domain, it eventually hits a Kernel panic, as follows:

Red Hat nash version 4.1.18 starting
Mounted /proc filesystem
Mounting sysfs
Creating /dev
Starting udev
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
mount: error 2 mounting none
Switching to new root
switchroot: mount failed: 22
umount /initrd/dev failed: 2

Kernel panic - not syncing: Attempted to kill init!

<0>Rebooting in 1 seconds..
-----------------------------------

I have tried using an initrd file, but it makes no difference. Any ideas or suggestions will be greatly appreciated!

David Barrera

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/

#1 lore raw
Quoted 14 lines · David F Barrera

I am trying to create an additional domain and have created a configuration file based on the examples. When I try to boot the domain, it eventually hits a Kernel panic, as follows:

Red Hat nash version 4.1.18 starting
Mounted /proc filesystem
Mounting sysfs
Creating /dev
Starting udev
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
mount: error 2 mounting none
Switching to new root
switchroot: mount failed: 22
umount /initrd/dev failed: 2

Quoted 3 lines
Kernel panic - not syncing: Attempted to kill init!

<0>Rebooting in 1 seconds..
-----------------------------------

Which RH flavor is this? I've so far had Fedora Core 2 and 3, as well as CentOS, running happily inside a Xen domain. What does the fstab for the domain's root FS look like? Also, what does your domain definition file look like?

Signature · 8 lines
Derrik Pates
[email protected]


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
#2 lore raw

Derrik,

Thanks for your response. Of course I should have given more details! (my bad).

The distro I am using is RHEL 4 Beta 2 (Red Hat Enterprise Linux Desktop release 3.90 (Nahant)

Quoted 1 line
Quoted 1 line

What does the fstab for the domain's root FS look like?

/dev/hdc1               /                       ext2    defaults        1 1
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
LABEL=SWAP-hdc2         swap                    swap    defaults        0 0
/dev/hda                /media/cdrom            auto    pamconsole,fscontext=system_u:object_r:removable_t,ro,exec,noauto,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
Quoted 1 line
Quoted 1 line

Also, what does your domain definition file look like?

#----------------------------------------------------------------------------START OF DEFINITION FILE # Kernel image file.
kernel = "/boot/vmlinuz-2.6.9-xenU"

# Optional ramdisk.
ramdisk = "/boot/initrd-fc3.img"

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

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

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

# disk = [ 'phy:hda1,hda1,r' ]
disk = [ 'phy:hdc1,hdc1,r' ]

# Set if you want dhcp to allocate the IP address. dhcp="dhcp"
# Set root device.

root = "/dev/hdc1 ro"

# Sets runlevel 4.
extra = "4" #---------------------------------------------------------------------------- END OF DEFINITION FILE

Quoted 21 lines · Derrik Pates
Quoted 14 lines · David F Barrera

I am trying to create an additional domain and have created a configuration file based on the examples. When I try to boot the domain, it eventually hits a Kernel panic, as follows:

Red Hat nash version 4.1.18 starting
Mounted /proc filesystem
Mounting sysfs
Creating /dev
Starting udev
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
mount: error 2 mounting none
Switching to new root
switchroot: mount failed: 22
umount /initrd/dev failed: 2

Quoted 3 lines
Kernel panic - not syncing: Attempted to kill init!

<0>Rebooting in 1 seconds..
-----------------------------------

Quoted 2 lines

Which RH flavor is this? I've so far had Fedora Core 2 and 3, as well as CentOS, running happily inside a Xen domain. What does the fstab for the domain's root FS look like? Also, what does your domain definition file look like?

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/

#3 lore raw
Quoted 9 lines · David F Barrera

The distro I am using is RHEL 4 Beta 2 (Red Hat Enterprise Linux Desktop release 3.90 (Nahant)

/dev/hdc1 / ext2 defaults 1 1

LABEL=SWAP-hdc2         swap                    swap    defaults        0 0
/dev/hda                /media/cdrom            auto    pamconsole,fscontext=system_u:object_r:removable_t,ro,exec,noauto,managed 0 0
# disk = [ 'phy:hda1,hda1,r' ]
disk = [ 'phy:hdc1,hdc1,r' ]

Well, the configuration of the virtual disk looks correct; the swap might disagree with it, but that shouldn't appear until later in the boot process. Perhaps it's an interaction with devfs? Do you have devfs enabled in your xenU (unprivileged domain) kernel? This gave me fits when I first began using Xen, mostly because it seems that the xenU prebuilt kernel that's included with the binary pack has devfs support enabled, and this breaks things. The only other possibility I can think of is that you need to change the block-device import to read-write.

Signature · 8 lines
Derrik Pates
[email protected]


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
#4 lore raw

Derrik ,

Thanks for the feedback.

Quoted 12 lines · Derrik Pates
Quoted 8 lines · David F Barrera

The distro I am using is RHEL 4 Beta 2 (Red Hat Enterprise Linux Desktop release 3.90 (Nahant)

/dev/hdc1 / ext2 defaults 1 1

LABEL=SWAP-hdc2         swap                    swap    defaults        0 0
/dev/hda                /media/cdrom            auto    pamconsole,fscontext=system_u:object_r:removable_t,ro,exec,noauto,managed 0 0
Quoted 5 lines
Quoted 2 lines
# disk = [ 'phy:hda1,hda1,r' ]
disk = [ 'phy:hdc1,hdc1,r' ]

Well, the configuration of the virtual disk looks correct; the swap might disagree with it, but that shouldn't appear until later in the boot process. Perhaps it's an interaction with devfs? Do you have devfs enabled in your xenU (unprivileged domain) kernel? This gave me fits when I first began using Xen, mostly because it seems that the xenU prebuilt kernel that's included with the binary pack has devfs support enabled, and this breaks things.

I will try rebuilding the xenU kernel.

Quoted 1 line

The only other possibility I can think of is that you need to change the block-device import to read-write.

I've already tried changing the block-device import to read-write. No difference.

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/

#5 lore raw
In reply to Derrik Pates

Derrick,

I rebuilt the xenU kernel, with the devfs support disabled, and it makes no difference. It behaves in the same manner as the pre-built kernel that's included with the binary pack. I am at a loss. I've been able to boot a kernel under xen on a SuSE Linux 9.0 machine, so I've had a little experience with this:-)

Freeing unused kernel memory: 92k freed
Red Hat nash version 4.1.18 starting
Mounted /proc filesystem
Mounting sysfs
Creating /dev
Starting udev
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
mount: error 2 mounting none
Switching to new root
switchroot: mount failed: 22
umount /initrd/dev failed: 2

Kernel panic - not syncing: Attempted to kill init!

<0>Rebooting in 1 seconds..

David Barrera

Quoted 12 lines · Derrik Pates
Quoted 8 lines · David F Barrera

The distro I am using is RHEL 4 Beta 2 (Red Hat Enterprise Linux Desktop release 3.90 (Nahant)

/dev/hdc1 / ext2 defaults 1 1

LABEL=SWAP-hdc2         swap                    swap    defaults        0 0
/dev/hda                /media/cdrom            auto    pamconsole,fscontext=system_u:object_r:removable_t,ro,exec,noauto,managed 0 0
Quoted 6 lines
Quoted 2 lines
# disk = [ 'phy:hda1,hda1,r' ]
disk = [ 'phy:hdc1,hdc1,r' ]

Well, the configuration of the virtual disk looks correct; the swap might disagree with it, but that shouldn't appear until later in the boot process. Perhaps it's an interaction with devfs? Do you have devfs enabled in your xenU (unprivileged domain) kernel? This gave me fits when I first began using Xen, mostly because it seems that the xenU prebuilt kernel that's included with the binary pack has devfs support enabled, and this breaks things. The only other possibility I can think of is that you need to change the block-device import to read-write.

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/

#6 lore raw
Quoted 7 lines

Derrick,

I rebuilt the xenU kernel, with the devfs support disabled, and it makes no difference. It behaves in the same manner as the pre-built kernel that's included with the binary pack. I am at a loss. I've been able to boot a kernel under xen on a SuSE Linux 9.0 machine, so I've had a little experience with this:-)

David, earlier in the boot messages do you see the hdc1 partition being found when the partition check happens?

You'll need to export the partition 'rw' eventually, but that's not your current problem.

You might like to try exporting it as 'sda1' or something to see if that helps. Not sure why it would, but I've heard folklore along these lines.

Adding some more debugging to the linuxrc nash script might shed some light on the problem.

Also, what happens if you skip the initrd and try booting directly off the disk. I doubt there's anything in the initrd you need.

Ian

Quoted 55 lines

Freeing unused kernel memory: 92k freed
Red Hat nash version 4.1.18 starting
Mounted /proc filesystem
Mounting sysfs
Creating /dev
Starting udev
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
mount: error 2 mounting none
Switching to new root
switchroot: mount failed: 22
umount /initrd/dev failed: 2

Kernel panic - not syncing: Attempted to kill init!
 <0>Rebooting in 1 seconds..

David Barrera

Quoted 21 lines · Derrik Pates
Quoted 15 lines · David F Barrera

The distro I am using is RHEL 4 Beta 2 (Red Hat Enterprise Linux Desktop release 3.90 (Nahant)

/dev/hdc1 / ext2
defaults 1 1

LABEL=SWAP-hdc2 swap swap
defaults 0 0
/dev/hda /media/cdrom auto
pamconsole,fscontext=system_u:object_r:removable_t,ro,exec,noauto,managed 0 0

Quoted 2 lines
# disk = [ 'phy:hda1,hda1,r' ]
disk = [ 'phy:hdc1,hdc1,r' ]
Quoted 10 lines

Well, the configuration of the virtual disk looks correct; the swap might disagree with it, but that shouldn't appear until later in the boot process. Perhaps it's an interaction with devfs? Do you have devfs enabled in your xenU (unprivileged domain) kernel? This gave me fits when I first began using Xen, mostly because it seems that the xenU prebuilt kernel that's included with the binary pack has devfs support enabled, and this breaks things. The only other possibility I can think of is that you need to change the block-device import to read-write.

Quoted 9 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

#7 lore raw

Ian,

Thanks for the reply and the suggestions. Some details about my setup:
/dev/hdc3 is where xen0 is running
/dev/hdc1 -- another partition that actually has a copy of RHEL 4 Beta 2 installed (working OS) /etc/fstab:
# This file is edited by fstab-sync - see 'man fstab-sync' for details

/dev/hdc3               /                       ext2    defaults        1 1
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/hdc2               swap                    swap    defaults        0 0
/dev/hda                /media/cdrom            auto    pamconsole,ro,exec,noauto,managed 0 0

~

The config file that I am using:

# Kernel image file.
kernel = "/boot/vmlinuz-2.6.9-xenU"
# Optional ramdisk.
ramdisk = "/boot/initrd-2.6.9-xenU.img"
# The domain build function. Default is 'linux'. builder='linux'
# Initial memory allocation (in megabytes) for the new domain. memory = 64
# A name for your domain. All domains must have different names. name = "test1"

# disk = [ 'phy:hda1,hda1,r' ]
disk = [ 'phy:hdc1,hdc1,w' ]
# Set if you want dhcp to allocate the IP address.
dhcp="dhcp"
# Set root device.
root = "/dev/hdc1 ro/"
# Sets runlevel 4.
extra = "4"
#============================================================================
~
Quoted 10 lines · Ian Pratt
Quoted 5 lines

Derrick,

I rebuilt the xenU kernel, with the devfs support disabled, and it makes no difference. It behaves in the same manner as the pre-built kernel that's included with the binary pack. I am at a loss. I've been able to boot a kernel under xen on a SuSE Linux 9.0 machine, so I've had a little experience with this:-)

David, earlier in the boot messages do you see the hdc1 partition being found when the partition check happens?

This is the entire log:

Linux version 2.6.9-xenU ([email protected]) (gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)) #1 Fri Dec 17 15:50:10 CST 2004 BIOS-provided physical RAM map:
Xen: 0000000000000000 - 0000000004000000 (usable)
64MB LOWMEM available.
DMI not present.
Built 1 zonelists
Kernel command line: ip=:1.2.3.4::::eth0:dhcp root=/dev/hdc1 ro/ 4
Initializing CPU#0
PID hash table entries: 512 (order: 9, 8192 bytes)
Xen reported: 866.697 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: 61900k/65536k available (1569k kernel code, 3596k reserved, 429k data, 92k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: Intel Pentium III (Coppermine) stepping 06
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... disabled
checking if image is initramfs... it is
Freeing initrd memory: 600k freed
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.
Starting Xen Balloon driver
xen_blk: Initialising virtual block device driver
Using anticipatory io scheduler
xen_net: Initialising virtual ethernet driver.
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: Incomplete network configuration information.
Freeing unused kernel memory: 92k freed
Red Hat nash version 4.1.18 starting
Mounted /proc filesystem
Mounting sysfs
Creating /dev
Starting udev
Creating root device
Mounting root filesystem
mount: error 6 mounting ext2
mount: error 2 mounting none
Switching to new root
switchroot: mount failed: 22
umount /initrd/dev failed: 2

Kernel panic - not syncing: Attempted to kill init!

<0>Rebooting in 1 seconds..

Quoted 4 lines

You'll need to export the partition 'rw' eventually, but that's not your current problem.

Right. Already tried it.

Quoted 5 lines

You might like to try exporting it as 'sda1' or something to see if that helps. Not sure why it would, but I've heard folklore along these lines.

I had tried that (and hda1) before, but sda1 I get an error, too:
[root@dyn95394184 xen]# xm create -c test1 vmid=1
Using config file "test1".
Error: Error creating domain: vbd: Device not found: sda1

Quoted 4 lines

Adding some more debugging to the linuxrc nash script might shed some light on the problem.

I need to find out how to do this first...

Quoted 5 lines

Also, what happens if you skip the initrd and try booting directly off the disk. I doubt there's anything in the initrd you need.

I had tried it, also. I get a VFS error if I don't use an initrd

VFS: Cannot open root device "hdc1" 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)

<0>Rebooting in 1 seconds..

Quoted 70 lines

Ian

Quoted 52 lines

Freeing unused kernel memory: 92k freed
Red Hat nash version 4.1.18 starting
Mounted /proc filesystem
Mounting sysfs
Creating /dev
Starting udev
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
mount: error 2 mounting none
Switching to new root
switchroot: mount failed: 22
umount /initrd/dev failed: 2

Kernel panic - not syncing: Attempted to kill init!

<0>Rebooting in 1 seconds..

David Barrera

Quoted 20 lines · Derrik Pates
Quoted 14 lines · David F Barrera

The distro I am using is RHEL 4 Beta 2 (Red Hat Enterprise Linux Desktop release 3.90 (Nahant)

/dev/hdc1 / ext2 defaults 1 1

LABEL=SWAP-hdc2         swap                    swap    defaults        0 0
/dev/hda                /media/cdrom            auto    pamconsole,fscontext=system_u:object_r:removable_t,ro,exec,noauto,managed 0 0
Quoted 8 lines
Quoted 4 lines
# disk = [ 'phy:hda1,hda1,r' ]
disk = [ 'phy:hdc1,hdc1,r' ]

Well, the configuration of the virtual disk looks correct; the swap might disagree with it, but that shouldn't appear until later in the boot process. Perhaps it's an interaction with devfs? Do you have devfs enabled in your xenU (unprivileged domain) kernel? This gave me fits when I first began using Xen, mostly because it seems that the xenU prebuilt kernel that's included with the binary pack has devfs support enabled, and this breaks things. The only other possibility I can think of is that you need to change the block-device import to read-write.

Quoted 10 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

Quoted 11 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/

#8 lore raw
Quoted 11 lines

# Kernel image file.
kernel = "/boot/vmlinuz-2.6.9-xenU"
# Optional ramdisk.
ramdisk = "/boot/initrd-2.6.9-xenU.img"
# The domain build function. Default is 'linux'. builder='linux'
# Initial memory allocation (in megabytes) for the new domain. memory = 64
# A name for your domain. All domains must have different names. name = "test1"

Quoted 6 lines
# disk = [ 'phy:hda1,hda1,r' ]
disk = [ 'phy:hdc1,hdc1,w' ]
# Set if you want dhcp to allocate the IP address.
dhcp="dhcp"
# Set root device.
root = "/dev/hdc1 ro/"

The '/' on the end of 'ro' looks odd to me.

Quoted 11 lines

xen_blk: Initialising virtual block device driver Using anticipatory io scheduler
xen_net: Initialising virtual ethernet driver.
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: Incomplete network configuration information. Freeing unused kernel memory: 92k freed
Red Hat nash version 4.1.18 starting

I can't see any partitions being found at any point, so you're doomed from here on in.

Quoted 4 lines

I had tried that (and hda1) before, but sda1 I get an error, too:
[root@dyn95394184 xen]# xm create -c test1 vmid=1
Using config file "test1".
Error: Error creating domain: vbd: Device not found: sda1

try disk = [ 'phy:hdc1,0801,w' ]

0801 == sda1

Ian

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

#9 lore raw
Quoted 20 lines · Ian Pratt
Quoted 10 lines

# Kernel image file.
kernel = "/boot/vmlinuz-2.6.9-xenU"
# Optional ramdisk.
ramdisk = "/boot/initrd-2.6.9-xenU.img"
# The domain build function. Default is 'linux'. builder='linux'
# Initial memory allocation (in megabytes) for the new domain. memory = 64
# A name for your domain. All domains must have different names. name = "test1"

Quoted 8 lines
# disk = [ 'phy:hda1,hda1,r' ]
disk = [ 'phy:hdc1,hdc1,w' ]
# Set if you want dhcp to allocate the IP address.
dhcp="dhcp"
# Set root device.
root = "/dev/hdc1 ro/"
Quoted 3 lines

The '/' on the end of 'ro' looks odd to me.

Thx. Removing it did not make any difference.

Quoted 16 lines
Quoted 15 lines

xen_blk: Initialising virtual block device driver Using anticipatory io scheduler
xen_net: Initialising virtual ethernet driver.
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: Incomplete network configuration information. Freeing unused kernel memory: 92k freed
Red Hat nash version 4.1.18 starting

Quoted 4 lines

I can't see any partitions being found at any point, so you're doomed from here on in.

Agree.

Quoted 10 lines
Quoted 8 lines

I had tried that (and hda1) before, but sda1 I get an error, too:
[root@dyn95394184 xen]# xm create -c test1 vmid=1
Using config file "test1".
Error: Error creating domain: vbd: Device not found: sda1

Quoted 5 lines

try disk = [ 'phy:hdc1,0801,w' ]

0801 == sda1

No difference. Same Kernel panic

Quoted 7 lines

Ian

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/

#10 lore raw
Quoted 10 lines
Quoted 8 lines
Quoted 4 lines

I had tried that (and hda1) before, but sda1 I get an error, too:
[root@dyn95394184 xen]# xm create -c test1 vmid=1
Using config file "test1".
Error: Error creating domain: vbd: Device not found: sda1

try disk = [ 'phy:hdc1,0801,w' ]

0801 == sda1

No difference. Same Kernel panic

Something odd is going on here -- I believe other people have had RHEL3 working.

Can you mount hdc1 in dom 0 OK? Is there an sbin/init ? Is there a dev directory?

It might be worth enabling the debugging printks in drivers/xen/blkfront/block.h and drivers/xen/blockback/common.h and rebuilding xen0 / xenU.

Ian

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

#11 lore raw
Quoted 11 lines · Ian Pratt
Quoted 11 lines
Quoted 11 lines
Quoted 6 lines

I had tried that (and hda1) before, but sda1 I get an error, too:
[root@dyn95394184 xen]# xm create -c test1 vmid=1
Using config file "test1".
Error: Error creating domain: vbd: Device not found: sda1

try disk = [ 'phy:hdc1,0801,w' ]

0801 == sda1

Quoted 8 lines
Quoted 3 lines

No difference. Same Kernel panic

Something odd is going on here -- I believe other people have had RHEL3 working.

I believe it. But RHEL 4 has some differences from RHEL 3, among them the fact that in RHEL 4 the devices in /dev are created dynamically. Thus, if I mount hdc1 and look at /dev, it is empty. However, /dev in hdc3 (xen0) has 671 entries. I have a SuSE 9.0 system where the drive that I export (equivalent to hdc1, in this case) has many devicen on /dev, meaning they are static; RHEL 3 is similar.

Quoted 2 lines

Can you mount hdc1 in dom 0 OK?

Yes:

[root@dyn95394184 ~]# mount /dev/hdc1 /data1
[root@dyn95394184 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hdc3 6372520 2732376 3316436 46% /
none 251384 0 251384 0% /dev/shm
/dev/hdc1 7055144 2422572 4274180 37% /data1
[root@dyn95394184 ~]#

Quoted 2 lines

Is there an sbin/init

[root@dyn95394184 ~]# ls /data1/sbin/init
/data1/sbin/init
[root@dyn95394184 ~]#

Quoted 4 lines

? Is there
a dev directory?

Yes, but it is empty:
[root@dyn95394184 dev]# pwd
/data1/dev
[root@dyn95394184 dev]# ls
[root@dyn95394184 dev]#

Quoted 6 lines

It might be worth enabling the debugging printks in drivers/xen/blkfront/block.h and drivers/xen/blockback/common.h and rebuilding xen0 / xenU.

I created an image file to experiment, and it seems to go a little further. The problem has got to be related to the /dev issue.

disk = [ 'file:/boot/initrd.x86.image,0801,w' ] # Set if you want dhcp to allocate the IP address. # dhcp="dhcp"
# Set root device.
root = "/dev/sda1 ro"

Red Hat nash version 4.1.18 starting
Mounted /proc filesystem
Mounting sysfs
Creating /dev
Starting udev
Creating root device
Mounting root filesystem
Switching to new root
init started: BusyBox v1.00-pre10 (2004.06.10-04:09+0000) multi-call binary Linux localhost.localdomain 2.6.9-xenU #1 Fri Dec 17 15:50:10 CST 2004 i686 unknown

Quoted 7 lines

Ian

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/

#12 lore raw

Ian,

As I indicated earlier, I created an image file, and I am able to boot xenU now:

Red Hat Enterprise Linux Desktop release 3.90 (Nahant) Kernel 2.6.9-xenU on an i686

(none) login:

I still can't log in, but I will continue to add files to the image to make it work. In the image, I copied the contents of (hdc3) /dev to the image/dev. I still don't understand why I can get xenU to boot using the system partition (hdc1). I'll keep digging.

David F Barrera

Quoted 67 lines
Quoted 11 lines · Ian Pratt
Quoted 11 lines
Quoted 10 lines
Quoted 5 lines

I had tried that (and hda1) before, but sda1 I get an error, too:
[root@dyn95394184 xen]# xm create -c test1 vmid=1
Using config file "test1".
Error: Error creating domain: vbd: Device not found: sda1

try disk = [ 'phy:hdc1,0801,w' ]

0801 == sda1

Quoted 8 lines
Quoted 2 lines

No difference. Same Kernel panic

Something odd is going on here -- I believe other people have had RHEL3 working.

I believe it. But RHEL 4 has some differences from RHEL 3, among them the fact that in RHEL 4 the devices in /dev are created dynamically. Thus, if I mount hdc1 and look at /dev, it is empty. However, /dev in hdc3 (xen0) has 671 entries. I have a SuSE 9.0 system where the drive that I export (equivalent to hdc1, in this case) has many devicen on /dev, meaning they are static; RHEL 3 is similar.

Quoted 1 line

Can you mount hdc1 in dom 0 OK?

Yes:

[root@dyn95394184 ~]# mount /dev/hdc1 /data1
[root@dyn95394184 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hdc3 6372520 2732376 3316436 46% /
none 251384 0 251384 0% /dev/shm
/dev/hdc1 7055144 2422572 4274180 37% /data1
[root@dyn95394184 ~]#

Quoted 1 line

Is there an sbin/init

[root@dyn95394184 ~]# ls /data1/sbin/init
/data1/sbin/init
[root@dyn95394184 ~]#

Quoted 3 lines

? Is there
a dev directory?

Yes, but it is empty:
[root@dyn95394184 dev]# pwd
/data1/dev
[root@dyn95394184 dev]# ls
[root@dyn95394184 dev]#

Quoted 6 lines

It might be worth enabling the debugging printks in drivers/xen/blkfront/block.h and drivers/xen/blockback/common.h and rebuilding xen0 / xenU.

I created an image file to experiment, and it seems to go a little further. The problem has got to be related to the /dev issue.

disk = [ 'file:/boot/initrd.x86.image,0801,w' ] # Set if you want dhcp to allocate the IP address. # dhcp="dhcp"
# Set root device.
root = "/dev/sda1 ro"

Quoted 20 lines

Red Hat nash version 4.1.18 starting
Mounted /proc filesystem
Mounting sysfs
Creating /dev
Starting udev
Creating root device
Mounting root filesystem
Switching to new root
init started: BusyBox v1.00-pre10 (2004.06.10-04:09+0000) multi-call binary Linux localhost.localdomain 2.6.9-xenU #1 Fri Dec 17 15:50:10 CST 2004 i686 unknown

Quoted 7 lines

Ian

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/

#13 lore raw
In reply to Ian Pratt

Ian,

One thing about RHEL 4 is that the devices in /dev seem to be created dynamically, at boot time. When I mount the 'hdc1' partition and go to the /dev directory, there is nothing in it, as on a SuSE 9.0 or earlier Red Hat installs. That is why I need an initrd, I suppose, to make or create those devices.

David

Quoted 93 lines · Ian Pratt
Quoted 5 lines

Derrick,

I rebuilt the xenU kernel, with the devfs support disabled, and it makes no difference. It behaves in the same manner as the pre-built kernel that's included with the binary pack. I am at a loss. I've been able to boot a kernel under xen on a SuSE Linux 9.0 machine, so I've had a little experience with this:-)

David, earlier in the boot messages do you see the hdc1 partition being found when the partition check happens?

You'll need to export the partition 'rw' eventually, but that's not your current problem.

You might like to try exporting it as 'sda1' or something to see if that helps. Not sure why it would, but I've heard folklore along these lines.

Adding some more debugging to the linuxrc nash script might shed some light on the problem.

Also, what happens if you skip the initrd and try booting directly off the disk. I doubt there's anything in the initrd you need.

Ian

Quoted 52 lines

Freeing unused kernel memory: 92k freed
Red Hat nash version 4.1.18 starting
Mounted /proc filesystem
Mounting sysfs
Creating /dev
Starting udev
Creating root device
Mounting root filesystem
mount: error 6 mounting ext3
mount: error 2 mounting none
Switching to new root
switchroot: mount failed: 22
umount /initrd/dev failed: 2

Kernel panic - not syncing: Attempted to kill init!

<0>Rebooting in 1 seconds..

David Barrera

Quoted 20 lines · Derrik Pates
Quoted 14 lines · David F Barrera

The distro I am using is RHEL 4 Beta 2 (Red Hat Enterprise Linux Desktop release 3.90 (Nahant)

/dev/hdc1 / ext2 defaults 1 1

LABEL=SWAP-hdc2         swap                    swap    defaults        0 0
/dev/hda                /media/cdrom            auto    pamconsole,fscontext=system_u:object_r:removable_t,ro,exec,noauto,managed 0 0
Quoted 8 lines
Quoted 4 lines
# disk = [ 'phy:hda1,hda1,r' ]
disk = [ 'phy:hdc1,hdc1,r' ]

Well, the configuration of the virtual disk looks correct; the swap might disagree with it, but that shouldn't appear until later in the boot process. Perhaps it's an interaction with devfs? Do you have devfs enabled in your xenU (unprivileged domain) kernel? This gave me fits when I first began using Xen, mostly because it seems that the xenU prebuilt kernel that's included with the binary pack has devfs support enabled, and this breaks things. The only other possibility I can think of is that you need to change the block-device import to read-write.

Quoted 10 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

Quoted 11 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/