First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 70161
Alias:
Product:
Component:
Status: CLOSED
Resolution: TEST-REQUEST
Assigned To: Chris Bainbridge (RETIRED) <chrb@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Stefan de Konink <stefan@konink.de>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
xen-2.0.ebuild xen-2.0.ebuild text/plain SpanKY 2004-11-13 17:53 0000 1.35 KB Details
xend.rc xend.rc text/plain SpanKY 2004-11-13 17:54 0000 603 bytes Details
xen-sources-2.6.9.ebuild.fix-rm.patch `rm -f` instead of `rm` patch Jan Kundrát 2004-11-14 08:41 0000 404 bytes Details | Diff
xen-2.0.1.ebuild xen-2.0.1.ebuild text/plain Jerome Brown 2004-11-29 15:39 0000 1.47 KB Details
xen-2.0.1.ebuild xen-2.0.1.ebuild text/plain Jerome Brown 2004-11-29 15:59 0000 1.51 KB Details
xendomains xendomains text/plain Jerome Brown 2004-11-29 16:32 0000 1.73 KB Details
xend xend text/plain Jerome Brown 2004-11-29 16:34 0000 618 bytes Details
xen-2.0.4.ebuild xen-2.0.4.ebuild text/plain Markus Petzsch 2005-02-08 03:28 0000 1.41 KB Details
xen-2.0.4.ebuild another ebuild text/plain Luca Barbato 2005-02-17 10:29 0000 1.40 KB Details
xen-2.0.4-r1.ebuild xen-2.0.4-r1.ebuild text/plain Cahya 2005-03-01 15:57 0000 1.30 KB Details
xen-2.0.4.patch xen-2.0.4.patch patch Cahya 2005-03-01 15:59 0000 26.13 KB Details | Diff
xen-2.0.5.ebuild 2.0.5 ebuild for hypervisor and dom0 daemons text/plain Edward Middleton 2005-03-17 23:22 0000 1.39 KB Details
xend xend init.d file text/plain Edward Middleton 2005-03-17 23:24 0000 630 bytes Details
xendomains-conf /etc/conf.d/xendomains file text/plain Edward Middleton 2005-03-17 23:29 0000 77 bytes Details
xendomains-init init.d file for domU unprivilaged domains text/plain Edward Middleton 2005-03-17 23:31 0000 1.38 KB Details
xen-sources-2.6.10-r5.ebuild sys-kernel/xen-sources/xen-sources-2.6.10-r5.ebuild text/plain Edward Middleton 2005-03-17 23:33 0000 1.64 KB Details
xen-2.0.5.ebuild sys-apps/xen-2.0.5 text/plain Christoph Brill (egore) 2005-04-17 12:54 0000 1.50 KB Details
xend-conf init.d/xend text/plain Christoph Gysin 2005-04-25 08:13 0000 254 bytes Details
xend-init init.d/xend text/plain Christoph Gysin 2005-04-25 08:20 0000 1.00 KB Details
xend-conf sys-apps/xen/files/xend-conf text/plain Christoph Gysin 2005-04-25 08:20 0000 254 bytes Details
xendomains-init init.d/xendomains text/plain Christoph Gysin 2005-04-25 08:21 0000 972 bytes Details
xen-2.0.5.ebuild sys-apps/xen/xen-2.0.5.ebuild text/plain Christoph Gysin 2005-04-25 08:21 0000 1.37 KB Details
xen-2.0.5.ebuild sys-apps/xen/xen-2.0.5.ebuild text/plain Edward Middleton 2005-04-25 18:22 0000 1.50 KB Details
xendomains-init sys-apps/xen/files/xendomains-init text/plain Edward Middleton 2005-04-25 18:24 0000 859 bytes Details
xendomains-conf sys-apps/xen/files/xendomains-conf text/plain Edward Middleton 2005-04-25 18:25 0000 22 bytes Details
xend-init sys-apps/xen/files/xend-init text/plain Edward Middleton 2005-04-25 18:27 0000 836 bytes Details
xendomains-init sys-apps/xen/files/xendomains-init text/plain Edward Middleton 2005-04-27 18:10 0000 1.10 KB Details
xen-2.0.5.ebuild /app-emulation/xen/xen-2.0.5.ebuild text/plain Travis Cross 2005-05-20 02:49 0000 2.45 KB Details
xen-2.0.6.ebuild xen-2.0.6.ebuild text/plain Alex Tomkins 2005-05-24 03:18 0000 2.48 KB Details
xen-sources-2.6.11.ebuild sys-kernel/xen-sources/xen-sources-2.6.11.ebuild text/plain Christoph Gysin 2005-05-24 04:43 0000 1.60 KB Details
xen-sources-2.4.30.ebuild sys-kernel/xen-sources/xen-sources-2.4.30.ebuild text/plain Christoph Gysin 2005-05-24 04:44 0000 1.60 KB Details
xen0-sources-2.6.11.10.ebuild xen0-sources-2.6.11.10.ebuild text/plain Alex Tomkins 2005-05-24 07:20 0000 1.38 KB Details
xen0-sources-2.6.11.10.ebuild xen0-sources-2.6.11.10.ebuild text/plain Alex Tomkins 2005-05-24 07:37 0000 1.38 KB Details
xend-init app-emulation/xen/files/2.0.6/xend-init text/plain Christoph Gysin 2005-05-27 06:55 0000 653 bytes Details
clock-init.patch patch for /etc/init.d/clock to skip hwclock in xenU patch Christopher G. Stach II 2005-06-02 13:20 0000 946 bytes Details | Diff
xen-sources-2.6.11.ebuild sys-kernel/xen-sources/xen-sources-2.6.11.ebuild (gentoo base patches) text/plain Edward Middleton 2005-06-03 22:03 0000 1.41 KB Details
xen-sources-2.6.11.10.ebuild sys-kernel/xen-sources/xen-sources-2.6.11.ebuild text/plain Edward Middleton 2005-06-04 00:31 0000 1.42 KB Details
xen.xml basic rough outline of the required documentation text/plain Edward Middleton 2005-06-04 01:44 0000 2.83 KB Details
xen-lvm.pub xen-lvm text/plain Christopher G. Stach II 2005-06-06 15:11 0000 6.33 KB Details
xen-clock.patch patch for /etc/init.d/clock to skip hwclock in xenU patch Christopher G. Stach II 2005-06-11 19:32 0000 1.58 KB Details | Diff
xen_portage.tar.bz2 tarball: portage tree for xen and conf-files application/x-bzip Daniel Troeder 2005-06-26 04:13 0000 3.63 KB Details
xen.xml xml source file for xen guide text/plain Edward Middleton 2005-06-29 07:48 0000 14.28 KB Details
xen.html html version of guide text/plain Edward Middleton 2005-06-29 07:50 0000 30.10 KB Details
emergexen.txt emerge xen-2.0.6 on AMD64 failes due too compile error text/plain fred nijdam 2005-08-22 14:47 0000 16.41 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 70161 depends on: 36185 96240 Show dependency tree
Show dependency graph
Bug 70161 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)





View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-11-05 06:28 0000
Xen is a virtual machine monitor for x86 that supports execution of multiple
guest operating systems with unprecedented levels of performance and resource
isolation. Xen is Open Source software, released under the terms of the GNU
General Public License. We have a fully functional ports of Linux 2.4 and 2.6
running over Xen, and regularly use it for running demanding applications like
MySQL, Apache and PostgreSQL. Any Linux distribution (RedHat, SuSE, Debian,
Mandrake) should run unmodified over the ported OS.

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Stefan de Konink 2004-11-05 06:29:53 0000 -------
'We' should be read as 'They'.

------- Comment #2 From Stuart Herbert (RETIRED) 2004-11-07 08:45:01 0000 -------
Are you requesting an ebuild, or do you already have one to share?

Best regards,
Stu

------- Comment #3 From Stefan de Konink 2004-11-07 09:18:19 0000 -------
Requesting, to download the latest sources bitkeeper tools are needed. Plus,
XEN start downloading a kernel which is allready found on most systems in
distfiles.

------- Comment #4 From Philip Taylor 2004-11-09 14:33:01 0000 -------
I've got some almost-working ebuilds to build and install Xen (tentatively
named sys-apps/xen and sys-kernels/xen-sources); if nobody else is already
working on this, I should (hopefully) be able to finish them to a
generally-working state in the next several days.

------- Comment #5 From Philip Taylor 2004-11-10 15:40:33 0000 -------
I've uploaded my current attempts to http://people.pwf.cam.ac.uk/pjt47/xentoo/
- I wouldn't be surprised if I've done various things wrongly, but it appears
to work for me (as far as booting Gentoo using a XenLinux kernel and running
xend; I haven't tried actually running a virtual Gentoo machine).

Current problems include being limited to the 2.6 kernel, not handling
unprivileged domains (unless you manually use a different default kernel config
file), confusing etc-update by putting binary files in /etc (since I didn't
want to automatically mount /boot, and wasn't sure where else to put them), and
possibly other things that I've not noticed or remembered.

To build the docs, tgif (see bug 36185) is required.

------- Comment #6 From Alex Tomkins 2004-11-10 16:58:48 0000 -------
inherit mount-boot should sort out the auto mounting of /boot for the ebuild.

------- Comment #7 From Philip Taylor 2004-11-11 12:38:51 0000 -------
Aha, thanks - I've updated it to use mount-boot and copy the files directly
into /boot. (Updated ebuilds at http://people.pwf.cam.ac.uk/pjt47/xentoo/
again.)

I'm not sure what the most convenient way of installing an unprivileged kernel
is; I currently provide manual instructions to cp /usr/src/linux-2.6.9-xen0 to
linux-2.6.9-xenU and then to switch the default config file. It seems a little
wasteful to devote half a gigabyte to two identical copies of the kernel
sources, but I don't know what else to do.

------- Comment #8 From Alex Tomkins 2004-11-11 18:24:53 0000 -------
Use flag (xen0only)?  Seperate package?

I'd say unpack to two different directories in this ebuild.  A user who is low on space could always unmerge the sources once they've built the two kernels they require?

------- Comment #9 From SpanKY 2004-11-13 17:53:56 0000 -------
Created an attachment (id=43893) [edit]
xen-2.0.ebuild

clean up of the app-emulation/xen/xen-2.0.ebuild by Philip Taylor

------- Comment #10 From SpanKY 2004-11-13 17:54:31 0000 -------
Created an attachment (id=43894) [edit]
xend.rc

Gentoo-ified version of the /etc/init.d/xen script

------- Comment #11 From SpanKY 2004-11-13 17:55:02 0000 -------
if someone can create a Gentoo-ified version of the xendomains init.d script,
i'll add this package to portage ...

------- Comment #12 From Jan Kundrát 2004-11-14 08:41:04 0000 -------
Created an attachment (id=43934) [edit]
`rm -f` instead of `rm`

this is not good :-)

rm: remove write-protected regular file
`/var/tmp/portage/xen-sources-2.6.9/work/linux-2.6.9-xen0/mkbuildtree'? 

------- Comment #13 From John Herdy 2004-11-20 16:54:10 0000 -------
xen looks very promising, btw the developers have released version 2.0.1, is
anyone able to create a Gentoo-ified version of the xendomains init.d script so
that this package can be added to the tree?

------- Comment #14 From Jerome Brown 2004-11-29 15:39:50 0000 -------
Created an attachment (id=44961) [edit]
Version bump to 2.0.1.

Have added the cam.ac.uk mirror as the sourceforge mirrors do not carry this
file yet.

------- Comment #15 From Jerome Brown 2004-11-29 15:40:28 0000 -------
(From update of attachment 44961 [edit])
Version bump to 2.0.1.

------- Comment #16 From Jerome Brown 2004-11-29 15:59:30 0000 -------
Created an attachment (id=44962) [edit]
xen-2.0.1.ebuild

Tested version :)

Added the cam.ac.uk mirror as sourceforge does not seem to have it on the
mirrors at present, and one of the mirrors hung for me. Added the cam.ac.uk
webpage also.

Had to use some 'trickery' to get it to compile, as the package is zipped in a
xen-2.0 directory, so I have a mv command. Hopefully this is a fair way to do
it, and should also mean that it is easy to update just by copying and
remnaming the ebuild as the version is bumped.

Will look at the init.d script to see if I can Gentoo-ify it so it can be
merged mainstream!

------- Comment #17 From Jerome Brown 2004-11-29 16:32:45 0000 -------
Created an attachment (id=44963) [edit]
xendomains

Gentoo-ified xendomains script.

There is plenty more that could be done to this script - restart and reload are
commented out from the original script.

Haven't played with Xen too much yet, but wondering if it might be worth
setting individual scripts for each domain, cf net.* scripts (eg xen.dom0,
xen.dom1 etc)

------- Comment #18 From Jerome Brown 2004-11-29 16:34:40 0000 -------
Created an attachment (id=44965) [edit]
xend

/etc/init.d/xend script, modified to represent that it is starting dom0 as
opposed to Xen in general. Should help remove confusion during boot with the
xenddomains script.

------- Comment #19 From Jan Kundrát 2004-11-30 07:50:28 0000 -------
> /etc/init.d/xend script, modified to represent that it is starting dom0 as
opposed to Xen in general

you can't start dom0 as it is started by xen when it boots. stopping dom0 means halting the machine. xend is afaik xen control daemon for performing management tasks like starting/stopping other domains, resource usage control,...
and you'll need another daemon for live migration support. 

------- Comment #20 From Jerome Brown 2004-11-30 18:03:47 0000 -------
Good point. Now that I look closer at the script (Why didn't I read it earlier)
it is for starting the Control Daemon for the domains. Is it worth modifying
the xend script for that?

------- Comment #21 From Jan Kundrát 2004-12-01 09:00:44 0000 -------
you'll have to compile glibc without nptl in USE flags, otherwise you'll get
this warning:

  ***************************************************************
  ***************************************************************
  ** WARNING: Currently emulating unsupported memory accesses  **
  **          in /lib/tls libraries. The emulation is very     **
  **          slow, and may not work correctly with all        **
  **          programs (e.g., some may 'Segmentation fault').  **
  **          TO ENSURE FULL PERFORMANCE AND CORRECT FUNCTION, **
  **          YOU MUST EXECUTE THE FOLLOWING AS ROOT:          **
  **          mv /lib/tls /lib/tls.disabled                    **
  ***************************************************************
  ***************************************************************

despite what it says, /lib/tls doesn't exist on my system, but see this message
from Ian Pratt (Rik is probably Rik van Riel from Red Hat):

NPTL is supported, but we're forced to take traps for almost
every attempt to access thread local storage, which is slow (I
think Rik said 12-15% on a kernel compile).

The only way to improve on this would be to have our own very
slightly modified version of libc that could be installed to
restore full performance. We're hoping to look into this at some
point.

Disabling NPTL works for most people.

Ian

------- Comment #22 From SpanKY 2004-12-02 19:30:02 0000 -------
ok, then if i understand this correctly, the xen init.d scripts are really only
meant to be used from inside of xen ?

if so, i'll have the ebuild stick them in /usr/share/xen/ instead of
/etc/init.d/ ...

------- Comment #23 From Michiel de Bruijne 2004-12-02 19:57:33 0000 -------
It depends what you think "inside of xen" is. You need two types of a kernel; a
host kernel (Xen calls this domain 0) and guest kernel (you can assign any
number/name to this domain). When you boot your system with a Xen host kernel
you are already inside Xen (domain 0), however to start a guest kernel you need
to have xend running. I thinks /etc/init.d is the correct location for both
scripts.

------- Comment #24 From SpanKY 2004-12-02 20:00:21 0000 -------
ok, but the only files that should go into /etc/init.d/ are scripts that have
been 'gentoo-ified'

------- Comment #25 From Michiel de Bruijne 2004-12-02 20:11:49 0000 -------
yep, only two scripts need to go to /etc/init.d; xend (to start/stop the
xen-interface) and xendomains (to start/stop the quest systems during
boot/shutdown).

------- Comment #26 From Jan Kundrát 2004-12-03 08:14:32 0000 -------
if you use xen, you need at least two things - xen kernel itself and patched
linux  kernel (aka "domain0" in xen terminology). these two thing will provide
(almost) the same services as normal vanilla linux kernel, plus some xen stuff,
so you can run any distribution (including gentoo :-)) on the top of such
system.
but this setup is useless if you don't run any virtual domains (you don't have
to bother with xen just to run "one instance" of OS), so you'll probably want
to create another virtual machines. in order to do it, you'll need xend running
inside of domain0 (`/etc/init.d/xend start` is a good way, it is only shell
script to actually start xend daemon) and have prepared special kernel (linux,
netbsd, freebsd, winxp (well, not available due to licensing issues)) and root
fs. then you can start any number of other "machines", or, in Xen terminoology,
domains.
as you probably want to start all (or some of) these virtual machines at
bootup, xen has provided the "xendomains" init script, it looks into
/etc/xen/auto/ and starts domains specified there.

Michiel is right.

------- Comment #27 From Ramon 2005-01-06 14:20:41 0000 -------
Hi All,

Thanks for the ebuild. Testing it now.
I got the following error:

cc1: warning: -fprefetch-loop-arrays not supported for this target (try -march switches)

I remember that it's possible to disable certain useflags and cflags for ebuilds (but forgot how). Might be wise to disable this one ?

Grtz Ramon

------- Comment #28 From John Herdy 2005-01-11 02:27:47 0000 -------
Just wanted to let you know that version 2.0.2 has been released.

------- Comment #29 From Bel Zébute 2005-01-12 12:01:09 0000 -------
Just wanted to let you know that version 2.0.3 has been released.

------- Comment #30 From Aquila 2005-01-20 23:02:21 0000 -------
Question for the devs:
I don't want to be the impatient user but isn't it time to put these ebuilds in Portage? There are a lot of people interested if you look at the CC list but almost nothing happens here. I fear that people willing to try Xen might jump over to RHEL or SuSE.

Just my 2 euro

------- Comment #31 From Aquila 2005-01-20 23:02:21 0000 -------
Question for the devs:
I don't want to be the impatient user but isn't it time to put these ebuilds in Portage? There are a lot of people interested if you look at the CC list but almost nothing happens here. I fear that people willing to try Xen might jump over to RHEL or SuSE.

Just my 2 euroçents of course, let's not start a flamewar on Gentoo VS ... please.

------- Comment #32 From Bel Zébute 2005-01-21 00:35:32 0000 -------
I don't know.  I would think not.  I have started to use those ebuilds, but I'm
ending up righting an ebuild of my own because these ones had hickups.

A link to this bug from the forums or elsewhere would help much more in getting
this tested and find a proper implementation for it.  Then release it to
Portage, unless it worked out of the box for everybody elses?!?

------- Comment #33 From Bel Zébute 2005-01-29 13:17:17 0000 -------
Ok, what is everybody's general status about this?

I have succesfuly builded and implemented Xen on a 2.4 kernel box here.  There's still issues to get this done properly thrue a ebuild, but I think I have a sufficient basic grasp of this to generate an ebuild.

The biggest issue I had was how to make it download a 2.4 or a 2.6 kernel.  As such, I think patching the kernels upstream would be a better approach (I'd even hope it would be directly included into the kernels at www.kernel.org).  Because of that, i had problems integrating my .config inside xen0.  But I think I can manage it on my next iteration.

My other issue is the fact the the vanilla Xen script will install the xenU kernel into /boot.  This is somewhet inappropriate because then it requires you to mount it to access the kernel.  As a simplification, I simply made the configuration file point directly at the bzImage inside the kernel's source hierarchy (arch/xen/boot/bzImage).

Another issue I encounter is the fact that xenU cannot absolutely not work properly if started with devfs.  So this caused problems when using Gentoo as a guest, which will complain if devfs is not enabled.  Insights about this would be appreciated.  I guess I should try to guest something else like Knoppix.

What about you guys?  Where are you at with this?

------- Comment #34 From Michiel de Bruijne 2005-01-29 14:00:07 0000 -------
>Another issue I encounter is the fact that xenU cannot absolutely not work properly if started with devfs.  So this caused problems when using Gentoo as a guest, which will complain if devfs is not enabled.  Insights about this would be appreciated.

emerge udev

------- Comment #35 From Bel Zébute 2005-01-30 04:34:03 0000 -------
devfs at boot is a requirement of Gentoo.  In a Xen point of view, udev would
probably cause the same issue.  A Xen booted guest seems to need static device
nodes in /dev.

On monday, I will extract the build steps from the Makefiles to incoporate them
directly in the ebuild instead.  This will give the flexibility to use a
distinct xen patched kernel, instead of having to use "make kernel-bla" from
xen.

So, I guess that by the end of next week, I'll have a ebuild to submit here.  I
mainly wanted to know if others did work on this and avoid duplicating stuffs.

------- Comment #36 From Michiel de Bruijne 2005-01-30 05:12:32 0000 -------
udev is supported as well, as a mather of fact it will be the default very soon
for architectures that support it, same goes for the 2.6 kernel which you need
when using udev, we use it on all our Xen-servers, I suggest you take a look at
Philip's webpage, he already made an ebuild for the Xen-sources.

------- Comment #37 From Bel Zébute 2005-02-03 13:39:25 0000 -------
We need to put this on 2.4 systems.  So the limitation is either because of
Gentoo's inhability to run with a static /dev, or xen's inhability to run with
a dynamic one.

I'm doing my second iteration install to check if the ebuilds works well, and I
always seem to have issues with the xenU kernel.  I'm unsure if xen is what we
really want.  For now, I'll admit I way prefer the vmware paradigm of
virtualization.

I mean, shouldnt it be the guest kernel who should get xenified, instead of
having a bunch of xenU kernels that are completely unrelated to the guest
kernel (that could have various patches applied).  I don't get it :(

------- Comment #38 From Markus Petzsch 2005-02-08 03:28:49 0000 -------
Created an attachment (id=50718) [edit]
xen-2.0.4.ebuild

------- Comment #39 From Barry Grussling 2005-02-11 16:41:01 0000 -------
I wasn't able to get the ebuild in #37 to go.  First it would not find the file
to download.  I manually downloaded it from http://www.cl.cam.ac.uk and created
the digest.  When I went to install it I received the following error.

>>> emerge (1 of 1) sys-kernel/xen-2.0.4 to /
>>> md5 src_uri ;-) xen-2.0.4-src.tgz
>>> Unpacking source...
>>> Unpacking xen-2.0.4-src.tgz to /var/tmp/portage/xen-2.0.4/work
/usr/lib/portage/bin/ebuild.sh: line 33: cd:
/var/tmp/portage/xen-2.0.4/work/xen-2.0.4: No such file or directory
sed: can't read tools/libxc/Makefile: No such file or directory
sed: can't read tools/libxutil/Makefile: No such file or directory
sed: can't read tools/misc/miniterm/Makefile: No such file or directory
sed: can't read tools/misc/nsplitd/Makefile: No such file or directory
sed: can't read tools/misc/Makefile: No such file or directory
sed: can't read tools/xentrace/Makefile: No such file or directory
sed: can't read xen/arch/x86/Rules.mk: No such file or directory

!!! ERROR: sys-kernel/xen-2.0.4 failed.
!!! Function src_unpack, Line 39, Exitcode 2
!!! sed cflags

Apparently, ${S} and the contents of the tgz don't agree.

------- Comment #40 From Luca Barbato 2005-02-17 10:28:13 0000 -------
(From update of attachment 50718 [edit])
the ebuild looks dos encoded btw

------- Comment #41 From Luca Barbato 2005-02-17 10:29:17 0000 -------
Created an attachment (id=51453) [edit]
another ebuild

That isn't really a nice solution but at least build and install

------- Comment #42 From Eric S. Johansson 2005-02-17 13:20:47 0000 -------
when trying the latest ebuild, I get the following error.  as I posted on the
xen mailing list about an earlier version of this ebuild, I suspect the problem
is due to makefiles using $(DESTDIR} which is the getting wrong value from the
ebuild environment:

ACCESS DENIED  mkdir:     /usr/portage/distfiles/install
install: cannot create directory `/usr/portage/distfiles/install': Permission
denied

------- Comment #43 From Luca Barbato 2005-02-17 16:40:41 0000 -------
unset DISTDIR is present just to address that problem

------- Comment #44 From Eric S. Johansson 2005-02-18 10:44:48 0000 -------
tried the suggestion and the build process got a little further:

[ -d /usr/lib ] || install -d -m0755 -p /usr/lib
install -m0755 libxutil.so.2.0.0 /usr/lib
ACCESS DENIED  open_wr:   /usr/lib/libxutil.so.2.0.0
install: cannot create regular file `/usr/lib/libxutil.so.2.0.0': Permission denied
make[1]: *** [install] Error 1
make[1]: Leaving directory `/var/tmp/portage/xen-2.0.4/work/xen-2.0/tools/libxutil'

looked inside xen-2.0/tools/libxutil/Makefile and saw that it used $(DESTDIR) on installation.  I set DESTDIR to ${WORKDIR} but I got the same failure.  any suggestions for what I should try next?

------- Comment #45 From Kalin KOZHUHAROV 2005-02-25 18:55:54 0000 -------
Would it help if somebody (I) provide a rsync mirror for a portage overlay
including xen (and tgif)?

It seems that no dev wants that in the official tree at the moment...

------- Comment #46 From Cahya 2005-03-01 15:57:45 0000 -------
Created an attachment (id=52423) [edit]
xen ebuild

Hi, here is another ebuild with patch to solve DISTDIR/DESTDIR problem.

------- Comment #47 From Cahya 2005-03-01 15:59:02 0000 -------
Created an attachment (id=52424) [edit]
xen patch

------- Comment #48 From Nicolai Guido Klausen 2005-03-11 13:51:30 0000 -------
Just wanted to let you know that version 2.0.5 has been released.

------- Comment #49 From Roy Marples (RETIRED) 2005-03-14 23:49:37 0000 -------
*** Bug 85211 has been marked as a duplicate of this bug. ***

------- Comment #50 From lotso 2005-03-16 15:58:12 0000 -------
The build fails for me for some reason. I get these 'asm' errors..

make[2]: Entering directory `/mnt/data/Gentoo-Tmp/portage/xen-2.0.4-r1/work/xen-2.0/xen/common'
gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -pipe -I/mnt/data/Gentoo-Tmp/portage/xen-2.0.4-r1/work/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls -O2 -march=pentium3 -fomit-frame-pointer -pipe -falign-functions=64 -mmmx -msse -msse2 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c ac_timer.c -o ac_timer.o
gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -pipe -I/mnt/data/Gentoo-Tmp/portage/xen-2.0.4-r1/work/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls -O2 -march=pentium3 -fomit-frame-pointer -pipe -falign-functions=64 -mmmx -msse -msse2 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c dom0_ops.c -o dom0_ops.o
gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -pipe -I/mnt/data/Gentoo-Tmp/portage/xen-2.0.4-r1/work/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls -O2 -march=pentium3 -fomit-frame-pointer -pipe -falign-functions=64 -mmmx -msse -msse2 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c dom_mem_ops.c -o dom_mem_ops.o
gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -pipe -I/mnt/data/Gentoo-Tmp/portage/xen-2.0.4-r1/work/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls -O2 -march=pentium3 -fomit-frame-pointer -pipe -falign-functions=64 -mmmx -msse -msse2 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c domain.c -o domain.o
gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -pipe -I/mnt/data/Gentoo-Tmp/portage/xen-2.0.4-r1/work/xen-2.0/xen/include -Wno-pointer-arith -Wredundant-decls -O2 -march=pentium3 -fomit-frame-pointer -pipe -falign-functions=64 -mmmx -msse -msse2 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -c elf.c -o elf.o
dom_mem_ops.c: In function `free_dom_mem':
/mnt/data/Gentoo-Tmp/portage/xen-2.0.4-r1/work/xen-2.0/xen/include/asm/mm.h:160: error: can't find a register in class `BREG' while reloading `asm'

------- Comment #51 From Edward Middleton 2005-03-17 23:22:03 0000 -------
Created an attachment (id=53755) [edit]
2.0.5 ebuild for hypervisor and dom0 daemons

------- Comment #52 From Edward Middleton 2005-03-17 23:24:02 0000 -------
Created an attachment (id=53756) [edit]
xend init.d file

------- Comment #53 From Edward Middleton 2005-03-17 23:29:38 0000 -------
Created an attachment (id=53757) [edit]
/etc/conf.d/xendomains file

------- Comment #54 From Edward Middleton 2005-03-17 23:31:05 0000 -------
Created an attachment (id=53758) [edit]
init.d file for domU unprivilaged domains

------- Comment #55 From Edward Middleton 2005-03-17 23:33:57 0000 -------
Created an attachment (id=53759) [edit]
ebuild for 2.6.10 kernel with xen 2.0.5

------- Comment #56 From Edward Middleton 2005-03-17 23:53:31 0000 -------
I am rather suprised that it is taking so long to get xen ebuilds into portage.
 I guess the lack of any gentoo specific document explaining what is involved
in setting it up would be part of the problem.  These ebuilds are based on
Philip Taylor original ebuilds with some modifications.  They have been updated
since version 2.0 and are currently running on internal production servers. 
They will not work with hardened patches (i.e. -pie).

probably obvious but.

the xen ebuild goes into 
  apps-sys/xen
all associated files go into
  apps-sys/xen/files

the xen-sources ebuild goes into
  sys-kernel/xen-sources

Xen will not just work out of the box.  You need to create the environment for
the operating system instances (i.e. filesystems).  In that respect it is very
much like UML.  To install xen you will need to read the manual
http://www.cl.cam.ac.uk/Research/SRG/netos/xen/readmes/user/user.html

------- Comment #57 From M. Edward Borasky 2005-03-18 06:34:59 0000 -------
Question: does Xen run on any architectures other than x86 and x86-64? Does it
work with 2.4.25?

------- Comment #58 From Jan Kundrát 2005-03-18 06:58:56 0000 -------
> Question: does Xen run on any architectures other than x86 and x86-64?
No. Even the ia64 support is not very mature - see the xen-devel mailing list for details.

> Does it work with 2.4.25?
IIRC, dom0 (the domain which can controll another "virtual" domains) must be 2.6. Other domains could run 2.4 kernels or OpenBSD (maybe other BSD derivates, Kip Macy is developing FreeBSD port - consult the mailing list).

BTW, why does this bug depend on bug 36185? AFAIK the tgif is required only for building of docs.

------- Comment #59 From Milton YATES 2005-03-22 07:44:33 0000 -------
I've just tried removing the tgif DEPEND line in the ebuild, then compile it
with USE=doc : it compiles just fine, and the docs are generated.

Is this dependency _really_ needed ?

------- Comment #60 From Aquila 2005-04-09 00:33:15 0000 -------
Is there any status update available to this bug? Other distros already use
Xen, a lot of users want Xen but nothing seems to happen here.
I hope this is the right "noise" to make this bug active again...

------- Comment #61 From Martin Allchin 2005-04-14 05:34:54 0000 -------
I'm interested in this too, do we need testers?

It seems to me we have too much commotion and are lacking some verified working ebuilds, maybe if someone already au fait with this bug could write a short how-to, with links to what file(s) are needed, and we could go about testing them to help iron out the wrinkles.

I think if it was a little clearer and we had sane ebuilds it would be a good candidate for portage.

------- Comment #62 From Christoph Brill (egore) 2005-04-17 12:54:15 0000 -------
Created an attachment (id=56536) [edit]
sys-apps/xen-2.0.5

Added a few dies, since I had a few missing files. Did not change anything
else.

------- Comment #63 From Christoph Gysin 2005-04-25 08:13:57 0000 -------
Created an attachment (id=57185) [edit]
init.d/xend

------- Comment #64 From Christoph Gysin 2005-04-25 08:15:46 0000 -------
(From update of attachment 57185 [edit])

#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

opts="start stop status restart"

depend() {
	before xendomain
}

await_daemons_up() {
	for ((i=0; i<5; i++)); do
		sleep 1
		xend status && return 0
	done
	return 1
}

stop_all_xendomains(){
	einfo "Shutting down all Xen domains"
	xm list | cut -d' ' -f1 | grep -Ev "^(Name|Domain-0)$" |
	while read dom; do
		# Stop all running domains.
		ebegin "  Stopping domain $dom"
		xm shutdown --halt --wait $dom >/dev/null
		eend $?
	done
}

start() {
	ebegin "Starting Xen control daemon"
	xend start
	xend status || await_daemons_up
	eend $?

	if [ "$XENSV" = YES ] && xend status; then
		ebegin "Starting Xensv"
		xensv start
		eend $?
	fi	
}

stop() {
	if [ "$(xm list | wc -l)" -gt 2 ]; then
		stop_all_xendomains
	fi

	if [ "$XENSV" = YES ]; then
		ebegin "Stopping Xensv"
		xensv stop
		eend $?
	fi

	ebegin "Stopping Xen control daemon"
	xend stop
	eend $?
}

status() {
	xend status
}

------- Comment #65 From Christoph Gysin 2005-04-25 08:16:50 0000 -------
(From update of attachment 57185 [edit])
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

opts="start stop status restart"

depend() {
	before xendomain
}

await_daemons_up() {
	for ((i=0; i<5; i++)); do
		sleep 1
		xend status && return 0
	done
	return 1
}

stop_all_xendomains(){
	einfo "Shutting down all Xen domains"
	xm list | cut -d' ' -f1 | grep -Ev "^(Name|Domain-0)$" |
	while read dom; do
		# Stop all running domains.
		ebegin "  Stopping domain $dom"
		xm shutdown --halt --wait $dom >/dev/null
		eend $?
	done
}

start() {
	ebegin "Starting Xen control daemon"
	xend start
	xend status || await_daemons_up
	eend $?

	if [ "$XENSV" = YES ] && xend status; then
		ebegin "Starting Xensv"
		xensv start
		eend $?
	fi	
}

stop() {
	if [ "$(xm list | wc -l)" -gt 2 ]; then
		stop_all_xendomains
	fi

	if [ "$XENSV" = YES ]; then
		ebegin "Stopping Xensv"
		xensv stop
		eend $?
	fi

	ebegin "Stopping Xen control daemon"
	xend stop
	eend $?
}

status() {
	xend status
}

------- Comment #66 From Christoph Gysin 2005-04-25 08:19:18 0000 -------
(From update of attachment 57185 [edit])
Sorry about the last two comments. I'm about to learn how to submit files to
bugzilla :-(

------- Comment #67 From Christoph Gysin 2005-04-25 08:20:15 0000 -------
Created an attachment (id=57186) [edit]
init.d/xend

------- Comment #68 From Christoph Gysin 2005-04-25 08:20:45 0000 -------
Created an attachment (id=57187) [edit]
conf.d/xend

------- Comment #69 From Christoph Gysin 2005-04-25 08:21:22 0000 -------
Created an attachment (id=57188) [edit]
init.d/xendomains

------- Comment #70 From Christoph Gysin 2005-04-25 08:21:55 0000 -------
Created an attachment (id=57189) [edit]
sys-apps/xen/xen-2.0.5.ebuild

------- Comment #71 From Christoph Gysin 2005-04-25 08:23:12 0000 -------
new Attachments:

xend-init:
- support for starting xensv (via xend-conf)
- now shuts down all running domains before stopping xend
- removed lots of "

------- Comment #72 From Christoph Gysin 2005-04-25 08:23:12 0000 -------
new Attachments:

xend-init:
- support for starting xensv (via xend-conf)
- now shuts down all running domains before stopping xend
- removed lots of "¦¦ die" statements (makes no sense in init scripts)

xend-conf:
- new file, used to enable xensv

xendomains-init:
- simplified a lot
- xendomains-conf removed, as it wasn't really neccessary

xen-2.0.5.ebuild:
- use emake instead of make
- newinitd & newconfd functions used instead of cp

all:
- gentoo conforming headers added

I would really like to see this in portage ASAP.
Could someone please test this new ebuild and init-files?

------- Comment #73 From Edward Middleton 2005-04-25 18:22:50 0000 -------
Created an attachment (id=57231) [edit]
sys-apps/xen/xen-2.0.5.ebuild

sys-apps/xen-2.0.5.ebuild
* removed tgif which does not seem to be necessary to compile the documentation

* added debug flag (needed for verbose debugging messages).
* re-added xendomains-conf which is needed, as explained below.

------- Comment #74 From Edward Middleton 2005-04-25 18:24:06 0000 -------
Created an attachment (id=57232) [edit]
sys-apps/xen/files/xendomains-init

/files/xendomains-init
* moved AUTODIR back into the config script.  This is needed for running groups
of domains, or domains with specific options based on the runlevel.
* added ${} around variables
* changed starting from auto -> ${AUTODIR}

------- Comment #75 From Edward Middleton 2005-04-25 18:25:57 0000 -------
Created an attachment (id=57233) [edit]
sys-apps/xen/files/xendomains-conf

/files/xendomains-conf -> /etc/conf.d/xendomains
* removed INITD and LOCKFILE variables as they are not used

------- Comment #76 From Edward Middleton 2005-04-25 18:27:22 0000 -------
Created an attachment (id=57234) [edit]
sys-apps/xen/files/xend-init

/files/xend-init -> /etc/init.d/xend
* added net dependency because xend needs network setup before starting.  The
default setup specifically require eth0 but as this is a setting it seemed like
a bad idea putting it in the init script.
* removed stop_all_xendomains function.  It is not necessary to step though all
domains when shutting down in xend.  This is just a safety/sanity check incase
a domain has been created outside the init scripts.

------- Comment #77 From Edward Middleton 2005-04-25 18:39:29 0000 -------
these are modifications to Christoph Gysin files above.  You will need the
conf.d/xend file above to use them.  The AUTODIR has been moved into a
configuration file because this allows the use of multiple groups of domains. 
This works in a similar way to /etc/init.d/net.eth0.

------- Comment #78 From Christoph Gysin 2005-04-26 01:31:28 0000 -------
Old attachments made obsolete.

conf.d/xend renamed to sys-apps/xen/files/xend-conf

------- Comment #79 From Christoph Gysin 2005-04-27 05:36:43 0000 -------
I've just tested Edward Middleton's modifications. Everything works as
expected.

Can anybody else confirm this, so we can put it into portage?

------- Comment #80 From José Costa 2005-04-27 12:27:57 0000 -------
i've used the ebuild xen-sources-2.6.10.ebuild (id=53759) and did this steps:

make ARCH=xen menuconfig
make ARCH=xen
make ARCH=xen modules_install
make ARCH=xen install

but no /boot/xen.gz

something missing in the ebuild?
there's only xen.gz in the xen-2.0-install.tgz

------- Comment #81 From Edward Middleton 2005-04-27 18:02:04 0000 -------
* /boot/xen.gz is the hypervisor (mediates operating system access to the
hardware) installed with sys-apps/xen
* /boot/vmlinuz is a domain0-N kernel created from the sys-kernel/xen-sources

* these are not in the same ebuild because there are a number of operating
systems other then linux (various bsd's, plan9 etc) that will run under the
hypervisor so it does not make sense packaging them all in one