Xen problem

Discussion in 'HOWTO-Related Questions' started by teukka, Apr 15, 2007.

  1. teukka

    teukka New Member

    Hi

    I installed Debian Etch (amd64 netinstall) from the beginning and then followed Falko's howto:

    http://www.howtoforge.com/debian_sarge_xen_3.0.3

    I have root partition on /dev/sda3 and I have grub on MBR. I use 3.0.4_1 xen, thats the newest one..

    grub menu.lst look like this:

    title Xen 3.0.3 / XenLinux 2.6
    root (hd0,0)
    kernel /xen.gz dom0_mem=262144
    module /vmlinuz-2.6-xen root=/dev/sda3 ro max_loop=255
    module /initrd.img-2.6.16.33-xen

    I get this kernel panic when dom0 is trying to boot:

    SCSI subsystem initialized
    /bin/cat: /sys/block/sda/dev: no such file or directory
    waiting 1 seconds for /sys/block/sda/dev to show up
    /bin/cat: /sys/block/sda/dev: no such file or directory
    waiting 2 seconds for /sys/block/sda/dev to show up
    /bin/cat: /sys/block/sda/dev: no such file or directory
    waiting 4 seconds for /sys/block/sda/dev to show up
    /bin/cat: /sys/block/sda/dev: no such file or directory
    waiting 8 seconds for /sys/block/sda/dev to show up
    /bin/cat: /sys/block/sda/dev: no such file or directory
    waiting 16 seconds for /sys/block/sda/dev to show up
    Special files require major and minor device numbers.
    Try '/bin/mknod --help' for more information.
    /bin/cat: /sys/block/sda/sda3/dev: No such file or directory
    Waiting 1 seconds for /sys/block/sda3/dev to show up
    /bin/cat: /sys/block/sda/sda3/dev: No such file or directory
    Waiting 2 seconds for /sys/block/sda3/dev to show up
    /bin/cat: /sys/block/sda/sda3/dev: No such file or directory
    Waiting 4 seconds for /sys/block/sda3/dev to show up
    /bin/cat: /sys/block/sda/sda3/dev: No such file or directory
    Waiting 8 seconds for /sys/block/sda3/dev to show up
    /bin/cat: /sys/block/sda/sda3/dev: No such file or directory
    Waiting 16 seconds for /sys/block/sda3/dev to show up
    Device /sys/block/sda/sda3/dev seems to be down.
    /bin/mknod: missing operand after 'b'
    Special files require major and minor device numbers.
    Try '/bin/mknod --help' for more information.
    Mount: special device /dev/sda3 does not exist
    Switching root ...
    /usr/lib/yaird/exec/run_init: current directory on the same filesystem as the root: Success
    Kernel panic - not syncing: Attempt to kill Init!


    Any idea what Im doing wrong?
     
    Last edited: Apr 16, 2007
  2. falko

    falko Super Moderator

    Did you compile Xen from the sources, or did you use the Xen binaries?
    I think there's some kernel module missing (maybe the SATA driver).
     
  3. teukka

    teukka New Member

    Hi

    I compile it from the sources.. so I have to include some sata modules, how?

    Found few related pages

    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=343042 (ide problem i know)
    http://www.debian-administration.org/articles/396#comment_38

    I tried the first one but no luck, second page is not exactly the same problem (dom0 / domU)

    Is there some way to use the newest kernel from kernel.org and then patch it with some xen patch and go like that way? or is that mandatory to do it like in your howto? im sure i need some other modules too, here is lspci if that tells some information?

    00:01.0 PCI bridge: Broadcom HT1000 PCI/PCI-X bridge
    00:02.0 Host bridge: Broadcom HT1000 Legacy South Bridge
    00:02.1 IDE interface: Broadcom HT1000 Legacy IDE controller
    00:02.2 ISA bridge: Broadcom HT1000 LPC Bridge
    00:03.0 USB Controller: Broadcom HT1000 USB Controller (rev 01)
    00:03.1 USB Controller: Broadcom HT1000 USB Controller (rev 01)
    00:03.2 USB Controller: Broadcom HT1000 USB Controller (rev 01)
    00:05.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27)
    00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
    00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
    00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
    00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
    01:0d.0 PCI bridge: Broadcom HT1000 PCI/PCI-X bridge (rev b2)
    01:0e.0 RAID bus controller: Broadcom BCM5785 (HT1000) SATA Native SATA Mode
    02:01.0 PCI bridge: Intel Corporation 80331 [Lindsay] I/O processor (PCI-X Bridge) (rev 0a)
    02:03.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 10)
    02:03.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 10)
    03:0e.0 RAID bus controller: Areca Technology Corp. ARC-1110 4-Port PCI-X to SATA RAID Controller


    Im using areca as controller

    EDIT:

    and also i noticed that there is no more apt-setup (base-config) package and some other things has also changed on official etch release.. Hope Falko or someone else write new "the perfect setup for Debian etch + xen 3.0.4" howto that apply to etch and there is more debuggin on it! ;)

    thanks
    Pekka
     
    Last edited: Apr 17, 2007
  4. falko

    falko Super Moderator

    I think you can enable them somewhere during
    Code:
    make menuconfig
    But maybe it's easier to install Xen from the binaries.

    Only certain kernel version work with Xen, e.g. for Xen 3.0.3, it's kernel 2.6.16.
     
  5. teukka

    teukka New Member

    Easier maybe, but that does not support my hardware completly so thats not an option in this case.

    When following your howto (chapter 4), there is no option provided where you show where to compile dom0's kernel (before that first boot), xen source includes some prebuild kernel but that does not include all required modules/drivers so my machine wont come up after that boot..

    I installed now for testing purposes xen 3.0.3 and 2.6.18 kernel from debian etch apt sources.. so I do have 3.0.3 and kernel 2.6.18 in same machine that "works" but not like I want :/

    On my last post I was wondering that base-config thing and found this so im not the only one who has noticed these things :/

    http://kitenet.net/~joey/code/base-config/

    So I just keep looking answers and howtos.... someday... hopefully find something....
     
    Last edited: Apr 17, 2007
  6. falko

    falko Super Moderator

    Instead of
    Code:
    make menuconfig
    , it must be hidden somewhere in the menu when you run
    Code:
    make linux-2.6-xen0-config CONFIGMODE=menuconfig KERNELS="linux-2.6-xen0"
     

Share This Page