Ernesto Rodriguez Reina
2006-Apr-12 16:52 UTC
[Xen-users] mount: unknown filesystem type ''devfs''
Hi everyone! I recently start using xen. I have compiled it and installed in a Dell PowerEdge 2800 Debian Linux box. The dom0 boots ok but i have been experimenting some problems with a LVM2-root domU similar to the one reported in http://lists.xensource.com/archives/html/xen-users/2006-03/msg00678.html but i found no way to make it work. here is may xen-dom1.cf file: kernel = "/boot/vmlinuz-2.6.12-xenU" ramdisk = "/boot/initrd.img-2.6.12-xenU" disk = [ ''phy:data/Dom1-root,sda1,w'' ] root = "/dev/sda2 ro" extra = "4" and here is what i got: mount: unknown filesystem type ''devfs'' SCSI subsystem initialized register_blkdev: cannot get major 8 for sd umount: devfs: not mounted mount: unknown filesystem type ''devfs'' umount: devfs: not mounted pivot_root: No such file or directory /sbin/init: 432: cannot open dev/console: No such file Kernel panic - not syncing: Attempted to kill init! Please, can anybody tellme where is the mistake and who to fix it? Regards, Ernesto _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Markus Schuster
2006-Apr-12 18:45 UTC
[Xen-users] Re: mount: unknown filesystem type ''devfs''
Ernesto Rodriguez Reina schrieb:> [..] > mount: unknown filesystem type ''devfs'' > SCSI subsystem initialized > register_blkdev: cannot get major 8 for sd > umount: devfs: not mounted > mount: unknown filesystem type ''devfs'' > umount: devfs: not mounted > pivot_root: No such file or directory > /sbin/init: 432: cannot open dev/console: No such file > Kernel panic - not syncing: Attempted to kill init!Do you use the default kernel images that came with XEN? If so, they don''t include devfs support and so a standard debian initrd won''t work, as it is heavily based on devfs. I get very good results using yaird as initrd toolkit. There are backports available for sarge, have a look at http://www.backports.org/. Greetings, Markus _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ernesto Rodriguez Reina
2006-Apr-13 13:50 UTC
Re: [Xen-users] Re: mount: unknown filesystem type ''devfs''
Markus Schuster wrote:>Ernesto Rodriguez Reina schrieb: > > >>[..] >>mount: unknown filesystem type ''devfs'' >>SCSI subsystem initialized >>register_blkdev: cannot get major 8 for sd >>umount: devfs: not mounted >>mount: unknown filesystem type ''devfs'' >>umount: devfs: not mounted >>pivot_root: No such file or directory >>/sbin/init: 432: cannot open dev/console: No such file >>Kernel panic - not syncing: Attempted to kill init! >> >> > >Do you use the default kernel images that came with XEN? If so, they >don''t include devfs support and so a standard debian initrd won''t work, >as it is heavily based on devfs. >I get very good results using yaird as initrd toolkit. There are >backports available for sarge, have a look at http://www.backports.org/. > >Greetings, >Markus > > >------------------------------------------------------------------------ > >_______________________________________________ >Xen-users mailing list >Xen-users@lists.xensource.com >http://lists.xensource.com/xen-users >Hi again, thanks for answering i tried yaird and i got an error again: megaraid: 2.20.4.5 (Release Date: Thu Feb 03 12:27:22 EST 2005) register_blkdev: cannot get major 8 for sd /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 /bin/cat: /sys/block/sda/dev: No such file or directory Device /sys/block/sda/dev seems to be down. I also try to use lvm2create_initrd and then got: RAMDISK: ext2 filesystem found at block 0 RAMDISK: Loading 3368KiB [1 disk] into ram disk... done. VFS: Mounted root (ext2 filesystem) readonly. Freeing unused kernel memory: 188k freed Kernel panic - not syncing: No init found. Try passing init= option to kernel. I have tried both Xen and XenU kernel but i always got a kernel panic. Any ideas? Does someone built xen from source and make work a lvm2-root domU? Regards, Ernesto _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jan-Petter Kruger
2006-Apr-13 14:30 UTC
Re: [Xen-users] mount: unknown filesystem type ''devfs''
Eernesto, I''m using lvm2 volumes , on debian sarge, in all domU''s. No problem with that. You might want to check out your xen-dom1.cf again. Your root entry points to /dev/sda2 but you are exporting sda1 to your domU. Also make sure your /etc/fstab in the domU is correct. I think yous should have something like this in xen-dom1.cf kernel = "/boot/vmlinuz-2.6.12-xenU" ramdisk = "/boot/initrd.img-2.6.12-xenU" disk = [ ''phy:data/Dom1-root,sda1,w'' ] root = "/dev/sda1 ro" extra = "4" and in /etc/fstab in the domU something like /dev/sda1 / ext3 errors=remount-ro 0 1 Regards, Jan-Petter ::-Q Ernesto Rodriguez Reina wrote:> Hi everyone! > > I recently start using xen. I have compiled it and installed in a Dell > PowerEdge 2800 Debian Linux box. The dom0 boots ok but i have been > experimenting some problems with a LVM2-root domU similar to the one > reported in > http://lists.xensource.com/archives/html/xen-users/2006-03/msg00678.html > but i found no way to make it work. > > here is may xen-dom1.cf file: > > kernel = "/boot/vmlinuz-2.6.12-xenU" > ramdisk = "/boot/initrd.img-2.6.12-xenU" > disk = [ ''phy:data/Dom1-root,sda1,w'' ] > root = "/dev/sda2 ro" > extra = "4" > > and here is what i got: > > mount: unknown filesystem type ''devfs'' > SCSI subsystem initialized > register_blkdev: cannot get major 8 for sd > umount: devfs: not mounted > mount: unknown filesystem type ''devfs'' > umount: devfs: not mounted > pivot_root: No such file or directory > /sbin/init: 432: cannot open dev/console: No such file > Kernel panic - not syncing: Attempted to kill init! > > Please, can anybody tellme where is the mistake and who to fix it? > > Regards, > Ernesto > > _______________________________________________ > 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
Markus Schuster
2006-Apr-13 21:02 UTC
[Xen-users] Re: mount: unknown filesystem type ''devfs''
Ernesto Rodriguez Reina schrieb:> Hi again, thanks for answering i tried yaird and i got an error again: > [..]Ah, sorry, I''ve missread your post, I thought you have problems booting dom0, but it''s a domU... Then the first you should do is to chech your "root=.." entry like Jan-Petter Kruger suggested. If you still want to give yaird a try, I had a look how I did it and here are my domU yaird config file and (a bit hackish) the templates file. But be warned, the root device is hardcoded to /dev/hda1 and xfs as filesystem. Have a look at the "TEMPLATE postlude" section. (The problem is, that XEN doesn''t provide a "hda" if you export a block device hda1, but yaird depends on that). Hope it helps. Greetings, Markus <domU.cfg> CONFIG FORMAT cpio TEMPLATE FILE "/etc/yaird/Templates-domU.cfg" GOALS TEMPLATE prologue OPTIONAL MODULE fbcon MODULE xfs TEMPLATE postlude END GOALS END CONFIG </domU.cfg> <Templates-domU.cfg> TEMPLATE SET TEMPLATE prologue BEGIN FILE "/dev/null" FILE "/dev/console" FILE "/bin/dash" FILE "/bin/cat" FILE "/bin/mkdir" FILE "/bin/mount" FILE "/bin/umount" FILE "/bin/mknod" FILE "/bin/sleep" FILE "<TMPL_VAR NAME=auxDir>/run_init" DIRECTORY "/mnt" DIRECTORY "/proc" DIRECTORY "/sys" DIRECTORY "/dev" DIRECTORY "/etc" DIRECTORY "/var" SCRIPT "/init" BEGIN !INIT_DEBUG !if [ "$INIT_DEBUG" != "" ] !then ! set -x !fi ! !mksymdev () { ! devfile="$1" ! sysfile="$2" ! cb="$3" ! devpair=$(/bin/cat "$sysfile") ! for delay in 1 2 4 8 16 ! do ! if [ "$devpair" = "" ] ! then ! echo "Waiting $delay seconds for $sysfile to show up" ! sleep $delay ! fi ! devpair=$(/bin/cat "$sysfile") ! done ! ! if [ "$devpair" = "" ] ! then ! echo "Device $sysfile seems to be down." ! echo "Debugging opportunity, type ^D to continue." ! /bin/dash ! fi ! ! maj=${devpair%:*} ! /bin/mknod "$devfile" $cb $maj $min !} !mkcdev () { ! mksymdev "$1" "/sys/class/$2/dev" c !} !mkbdev () { ! mksymdev "$1" "/sys/block/$2/dev" b !} ! !switchroot () { ! if [ "$INIT_DEBUG" != "" ] ! then ! echo "Debugging opportunity, ^D to continue." ! /bin/dash ! fi ! ! echo "Switching root ..." ! /bin/umount -n /sys ! /bin/umount -n /proc ! exec <TMPL_VAR NAME=auxDir>/run_init \ ! /mnt $init "$@" !} ! !/bin/mount -nt sysfs sysfs /sys !/bin/mount -nt proc proc /proc ! !mkcdev /dev/tty tty/tty ! !ro=-r !ip !nfsroot !init=/sbin/init !for i in $(cat /proc/cmdline) !do ! case "$i" in ! init=*) ! ;; ! ro) ! ro=-r ! ;; ! rw) ! ro ! ;; ! ip=*|nfsaddrs=*) ! ip="$ip $i" ! ;; ! nfsroot=*) ! nfsroot="$i" ! ;; ! ydebug) ! INIT_DEBUG=yes ! esac !done !if [ "$INIT_DEBUG" != "" ] !then ! set -x !fi END SCRIPT END TEMPLATE TEMPLATE insmod BEGIN FILE "<TMPL_VAR NAME=target>" FILE "/sbin/insmod" SCRIPT "/init" BEGIN !/sbin/insmod ''<TMPL_VAR NAME=target>'' <TMPL_VAR NAME=optionList> END SCRIPT END TEMPLATE TEMPLATE mkbdev BEGIN SCRIPT "/init" BEGIN !mkbdev ''<TMPL_VAR NAME=target>'' ''<TMPL_VAR NAME=sysname>'' END SCRIPT END TEMPLATE TEMPLATE mount BEGIN SCRIPT "/init" BEGIN !/bin/mount -n \ ! <TMPL_IF NAME=isRoot>$ro</TMPL_IF> \ ! -t <TMPL_VAR NAME=fsType> \ ! <TMPL_VAR NAME=options> \ ! ''<TMPL_VAR NAME=device>'' \ ! ''<TMPL_VAR NAME=target>'' END SCRIPT END TEMPLATE TEMPLATE postlude BEGIN SCRIPT "/init" BEGIN !mkbdev ''/dev/hda1'' ''hda1'' !/bin/mount -n -t xfs /dev/hda1 /mnt !switchroot "$@" END SCRIPT END TEMPLATE END TEMPLATE SET </Templates-domU.cfg> _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users