LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-21-2007, 04:10 PM   #1
sysslack_linux
LQ Newbie
 
Registered: Oct 2007
Location: Sweden
Distribution: I favor Slackware, CentOS and Debian
Posts: 25

Rep: Reputation: Disabled
xensource slackware 12 domU kernel panic


I understand almost everything from this guide below, but am little confused about why I got kernel panic.
Is it because of xfs filesystem, or is it wrong modules?
How do I make an initrd of a guestOS ?

I have followed this excellent guide:

http://wiki.xensource.com/xenwiki/Ho...XenOnSlackware

I start successfully with the kernel

this is my grub

title Xen
root (hd0,1)
kernel /boot/xen.gz dom0_mem=525288
module /boot/vmlinuz-2.6.16.29-xen root=/dev/hda11 ro
module /boot/xend.gz
1. booting system

uname -r
2.6.16.29-xen

2. xm create zen.cfg -c

Error;
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,2)



Can I use the same kernel for my guestOS (domU) as for my hostOS (dom0) ?
Because I only found 1 image (vmlinuz-2.6.16.29-xen)



This I have done:

mkinitrd -c -k 2.6.16.29-xen -m jbd:ext3:ide-cd:ide-disk:ide-generic:libata:jfs -o /boot/xend.gz -s /boot/xend-tree

can I copy the kernelimage vmlinuz-2.6.16.29-xen and rename it to vmlinuz-2.6.16.29-xenU





this is my zen.cfg (domU)

kernel = "/boot/vmlinuz-2.6.16.29-xen"
memory = 256
name = "zenwalk"
vif = [ 'mac=aa:00:00:00:00:11']
disk = [ 'phy:hda2,hda2,w' ]
dhcp = "dhcp"
root = "/dev/hda2 ro"
extra = "4"

this I my fstab (domU)

/dev/sda6 swap swap defaults 0 0
/dev/sda2 / xfs defaults,noatime 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/sr0 /mnt/dvd iso9660,udf noauto,users,ro 0 0
/dev/sr1 /mnt/dvd1 iso9660,udf noauto,users,ro 0 0


Help would be appreciated ?

Last edited by sysslack_linux; 10-21-2007 at 04:13 PM.
 
Old 10-21-2007, 04:16 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,035

Rep: Reputation: Disabled
Quote:
name = "zenwalk"
This is a Slackware forum you know... not Zenwalk.

Furthermore I would compile a kernel specific to Zenwalk (or Slackware if you would rather use that) to be used in the domU. That 2.6.16.29 kernel is not a release Slackware has ever used.

Eric
 
Old 10-28-2007, 01:34 PM   #3
sysslack_linux
LQ Newbie
 
Registered: Oct 2007
Location: Sweden
Distribution: I favor Slackware, CentOS and Debian
Posts: 25

Original Poster
Rep: Reputation: Disabled
solved

Thanks for your advice!

After some struggle and trial and error, problem is solved,
and want to share it with you:

What I did to make it work:

mkinitrd -c -k 2.6.16.29-xen -m ext3:xfs:jbd -s /boot/yen-tree -o /boot/yen.gz -f xfs -r /dev/hda2

The thing was that the initrd was pointing to the wrong partition.And also think depending on system and what you want to do with it you need to load the right number of modules.

Hope this helps somebody else :-)

Last edited by sysslack_linux; 10-28-2007 at 01:36 PM.
 
1 members found this post helpful.
Old 09-18-2008, 11:33 AM   #4
xrado
Member
 
Registered: Dec 2004
Distribution: Zenwalk/Slackware
Posts: 98

Rep: Reputation: 15
hi there

i tried your example to bild initrd but i still cant boot dom0

i get :

mounting /dev/sda1 on /mnt failed: no device
no /sbin/init found on rootdev ...

im using xfs and look there is not enough modules loaded at start
i thing so

can any one help
 
Old 09-25-2008, 12:23 PM   #5
sysslack
Member
 
Registered: Feb 2006
Posts: 65

Rep: Reputation: 15
Hi

I found out when working on it that one of the problem can be /etc/fstab on the mounted share.
It could be that easy that in grubb you have typed hda
and in /etc/fstab you have sda instead.
So solution can be to have sda as partion in both grub and fstab.
 
Old 09-25-2008, 03:24 PM   #6
xrado
Member
 
Registered: Dec 2004
Distribution: Zenwalk/Slackware
Posts: 98

Rep: Reputation: 15
no no i had sda in both files
i think thet might be the kernel problem
i had my system installed with 2.6.25 kernel which make disk as sdX devices but xen kernel 2.6.18 make them hdX

maybe this could be it?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic with 2.6.18.1 on Slackware 11 salviadud Slackware 10 10-19-2006 10:51 AM
Kernel Panic with Slackware 11 streetsmart Slackware 3 10-17-2006 02:50 PM
Slackware Kernel Panic! Heretic1 Linux - Newbie 0 10-27-2003 09:35 PM
Slackware 8.1 -- Kernel panic appler Slackware 4 03-19-2003 02:59 PM


All times are GMT -5. The time now is 06:40 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration