View Full Version : mkinitrd.yaird error while installing xen
fmanders
8th August 2007, 16:38
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.
geekman
8th August 2007, 16:46
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.
fmanders
8th August 2007, 16:51
/etc/fstab
# /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
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
geekman
8th August 2007, 17:14
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.
fmanders
8th August 2007, 17:33
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.
geekman
9th August 2007, 06:36
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.
# /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.
fmanders
9th August 2007, 17:49
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 :
# 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 :
[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')
falko
10th August 2007, 17:19
Do you get any error messages when you run
/etc/init.d/xend restart?
fmanders
10th August 2007, 17:47
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.
falko
10th August 2007, 18:05
Did you try to restart it as root?
What's the output of ls -l /etc/xen/xend-config.sxp?
fmanders
10th August 2007, 18:17
yes i tried to restart it with root, also rebooted the machine multiple times now.
ls -l /etc/xen/xend-config.sxp gives :
-rw-r--r-- 1 root root 7028 2007-05-18 16:38 /etc/xen/xend-config.sxp
falko
11th August 2007, 12:47
Looks ok. And what's the output of ls -la /etc/xen?
fmanders
12th August 2007, 11:26
Looks ok. And what's the output of ls -la /etc/xen?
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
falko
13th August 2007, 20:08
Seems ok.
I can't find a solution on the internet. This guy had the same problem and reinstalled Xen, now it's working: http://lists.xensource.com/archives/html/xen-users/2007-03/msg00425.html
fmanders
13th August 2007, 22:42
yeah i'm going to the DC on thursday anyway ... so i'm gonna do it from square :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.