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

Re: [Xen-API] how to compile XCP source?

Hi George, Mike,

Now I can build xapi successfully by following your instructions. I also can build xen and dom0 kernel from the *.src.rpm in the xcp source iso. I installed these rpm packages and reboot to the dom0. Then I hit another problem. That is -

# xl list
libxl: error: libxl.c:56:libxl_ctx_init Is xenstore daemon running?
failed to stat /var/run/xenstored.pid: No such file or directory
cannot init xl context

# xe vm-list
Error: Connection refused (calling connect )

I checked the files in xen-tools.xxx.rpm, and it seems some files is missing, for example, /etc/init.d/xencommons, /etc/init.d/xend and /etc/init.d/xendomains. I was wondering if it is a known issue? Or, any ideas or suggestions? Thanks.


On Mon, Mar 11, 2013 at 11:04 AM, George Shuklin <george.shuklin@xxxxxxxxx> wrote:

06.03.2013 22:25, Mike McClurg ÐÐÑÐÑ:

I have done so, except for the _javascript_ changes. Please check out my
repo on github (I'm just in the process of checking that I can
download all the necessary rpms from xen.org, but it's taking a while
and I don't feel like waiting for it to finish before sending this

Also, please feel free to send me a pull request with any changes
you'd like to add (in fact, I really encourage this!).


Thank you!

I found two issues now:
1) Something strange with EPEL installation with rpm + direct http link
2) Incorrect handling of errors in the middle of download process.

I'll fix them and will send pull request (but
kernel-xen- is needed on
download.xen.org and in prep.sh file...)

Thanks. I've uploaded that file. Pull from my repo before you update prep.sh. If you could work something out for the downloading jquery and exporting the right environment variables, that would be great too. Thanks a lot.

Ok, no final stage: build.sh. (https://github.com/mcclurmc/xcp-sdk/pull/3)

It set up proper variables for make file, patch installed SRPM (I choose from 'patch xen-api/xapi.spec' and 'patch /usr/src/redhat/SPEC/xapi.spec' - second seems be less invasive), and exec rpmbuild.

and some changes to prep.sh. I found why it does not install gcc with 'developer tools'. Default centos shipped with make utility, so checking failed. I add manual installation of gcc and rpm-build, and _javascript_ download.

Now all build process is extremely simple:

wget ..../prep.sh
wget ..../build.sh
chmod +x prep.sh build.sh

Xen-api mailing list

Xen-api mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.