Mailing List Archive

How to compile the 32 bits xen-api
hi list
Now we are trying to compile the xapi for 32bits
We follow the steps from github like below:
While these are for 64 bits, not 32 bits.
I just want to know how to compile XAPI 32bits for Xserver6.2.
Any suggestions are welcome
Thanks a lot

nlx
======================================================================
buildroot
Buildroot for xen-api and related packages, producing RPM and
(experimentally) Debian packages.

RPM-based distributions

On RPM-based distributions, the packages are built using mock. To install
it on a 64-bit RHEL/CentOS system then you will need to add the EPEL
repositories. Here is a useful article for CentOS.

After adding EPEL, install and set up mock:

yum install -y mock redhat-lsb-core
Mock will refuse to run as root. You must choose a non-privileged user to
run mock as. Type the following as root:

(Note select a <user> which isn't "mock" when typing the commands below)

useradd <user> -G mock
passwd <user>

su - <user>
You are now ready to clone the buildroot repository and build the packages:

git clone git://github.com/xenserver/buildroot.git
cd buildroot

./configure.sh
make
Finally, install the packages you have just built, run the install wizard
to configure your system to boot Xen and start the buildroot components on
boot, then reboot:

make install
xenserver-install-wizard
reboot
=======================================================================
Re: How to compile the 32 bits xen-api [ In reply to ]
XenServer 6.2 is based on CentOS 5. For building there, I would
recommend installing a CentOS 5 VM, and then installing the dependencies
of xapi from the binpkg ISO (called 'Development Packages') from here:
http://xenserver.org/overview-xenserver-open-source-virtualization/download.html.
The dependencies are in domain0/RPMs/i686/.

Also, for 6.2 development you should use the 'clearwater-lcm' branch on
github. Master has moved on a long way since 6.2 was released and will
no longer compile with the 6.2 dependencies.

You may also want to check out the pre-release page here:
http://xenserver.org/open-source-virtualization-download/11-product/142-download-pre-release.html.
It's similar to 6.2 in that it's CentOS 5 based too, but 64 bit rather
than 32 bit. The git branch for xapi development for this release is
named xs64bit-ring3.

This is a slightly different process for dev than we use internally so
I'd be keen to know if you come across any problems.

Good luck!

Jon


On 14/08/14 09:06, nu li wrote:
> hi list
> Now we are trying to compile the xapi for 32bits
> We follow the steps from github like below:
> While these are for 64 bits, not 32 bits.
> I just want to know how to compile XAPI 32bits for Xserver6.2.
> Any suggestions are welcome
> Thanks a lot
>
> nlx
> ======================================================================
> buildroot
> Buildroot for xen-api and related packages, producing RPM and
> (experimentally) Debian packages.
>
> RPM-based distributions
>
> On RPM-based distributions, the packages are built using mock. To
> install it on a 64-bit RHEL/CentOS system then you will need to add
> the EPEL repositories. Here is a useful article for CentOS.
>
> After adding EPEL, install and set up mock:
>
> yum install -y mock redhat-lsb-core
> Mock will refuse to run as root. You must choose a non-privileged user
> to run mock as. Type the following as root:
>
> (Note select a <user> which isn't "mock" when typing the commands below)
>
> useradd <user> -G mock
> passwd <user>
>
> su - <user>
> You are now ready to clone the buildroot repository and build the
> packages:
>
> git clone git://github.com/xenserver/buildroot.git
> <http://github.com/xenserver/buildroot.git>
> cd buildroot
>
> ./configure.sh
> make
> Finally, install the packages you have just built, run the install
> wizard to configure your system to boot Xen and start the buildroot
> components on boot, then reboot:
>
> make install
> xenserver-install-wizard
> reboot
> =======================================================================
>
>
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@lists.xen.org
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: How to compile the 32 bits xen-api [ In reply to ]
I have built 32-bit xapi on centos5.8, using tag XS62ESP1 on github and
binpkg ISO,
but after replacing original xapi file on my Xenserver 6.2 SP1 with the
new one, I can't launch a VM with an error 'The bootloader for this VM
returned an error -- did the VM installation succeed? Bootable disk has no
valid filesystem'
How can I build the same Xapi as on my XenServer 6.2 with SP1
Thanks,
Fan


On Mon, Aug 18, 2014 at 7:05 PM, Jon Ludlam <jonathan.ludlam@eu.citrix.com>
wrote:

> XenServer 6.2 is based on CentOS 5. For building there, I would
> recommend installing a CentOS 5 VM, and then installing the dependencies of
> xapi from the binpkg ISO (called 'Development Packages') from here:
> http://xenserver.org/overview-xenserver-open-source-virtualization/download.html.
> The dependencies are in domain0/RPMs/i686/.
>
> Also, for 6.2 development you should use the 'clearwater-lcm' branch on
> github. Master has moved on a long way since 6.2 was released and will no
> longer compile with the 6.2 dependencies.
>
> You may also want to check out the pre-release page here:
> http://xenserver.org/open-source-virtualization-download/11-product/142-download-pre-release.html.
> It's similar to 6.2 in that it's CentOS 5 based too, but 64 bit rather than
> 32 bit. The git branch for xapi development for this release is named
> xs64bit-ring3.
>
> This is a slightly different process for dev than we use internally so I'd
> be keen to know if you come across any problems.
>
> Good luck!
>
> Jon
>
>
>
> On 14/08/14 09:06, nu li wrote:
>
> hi list
> Now we are trying to compile the xapi for 32bits
> We follow the steps from github like below:
> While these are for 64 bits, not 32 bits.
> I just want to know how to compile XAPI 32bits for Xserver6.2.
> Any suggestions are welcome
> Thanks a lot
>
> nlx
> ======================================================================
> buildroot
> Buildroot for xen-api and related packages, producing RPM and
> (experimentally) Debian packages.
>
> RPM-based distributions
>
> On RPM-based distributions, the packages are built using mock. To install
> it on a 64-bit RHEL/CentOS system then you will need to add the EPEL
> repositories. Here is a useful article for CentOS.
>
> After adding EPEL, install and set up mock:
>
> yum install -y mock redhat-lsb-core
> Mock will refuse to run as root. You must choose a non-privileged user to
> run mock as. Type the following as root:
>
> (Note select a <user> which isn't "mock" when typing the commands below)
>
> useradd <user> -G mock
> passwd <user>
>
> su - <user>
> You are now ready to clone the buildroot repository and build the packages:
>
> git clone git://github.com/xenserver/buildroot.git
> cd buildroot
>
> ./configure.sh
> make
> Finally, install the packages you have just built, run the install wizard
> to configure your system to boot Xen and start the buildroot components on
> boot, then reboot:
>
> make install
> xenserver-install-wizard
> reboot
> =======================================================================
>
>
> _______________________________________________
> Xen-api mailing listXen-api@lists.xen.orghttp://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
>
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@lists.xen.org
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
>


--
Fan Liao
Cloudpi@BST, Samsung
College of Software Engineering@BUAA
Re: How to compile the 32 bits xen-api [ In reply to ]
On 21/08/14 08:26, Fan Liao wrote:
> I have built 32-bit xapi on centos5.8, using tag XS62ESP1 on github
> and binpkg ISO,
> but after replacing original xapi file on my Xenserver 6.2 SP1 with
> the new one, I can't launch a VM with an error 'The bootloader for
> this VM returned an error -- did the VM installation succeed? Bootable
> disk has no valid filesystem'
> How can I build the same Xapi as on my XenServer 6.2 with SP1
> Thanks,
> Fan
>
This is encouraging - at least xapi started! Can you confirm that the VM
boots OK with the old xapi? If so, it suggests an interface change with
pygrub perhaps. Have you tried installing a new VM? You might also try
an HVM VM rather than PV as these don't have external bootloaders.

Jon
Re: How to compile the 32 bits xen-api [ In reply to ]
The old xapi works well, and HVM VM can boot with the new xapi.
And also, if I use the old xapi to launch a PV VM, then change to the new
xapi, the PV VM can boot with the new xapi.
Can u give some suggestion on further work?
Thanks,
Fan


On Mon, Aug 18, 2014 at 7:05 PM, Jon Ludlam <jonathan.ludlam@eu.citrix.com>
wrote:

> XenServer 6.2 is based on CentOS 5. For building there, I would
> recommend installing a CentOS 5 VM, and then installing the dependencies of
> xapi from the binpkg ISO (called 'Development Packages') from here:
> http://xenserver.org/overview-xenserver-open-source-virtualization/download.html.
> The dependencies are in domain0/RPMs/i686/.
>
> Also, for 6.2 development you should use the 'clearwater-lcm' branch on
> github. Master has moved on a long way since 6.2 was released and will no
> longer compile with the 6.2 dependencies.
>
> You may also want to check out the pre-release page here:
> http://xenserver.org/open-source-virtualization-download/11-product/142-download-pre-release.html.
> It's similar to 6.2 in that it's CentOS 5 based too, but 64 bit rather than
> 32 bit. The git branch for xapi development for this release is named
> xs64bit-ring3.
>
> This is a slightly different process for dev than we use internally so I'd
> be keen to know if you come across any problems.
>
> Good luck!
>
> Jon
>
>
>
> On 14/08/14 09:06, nu li wrote:
>
> hi list
> Now we are trying to compile the xapi for 32bits
> We follow the steps from github like below:
> While these are for 64 bits, not 32 bits.
> I just want to know how to compile XAPI 32bits for Xserver6.2.
> Any suggestions are welcome
> Thanks a lot
>
> nlx
> ======================================================================
> buildroot
> Buildroot for xen-api and related packages, producing RPM and
> (experimentally) Debian packages.
>
> RPM-based distributions
>
> On RPM-based distributions, the packages are built using mock. To install
> it on a 64-bit RHEL/CentOS system then you will need to add the EPEL
> repositories. Here is a useful article for CentOS.
>
> After adding EPEL, install and set up mock:
>
> yum install -y mock redhat-lsb-core
> Mock will refuse to run as root. You must choose a non-privileged user to
> run mock as. Type the following as root:
>
> (Note select a <user> which isn't "mock" when typing the commands below)
>
> useradd <user> -G mock
> passwd <user>
>
> su - <user>
> You are now ready to clone the buildroot repository and build the packages:
>
> git clone git://github.com/xenserver/buildroot.git
> cd buildroot
>
> ./configure.sh
> make
> Finally, install the packages you have just built, run the install wizard
> to configure your system to boot Xen and start the buildroot components on
> boot, then reboot:
>
> make install
> xenserver-install-wizard
> reboot
> =======================================================================
>
>
> _______________________________________________
> Xen-api mailing listXen-api@lists.xen.orghttp://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
>
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@lists.xen.org
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
>


--
Fan Liao
Cloudpi@BST, Samsung
College of Software Engineering@BUAA
Re: How to compile the 32 bits xen-api [ In reply to ]
I'd look through the logfiles and see if there's a difference in how the
bootloader (pygrub, probably) is invoked. Perhaps the command-line
arguments have changed?

Jon

On 25/08/14 02:32, Fan Liao wrote:
> The old xapi works well, and HVM VM can boot with the new xapi.
> And also, if I use the old xapi to launch a PV VM, then change to the
> new xapi, the PV VM can boot with the new xapi.
> Can u give some suggestion on further work?
> Thanks,
> Fan
>
>
> On Mon, Aug 18, 2014 at 7:05 PM, Jon Ludlam
> <jonathan.ludlam@eu.citrix.com <mailto:jonathan.ludlam@eu.citrix.com>>
> wrote:
>
> XenServer 6.2 is based on CentOS 5. For building there, I would
> recommend installing a CentOS 5 VM, and then installing the
> dependencies of xapi from the binpkg ISO (called 'Development
> Packages') from here:
> http://xenserver.org/overview-xenserver-open-source-virtualization/download.html.
> The dependencies are in domain0/RPMs/i686/.
>
> Also, for 6.2 development you should use the 'clearwater-lcm'
> branch on github. Master has moved on a long way since 6.2 was
> released and will no longer compile with the 6.2 dependencies.
>
> You may also want to check out the pre-release page here:
> http://xenserver.org/open-source-virtualization-download/11-product/142-download-pre-release.html.
> It's similar to 6.2 in that it's CentOS 5 based too, but 64 bit
> rather than 32 bit. The git branch for xapi development for this
> release is named xs64bit-ring3.
>
> This is a slightly different process for dev than we use
> internally so I'd be keen to know if you come across any problems.
>
> Good luck!
>
> Jon
>
>
>
> On 14/08/14 09:06, nu li wrote:
>> hi list
>> Now we are trying to compile the xapi for 32bits
>> We follow the steps from github like below:
>> While these are for 64 bits, not 32 bits.
>> I just want to know how to compile XAPI 32bits for Xserver6.2.
>> Any suggestions are welcome
>> Thanks a lot
>>
>> nlx
>> ======================================================================
>> buildroot
>> Buildroot for xen-api and related packages, producing RPM and
>> (experimentally) Debian packages.
>>
>> RPM-based distributions
>>
>> On RPM-based distributions, the packages are built using mock. To
>> install it on a 64-bit RHEL/CentOS system then you will need to
>> add the EPEL repositories. Here is a useful article for CentOS.
>>
>> After adding EPEL, install and set up mock:
>>
>> yum install -y mock redhat-lsb-core
>> Mock will refuse to run as root. You must choose a non-privileged
>> user to run mock as. Type the following as root:
>>
>> (Note select a <user> which isn't "mock" when typing the commands
>> below)
>>
>> useradd <user> -G mock
>> passwd <user>
>>
>> su - <user>
>> You are now ready to clone the buildroot repository and build the
>> packages:
>>
>> git clone git://github.com/xenserver/buildroot.git
>> <http://github.com/xenserver/buildroot.git>
>> cd buildroot
>>
>> ./configure.sh
>> make
>> Finally, install the packages you have just built, run the
>> install wizard to configure your system to boot Xen and start the
>> buildroot components on boot, then reboot:
>>
>> make install
>> xenserver-install-wizard
>> reboot
>> =======================================================================
>>
>>
>>
>> _______________________________________________
>> Xen-api mailing list
>> Xen-api@lists.xen.org <mailto:Xen-api@lists.xen.org>
>> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
>
> _______________________________________________
> Xen-api mailing list
> Xen-api@lists.xen.org <mailto:Xen-api@lists.xen.org>
> http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
>
>
>
>
> --
> Fan Liao
> Cloudpi@BST, Samsung
> College of Software Engineering@BUAA