From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Maloney Subject: Re: Fwd: Dom0 can't boot properly Date: Wed, 10 Apr 2013 09:29:48 +0200 Message-ID: <516514EC.3050704@brockmann-consult.de> References: <20130409194307.GA2114@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6290962866268600439==" Return-path: In-Reply-To: <20130409194307.GA2114@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: Mina Jafari , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============6290962866268600439== Content-Type: multipart/alternative; boundary="------------080904090702070302040506" This is a multi-part message in MIME format. --------------080904090702070302040506 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 2013-04-10 08:45, Mina Jafari wrote: (he seemed to send this to me and not the list) > I couldn't find config file in /boot or the other place but it's the > config file I used to compile kernel with,and I've tried changing xen > related features in config and compiled kernel over and over but > nothing happened! > > grep -i xen /home/MJina/linux-3.2.7/.config > CONFIG_XEN=y > ... > CONFIG_XEN_DEV_EVTCHN=m > ... > I previously said that it won't work even when I mannually start the > services, but if I modprobe xen-evtchn first and try to start services > even thought it says xenstored cannot be started but xend restarts > successfully and xen works. > #modprobe xen-evtchn > # /etc/init.d/xend restart > # /etc/init.d/xencommons start > Starting xenstored................................. > Could not start xenstored > # /etc/init.d/xendomains start >> ... >> I suspect your kernel is not compiled with the xen dom0 options. >> >> Probably you will find some answers here: >> http://wiki.xen.org/wiki/Mainline_Linux_Kernel_Configs Okay so then as suspected, your kernel is not exactly according to spec for a dom0 kernel. The page I linked says you need: CONFIG_XEN_DEV_EVTCHN=y but you have CONFIG_XEN_DEV_EVTCHN=m Do some other comparisons and see what else is wrong. Since "modprobe" lets you start xend, probably that is equivalent to =y, but something else is likely wrong. And if those wrong lines are =m instead of "# ... is not set" then you can probably modprobe them too (for testing at least... and then recompile with =y later) (also I think you're missing CONFIG_X86_IO_APIC=y ... make sure to do a full compare) eg. What i would try first is copy and paste all the dom0 and domu options from the page into a file, then sort the file with sort xenwikidom0config > xenwikidom0configsorted then do the same with your config, and then do a diff or I'd write a bash script that takes the key name (before the =) from the xen wiki page config, and greps your config for the option to see what the setting is. And after you resolve this, you should report to whoever created your kernel config that it should be fixed. (or is that you?) On 2013-04-09 21:43, Konrad Rzeszutek Wilk wrote: > On Tue, Apr 09, 2013 at 03:24:40PM +0430, Mina Jafari wrote: >> Hi all, >> I have compiled xen 4.1.2 on Fedora 13 and kernel 3.2.7 as dom0,but >> whenever I try to start it,it got stuck because can't start xenstored. if I > Why are you using such an old version of Fedora? If ou update to > F17 or F18 you have Xen out of the box. > Yes, I agree with that also... and upgrading a Linux distro release is easy. --------------080904090702070302040506 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 2013-04-10 08:45, Mina Jafari wrote:    (he seemed to send this to me and not the list)
I couldn't find config file in /boot or the other place but it's the
config file I used to compile kernel with,and I've tried changing xen
related features in config and compiled kernel over and over but
nothing happened!

grep -i xen /home/MJina/linux-3.2.7/.config
CONFIG_XEN=y
...
CONFIG_XEN_DEV_EVTCHN=m
...
I previously said that it won't work even when I mannually start the
services, but if I modprobe xen-evtchn first and try to start services
even thought it says xenstored cannot be started but xend restarts
successfully and xen works.
#modprobe xen-evtchn
# /etc/init.d/xend restart
# /etc/init.d/xencommons start
Starting xenstored.................................
Could not start xenstored
# /etc/init.d/xendomains start
...
I suspect your kernel is not compiled with the xen dom0 options.

Probably you will find some answers here:
http://wiki.xen.org/wiki/Mainline_Linux_Kernel_Configs
Okay so then as suspected, your kernel is not exactly according to spec
for a dom0 kernel. The page I linked says you need:
CONFIG_XEN_DEV_EVTCHN=y
but you have
CONFIG_XEN_DEV_EVTCHN=m

 Do some other comparisons and see what else is wrong. Since "modprobe"
lets you start xend, probably that is equivalent to =y, but something
else is likely wrong. And if those wrong lines are =m instead of "# ...
is not set" then you can probably modprobe them too (for testing at
least... and then recompile with =y later)

(also I think you're missing CONFIG_X86_IO_APIC=y ... make sure to do a full compare)

eg. What i would try first is copy and paste all the dom0 and domu options from the
page into a file, then sort the file with
sort xenwikidom0config > xenwikidom0configsorted
then do the same with your config, and then do a diff

or I'd write a bash script that takes the key name (before the =) from
the xen wiki page config, and greps your config for the option to see
what the setting is.


And after you resolve this, you should report to whoever created your
kernel config that it should be fixed. (or is that you?)



On 2013-04-09 21:43, Konrad Rzeszutek Wilk wrote:
On Tue, Apr 09, 2013 at 03:24:40PM +0430, Mina Jafari wrote:
Hi all,
I have compiled xen 4.1.2 on Fedora 13 and  kernel 3.2.7 as dom0,but
whenever I try to start it,it got stuck because can't start xenstored. if I
Why are you using such an old version of Fedora? If ou update to
F17 or F18 you have Xen out of the box.


Yes, I agree with that also... and upgrading a Linux distro release is easy.




--------------080904090702070302040506-- --===============6290962866268600439== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============6290962866268600439==--