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

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



On 16/03/13 09:05, Felix Feng wrote:
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.

Hmm, that's strange. I had expected that this script would be useful for building the kernel and hypervisor as well, but I haven't tested that yet. Can you take a look at the xen.src.rpm to see why those files aren't being installed in the binary rpm?

To get you unblocked, you could copy those files from the original filesystem, and just install them manually after you install the new hypervisor. It's a silly extra step, but I don't have time at the moment to try to rebuild that hypervisor rpm to see what the issue is.

Mike


------
Regards,
Felix

On Mon, Mar 11, 2013 at 11:04 AM, George Shuklin
<george.shuklin@xxxxxxxxx <mailto: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
                <http://xen.org>, but it's taking a while
                and I don't feel like waiting for it to finish before
                sending this
                email).

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

                Mike

                https://github.com/mcclurmc/__xcp-sdk
                <https://github.com/mcclurmc/xcp-sdk>

            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-2.6.32.43-0.4.1.__xs1.6.10.734.170748.i686.rpm is
            needed on
            download.xen.org <http://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
    <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
    ./prep.sh
    ./build.sh





    _________________________________________________
    Xen-api mailing list
    Xen-api@xxxxxxxxxxxxx <mailto:Xen-api@xxxxxxxxxxxxx>
    http://lists.xen.org/cgi-bin/__mailman/listinfo/xen-api
    <http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api>




_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

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