Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 446241 - app-emulation/xen-stubdom - New package. - allows XEN HVM guests to be run in a stubdom which improves isolation and performance
Summary: app-emulation/xen-stubdom - New package. - allows XEN HVM guests to be run in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2012-12-06 12:02 UTC by Spooky Ghost
Modified: 2013-02-22 10:45 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New ebuild (xen-stubdom-4.2.0.ebuild,3.68 KB, text/plain)
2012-12-06 12:03 UTC, Spooky Ghost
Details
New ebuild (update description, elog messages, remove multilib conditional code) (xen-stubdom-4.2.0.ebuild,3.54 KB, text/plain)
2012-12-07 09:02 UTC, Spooky Ghost
Details
Ebuild update based on pv-grub 4.2.1-r1 (xen-stubdom-4.2.1-r1.ebuild,3.64 KB, text/plain)
2013-02-02 16:12 UTC, Spooky Ghost
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Spooky Ghost 2012-12-06 12:02:33 UTC
This is an ebuild to build and install the xen stubdom.  It was a simple conversion of the pvgrub ebuild which may mean it is carrying conditional x86/amd64 code which isn't actually required.

http://wiki.xen.org/wiki/Device_Model_Stub_Domains

I have tested this on amd64 and successfully started hvm domains using with stubdom support.

Reproducible: Always
Comment 1 Spooky Ghost 2012-12-06 12:03:01 UTC
Created attachment 331635 [details]
New ebuild
Comment 2 Spooky Ghost 2012-12-06 14:29:52 UTC
I have uncovered one problem with stubdom networking.  If two machines which are both running in a stubdom are trying to communicate you must use 

ethtool -K <vifname> tx off

to make networking operate.  ICMP between the two worked ok but TCP would fail.  A bit of searching suggested that it is possible some checksum patches have not been ported to stubdom.

(in my case the vms are on the same dom0 and connected to the same bridge)
Comment 3 Spooky Ghost 2012-12-07 09:02:32 UTC
Created attachment 331716 [details]
New ebuild (update description, elog messages, remove multilib conditional code)
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2013-01-30 14:54:35 UTC
Hmm. interesting.  Have just now completed upgrades to all xens, 4.2.0 && 4.2.1.
I suggest you repeat the process modelling off the improved xen-pvgrub-4.2.1-r1, a 10 minute job really.

Report it up and running and I shall see to adding it in due course
Comment 5 Spooky Ghost 2013-02-02 16:12:26 UTC
Created attachment 337688 [details]
Ebuild update based on pv-grub 4.2.1-r1
Comment 6 Spooky Ghost 2013-02-02 16:13:10 UTC
New ebuild tested succesfully with Linux HVM amd64 guest on amd64 dom0.
Comment 7 Ian Delaney (RETIRED) gentoo-dev 2013-02-07 10:41:46 UTC
yes the ebuild works and builds, however 

            if use multilib; then
                   multilib_toolchain_setup x86
                   emake XEN_TARGET_ARCH="x86_32" -C stubdom genpath ioemu-stubdom
            fi

Point 1. I can't get it to build.
Point 2. I'd have thought it would apply equally. No?

I've tidies up a few trivialities. 
Once we sort the above it should be good to go.
Comment 8 Spooky Ghost 2013-02-07 10:58:12 UTC
(In reply to comment #7)
> yes the ebuild works and builds, however 
> 
>             if use multilib; then
>                    multilib_toolchain_setup x86
>                    emake XEN_TARGET_ARCH="x86_32" -C stubdom genpath
> ioemu-stubdom
>             fi
> 
> Point 1. I can't get it to build.
> Point 2. I'd have thought it would apply equally. No?

I don't have a multilib dom0 so I can't test this however with my x86_64 build I can start 32- and 64-bit Windows XP guests.  As far as I can tell there is no requirement for the stubdom to match the bitness of the guest it is supporting.
Comment 9 Ian Delaney (RETIRED) gentoo-dev 2013-02-07 12:02:12 UTC
therefore it's not required, hence its absence, I take it
Comment 10 Ian Delaney (RETIRED) gentoo-dev 2013-02-11 13:17:42 UTC
I shall add it soon when my system is doing commit 'properly'
Comment 11 Ian Delaney (RETIRED) gentoo-dev 2013-02-12 07:56:42 UTC
This package is more apt to the virtual overlay for initial inclusion.  Given you're perhaps the 1 and only user, it requires by rights further demonstrated demand to add to portage.

repoman commit -m "[xen-stubdom] New package, ebuild written by 'spookyghost@blueyonder.co.uk', minor edits add to ebuild from recent inprovements from the parent package xen-stubdom, CC.patch added, source Bug #446241"

Writing objects: 100% (8/8), 4.01 KiB, done.
Total 8 (delta 0), reused 0 (delta 0)
To git+ssh://git@git.overlays.gentoo.org/proj/virtualization
   2d392cb..4c221e2  master -> master


Need your name for the metadata.xm;
Comment 12 Spooky Ghost 2013-02-12 08:16:03 UTC
Real name? James Dingwall <james (at) dingwall (dot) me (dot) uk>
Comment 13 Ian Delaney (RETIRED) gentoo-dev 2013-02-12 11:42:11 UTC
<james@dingwall.me.uk>. Eeer I think it loses something in the translation.
Please view the edited metadata.xml and do tell is this 
to your liking, 
to my liking, 
none the above
'ere serve me up the next required correction.  Thanks for the ebuild.

~/VirtualOverlay/app-emulation/xen-stubdom $ repoman commit -m "[xen-stubdom] Name of contributor added to metadata.xml"

To git+ssh://git@git.overlays.gentoo.org/proj/virtualization
   4c221e2..676e407  master -> master
Comment 14 Spooky Ghost 2013-02-13 09:05:23 UTC
(In reply to comment #13)
> Please view the edited metadata.xml and do tell is this 
Fine with me
Comment 15 Ian Delaney (RETIRED) gentoo-dev 2013-02-22 10:45:21 UTC
Added to virtualization overlay