View previous topic :: View next topic |
Author |
Message |
umka69 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/138337435952f4eb6b48c9a.jpg)
Joined: 31 Mar 2013 Posts: 124
|
Posted: Sat Aug 17, 2013 6:38 am Post subject: xen dom0 kernel [SOLVED] |
|
|
Hi. I have small problem with kernel. I emerged xen and xen-tools than I tried to add xen to my kernel. But... I have this...
Code: |
# cat /usr/src/linux-3.8.13-gentoo/.config | grep XEN
NOTHING!!!
|
How to fix it? Why is it going on?
Last edited by umka69 on Sat Aug 17, 2013 5:03 pm; edited 2 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TomWij Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/1954238885331cf05df9c1.jpg)
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Sat Aug 17, 2013 7:32 am Post subject: |
|
|
How did you add xen to the kernel? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
umka69 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/138337435952f4eb6b48c9a.jpg)
Joined: 31 Mar 2013 Posts: 124
|
Posted: Sat Aug 17, 2013 2:19 pm Post subject: |
|
|
I am going to do it, but there aren't any xen options in kernel sources. How can I get gentoo-sources with xen? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TomWij Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/1954238885331cf05df9c1.jpg)
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Sat Aug 17, 2013 3:20 pm Post subject: |
|
|
You need to search for XEN with the / key and then see what it depends on, probably one of its dependencies hasn't been enabled. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
umka69 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/138337435952f4eb6b48c9a.jpg)
Joined: 31 Mar 2013 Posts: 124
|
Posted: Sat Aug 17, 2013 3:48 pm Post subject: |
|
|
Can you explain about /? How can I search for dependences? I don't understand.
If it matters... I already add use flag xen and update my system. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TomWij Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/1954238885331cf05df9c1.jpg)
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Sat Aug 17, 2013 4:05 pm Post subject: |
|
|
umka69 wrote: | Can you explain about /? How can I search for dependences? I don't understand. |
If you press that key in the menuconfig, it will allow you type XEN and then you can hit enter and see search results (scroll with the page down key). Then for the XEN config variables you will see information about what it depends on. So, let's say it lists that it wants A && B && !C || D && !F then that means that it will become available if you have 1) A enabled, B enabled and C disabled or when you have 2) D enabled and F disabled. So, then you could for example pick option 2 and then you need to go ensure that D is enabled and F is disabled in your kernel; after that, you will be able to enable the option.
So, for XEN on x86 on amd64 you will find that it needs PARAVIRT && (X86_64 || (X86_32 && X86_PAE && !X86_VISWS)) && X86_TSC. Thus, as a start enable PARAVIRT and X86_TSC, then only if you plan to run a 32-bit kernel you will also need to ensure that X86_PAE is enabled and X86_VISWS is disabled. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
umka69 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/138337435952f4eb6b48c9a.jpg)
Joined: 31 Mar 2013 Posts: 124
|
Posted: Sat Aug 17, 2013 4:21 pm Post subject: |
|
|
Ok. I acted this way. / shows, for example, this:
Code: |
│ Symbol: XEN_COMPAT_XENFS [=n]
│ Type : boolean
│ Prompt: Create compatibility mount point /proc/xen
│ Defined at drivers/xen/Kconfig:99
│ Depends on: XEN [=n] && XENFS [=n]
│ Location:
│ (1) -> Device Drivers
│ -> Xen driver support
│ -> Xen filesystem (XENFS [=n]
|
But there isn't any Xen driver support in Device Drivers...
This is the problem. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TomWij Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/1954238885331cf05df9c1.jpg)
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Sat Aug 17, 2013 4:33 pm Post subject: |
|
|
Because of
Quote: | Depends on: XEN [=n] && XENFS [=n] |
so you need to enable XEN and XENFS first before you can enable XEN_COMPAT_XENFS. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
umka69 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/138337435952f4eb6b48c9a.jpg)
Joined: 31 Mar 2013 Posts: 124
|
Posted: Sat Aug 17, 2013 4:43 pm Post subject: |
|
|
How can I do this? Can I just add [code below] to .config or is it located in menuconfig?
Code: | /usr/src/linux/.config
...
CONFIG_XEN=y
CONFIG_XENFS=y
...
|
Last edited by umka69 on Sat Aug 17, 2013 4:46 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TomWij Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/1954238885331cf05df9c1.jpg)
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Sat Aug 17, 2013 4:46 pm Post subject: |
|
|
umka69 wrote: | How can I do this? |
As explained above.
umka69 wrote: | Can I just add these to .config or is it located in menuconfig? |
The .config explicitly states not to change it, they are located in the menuconfig. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
umka69 Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/138337435952f4eb6b48c9a.jpg)
Joined: 31 Mar 2013 Posts: 124
|
Posted: Sat Aug 17, 2013 5:01 pm Post subject: |
|
|
Thank you a lot! I've got it!
My mistake was not enough knowledges about menuconfig. ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|