>
> Allen, can you describe exactly what you have done to get this far?
>

OK!

1. Setting up all the environment parameters according to the instruction

2. Grab/setup the b101 xvm sources
mkdir xvm-gate
cd xvm-gate
wget http://dlc.sun.com/osol/on/downloads/b101/xvm-src.tar.bz2
bzcat xvm-src.tar.bz2 | tar xf -

3. Clone the sunos.hg bits
mv sunos.hg sunos.hg.101
hg clone ssh://[EMAIL PROTECTED]/hg/xen-gate/sunos-unstable sunos.hg

4. modify check_pkgs.ksh to let build continue if some files were not packaged
vi sunos.hg/src/pkgdefs/check_pkgs.ksh
#comment the "ret=1" line

5. Get the xen-unstable changeset 17748
mv xen.hg xen.hg.101
hg clone -r 17748 http://xenbits.xensource.com/xen-unstable.hg xen.hg

6. get xen-unstable patches
cd xen.hg
hg qinit -c
echo "[paths]" > .hg/patches/.hg/hgrc
echo "default =
ssh://[EMAIL PROTECTED]/hg/xen-gate/devel-unstable-patches" >>
.hg/patches/.hg/hgrc
cd .hg/patches/
hg pull -uv

7. push the patch stack
cd ../../
hg qpush -a

8. modify a gcc option to let the build continue if there is a warning in libxc
vi xen.hg/tools/libxc/Makefile
#remove "-Werror" gcc option

9. build all
sunos.hg/bin/build-all full
# 11 packages are generated under packages-(non)debug directories

10. replace the installed packages with the built result
# svcadm disable xvm/domains xvm/console xvm/xend xvm/store

# pkgrm SUNWvirtinst SUNWurlgrabber SUNWlibvirt SUNWlibvirtr SUNWxvmh \
  SUNWxvmhvm SUNWxvmu SUNWxvmr SUNWxvmdomu  SUNWxvmdomr SUNWvdisk

# pkgadd -d packages-nondebug SUNWxvmdomr SUNWxvmdomu SUNWxvmr
SUNWxvmu SUNWxvmhvm \
 SUNWxvmh SUNWlibvirt SUNWlibvirtr SUNWurlgrabber SUNWvirtinst SUNWvdisk

# svcadm enable xvm/store xvm/xend xvm/console xvm/domains

# reboot





Thanks,
-Baolu
_______________________________________________
xen-discuss mailing list
[email protected]

Reply via email to