Many thanks to all for the responses. It certainly looks like I have a problem with the initrd. (Which has at least allowed me to rule out my other suspicions!!) I''ll look into the initrd creation a little more carefully and post back what I find. If a compressed domU appears on Xenstuff, I''ll certainly give it a whirl!!! I also have another machine up and running with Xen 3.0 Given that this doesn''t look like an issue with mismatched dom0/domU versions (one of my now defunct theories), I''ll see what I can get running on there aswell. Owen -----Original Message----- From: N Clements [mailto:optionc.ltd@gmail.com] Sent: 15 February 2006 16:09 To: Owen Campbell Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] Xen and OpenSSI On 2/14/06, Owen Campbell <owen@empiria.co.uk> wrote:> > > Hi All, > > I''m trying to get OpenSSI working on Xen and have hit a problem. > > I''m following the instructions at > http://openssi.org/cgi-bin/view?page=docs2/1.9/debian/xen-howto.txt > and also the document at > http://www.option-c.com/xwiki/OpenSSI > > I''ve got as far as booting the domU with the OpenSSI kernel and I get > "Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(1,0)"I remember seeing that problem when originally writing the wiki page at Option-C. If I remember, it occurred because the initrd image hadn''t been created correctly. One of the problems I had was that the image wasn''t being compressed -- the domU didn''t have enough memory. Another was that the root device was different inside the domU versus outside (/dev/sda1 vs. /dev/hda1). It doesn''t look as if that''s your problem.> My base Xen installation is 2.07 on Debian Sarge using the packagesfrom> option-c and I used the pre-built OpenSSI kernel. > > My config file for the domU is: > > #kernel = "/boot/xen-linux-2.6.11-ocxenu" > > kernel = "......./xenU-vmlinuz" > > ramdisk = "........./initrd" > > memory = 64 > > name = "<hostname>" > > disk = [''file........img,hda1,w'',''file.........img,hda2,w''] > > root = "/dev/hda1 ro" > > # > > vif = [''mac=AA:00:00:18:94:FB''] > > and /etc/fstab on the domU is > > # Begin /etc/fstab > > # <file system> <mount point> <type> <options> > > > /dev/hda1 / ext3 > defaults,errors=remount-ro,node=1 0 > > /dev/hda2 swap swap sw,node=1 0 0 > > proc /proc proc defaults,node=* 0 0 > > # End /etc/fstab > > Does anyone have any ideas as to where I''ve gone wrong?Everything here looks fine. Check the ramdisk image. If you like, I could probably compress down a domU and upload it somewhere (probably to the XenStuff project on sourceforge). -N _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ok, I tried from scratch again and here''s where I got to..... When I run ''mkinitrd -o /tmp/initrd'', I get cpio: initrd/lib/libc.so.6 not created: newer or same age version exists cpio: initrd/lib/libcluster.so.0 not created: newer or same age version exists 4584+0 records in 4584+0 records out 4694016 bytes transferred in 0.291641 seconds (16095183 bytes/sec) All of your loopback devices are in use! And initrd is created in the /tmp directory If I run ''modprobe loop'' I get modprobe: Can''t open dependencies file /lib/modules/2.6.11-ocxenu/modules.dep (No such file or directory) So it looks like you were all correct and the problem is initrd creation!!! I''m afraid I''ve always avoided kernel building, so this is all a bit new to me. Any ideas how I get the initrd created? Owen -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of master@bradleyland.com Sent: 14 February 2006 19:02 To: Owen Campbell Cc: xen-users@lists.xensource.com Subject: [Xen-users] Xen and OpenSSI Just so you know it works, it does :) as I was able to get OpenSSI running under XEN 2.0.7. I know I had the same issue as you are seeing and I''m trying to remember what I did. I think it has to do with the initrd not being created correctly. My OpenSSI/Xen config looks like: name="openssi1" memory=128 kernel="/boot/vmlinuz-2.6.10-xenU-openssi" ramdisk="/boot/initrd-deb-xen-openssi2" nics=1 vif = [''mac=AA:00:00:18:98:FB''] disk=[''file:/opt/xen-images/deb_openssi2,sda1,w'',''file:/opt/xen-images/d eb_openssi1_swap,sda2,w''] root="/dev/sda1 ro" _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
You need to make sure you''ve got the appropriate modules inside the domU. Look in the /lib/modules directory. If there''s nothing in there then you''ll need to copy them from the dom0. Either shut down the domU, mount the image/device with the root vbd and copy them across, or scp/ftp them in. For example (from the dom0, assuming the domU is not running): # mkdir /mnt/domU # mount -o loop /images/domU.img /mnt/domU # cp -dpR /lib/modules/2.6.11-ocxenu /mnt/domU/lib/modules # umount /mnt/domU Reboot your domU. Then try the modprobe function again. After that mkinitrd ought to work. On 2/16/06, Owen Campbell <owen@empiria.co.uk> wrote:> Ok, I tried from scratch again and here''s where I got to..... > > When I run ''mkinitrd -o /tmp/initrd'', I get > > cpio: initrd/lib/libc.so.6 not created: newer or same age version exists > cpio: initrd/lib/libcluster.so.0 not created: newer or same age version > exists > 4584+0 records in > 4584+0 records out > 4694016 bytes transferred in 0.291641 seconds (16095183 bytes/sec) All > of your loopback devices are in use! > > And initrd is created in the /tmp directory > > If I run ''modprobe loop'' I get > > modprobe: Can''t open dependencies file > /lib/modules/2.6.11-ocxenu/modules.dep (No such file or directory) > > So it looks like you were all correct and the problem is initrd > creation!!! > > I''m afraid I''ve always avoided kernel building, so this is all a bit new > to me. Any ideas how I get the initrd created? > > Owen_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
All working!! Many thanks to all who helped. I''ve now got my virtual cluster all up and running - I ended up using 2 config files for each domU; one to boot standalone using 2.6.11-ocxenu and one to boot using clustering. The first allows me to create ramdisks etc in order to get the second working. Next steps, webview and drbd!!!! Owen -----Original Message----- From: N Clements [mailto:optionc.ltd@gmail.com] Sent: 16 February 2006 17:01 To: Owen Campbell Cc: xen-users@lists.xensource.com Subject: Re: FW: [Xen-users] Xen and OpenSSI You need to make sure you''ve got the appropriate modules inside the domU. Look in the /lib/modules directory. If there''s nothing in there then you''ll need to copy them from the dom0. Either shut down the domU, mount the image/device with the root vbd and copy them across, or scp/ftp them in. For example (from the dom0, assuming the domU is not running): # mkdir /mnt/domU # mount -o loop /images/domU.img /mnt/domU # cp -dpR /lib/modules/2.6.11-ocxenu /mnt/domU/lib/modules # umount /mnt/domU Reboot your domU. Then try the modprobe function again. After that mkinitrd ought to work. On 2/16/06, Owen Campbell <owen@empiria.co.uk> wrote:> Ok, I tried from scratch again and here''s where I got to..... > > When I run ''mkinitrd -o /tmp/initrd'', I get > > cpio: initrd/lib/libc.so.6 not created: newer or same age versionexists> cpio: initrd/lib/libcluster.so.0 not created: newer or same ageversion> exists > 4584+0 records in > 4584+0 records out > 4694016 bytes transferred in 0.291641 seconds (16095183 bytes/sec) All > of your loopback devices are in use! > > And initrd is created in the /tmp directory > > If I run ''modprobe loop'' I get > > modprobe: Can''t open dependencies file > /lib/modules/2.6.11-ocxenu/modules.dep (No such file or directory) > > So it looks like you were all correct and the problem is initrd > creation!!! > > I''m afraid I''ve always avoided kernel building, so this is all a bitnew> to me. Any ideas how I get the initrd created? > > Owen_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users