Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
older Gentoo versions?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
The_Pope
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2016
Posts: 78

PostPosted: Sun Jul 03, 2016 10:12 pm    Post subject: older Gentoo versions? Reply with quote

Hi. Hope this is the correct forum.

I want to install Gentoo as dom0 for Xen. I have no idea if current kernels (Gentoo or Vanilla) support this but I need it done on x86 without SSE2 support.

So far I tried to use the current kernels but when trying to emerge 'xen' I got an error saying unsupported architecture.

Do I have to use the old xen-sources package and a 2.6.x kernel? I would have no problem doing that, but how do I get them? I don't really need other modern luxuries, maybe just X with Xfce. And "high performance computing" as described in this tutorial.

Please help, if possible.
_________________
Stop the world. I want to descend.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Sun Jul 03, 2016 10:39 pm    Post subject: Reply with quote

Probably you messed up somewhere.
Did you follow the guide in the wiki? https://wiki.gentoo.org/wiki/Xen

The only way you can get the "unsupported architecture" error in the app-emulation/xen ebuild is that you are running neither x86 nor amd64.
Back to top
View user's profile Send private message
The_Pope
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2016
Posts: 78

PostPosted: Sun Jul 03, 2016 10:47 pm    Post subject: Reply with quote

I'm glad you brought that up. I have set that long cflag mno-tls-... But I was unable to find a lot of those options when compiling the kernel with genkernel --menuconfig all. There was absolutely nothing in the menus with Xen in it.

The architecture is Pentium III. I set march=pentium3 too.

And thanks for answering!
_________________
Stop the world. I want to descend.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Sun Jul 03, 2016 11:17 pm    Post subject: Reply with quote

You can press / in menuconfig to search. Some options will be hidden because they depend on other options which must be enabled first (the "Depends on:" in the search results).
Back to top
View user's profile Send private message
The_Pope
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2016
Posts: 78

PostPosted: Mon Jul 04, 2016 1:41 am    Post subject: Reply with quote

Wow, talk about dependency hell.

Ok, so it appears XEN (which is Xen guest support) needs HYPERVISOR_GUEST, PARAVIRT, X86_32 (which seems to be selected when X86_64 is not selected) X86_PAE not selected, X86_LOCAL_APIC and X86_TSC.

I checked all these and Xen guest support still doesn't appear. Now what? :(

That's just one of the options, I still have to check on so many others.
_________________
Stop the world. I want to descend.
Back to top
View user's profile Send private message
The_Pope
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2016
Posts: 78

PostPosted: Mon Jul 04, 2016 1:55 am    Post subject: Reply with quote

Oh goodness. X86_PAE, Physical Address Extension, needed to be *on* for Xen to appear. Now it's there. Fingers crossed. Will post again here if any other problems occur. In the meantime, thank you very, very much.
_________________
Stop the world. I want to descend.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Mon Jul 04, 2016 9:29 am    Post subject: Reply with quote

Yes, menuconfig is indeed a bit confusing. If it says
Code:
Depends on: FOO [=n]
it means that FOO must be enabled but it is currently disabled.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43551
Location: 56N 3W

PostPosted: Mon Jul 04, 2016 6:24 pm    Post subject: Reply with quote

The_Pope,

The 'z' toggle in menuconfig lets you see and search hidden options. Its probably a little late for you XEN now.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
The_Pope
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2016
Posts: 78

PostPosted: Tue Jul 05, 2016 3:20 am    Post subject: Reply with quote

Nope. Didn't work. Log file here. Could not upload the /var/tmp/portage build.log file. It just says app-emulation/xen-4.7.0, the use flags, features and then xen-4.7.0 failed (setup phase): Unsupported architecture!

Ebuild.sh line 133 called pkg_setup
Xen-4.7.0.ebuild line 71 called die

That's why I asked about an older Gentoo, from the times of xen-sources, kernel 2.6 and all that. Software today might take for granted that x86 means SSE2 and maybe even newer versions.
_________________
Stop the world. I want to descend.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43551
Location: 56N 3W

PostPosted: Tue Jul 05, 2016 6:15 pm    Post subject: Reply with quote

The_Pope,

SSE2 will not cause build issues. If gcc plants sse2 instructions, its a problem when there is an attempt to execute them on a processor that does not have the sse2 instruction set.
It all ends with an illegal instruction exception. You will see that in dmesg.

wgetpaste should be able to upload the build log.
The build log is much easier to read if you force MAKEOPTS="-j1" too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
The_Pope
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2016
Posts: 78

PostPosted: Tue Jul 05, 2016 10:13 pm    Post subject: Reply with quote

Thank you very much for the suggestions. I assume a recompile of portage is not needed?

Log.Log.Log.Huge log.

I'm so curious to find out what's wrong.
_________________
Stop the world. I want to descend.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14060

PostPosted: Wed Jul 06, 2016 1:09 am    Post subject: Reply with quote

Based on that callstack, it looks like the ebuild itself is aborting, rather than reporting a failure. Reading the ebuild confirms this:
app-emulation/xen/xen-4.7.0.ebuild:
   if [[ -z ${XEN_TARGET_ARCH} ]]; then
      if use amd64; then
         export XEN_TARGET_ARCH="x86_64"
      elif use arm; then
         export XEN_TARGET_ARCH="arm32"
      elif use arm64; then
         export XEN_TARGET_ARCH="arm64"
      else
         die "Unsupported architecture!"
      fi
   fi
Your emerge --info shows you are using an x86 system, so none of use amd64, use arm, or use arm64 will be true. This same prohibition is present in the oldest Xen still in my local tree (=app-emulation/xen-4.6.0-r9). It might be possible to bypass this if you set XEN_TARGET_ARCH to a reasonable value for your system. It is also possible that modern Xen is incapable of running on x86.

On further reading, I found in the Changelog an explanation:
ChangeLog:
  06 Dec 2015; Doug Goldstein <cardoe@gentoo.org> xen-4.6.0-r2.ebuild:
  delete x86 bits

  x86 is not supported by this version of Xen and won't be supported going
  forward so drop the x86 code.
You must use an outdated version of Xen (which likely has known unpatched security vulnerabilities that are fixed in more recent versions), use an amd64 profile (requires compatible hardware and a reinstall), or find some non-Xen product to serve your needs.
Back to top
View user's profile Send private message
The_Pope
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2016
Posts: 78

PostPosted: Wed Jul 06, 2016 1:32 am    Post subject: Reply with quote

Oh it was just that? They dropped x86. And not a long while ago. Thanks a lot. Now I'll just have to track down that last Xen build and probably the associated xen-tools package.

Thank you very, very much.
_________________
Stop the world. I want to descend.
Back to top
View user's profile Send private message
The_Pope
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2016
Posts: 78

PostPosted: Wed Jul 06, 2016 2:42 am    Post subject: Reply with quote

Okay, I found some solutions, in theory.

First off, I have to link to this explanation that says how to install packages removed from the portage tree.

The guy clearly explains how you just go to the CVS archive then download what you need and install it locally.

As such, I discovered that the last Xen version that will most likely work on x86 is 4.5.1 but furthermore, since I have been doing some reading way before I decided to try Gentoo, it appears that the Xen hypervisor version 4 is kinda made with hardware-supported virtualization in mind (the later Pentium 4 models were the first to have it, I think). As such, I would have absolutely no problem trying out the last 2.6 kernel from sys-kernel/vanilla-sources (2.6.9 if memory serves, then it goes to 3) and the last Xen 3 package from the defunct sys-kernel/xen-sources package. The files appear to still be all there, even if a lot of them are hidden because they were removed from the tree. This was actually what I tried to find out right from the start.

I believe I have abundant info right now. I'm even thinking download all the files I need from that CVS and then make them a .tar archive and upload them somewhere, because it makes things easier in the Gentoo command line.

The only thing I'm slightly worried about, in case I choose Xen 3 and kernel 2.6.x, is dependencies. Old packages depending on old packages. I think I would have to reinstall the whole Gentoo, really.
_________________
Stop the world. I want to descend.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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