Xen to run Manjaro and Raspbian
#1
Sorry if this a dupe of prior questions about hypervisor implementations on Pine hardware.

Has anyone out there installed the Xen hypervisor on the Pinebook Pro then reinstalled Manjaro?

I don't want to reinvent the wheel.  I'd like to be able to run customized images of Raspbian in a virtualizer not an emulator.

Just found be Pinebook Pro and it looks quite promising.  Also am looking to replace Presario running Linux as my alternate to Windoz platform for the household, also, again, the Pinebook Pro looks like a no-brainer.
#2
(04-29-2020, 12:12 PM)marawuti Wrote: Sorry if this a dupe of prior questions about hypervisor implementations on Pine hardware.

Has anyone out there installed the Xen hypervisor on the Pinebook Pro then reinstalled Manjaro?

I don't want to reinvent the wheel.  I'd like to be able to run customized images of Raspbian in a virtualizer not an emulator.

Just found be Pinebook Pro and it looks quite promising.  Also am looking to replace Presario running Linux as my alternate to Windoz platform for the household, also, again, the Pinebook Pro looks like a no-brainer.

Im sure you are not reinventing a wheel here, you can read about aarch64 and XEN here :
https://wiki.xenproject.org/wiki/Xen_ARM...Extensions
and make conclusions on how easy/difficult it would be to port it to the Pinebookpro

To me a relatively easy way to do what you want is through KVM accelerated Qemu
#3
Porting may not be necessary, Xen is in the AUR.
#4
(04-30-2020, 04:27 AM)tophneal Wrote: Porting may not be necessary, Xen is in the AUR.

Are you sure this would work on aarch64 Pinebookpro ?  To me this looks more like a x86 centric port.
#5
I’m not entirely sure, no. But Xen cites itself as having ARM support already, and is in the AUR. If the Xen in the AUR is only x86, it’s still likely possible to build on the PBP by editing the pkgbuild. I’d try it out myself, but I’d have to make another Manjaro SD first.

Read a little more into this on the Arch wiki, and I'm probably wrong about the porting, but it looks like there's a pretty quick way to see if it's possible to run Xen on aarch64:

Quote:To run HVM domU, the physical hardware must have either Intel VT-x or AMD-V (SVM) virtualization support. In order to verify this, run the following command when the Xen hypervisor is not running:

Code:
$ grep -E "(vmx|svm)" --color=always /proc/cpuinfo


If the above command does not produce output, then hardware virtualization support is unavailable and your hardware is unable to run HVM domU (or you are already running the Xen hypervisor).
#6
(04-30-2020, 05:06 AM)tophneal Wrote: I’m not entirely sure, no. But Xen cites itself as having ARM support already, and is in the AUR. If the Xen in the AUR is only x86, it’s still likely possible to build on the PBP by editing the pkgbuild. I’d try it out myself, but I’d have to make another Manjaro SD first.

Read a little more into this on the Arch wiki, and I'm probably wrong about the porting, but it looks like there's a pretty quick way to see if it's possible to run Xen on aarch64:

Quote:To run HVM domU, the physical hardware must have either Intel VT-x or AMD-V (SVM) virtualization support. In order to verify this, run the following command when the Xen hypervisor is not running:

Code:
$ grep -E "(vmx|svm)" --color=always /proc/cpuinfo


If the above command does not produce output, then hardware virtualization support is unavailable and your hardware is unable to run HVM domU (or you are already running the Xen hypervisor).

There are no vmx nor svm flags on the Pinebookpro in /proc/cpuinfo

only
fp asmid evtstrm aes pmull sha1 sha2 crc32 cpuid
#7
(04-30-2020, 08:36 AM)astr0baby Wrote:
(04-30-2020, 05:06 AM)tophneal Wrote: I’m not entirely sure, no. But Xen cites itself as having ARM support already, and is in the AUR. If the Xen in the AUR is only x86, it’s still likely possible to build on the PBP by editing the pkgbuild. I’d try it out myself, but I’d have to make another Manjaro SD first.

Read a little more into this on the Arch wiki, and I'm probably wrong about the porting, but it looks like there's a pretty quick way to see if it's possible to run Xen on aarch64:

Quote:To run HVM domU, the physical hardware must have either Intel VT-x or AMD-V (SVM) virtualization support. In order to verify this, run the following command when the Xen hypervisor is not running:

Code:
$ grep -E "(vmx|svm)" --color=always /proc/cpuinfo


If the above command does not produce output, then hardware virtualization support is unavailable and your hardware is unable to run HVM domU (or you are already running the Xen hypervisor).

There are no vmx nor svm flags on the Pinebookpro in /proc/cpuinfo

only
fp asmid evtstrm aes pmull sha1 sha2 crc32 cpuid

Yeah, once I saw those flag requirements, I knew I was in the wrong. OP will likely need to explorer other options.

EDIT:

I'm in the midst of updating Fedora on the PBP and it appears it already includes Xen. There's also Xen pkgs for aarch64 available here: https://rpmfind.net/linux/rpm2html/search.php?query=xen
Xen on aarch64 may be a possibility, though it might have some restrictions given those required flags.
#8
(04-30-2020, 08:39 AM)tophneal Wrote:
(04-30-2020, 08:36 AM)astr0baby Wrote:
(04-30-2020, 05:06 AM)tophneal Wrote: I’m not entirely sure, no. But Xen cites itself as having ARM support already, and is in the AUR. If the Xen in the AUR is only x86, it’s still likely possible to build on the PBP by editing the pkgbuild. I’d try it out myself, but I’d have to make another Manjaro SD first.

Read a little more into this on the Arch wiki, and I'm probably wrong about the porting, but it looks like there's a pretty quick way to see if it's possible to run Xen on aarch64:

Quote:To run HVM domU, the physical hardware must have either Intel VT-x or AMD-V (SVM) virtualization support. In order to verify this, run the following command when the Xen hypervisor is not running:

Code:
$ grep -E "(vmx|svm)" --color=always /proc/cpuinfo


If the above command does not produce output, then hardware virtualization support is unavailable and your hardware is unable to run HVM domU (or you are already running the Xen hypervisor).

There are no vmx nor svm flags on the Pinebookpro in /proc/cpuinfo

only
fp asmid evtstrm aes pmull sha1 sha2 crc32 cpuid

Yeah, once I saw those flag requirements, I knew I was in the wrong. OP will likely need to explorer other options.

EDIT:

I'm in the midst of updating Fedora on the PBP and it appears it already includes Xen. There's also Xen pkgs for aarch64 available here: https://rpmfind.net/linux/rpm2html/search.php?query=xen
Xen on aarch64 may be a possibility, though it might have some restrictions given those required flags.

Accodring to the Xen development Wiki, the Rockchip 3399 used in PBP is capable of running Xen[/url]. There are also [url=https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/Ibox3399]instructions for a specific board with this chip.
#9
I know you mentioned Xen, and although Xen is neat, if you don't NEED Xen (which based on the context of your post I am not sure why you'd need specifically Xen), you might have better luck with KVM: https://www.linux-kvm.org/page/Processor_support#ARM:


Possibly Related Threads…
Thread Author Replies Views Last Post
  Manjaro versions bad and good gilwood 0 188 02-12-2024, 05:03 PM
Last Post: gilwood
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 1,998 12-15-2023, 02:11 PM
Last Post: wdt
  PBP won't boot after trying to reinstall Manjaro ARM soupgirl 3 561 12-13-2023, 08:17 PM
Last Post: trillobite
  Games compilation howto on the Pinebook-pro (Manjaro Linux and Debian native) astr0baby 201 314,486 05-12-2023, 06:09 AM
Last Post: korreckj328
  Manjaro Plasma blinking cursor jcun4128 4 1,362 05-08-2023, 11:17 AM
Last Post: korreckj328
  PBP blank screen after updating Manjaro Franko 6 1,869 04-01-2023, 07:55 AM
Last Post: hacknix
  Manjaro - which libdrm? hacknix 0 529 04-01-2023, 03:21 AM
Last Post: hacknix
  Partial boot after installing Manjaro on emmc regivanx 11 2,957 02-06-2023, 09:11 AM
Last Post: wdt
  Manjaro pinebookpro images with kernel 5.7.19 rfm83 11 4,514 01-22-2023, 10:05 PM
Last Post: rfm83
  No boot after Manjaro flash PBcurry 14 5,149 10-03-2022, 08:33 PM
Last Post: wdt

Forum Jump:


Users browsing this thread: 1 Guest(s)