Re: [Xen-devel] I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset

2017-07-06 Thread Nick Garnett
Sent: Thursday, July 06, 2017 13:48
Sent: Thursday, July 06, 2017 12:26

> From: Julien Grall [mailto:julien.gr...@arm.com]
> Sent: Tuesday, July 04, 2017 09:47
> 
> On 07/04/2017 05:42 PM, Nick Garnett wrote:
>> I tried installing the tools with an ARM64 chroot also and had a 
>> similar issue.  In that case, the package "crossbuild_essential_arm64" 
>> wouldn't install because it depended on a package that was not installable.
> 
> I don't use crossbuild within the chroot. My chroot contains ARM64 binaries 
> only and QEMU is used to run ARM64 binaries.

In that case, you don't need to install crossbuild_essential_arm64. 
Compiling in that chroot is like compiling directly on an ARM platforms.

My runes are usually:

./configure
make -j install-tools

This will install the tools in /usr/local/

I think the list of dependencies on the CrossCompiling page is still valid:

https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling#Configuring_an_arm64_crossbuild_chroot


[nickgarnett:170706-1225PDT]
Julian, you state:
In that case, you don't need to install crossbuild_essential_arm64. 
Compiling in that chroot is like compiling directly on an ARM platform.

I assume you mean if I use crossbuild it would be "like compiling directly on 
an ARM platform".  Correct?

What should I do (or not do), following the HOWTO in 
"https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling;?
Should I use "multiarch"?


[nickgarnett:170706-1345PDT]
Following the HOWTO 
"https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling;,
 resulted in the following error in the "apt-get update" step:

#created the chroot and fixed the chroot.d descriptor file

(zesty-arm64-cross)root# apt-get install vim-tiny wget sudo less 
pkgbinarymangler

#(zesty-arm64-cross)root# vi /etc/apt/sources.list
# added ...
#deb [arch=arm64] http://ports.ubuntu.com/ saucy main universe

#Since this is a cross-build chroot Recommended and Suggested packages 
are largely unnecessary, 
# created /etc/apt/apt.conf.d/30norecommends containing: 
#APT::Install-Recommends "0";
#APT::Install-Suggests "0";

(zesty-arm64-cross)root# dpkg --add-architecture arm64
(zesty-arm64-cross)root# apt-get update

Resulted in:
Err:3 http://archive.ubuntu.com/ubuntu zesty/main arm64 Packages
  404  Not Found [IP: 91.189.88.149 80]
Ign:5 http://archive.ubuntu.com/ubuntu zesty/universe arm64 Packages
Reading package lists... Done   
E: Failed to fetch 
http://archive.ubuntu.com/ubuntu/dists/zesty/main/binary-arm64/Packages  
404  Not Found [IP: 91.189.88.149 80]
E: Some index files failed to download. They have been ignored, or old 
ones used instead.

[nickgarnett:170706-1555PDT]

Got "configure: error: ./configure: line 6930: /usr/bin/python: cannot execute 
binary file: Exec format error is too old, minimum required version is 2.3"
 ./configure --host=aarch64-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
Will build the following subsystems:
  xen
  tools
  docs
configure: creating ./config.status
config.status: creating config/Toplevel.mk
config.status: creating config/Paths.mk
=== configuring in tools (/home/nick/xen-4.9.0/tools)
configure: running /bin/bash ./configure --disable-option-checking 
'--prefix=/usr/local'  
'--host=aarch64-linux-gnu' 'host_alias=aarch64-linux-gnu' 
--cache-file=/dev/null --srcdir=.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking for aarch64-linux-gnu-gcc... aarch64-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether aarch64-linux-gnu-gcc accepts -g... yes
checking for aarch64-linux-gnu-gcc option to accept ISO C89... none 
needed
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checki

Re: [Xen-devel] I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset

2017-07-06 Thread Nick Garnett
Sent: Thursday, July 06, 2017 12:26

> From: Julien Grall [mailto:julien.gr...@arm.com]
> Sent: Tuesday, July 04, 2017 09:47
> 
> On 07/04/2017 05:42 PM, Nick Garnett wrote:
>> I tried installing the tools with an ARM64 chroot also and had a 
>> similar issue.  In that case, the package "crossbuild_essential_arm64" 
>> wouldn't install because it depended on a package that was not installable.
> 
> I don't use crossbuild within the chroot. My chroot contains ARM64 binaries 
> only and QEMU is used to run ARM64 binaries.

In that case, you don't need to install crossbuild_essential_arm64. 
Compiling in that chroot is like compiling directly on an ARM platforms.

My runes are usually:

./configure
make -j install-tools

This will install the tools in /usr/local/

I think the list of dependencies on the CrossCompiling page is still valid:

https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling#Configuring_an_arm64_crossbuild_chroot


[nickgarnett:170706-1225PDT]
Julian, you state:
In that case, you don't need to install crossbuild_essential_arm64. 
Compiling in that chroot is like compiling directly on an ARM platform.

I assume you mean if I use crossbuild it would be "like compiling directly on 
an ARM platform".  Correct?

What should I do (or not do), following the HOWTO in 
"https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling;?
Should I use "multiarch"?


[nickgarnett:170706-1345PDT]
Following the HOWTO 
"https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling;,
 resulted in the following error in the "apt-get update" step:

#created the chroot and fixed the chroot.d descriptor file

(zesty-arm64-cross)root# apt-get install vim-tiny wget sudo less 
pkgbinarymangler

#(zesty-arm64-cross)root# vi /etc/apt/sources.list
# added ...
#deb [arch=arm64] http://ports.ubuntu.com/ saucy main universe

#Since this is a cross-build chroot Recommended and Suggested packages 
are largely unnecessary, 
# created /etc/apt/apt.conf.d/30norecommends containing: 
#APT::Install-Recommends "0";
#APT::Install-Suggests "0";

(zesty-arm64-cross)root# dpkg --add-architecture arm64
(zesty-arm64-cross)root# apt-get update

Resulted in:
Err:3 http://archive.ubuntu.com/ubuntu zesty/main arm64 Packages
  404  Not Found [IP: 91.189.88.149 80]
Ign:5 http://archive.ubuntu.com/ubuntu zesty/universe arm64 Packages
Reading package lists... Done   
E: Failed to fetch 
http://archive.ubuntu.com/ubuntu/dists/zesty/main/binary-arm64/Packages  
404  Not Found [IP: 91.189.88.149 80]
E: Some index files failed to download. They have been ignored, or old 
ones used instead.





___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


Re: [Xen-devel] I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset

2017-07-06 Thread Nick Garnett
Sent: Wednesday, July 05, 2017 01:15

> From: Julien Grall [mailto:julien.gr...@arm.com]
> Sent: Tuesday, July 04, 2017 09:47
> 
> On 07/04/2017 05:42 PM, Nick Garnett wrote:
>> I tried installing the tools with an ARM64 chroot also and had a 
>> similar issue.  In that case, the package "crossbuild_essential_arm64" 
>> wouldn't install because it depended on a package that was not installable.
> 
> I don't use crossbuild within the chroot. My chroot contains ARM64 binaries 
> only and QEMU is used to run ARM64 binaries.

In that case, you don't need to install crossbuild_essential_arm64. 
Compiling in that chroot is like compiling directly on an ARM platforms.

My runes are usually:

./configure
make -j install-tools

This will install the tools in /usr/local/

I think the list of dependencies on the CrossCompiling page is still valid:

https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling#Configuring_an_arm64_crossbuild_chroot


[nickgarnett:170706-1225PDT]
Julian, you state:
In that case, you don't need to install crossbuild_essential_arm64. 
Compiling in that chroot is like compiling directly on an ARM platform.

I assume you mean if I use crossbuild it would be "like compiling directly on 
an ARM platform".  Correct?

What should I do (or not do), following the HOWTO in 
"https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling;?
Should I use "multiarch"?

Regards, Nick Garnett





___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


Re: [Xen-devel] I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset

2017-07-05 Thread Nick Garnett

 Original message From: Julien Grall <julien.gr...@arm.com> 
Date: 7/5/17  01:15  (GMT-08:00) To: Nick Garnett <n...@zazzu.com>, 'xen-devel' 
<xen-de...@lists.xenproject.org>, 'Wei Liu' <wei.l...@citrix.com>, 'Stefano 
Stabellini' <sstabell...@kernel.org> Subject: Re: [Xen-devel] I was able to 
cross-compile the hypervisor on an
  amd64 host for the aarch64 target ... However, I can't build the Xen toolset 
Hello Nick,

On 07/04/2017 10:59 PM, Nick Garnett wrote:
> From: Julien Grall [mailto:julien.gr...@arm.com]
> Sent: Tuesday, July 04, 2017 09:47
> 
> On 07/04/2017 05:42 PM, Nick Garnett wrote:
>> I tried installing the tools with an ARM64 chroot also and had a similar 
>> issue.  In that case, the package
>> "crossbuild_essential_arm64" wouldn't install because it depended on a 
>> package that was not installable.
> 
> I don't use crossbuild within the chroot. My chroot contains ARM64 binaries 
> only and QEMU is used to run ARM64 binaries.

In that case, you don't need to install crossbuild_essential_arm64. 
Compiling in that chroot is like compiling directly on an ARM platforms.

My runes are usually:

./configure
make -j install-tools

This will install the tools in /usr/local/

I think the list of dependencies on the CrossCompiling page is still valid:

https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling#Configuring_an_arm64_crossbuild_chroot

> 
> Which distributions are you targeting?
> 
>   [nickgarnett 1707041454PDT]  I am using Xen 4.9.0

I meant Linux Distribution. E.g is it Debian, Fedora, Yocto?

[nickgarnett]  Ubuntu Zesty

___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


Re: [Xen-devel] I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset

2017-07-04 Thread Nick Garnett
From: Julien Grall [mailto:julien.gr...@arm.com] 
Sent: Tuesday, July 04, 2017 09:47

On 07/04/2017 05:42 PM, Nick Garnett wrote:
> I tried installing the tools with an ARM64 chroot also and had a similar 
> issue.  In that case, the package 
> "crossbuild_essential_arm64" wouldn't install because it depended on a 
> package that was not installable.

I don't use crossbuild within the chroot. My chroot contains ARM64 binaries 
only and QEMU is used to run ARM64 binaries.

Which distributions are you targeting?

[nickgarnett 1707041454PDT]  I am using Xen 4.9.0




___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


Re: [Xen-devel] What is provided with the Xen Tools and why do I need them?

2017-07-04 Thread Nick Garnett


-Original Message-
From: Roger Pau Monné [mailto:roger@citrix.com] 
Sent: Tuesday, July 04, 2017 09:40
To: Nick Garnett <n...@zazzu.com>
Cc: xen-devel@lists.xen.org
Subject: Re: [Xen-devel] What is provided with the Xen Tools and why do I
need them?

Hello,

Please avoid top-posting, it breaks the flow of the conversation.

On Tue, Jul 04, 2017 at 09:34:17AM -0700, Nick Garnett wrote:
> Is "xl" the application that is installed following the "Xen ARM with 
> Virtualization Extensions/CrossCompiling" page, "Build arm64 tools"
section?

Yes, those are the tools I was referring to.

> I was able to install the "xen-tools" package with no issues, 
> following the "xen-tools – a straightforward VM 
> provisioning/installation tool" page 
> ("https://blog.xenproject.org/2012/08/31/xen-tools-a-straightforward-v
> m-prov
> isioninginstallation-tool/").

OK, this is not the tools I was referring to. Sadly someone decided to
create a completely different application that's used for provisioning vm
images, and decided to name it xen-tools. This is not mandatory in order to
run a Xen Dom0.

> Does that package provide the only "Xen Tools" that are necessary?

No.

Roger.

_

So, the "xen-tools" package does not provide all of the tools that are
necessary.  It provides xl/xm, so what else is necessary?

OK, not top-posting.  Using a mail tool that puts replies at the top.



___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


Re: [Xen-devel] What is provided with the Xen Tools and why do I need them?

2017-07-04 Thread Nick Garnett
Is "xl" the application that is installed following the "Xen ARM with
Virtualization Extensions/CrossCompiling" page, "Build arm64 tools" section?

I was able to install the "xen-tools" package with no issues, following the
"xen-tools – a straightforward VM provisioning/installation tool" page
("https://blog.xenproject.org/2012/08/31/xen-tools-a-straightforward-vm-prov
isioninginstallation-tool/").

Does that package provide the only "Xen Tools" that are necessary?

-Original Message-
From: Roger Pau Monné [mailto:roger@citrix.com] 
Sent: Tuesday, July 04, 2017 01:39
To: Nick Garnett <n...@zazzu.com>
Cc: xen-devel@lists.xen.org
Subject: Re: [Xen-devel] What is provided with the Xen Tools and why do I
need them?

On Mon, Jul 03, 2017 at 11:44:33AM -0700, Nick Garnett wrote:
> There are many references to the "Xen Tools", but I can't find any 
> documentation that explains what the "Xen Tools" are.
>
> What is provided with the Xen Tools and why do I need them?

The Xen tools are used to create and manage virtual machines. See xl(1)[0]
for more information.

Roger.

[0] http://xenbits.xen.org/docs/unstable/man/xl.1.html



___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


Re: [Xen-devel] What is provided with the Xen Tools and why do I need them?

2017-07-04 Thread Nick Garnett
Is "xl" the application that is installed following the "Xen ARM with
Virtualization Extensions/CrossCompiling" page, "Build arm64 tools" section?

I was able to install the "xen-tools" package with no issues, following the
"xen-tools – a straightforward VM provisioning/installation tool" page
("https://blog.xenproject.org/2012/08/31/xen-tools-a-straightforward-vm-prov
isioninginstallation-tool/").

Does that package provide the only "Xen Tools" that are necessary?

-Original Message-
From: Roger Pau Monné [mailto:roger@citrix.com] 
Sent: Tuesday, July 04, 2017 01:39
To: Nick Garnett <n...@zazzu.com>
Cc: xen-devel@lists.xen.org
Subject: Re: [Xen-devel] What is provided with the Xen Tools and why do I
need them?

On Mon, Jul 03, 2017 at 11:44:33AM -0700, Nick Garnett wrote:
> There are many references to the "Xen Tools", but I can't find any 
> documentation that explains what the "Xen Tools" are.
>
> What is provided with the Xen Tools and why do I need them?

The Xen tools are used to create and manage virtual machines. See xl(1)[0]
for more information.

Roger.

[0] http://xenbits.xen.org/docs/unstable/man/xl.1.html



___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


[Xen-devel] I was able to cross-compile the hypervisor on an amd64 host for the aarch64 target ... However, I can't build the Xen toolset

2017-07-03 Thread Nick Garnett
I was able to cross-compile the hypervisor on an amd64 host for the aarch64
target. However, I can't build the Xen toolset. 

I am following the "Xen ARM with Virtualization Extensions/CrossCompiling"
page, "Build arm64 tools" section. When I execute:

"./configure --build=x86_64-unknown-linux-gnu --host=aarch64-linux-gnu", I
get the following errors:

checking for uuid_clear in -luuid... no
checking uuid.h usability... no
checking uuid.h presence... no
checking for uuid.h... no
configure: error: cannot find a valid uuid library
configure: error: ./configure failed for tools

I have installed uuid, uuid-dev uuid-runtime and uuidcdef, but continue to
get the same error.

If anyone has seen and resolved this issue, please provide details.

Regards, Nick Garnett

Zazzu Firmware Architect




___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel


[Xen-devel] What is provided with the Xen Tools and why do I need them?

2017-07-03 Thread Nick Garnett
There are many references to the "Xen Tools", but I can't find any
documentation that explains what the "Xen Tools" are.

What is provided with the Xen Tools and why do I need them?

Regards, Nick Garnett

Zazzu Firmware Architect




___
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel