Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unable to undersand the clear steps for installing xen
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Wed Sep 08, 2021 9:03 am    Post subject: unable to undersand the clear steps for installing xen Reply with quote

hi everyone how are you doing, hope you're doing well. i have a little problem and i hope any of you helps me solve it.
i am trying to install and configure xen correctly on my machine, i have followed the official gentoo wiki in all its steps but when i reached [url] https://wiki.gentoo.org/wiki/Xen#Building_the_kernel [/url]
i did not know how to "Go to the Xen-powered Linux kernel source" as described in the beginning since i do not know where is the xen powered kernel source, i tried to go to many directories like /usr/src/linux or with adding the different versions of the kernel and when i run
Code:
make O=~/build/domU
i get error
Code:
make[1]: Entering directory '/root/build/domU'
***
*** The source tree is not clean, please run 'make mrproper'
*** in /usr/src/linux-5.10.61-gentoo
***
make[1]: *** [/usr/src/linux-5.10.61-gentoo/Makefile:548: outputmakefile] Error 1
make[1]: Leaving directory '/root/build/domU'
make: *** [Makefile:185: __sub-make] Error 2

i do not know what to do about it and if i missed anything or if the wiki page itself misses anything, i tried to look for solutions online but they are all about other distros. i hope you help me soon
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Sep 08, 2021 9:53 am    Post subject: Reply with quote

It means
/usr/src/linux
AFTER having enabled XEN functionality and recompiled the kernel.

Are you able to boot into XEN?


I also feel the Wiki page is VERY unclear like talking to someone who already is a XEN expert.
Very unclear page
Sorry to say.
Contact them and seek clarifications
https://wiki.gentoo.org/wiki/Project:Xen

Quote:

Go to the Xen-powered Linux kernel source and, if necessary, update the configuration. It is wise to keep as many topics as possible similar to the main kernel. Then build the kernel and place the resulting vmlinuz file where you want (we assume this is /mnt/data/xen/kernel ):

What does that even mean???
_________________
:)
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Wed Sep 08, 2021 10:13 am    Post subject: Reply with quote

i am unable to boot to kernel with xen kernel the error message disappears very fast but i remembered of it xen and vga and when i looked for something similar i found Xen is relinquishing VGA console so i guess that is the error
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Sep 08, 2021 10:16 am    Post subject: Reply with quote

Do you have something like this in /usr/src/linux/.config
Code:

CONFIG_XEN=y
CONFIG_XEN_PV=y
CONFIG_XEN_512GB=y
CONFIG_XEN_PV_SMP=y
CONFIG_XEN_DOM0=y
CONFIG_XEN_PVHVM=y
CONFIG_XEN_PVHVM_SMP=y
CONFIG_XEN_PVHVM_GUEST=y
CONFIG_XEN_SAVE_RESTORE=y
# CONFIG_XEN_DEBUG_FS is not set
CONFIG_XEN_PVH=y
CONFIG_PCI_XEN=y
CONFIG_KVM_XEN=y
CONFIG_NET_9P_XEN=m
CONFIG_XEN_PCIDEV_FRONTEND=m
CONFIG_XEN_BLKDEV_FRONTEND=m
CONFIG_XEN_BLKDEV_BACKEND=m
CONFIG_XEN_SCSI_FRONTEND=m
CONFIG_NETXEN_NIC=m
CONFIG_XEN_NETDEV_FRONTEND=m
CONFIG_XEN_NETDEV_BACKEND=m
CONFIG_INPUT_XEN_KBDDEV_FRONTEND=m
CONFIG_HVC_XEN=y
CONFIG_HVC_XEN_FRONTEND=y
CONFIG_TCG_XEN=m
CONFIG_XEN_WDT=m
CONFIG_DRM_XEN=y
CONFIG_DRM_XEN_FRONTEND=m
CONFIG_XEN_FBDEV_FRONTEND=m
CONFIG_SND_XEN_FRONTEND=m
CONFIG_MMC_SDHCI_XENON=m
# Xen driver support

CONFIG_XEN_BALLOON=y
CONFIG_XEN_BALLOON_MEMORY_HOTPLUG=y
CONFIG_XEN_MEMORY_HOTPLUG_LIMIT=512
CONFIG_XEN_SCRUB_PAGES_DEFAULT=y
CONFIG_XEN_DEV_EVTCHN=m
CONFIG_XEN_BACKEND=y
CONFIG_XENFS=m
CONFIG_XEN_COMPAT_XENFS=y
CONFIG_XEN_SYS_HYPERVISOR=y
CONFIG_XEN_XENBUS_FRONTEND=y
CONFIG_XEN_GNTDEV=m
CONFIG_XEN_GNTDEV_DMABUF=y
CONFIG_XEN_GRANT_DEV_ALLOC=m
CONFIG_XEN_GRANT_DMA_ALLOC=y
CONFIG_SWIOTLB_XEN=y
CONFIG_XEN_PCIDEV_BACKEND=m
CONFIG_XEN_PVCALLS_FRONTEND=m
CONFIG_XEN_PVCALLS_BACKEND=y
CONFIG_XEN_SCSI_BACKEND=m
CONFIG_XEN_PRIVCMD=m
CONFIG_XEN_ACPI_PROCESSOR=m
CONFIG_XEN_MCE_LOG=y
CONFIG_XEN_HAVE_PVMMU=y
CONFIG_XEN_EFI=y
CONFIG_XEN_AUTO_XLATE=y
CONFIG_XEN_ACPI=y
CONFIG_XEN_SYMS=y
CONFIG_XEN_HAVE_VPMU=y
CONFIG_XEN_FRONT_PGDIR_SHBUF=m
CONFIG_XEN_UNPOPULATED_ALLOC=y
# end of Xen driver support


?
What is the output of
Code:

grep -i xen /usr/src/linux/.config

?
_________________
:)


Last edited by alamahant on Wed Sep 08, 2021 10:22 am; edited 1 time in total
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Wed Sep 08, 2021 10:22 am    Post subject: Reply with quote

if you are asking if i activated all the required configs in my kernel then yes, i followed the wiki as it exactly says
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Sep 08, 2021 10:24 am    Post subject: Reply with quote

Did you enable all the xen services and xen-configured grub?
Before we can even start to talk about this "domU" you need to first boot into xen no?
Plz first do the booting and then further post in the forums.
_________________
:)
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Wed Sep 08, 2021 10:28 am    Post subject: Reply with quote

i enabled the services and regenerated the grub boot list and xen appeared
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Sep 08, 2021 10:31 am    Post subject: Reply with quote

Perfect.
Did it boot?
_________________
:)
Back to top
View user's profile Send private message
abdus
Apprentice
Apprentice


Joined: 10 Feb 2021
Posts: 189
Location: bandung

PostPosted: Wed Sep 08, 2021 11:03 am    Post subject: Reply with quote

when i ran
Code:

grep -i xen /usr/src/linux/.config

i found some features not activated, should i activate them?? i followed the wiki, and activated those there. maybe i need to activate the ones that are not activated when running that command above
_________________
i would like to thank everyone that contributed to the gentoo project in any means
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Sep 08, 2021 11:07 am    Post subject: Reply with quote

Yes but did it boot?
It might be the case that your kernel lacks config in other areas also not only xen.
_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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