I''m happy to announce that we have moved the xen-unstable.hg Solaris dom0 development out to the OpenSolaris community. For hard core developers, you can download, build, and run Solaris dom0 and xen-unstable bits following the instructions at the end of this post. We are currently sync''d up to changeset #17644 (~May 15th). Hopefully we will sync up with xen-unstable.hg every week or two. Sorry, we don''t have pre-built binaries available. For projects using these bits, it''s strongly encouraged that they base off of a snapshot of these bits since they will be changing frequently. Special thanks to Jürgen who helped us verify the bits and already has fixes for a couple of bugs :-) MRJ The instructions are still a little rough... But it''s something to start from :-) It''s expected that you are familiar with OpenSolaris development. Have fun! ------------------------- make sure the Mercurial MQ extension is enabled i.e. in ~/.hgrc =[extensions] hgext.mq Have the following in your env =export EMAIL=username at youdomain dot com export EDITOR=vi export SOLARIS_BUILD_TOOLS=/opt xvm-gate =======** Grab/setup the b89 xvm sources -- mkdir xvm-gate cd xvm-gate wget http://dlc.sun.com/osol/on/downloads/b89/xvm-src.tar.bz2 bzcat xvm-src.tar.bz2 | tar xf - ** Update the sunos.hg bits -- cd sunos.hg rm .hg/hgrc echo "[paths]" > .hg/hgrc echo "default = ssh://anon@hg.opensolaris.org/hg/xen-gate/sunos-unstable" >> .hg/hgrc hg pull -uv ** Remove the xen source and clone xen-unstable.hg (up to the rev we are currently sync''d to) -- cd .. rm -rf xen.hg hg clone -r 17644 http://xenbits.xensource.com/xen-unstable.hg xen.hg ** Setup the patches needed to compile on Solaris and run on dom0 -- cd xen.hg hg qinit -c echo "[paths]" > .hg/patches/.hg/hgrc echo "default = ssh://anon@hg.opensolaris.org/hg/xen-gate/devel-unstable-patches" >> .hg/patches/.hg/hgrc cd .hg/patches/ hg pull -uv ** You *may* need to merge .hgignore at this point.. if you do, it should be the following after the merge. -- syntax: glob status guards ** push the patches to make sure everything is ok -- cd ../../ hg qpush -a ** build the xvm gate You need the SUNWgcc packages from >= b87 to be able to build. -- cd ../ export XVM_WS=`pwd` export EMAIL="xyz@one.com"" ./sunos.hg/bin/build-all full ** if you don''t have the b87 gcc packages, you can use the following workaround env LD_OPTIONS=-L/lib ./sunos.hg/bin/build-all full To build inside of xen.hg gmake MAKE=gmake debug=y XEN_COMPILE_ARCH=x86_64 XEN_TARGET_ARCH=x86_64 SOLARIS_BUILD_TOOLS=/opt For the dom0 kernel, follow the standard instructions for a onnv based gate. =hg clone ssh://anon@hg.opensolaris.org/hg/xen-gate/matrix-unstable hg clone ./matrix-unstable matrix-unstable-build cd matrix-unstable-build wget http://dlc.sun.com/osol/on/downloads/b89/on-closed-bins.i386.tar.bz2 wget http://dlc.sun.com/osol/on/downloads/b89/on-closed-bins-nd.i386.tar.bz2 bzcat on-closed-bins.i386.tar.bz2 | tar xf - bzcat on-closed-bins-nd.i386.tar.bz2 | tar xf - setup env script and run nightly. More information is available @ http://www.opensolaris.org/os/community/on/devref_toc/
On Thu, May 22, 2008 at 10:20 AM, Mark Johnson <Mark.Johnson@sun.com> wrote:> > ** You *may* need to merge .hgignore at this point.. > if you do, it should be the following after the merge. > -- > syntax: glob > status > guards > >Hi Mark, I am following this instruction to build my xen-unstable bits. Can you tell me how to merge .hgignore as you stated here? Which command do I need to execute? My "hg qpush -a" in xen.hg will fail. I am not sure whether it is due to the skip of this step. [allen@tecra:xen.hg]hg qpush -a applying xen-naming applying tools-compile-fixes applying pty-fixes applying backtrace applying libaio applying blktap applying allow-legacy-hypercall applying msrs-solaris applying hvm-fixes applying solaris-ioemu-tap applying solaris-panic-support applying no-linux-specifica patching file tools/python/xen/xm/main.py Hunk #1 FAILED at 142 1 out of 12 hunks FAILED -- saving rejects to file tools/python/xen/xm/main.py.rej patch failed, unable to continue (try -v) patch failed, rejects left in working dir Errors during apply, please fix and refresh no-linux-specifica
I got a response from David Edmondson. The patches were updated for the xen-unstable changeset of 17748:f681c4de91fc. On Fri, Oct 10, 2008 at 12:58 PM, Lu Baolu <allen.virt@gmail.com> wrote:> On Thu, May 22, 2008 at 10:20 AM, Mark Johnson <Mark.Johnson@sun.com> wrote: >> >> ** You *may* need to merge .hgignore at this point.. >> if you do, it should be the following after the merge. >> -- >> syntax: glob >> status >> guards >> >> > > Hi Mark, > > I am following this instruction to build my xen-unstable bits. Can you > tell me how to merge .hgignore as you stated here? Which command do I > need to execute? > > My "hg qpush -a" in xen.hg will fail. I am not sure whether it is due > to the skip of this step. > > [allen@tecra:xen.hg]hg qpush -a > applying xen-naming > applying tools-compile-fixes > applying pty-fixes > applying backtrace > applying libaio > applying blktap > applying allow-legacy-hypercall > applying msrs-solaris > applying hvm-fixes > applying solaris-ioemu-tap > applying solaris-panic-support > applying no-linux-specifica > patching file tools/python/xen/xm/main.py > Hunk #1 FAILED at 142 > 1 out of 12 hunks FAILED -- saving rejects to file > tools/python/xen/xm/main.py.rej > patch failed, unable to continue (try -v) > patch failed, rejects left in working dir > Errors during apply, please fix and refresh no-linux-specifica >