Bananian

How to install xen hypervisor?

1 2412
nagyi  
Hello,

i'm trying to install an run the xen hypervisor on BananaPi with bananian. It installed ok, but after reboot I only get following:


root@bananapi ~ # uname -r
4.4.26-bananian
root@bananapi ~ # xl
ERROR:  Can't find hypervisor information in sysfs!


1 root@bananapi ~ # l /boot                                                                                                                                                      
insgesamt 21712
-rw-r--r-- 1 root root  101123 Mär 25  2016 config-3.4.111-bananian
-rw-r--r-- 1 root root  102060 Okt 22 13:23 config-3.4.112-bananian
-rw-r--r-- 1 root root  133226 Okt 22 04:14 config-4.4.26-bananian
-rw-r--r-- 1 root root 1837008 Mär 25  2016 System.map-3.4.111-bananian
-rw-r--r-- 1 root root 1845706 Okt 22 13:23 System.map-3.4.112-bananian
-rw-r--r-- 1 root root 2337195 Okt 22 04:14 System.map-4.4.26-bananian
-rw-r--r-- 1 root root 4780000 Mär 25  2016 vmlinuz-3.4.111-bananian
-rw-r--r-- 1 root root 4810312 Okt 22 13:23 vmlinuz-3.4.112-bananian
-rw-r--r-- 1 root root 5679272 Okt 22 04:14 vmlinuz-4.4.26-bananian
-rwxr-xr-x 1 root root  590624 Sep  8 20:48 xen-4.4-armhf

Have anyone tried Xen on BananaPi?
nagyi  
Edited by nagyi at Nov 24, 2016 14:24

I made some progress, but I'm definitely stuck...
Apparently the mainline kernel 4.4 in bananian is missing the XEN drivers:

  1. cat /boot/config-4.4.26-bananian|grep -i xen
  2. # CONFIG_XEN is not set
Copy the Code


I found the instructions on http://linux-sunxi.org/Mainline_Kernel_Howto.
I have downloaded the next stable release kernel sources, configured it to include the xen drivers and compiled it successfully.
Then created a new bootloader as found here:
https://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions
After 2 days of trial and error, I became a running Xen on BananaPi with following Kernel:
  1. uname -r
  2. 4.9.0-rc6-g1fb6379
Copy the Code

  1. root@bananafi ~ # xl info
  2. host                   : bananafi
  3. release                : 4.9.0-rc6-g1fb6379
  4. version                : #2 SMP Thu Nov 24 20:00:51 CET 2016
  5. machine                : armv7l
  6. nr_cpus                : 2
  7. max_cpu_id             : 127
  8. nr_nodes               : 1
  9. cores_per_socket       : 1
  10. threads_per_core       : 1
  11. cpu_mhz                : 24
  12. hw_caps                : 00000000:00000000:00000000:00000000:00000000:00000000:00000000:00000000
  13. virt_caps              :
  14. total_memory           : 1022
  15. free_memory            : 732
  16. sharing_freed_memory   : 0
  17. sharing_used_memory    : 0
  18. outstanding_claims     : 0
  19. free_cpus              : 0
  20. xen_major              : 4
  21. xen_minor              : 4
  22. xen_extra              : .1
  23. xen_version            : 4.4.1
  24. xen_caps               : xen-3.0-armv7l
  25. xen_scheduler          : credit
  26. xen_pagesize           : 4096
  27. platform_params        : virt_start=0x200000
  28. xen_changeset          :
  29. xen_commandline        : console=ttyS0,115200 console=tty0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait dom0_mem=128M
  30. cc_compiler            : gcc (Debian 4.9.2-10) 4.9.2
  31. cc_compile_by          : carnil
  32. cc_compile_domain      : debian.org
  33. cc_compile_date        : Thu Sep  8 18:34:24 UTC 2016
  34. xend_config_format     : 4
Copy the Code


But... Here is my problem, that I can't solve:

  1. root@bananafi ~ # lvcreate -ndebian -L3G xenlv
  2.   /dev/mapper/control: open failed: Kein passendes Gerät gefunden
  3.   Failure to communicate with kernel device-mapper driver.
  4.   Check that device-mapper is available in the kernel.
  5.   Incompatible libdevmapper  and kernel driver
  6.   striped: Required device-mapper target(s) not detected in your kernel.
  7.   Run `lvcreate --help' for more information.
Copy the Code


Is there a chance to integrate the missing xen drivers/modules in the bananian kernel? Or how could I compile a matching kernel?
Can anyone help?

PS: powering down or reboot doesn't function either with the self compiled kernel.

You have to log in before you can reply Login | Sign Up

Points Rules