Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Grub2 & Xen
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ShiroiKuma
n00b
n00b


Joined: 09 Nov 2012
Posts: 40
Location: Japan

PostPosted: Fri Mar 01, 2013 10:42 am    Post subject: [SOLVED] Grub2 & Xen Reply with quote

I'm trying to get grub2-mkconfig to automatically add entries for Xen, as per the /etc/grub.d/20_linux_xen script. I've read elsewhere that I need to have a /boot/config-{version} file that matches my kernel, which I do. Yet it just won't add my entry for the Xen kernel.

In /boot I have
Code:

kernel-3.7.5-hardened-r1
config-3.7.5-hardened-r1
kernel-3.7.5-hardened-r1-xen
config-3.7.5-hardened-r1-xen
xen-4.2.0.gz
xen.gz -> xen-4.2.0.gz
xen-4.2.gz -> xen-4.2.0.gz
xen-4.gz -> xen-4.2.0.gz
xen-syms-4.2.0


I added the -xen kernel/config to see if it made a difference, now I just get 2 boot entries instead, but still no one generated from the 20_linux_xen script in grub.d.

Looking at that script with my very limited bash scripting skills, it looks like it should be finding those files and creating entries, but I just can't work it out. What else could be missing?

EDIT While I was posting this, I was recompiling my kernel with Xen Guest Support enabled. I re-ran grub2-mkconfig and now it works. Re-looking at the script, I can see that CONFIG_XEN_PRIVILEGED_GUEST=y is the key to Grub2 automatically detecting it.
Back to top
View user's profile Send private message
wangbj
n00b
n00b


Joined: 08 Oct 2013
Posts: 2

PostPosted: Tue Oct 08, 2013 10:32 pm    Post subject: /etc/kernels/kernel-config-x86_64-`uname -r` must exist Reply with quote

gentoo will read the configuration

CONFIG_XEN_DOM0=y
CONFIG_XEN_PRIVILEGED_GUEST=y

from /etc/kernels/kernel-config-x86_64-`uname -r`, thus this file must exist.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum