mkinitrd.yaird error while installing xen

Discussion in 'Installation/Configuration' started by fmanders, Aug 8, 2007.

  1. fmanders

    fmanders New Member

    Hello, when i follow the "The Perfect Xen 3.1.0 Setup For Debian Etch (i386)" everything works fine untill i get to this :

    # mkinitrd.yaird -o /boot/initrd.img-2.6.18-xen 2.6.18-xen

    when i use that command i get the following error :
    yaird error: block device '/dev/hda1' unavailable (/etc/fstab:5) (fatal)

    been looking on google, but cant find someone with the same error, so i'm hoping any of you guys know ?

    Greets,

    Ferry.
     
  2. geekman

    geekman New Member

    Looks like either your fstab file isn't setup correctly, or you are trying to use a partition that doesn't exist. Could you post the /etc/fstab file and the output of fdisk -l (L)?

    Thanks.
     
  3. fmanders

    fmanders New Member

    /etc/fstab
    Code:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    /dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
    /dev/hda5       none            swap    sw              0       0
    /dev/hdd        /media/cdrom0   iso9660 ro,user,noauto  0       0
    
    fdisk -l
    Code:
    Disk /dev/sda: 80.0 GB, 80032038912 bytes
    255 heads, 63 sectors/track, 9730 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        9400    75505468+  83  Linux
    /dev/sda2            9401        9730     2650725    5  Extended
    /dev/sda5            9401        9730     2650693+  82  Linux swap / Solaris
    
     
  4. geekman

    geekman New Member

    Did you use some sort of guide to setup fstab? Because it looks as though it's been setup for use on a different system. All your drives are sda (sata I think?) too tired to elaborate on what you'd need right now...but I can in the morning if nobody else catches it.

    Thanks.
     
  5. fmanders

    fmanders New Member

    Thanks for your help sofar.

    the system is installed fresh (about a year ago) updated from sarge to etch few days ago. the kernel was originally made on a other server, but the hardware is identical.
     
  6. geekman

    geekman New Member

    Ok I think this is what you need, the only thing i'm not too sure about is /dev/sda1...does that mount to /boot? I assume so because that partition is the only bootable one.

    Code:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    /dev/sda1     /boot        ext3    defaults,errors=remount-ro 0       1
    /dev/sda5     none            swap    sw              0       0
    /dev/sda2     /      ext3    defaults,errors=remount-ro 0       1
    
    Thanks.
     
  7. fmanders

    fmanders New Member

    yes i changed the fstab now and the install works :)

    only now i'm walking into this error, when i create a new image and try to start it i get :

    Error: Unable to connect to xend: No such file or directory. Is xend running?

    ps gives :

    Code:
    # ps aux | grep xen
    root        13  0.0  0.0      0     0 ?        S<   02:03   0:00 [xenwatch]
    root        14  0.0  0.0      0     0 ?        S<   02:03   0:00 [xenbus]
    root      3254  0.0  0.0   2096   812 ?        S    02:03   0:00 xenstored --pid-file /var/run/xenstore.pid
    root      3259  0.0  0.1   9624  5272 ?        S    02:03   0:00 python /usr/sbin/xend start
    root      3261  0.0  0.0  10188   516 ?        S    02:03   0:00 xenconsoled
    root      3262  0.0  0.0  10188   516 ?        S    02:03   0:00 xenconsoled
    root      3263  0.0  0.0  10188   516 ?        S    02:03   0:00 xenconsoled
    root      3264  0.0  0.2  12044  6064 ?        S    02:03   0:00 python /usr/sbin/xend start
    root      3268  0.0  0.2  12044  6064 ?        S    02:03   0:00 python /usr/sbin/xend start
    root      3269  0.0  0.2  12044  6064 ?        S    02:03   0:00 python /usr/sbin/xend start
    root      4946  0.0  0.0   1864   624 pts/1    S+   23:09   0:00 grep xen
    
    /var/log/xen/xend.log shows me :
    Code:
    [2007-08-09 02:02:21 3258] INFO (__init__:1072) Xend stopped due to signal 15.
    [2007-08-09 02:03:31 3264] INFO (__init__:1072) Xend Daemon started
    [2007-08-09 02:03:31 3264] INFO (__init__:1072) Xend changeset: unavailable .
    [2007-08-09 02:03:31 3264] INFO (__init__:1072) Xend version: Unknown.
    [2007-08-09 02:03:31 3264] ERROR (__init__:1072) Exception starting xend ((13, 'Permission denied'))
    Traceback (most recent call last):
      File "/usr/lib/python/xen/xend/server/SrvDaemon.py", line 345, in run
        servers = SrvServer.create()
      File "/usr/lib/python/xen/xend/server/SrvServer.py", line 254, in create
        root.putChild('xend', SrvRoot())
      File "/usr/lib/python/xen/xend/server/SrvRoot.py", line 40, in __init__
        self.get(name)
      File "/usr/lib/python/xen/web/SrvDir.py", line 82, in get
        val = val.getobj()
      File "/usr/lib/python/xen/web/SrvDir.py", line 52, in getobj
        self.obj = klassobj()
      File "/usr/lib/python/xen/xend/server/SrvNode.py", line 30, in __init__
        self.xn = XendNode.instance()
      File "/usr/lib/python/xen/xend/XendNode.py", line 658, in instance
        inst = XendNode()
      File "/usr/lib/python/xen/xend/XendNode.py", line 83, in __init__
        self.other_config["xen_pagesize"] = self.xeninfo_dict()["xen_pagesize"]
      File "/usr/lib/python/xen/xend/XendNode.py", line 622, in xeninfo_dict
        return dict(self.xeninfo())
      File "/usr/lib/python/xen/xend/XendNode.py", line 572, in xeninfo
        info['xen_scheduler'] = self.xenschedinfo()
      File "/usr/lib/python/xen/xend/XendNode.py", line 562, in xenschedinfo
        sched_id = self.xc.sched_id_get()
    Error: (13, 'Permission denied')
    
     
  8. falko

    falko Super Moderator

    Do you get any error messages when you run
    Code:
    /etc/init.d/xend restart
    ?
     
  9. fmanders

    fmanders New Member

    nope, no error messages, it also runs according to ps.

    altho it seems it gets a permission error at some point, but doesn't crash because of it.
     
  10. falko

    falko Super Moderator

    Did you try to restart it as root?

    What's the output of
    Code:
    ls -l /etc/xen/xend-config.sxp
    ?
     
  11. fmanders

    fmanders New Member

    yes i tried to restart it with root, also rebooted the machine multiple times now.


    ls -l /etc/xen/xend-config.sxp gives :
    Code:
    -rw-r--r-- 1 root root 7028 2007-05-18 16:38 /etc/xen/xend-config.sxp
    
     
  12. falko

    falko Super Moderator

    Looks ok. And what's the output of
    Code:
    ls -la /etc/xen
    ?
     
  13. fmanders

    fmanders New Member

    Code:
    total 92
    drwxr-xr-x  4 root root 4096 2007-05-18 16:57 .
    drwxr-xr-x 82 root root 4096 2007-08-09 02:03 ..
    drwxr-xr-x  2 root root 4096 2007-05-18 16:54 auto
    -rwxr-xr-x  1 root root  156 2007-05-18 16:38 qemu-ifup
    drwxr-xr-x  2 root root 4096 2007-05-18 16:54 scripts
    -rw-r--r--  1 root root  590 2007-08-08 23:09 xen1.blackring.lan.cfg
    -rw-r--r--  1 root root 7028 2007-05-18 16:38 xend-config.sxp
    -rw-r--r--  1 root root 7001 2007-05-18 16:38 xend-config-xenapi.sxp
    -rw-r--r--  1 root root 1256 2007-05-18 16:38 xend-pci-permissive.sxp
    -rw-r--r--  1 root root 4129 2007-05-18 16:38 xend-pci-quirks.sxp
    -rw-r--r--  1 root root 1545 2007-05-18 16:38 xm-config-xenapi.xml
    -rw-r--r--  1 root root 1559 2007-05-18 16:38 xm-config.xml
    -rw-r--r--  1 root root 6434 2007-05-18 16:38 xmexample1
    -rw-r--r--  1 root root 7725 2007-05-18 16:38 xmexample2
    -rw-r--r--  1 root root 7660 2007-05-18 16:38 xmexample.hvm
    -rw-r--r--  1 root root 5473 2007-05-18 16:38 xmexample.vti
    
    
     
  14. falko

    falko Super Moderator

  15. fmanders

    fmanders New Member

    yeah i'm going to the DC on thursday anyway ... so i'm gonna do it from square :)
     

Share This Page