Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Call for testing: Xen 4.0



On 18.01.10 22:17, David Brownlee wrote:
> Would there be any sense in having pre-cut netbsd-5 binaries?

The mercurial source tree is changing too fast for me to keep binaries
up to date.

Christoph


> 
> On 18 Jan 2010 14:37, "Christoph Egger" <Christoph_Egger%gmx.de@localhost> 
> wrote:
> 
> 
> Hi!
> 
> Xen 4.0 is coming soon.
> You can make sure it will work on NetBSD by helping with testing it.
> 
> First compile the sources. For this, install devel/mercurial, devel/scmgit
> and devel/gmake
> 
> Then check out the sources:
> 
> hg clone http://xenbits.xensource.com/xen-unstable.hg/
> 
> Enter the directory:
> 
> cd xen-unstable.hg
> 
> Then apply this patch which applies stuff that is not upstream but needed
> to make it basically working on NetBSD:
> http://www.netbsd.org/~cegger/xen40_netbsd.diff
> 
> patch -p1 < xen40_netbsd.diff
> 
> Then apply this patch. This disables stuff that is missing in NetBSD
> (shm and pthread) and would break build, otherwise:
> http://www.netbsd.org/~cegger/xen40_netbsd_workaround.diff
> 
> patch -p1 < xen40_netbsd_workaround.diff
> 
> Next, define some environment variables:
> 
> Set the PYTHON environment variable to the version you installed
> as a dependency of mercurial:
> 
> PYTHON=python2.5  (if you have python 2.5)
> export PYTHON
> 
> Define PREFIX where you want to install it:
> 
> PREFIX="/usr/xen40"
> export PREFIX
> 
> Compile and install the xen kernel:
> 
> gmake xen && cp xen/xen.gz /xen40.gz
> 
> Compile and install the xen tools:
> 
> gmake dist-tools && cp -Rp dist/install/${PREFIX}/* ${PREFIX}/
> 
> Now add a new entry to your /boot.cfg :
> 
> menu=Xen4;load /netbsd-XEN3_DOM0 console=pc;multiboot /xen40.gz
> 
> 
> At or after boot but before starting xend set two environment variables:
> 
> export LD_LIBRARY_PATH="${PREFIX}/lib"
> export PYTHONPATH="${PREFIX}/lib/${PYTHON}/site-packages"
> 
> where PREFIX and PYTHON are the ones from above. You may substitute them
> manually.
> 
> Now start "xend".  xend launches xenbackendd automatically. No need to
> start it seperately.
> 
> Now you can start your PV guests.
> 
> Before you start your HVM guests, in the guest config files replace the
> lines
> 
> kernel="/usr/pkg/lib/xen/boot/hvmloader"
> device_model="/usr/pkg/libexec/qemu-bin"
> 
> with
> 
> kernel="hvmloader"
> device_model="qemu-dm"
> 
> or Xen 4 will try to use the wrong versions.
> 
> Enjoy,
> Christoph
> 



Home | Main Index | Thread Index | Old Index