Friedrich Clausen
2008-Mar-06 10:25 UTC
[Fedora-xen] Guest boots OK with ATA disk (hdX) but not SCSI (sdX).
Hi All, (please feel free to refer me to the official Xen list if need be) I am still using the same dom0 as outlined in : https://www.redhat.com/archives/fedora-xen/2008-March/msg00006.html I can successfully boot a domU using /dev/hda1 as rootfs but when I boot using a scsi device it is unable to find its rootfs. I created an initrd, preloading the sd_mod, in the hopes that that will fix it. The initrd was created like so: # mkinitrd -v --preload=sd_mod --preload=xenblk --with=xennet --with=xenblktap --with=xenbus_be /tmp/test `uname -r` # cp /tmp/test /boot/initrd-2.6.21.7-2.fc8xen.img And the config of the guest is: kernel = "/boot/vmlinuz-2.6.21.7-2.fc8xen" ramdisk = "/boot/initrd-2.6.21.7-2.fc8xen.img" extra = "ro enforcing=0" root = "/dev/sda1" memory = 256 name = "centos.5-1.64" vif = [ '''' ] disk = [''phy:VolGroup00/LogVol00,sda1,w''] But is fails to boot, here are some possibly relevant messages with the complete output at the end of this email : Creating /dev Creating initial device nodes Setting up hotplug. Creating block device nodes. Loading scsi_mod.ko module SCSI subsystem initialized Loading sd_mod.ko module Loading xenblk.ko module register_blkdev: cannot get major 8 for sd vbd vbd-2049: 19 xlvbd_add at /local/domain/0/backend/vbd/22/2049 register_blkdev: cannot get major 8 for sd vbd vbd-2049: 19 xlvbd_add at /local/domain/0/backend/vbd/22/2049 XENBUS: Timeout connecting to device: device/vbd/2049 (state 6) [ lines removed ] unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Booting has failed. Kernel panic - not syncing: Attempted to kill init! I am glad I can successfully boot a guest but I would still like to get to the bottom of this problem. Thanks! Fred. -------------------------- Complete output -------------------------- Using config file "./centos.conf.sda". Started domain centos.5-1.64 Linux version 2.6.21.7-2.fc8xen (mockbuild@xenbuilder4.fedora.phx.redhat.com) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1 SMP Fri Feb 15 12:34:28 EST 2008 Command line: root=/dev/sda1 ro enforcing=0 BIOS-provided physical RAM map: Xen: 0000000000000000 - 0000000010800000 (usable) end_pfn_map = 67584 Zone PFN ranges: DMA 0 -> 67584 DMA32 67584 -> 67584 Normal 67584 -> 67584 early_node_map[1] active PFN ranges 0: 0 -> 67584 No mptable found. PERCPU: Allocating 26496 bytes of per cpu data Built 1 zonelists. Total pages: 63160 Kernel command line: root=/dev/sda1 ro enforcing=0 Initializing CPU#0 PID hash table entries: 1024 (order: 10, 8192 bytes) Xen reported: 2327.484 MHz processor. Console: colour dummy device 80x25 Dentry cache hash table entries: 32768 (order: 6, 262144 bytes) Inode-cache hash table entries: 16384 (order: 5, 131072 bytes) Software IO TLB disabled Memory: 243620k/270336k available (2265k kernel code, 18172k reserved, 1351k data, 200k init) Calibrating delay using timer specific routine.. 4658.18 BogoMIPS (lpj=2329090) Security Framework v1.0.0 initialized SELinux: Initializing. selinux_register_security: Registering secondary module capability Capability LSM initialized as secondary Mount-cache hash table entries: 256 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 0 SMP alternatives: switching to UP code Freeing SMP alternatives: 28k freed Brought up 1 CPUs NET: Registered protocol family 16 Brought up 1 CPUs PCI: Fatal: No config space access function found PCI: setting up Xen PCI frontend stub ACPI: Interpreter disabled. Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI: disabled xen_mem: Initialising balloon driver. usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb PCI: System does not support PCI PCI: System does not support PCI NetLabel: Initializing NetLabel: domain hash size = 128 NetLabel: protocols = UNLABELED CIPSOv4 NetLabel: unlabeled traffic allowed by default NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 2, 16384 bytes) TCP established hash table entries: 8192 (order: 5, 196608 bytes) TCP bind hash table entries: 8192 (order: 5, 131072 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered checking if image is initramfs... it is Freeing initrd memory: 8336k freed audit: initializing netlink socket (disabled) audit(1204798687.726:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 512 (order 0, 4096 bytes) ksign: Installing public key data Loading keyring io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) pci_hotplug: PCI Hot Plug PCI Core version: 0.5 rtc: IRQ 8 is not free. Non-volatile memory driver v1.2 Linux agpgart interface v0.102 (c) Dave Jones RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize input: Macintosh mouse button emulation as /class/input/input0 Xen virtual console successfully installed as xvc0 Linux version 2.6.21.7-2.fc8xen (mockbuild@xenbuilder4.fedora.phx.redhat.com) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1 SMP Fri Feb 15 12:34:28 EST 2008 Command line: root=/dev/sda1 ro enforcing=0 BIOS-provided physical RAM map: Xen: 0000000000000000 - 0000000010800000 (usable) end_pfn_map = 67584 Zone PFN ranges: DMA 0 -> 67584 DMA32 67584 -> 67584 Normal 67584 -> 67584 early_node_map[1] active PFN ranges 0: 0 -> 67584 No mptable found. PERCPU: Allocating 26496 bytes of per cpu data Built 1 zonelists. Total pages: 63160 Kernel command line: root=/dev/sda1 ro enforcing=0 Initializing CPU#0 PID hash table entries: 1024 (order: 10, 8192 bytes) Xen reported: 2327.484 MHz processor. Console: colour dummy device 80x25 Dentry cache hash table entries: 32768 (order: 6, 262144 bytes) Inode-cache hash table entries: 16384 (order: 5, 131072 bytes) Software IO TLB disabled Memory: 243620k/270336k available (2265k kernel code, 18172k reserved, 1351k data, 200k init) Calibrating delay using timer specific routine.. 4658.18 BogoMIPS (lpj=2329090) Security Framework v1.0.0 initialized SELinux: Initializing. selinux_register_security: Registering secondary module capability Capability LSM initialized as secondary Mount-cache hash table entries: 256 CPU: L1 I cache: 32K, L1 D cache: 32K CPU: L2 cache: 4096K CPU: Physical Processor ID: 0 CPU: Processor Core ID: 0 SMP alternatives: switching to UP code Freeing SMP alternatives: 28k freed Brought up 1 CPUs NET: Registered protocol family 16 Brought up 1 CPUs PCI: Fatal: No config space access function found PCI: setting up Xen PCI frontend stub ACPI: Interpreter disabled. Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI: disabled xen_mem: Initialising balloon driver. usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb PCI: System does not support PCI PCI: System does not support PCI NetLabel: Initializing NetLabel: domain hash size = 128 NetLabel: protocols = UNLABELED CIPSOv4 NetLabel: unlabeled traffic allowed by default NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 2, 16384 bytes) TCP established hash table entries: 8192 (order: 5, 196608 bytes) TCP bind hash table entries: 8192 (order: 5, 131072 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered checking if image is initramfs... it is Freeing initrd memory: 8336k freed audit: initializing netlink socket (disabled) audit(1204798687.726:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 512 (order 0, 4096 bytes) ksign: Installing public key data Loading keyring io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) pci_hotplug: PCI Hot Plug PCI Core version: 0.5 rtc: IRQ 8 is not free. Non-volatile memory driver v1.2 Linux agpgart interface v0.102 (c) Dave Jones RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize input: Macintosh mouse button emulation as /class/input/input0 Xen virtual console successfully installed as xvc0 Event-channel device installed. usbcore: registered new interface driver hiddev usbcore: registered new interface driver usbhid drivers/usb/input/hid-core.c: v2.6:USB HID core driver PNP: No PS/2 controller found. Probing ports directly. i8042.c: No controller found. mice: PS/2 mouse device common for all mice TCP bic registered Initializing XFRM netlink socket NET: Registered protocol family 1 NET: Registered protocol family 17 XENBUS: Device with no driver: device/vbd/2049 XENBUS: Device with no driver: device/vif/0 XENBUS: Device with no driver: device/console/0 drivers/rtc/hctosys.c: unable to open rtc device (rtc0) Freeing unused kernel memory: 200k freed Write protecting the kernel read-only data: 981k Red Hat nash version 6.0.19 starting Mounting proc filesystem Mounting sysfs filesystem Creating /dev Creating initial device nodes Setting up hotplug. Creating block device nodes. Loading scsi_mod.ko module SCSI subsystem initialized Loading sd_mod.ko module Loading xenblk.ko module register_blkdev: cannot get major 8 for sd vbd vbd-2049: 19 xlvbd_add at /local/domain/0/backend/vbd/22/2049 register_blkdev: cannot get major 8 for sd vbd vbd-2049: 19 xlvbd_add at /local/domain/0/backend/vbd/22/2049 XENBUS: Timeout connecting to device: device/vbd/2049 (state 6) Loading ehci-hcd.ko module Loading ohci-hcd.ko module Loading uhci-hcd.ko module USB Universal Host Controller Interface driver v3.0 Loading mbcache.ko module Loading jbd.ko module Loading ext3.ko module Loading libata.ko module Loading ahci.ko module Waiting for driver initialization. Loading ata_generic.ko module Loading usb-storage.ko module Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. Waiting for driver initialization. stabilized: stat /proc/bus/usb/devices: No such file or directory Loading xennet.ko module netfront: Initialising virtual ethernet driver. netfront: device eth0 has copying receive path. Loading xenbus_be.ko module Loading xenblktap.ko module Creating root device. Mounting root filesystem. mount: could not find filesystem ''/dev/root'' Setting up other filesystems. Setting up new root fs setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys switchroot: mount failed: No such file or directory Booting has failed. Kernel panic - not syncing: Attempted to kill init! -------------------------- End Complete output --------------------------
san48
2008-May-06 08:21 UTC
Re: [Fedora-xen] Guest boots OK with ATA disk (hdX) but not SCSI (sdX).
even i hav the same problem can i kn the solution. I use sata hard drives (sdx). Regards san Fred Clausen-2 wrote:> > Hi All, > > (please feel free to refer me to the official Xen list if need be) > > I am still using the same dom0 as outlined in : > > https://www.redhat.com/archives/fedora-xen/2008-March/msg00006.html > > I can successfully boot a domU using /dev/hda1 as rootfs but when I boot > using a scsi device it is unable to find its rootfs. I created an initrd, > preloading the sd_mod, in the hopes that that will fix it. The initrd was > created like so: > > # mkinitrd -v --preload=sd_mod --preload=xenblk --with=xennet > --with=xenblktap --with=xenbus_be /tmp/test `uname -r` > # cp /tmp/test /boot/initrd-2.6.21.7-2.fc8xen.img > > And the config of the guest is: > > kernel = "/boot/vmlinuz-2.6.21.7-2.fc8xen" > ramdisk = "/boot/initrd-2.6.21.7-2.fc8xen.img" > extra = "ro enforcing=0" > root = "/dev/sda1" > memory = 256 > name = "centos.5-1.64" > vif = [ '''' ] > disk = [''phy:VolGroup00/LogVol00,sda1,w''] > > But is fails to boot, here are some possibly relevant messages with the > complete output at the end of this email : > > Creating /dev > Creating initial device nodes > Setting up hotplug. > Creating block device nodes. > Loading scsi_mod.ko module > SCSI subsystem initialized > Loading sd_mod.ko module > Loading xenblk.ko module > register_blkdev: cannot get major 8 for sd > vbd vbd-2049: 19 xlvbd_add at /local/domain/0/backend/vbd/22/2049 > register_blkdev: cannot get major 8 for sd > vbd vbd-2049: 19 xlvbd_add at /local/domain/0/backend/vbd/22/2049 > XENBUS: Timeout connecting to device: device/vbd/2049 (state 6) > [ lines removed ] > unmounting old /dev > unmounting old /proc > unmounting old /sys > switchroot: mount failed: No such file or directory > Booting has failed. > Kernel panic - not syncing: Attempted to kill init! > > I am glad I can successfully boot a guest but I would still like to get to > the bottom of this problem. > > Thanks! > > Fred. > > -------------------------- > Complete output > -------------------------- > > Using config file "./centos.conf.sda". > Started domain centos.5-1.64 > Linux version 2.6.21.7-2.fc8xen > (mockbuild@xenbuilder4.fedora.phx.redhat.com) > (gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1 SMP Fri Feb 15 12:34:28 > EST 2008 > Command line: root=/dev/sda1 ro enforcing=0 > BIOS-provided physical RAM map: > Xen: 0000000000000000 - 0000000010800000 (usable) > end_pfn_map = 67584 > Zone PFN ranges: > DMA 0 -> 67584 > DMA32 67584 -> 67584 > Normal 67584 -> 67584 > early_node_map[1] active PFN ranges > 0: 0 -> 67584 > No mptable found. > PERCPU: Allocating 26496 bytes of per cpu data > Built 1 zonelists. Total pages: 63160 > Kernel command line: root=/dev/sda1 ro enforcing=0 > Initializing CPU#0 > PID hash table entries: 1024 (order: 10, 8192 bytes) > Xen reported: 2327.484 MHz processor. > Console: colour dummy device 80x25 > Dentry cache hash table entries: 32768 (order: 6, 262144 bytes) > Inode-cache hash table entries: 16384 (order: 5, 131072 bytes) > Software IO TLB disabled > Memory: 243620k/270336k available (2265k kernel code, 18172k reserved, > 1351k > data, 200k init) > Calibrating delay using timer specific routine.. 4658.18 BogoMIPS > (lpj=2329090) > Security Framework v1.0.0 initialized > SELinux: Initializing. > selinux_register_security: Registering secondary module capability > Capability LSM initialized as secondary > Mount-cache hash table entries: 256 > CPU: L1 I cache: 32K, L1 D cache: 32K > CPU: L2 cache: 4096K > CPU: Physical Processor ID: 0 > CPU: Processor Core ID: 0 > SMP alternatives: switching to UP code > Freeing SMP alternatives: 28k freed > Brought up 1 CPUs > NET: Registered protocol family 16 > Brought up 1 CPUs > PCI: Fatal: No config space access function found > PCI: setting up Xen PCI frontend stub > ACPI: Interpreter disabled. > Linux Plug and Play Support v0.97 (c) Adam Belay > pnp: PnP ACPI: disabled > xen_mem: Initialising balloon driver. > usbcore: registered new interface driver usbfs > usbcore: registered new interface driver hub > usbcore: registered new device driver usb > PCI: System does not support PCI > PCI: System does not support PCI > NetLabel: Initializing > NetLabel: domain hash size = 128 > NetLabel: protocols = UNLABELED CIPSOv4 > NetLabel: unlabeled traffic allowed by default > NET: Registered protocol family 2 > IP route cache hash table entries: 2048 (order: 2, 16384 bytes) > TCP established hash table entries: 8192 (order: 5, 196608 bytes) > TCP bind hash table entries: 8192 (order: 5, 131072 bytes) > TCP: Hash tables configured (established 8192 bind 8192) > TCP reno registered > checking if image is initramfs... it is > Freeing initrd memory: 8336k freed > audit: initializing netlink socket (disabled) > audit(1204798687.726:1): initialized > VFS: Disk quotas dquot_6.5.1 > Dquot-cache hash table entries: 512 (order 0, 4096 bytes) > ksign: Installing public key data > Loading keyring > io scheduler noop registered > io scheduler anticipatory registered > io scheduler deadline registered > io scheduler cfq registered (default) > pci_hotplug: PCI Hot Plug PCI Core version: 0.5 > rtc: IRQ 8 is not free. > Non-volatile memory driver v1.2 > Linux agpgart interface v0.102 (c) Dave Jones > RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize > input: Macintosh mouse button emulation as /class/input/input0 > Xen virtual console successfully installed as xvc0 > Linux version 2.6.21.7-2.fc8xen > (mockbuild@xenbuilder4.fedora.phx.redhat.com) > (gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1 SMP Fri Feb 15 12:34:28 > EST 2008 > Command line: root=/dev/sda1 ro enforcing=0 > BIOS-provided physical RAM map: > Xen: 0000000000000000 - 0000000010800000 (usable) > end_pfn_map = 67584 > Zone PFN ranges: > DMA 0 -> 67584 > DMA32 67584 -> 67584 > Normal 67584 -> 67584 > early_node_map[1] active PFN ranges > 0: 0 -> 67584 > No mptable found. > PERCPU: Allocating 26496 bytes of per cpu data > Built 1 zonelists. Total pages: 63160 > Kernel command line: root=/dev/sda1 ro enforcing=0 > Initializing CPU#0 > PID hash table entries: 1024 (order: 10, 8192 bytes) > Xen reported: 2327.484 MHz processor. > Console: colour dummy device 80x25 > Dentry cache hash table entries: 32768 (order: 6, 262144 bytes) > Inode-cache hash table entries: 16384 (order: 5, 131072 bytes) > Software IO TLB disabled > Memory: 243620k/270336k available (2265k kernel code, 18172k reserved, > 1351k > data, 200k init) > Calibrating delay using timer specific routine.. 4658.18 BogoMIPS > (lpj=2329090) > Security Framework v1.0.0 initialized > SELinux: Initializing. > selinux_register_security: Registering secondary module capability > Capability LSM initialized as secondary > Mount-cache hash table entries: 256 > CPU: L1 I cache: 32K, L1 D cache: 32K > CPU: L2 cache: 4096K > CPU: Physical Processor ID: 0 > CPU: Processor Core ID: 0 > SMP alternatives: switching to UP code > Freeing SMP alternatives: 28k freed > Brought up 1 CPUs > NET: Registered protocol family 16 > Brought up 1 CPUs > PCI: Fatal: No config space access function found > PCI: setting up Xen PCI frontend stub > ACPI: Interpreter disabled. > Linux Plug and Play Support v0.97 (c) Adam Belay > pnp: PnP ACPI: disabled > xen_mem: Initialising balloon driver. > usbcore: registered new interface driver usbfs > usbcore: registered new interface driver hub > usbcore: registered new device driver usb > PCI: System does not support PCI > PCI: System does not support PCI > NetLabel: Initializing > NetLabel: domain hash size = 128 > NetLabel: protocols = UNLABELED CIPSOv4 > NetLabel: unlabeled traffic allowed by default > NET: Registered protocol family 2 > IP route cache hash table entries: 2048 (order: 2, 16384 bytes) > TCP established hash table entries: 8192 (order: 5, 196608 bytes) > TCP bind hash table entries: 8192 (order: 5, 131072 bytes) > TCP: Hash tables configured (established 8192 bind 8192) > TCP reno registered > checking if image is initramfs... it is > Freeing initrd memory: 8336k freed > audit: initializing netlink socket (disabled) > audit(1204798687.726:1): initialized > VFS: Disk quotas dquot_6.5.1 > Dquot-cache hash table entries: 512 (order 0, 4096 bytes) > ksign: Installing public key data > Loading keyring > io scheduler noop registered > io scheduler anticipatory registered > io scheduler deadline registered > io scheduler cfq registered (default) > pci_hotplug: PCI Hot Plug PCI Core version: 0.5 > rtc: IRQ 8 is not free. > Non-volatile memory driver v1.2 > Linux agpgart interface v0.102 (c) Dave Jones > RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize > input: Macintosh mouse button emulation as /class/input/input0 > Xen virtual console successfully installed as xvc0 > Event-channel device installed. > usbcore: registered new interface driver hiddev > usbcore: registered new interface driver usbhid > drivers/usb/input/hid-core.c: v2.6:USB HID core driver > PNP: No PS/2 controller found. Probing ports directly. > i8042.c: No controller found. > mice: PS/2 mouse device common for all mice > TCP bic registered > Initializing XFRM netlink socket > NET: Registered protocol family 1 > NET: Registered protocol family 17 > XENBUS: Device with no driver: device/vbd/2049 > XENBUS: Device with no driver: device/vif/0 > XENBUS: Device with no driver: device/console/0 > drivers/rtc/hctosys.c: unable to open rtc device (rtc0) > Freeing unused kernel memory: 200k freed > Write protecting the kernel read-only data: 981k > Red Hat nash version 6.0.19 starting > Mounting proc filesystem > Mounting sysfs filesystem > Creating /dev > Creating initial device nodes > Setting up hotplug. > Creating block device nodes. > Loading scsi_mod.ko module > SCSI subsystem initialized > Loading sd_mod.ko module > Loading xenblk.ko module > register_blkdev: cannot get major 8 for sd > vbd vbd-2049: 19 xlvbd_add at /local/domain/0/backend/vbd/22/2049 > register_blkdev: cannot get major 8 for sd > vbd vbd-2049: 19 xlvbd_add at /local/domain/0/backend/vbd/22/2049 > XENBUS: Timeout connecting to device: device/vbd/2049 (state 6) > Loading ehci-hcd.ko module > Loading ohci-hcd.ko module > Loading uhci-hcd.ko module > USB Universal Host Controller Interface driver v3.0 > Loading mbcache.ko module > Loading jbd.ko module > Loading ext3.ko module > Loading libata.ko module > Loading ahci.ko module > Waiting for driver initialization. > Loading ata_generic.ko module > Loading usb-storage.ko module > Initializing USB Mass Storage driver... > usbcore: registered new interface driver usb-storage > USB Mass Storage support registered. > Waiting for driver initialization. > stabilized: stat /proc/bus/usb/devices: No such file or directory > Loading xennet.ko module > netfront: Initialising virtual ethernet driver. > netfront: device eth0 has copying receive path. > Loading xenbus_be.ko module > Loading xenblktap.ko module > Creating root device. > Mounting root filesystem. > mount: could not find filesystem ''/dev/root'' > Setting up other filesystems. > Setting up new root fs > setuproot: moving /dev failed: No such file or directory > no fstab.sys, mounting internal defaults > setuproot: error mounting /proc: No such file or directory > setuproot: error mounting /sys: No such file or directory > Switching to new root and running init. > unmounting old /dev > unmounting old /proc > unmounting old /sys > switchroot: mount failed: No such file or directory > Booting has failed. > Kernel panic - not syncing: Attempted to kill init! > -------------------------- > End Complete output > -------------------------- > > -- > Fedora-xen mailing list > Fedora-xen@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-xen > >-- View this message in context: http://www.nabble.com/Guest-boots-OK-with-ATA-disk-%28hdX%29-but-not-SCSI-%28sdX%29.-tp15870405p17078127.html Sent from the Fedora Xen mailing list archive at Nabble.com.