Page 1 of 1

VirtualBox problem with UEFI kernel

Posted: 27 Jan 2014, 18:13
by uyduruq
Hi, I am trying to use Virtualbox on Porteus v2.1 with uefi-kernel. I have built virtualbox module . When I start vm, virtual box crashes. I get an error like that: http://zarelli.files.wordpress.com/2011/02/vmissue2.png

What might be the problem? I have built module two times, but did not work.

Re: VirtualBox problem with UEFI kernel

Posted: 27 Jan 2014, 21:25
by brokenman
Please download this file.

Replace the file in /opt/porteus-scripts/gtk-easy-build

If you receive the same error report back. The kernel module is not being built/started.

Re: VirtualBox problem with UEFI kernel

Posted: 28 Jan 2014, 17:02
by uyduruq
brokenman wrote:Please download this file.

Replace the file in /opt/porteus-scripts/gtk-easy-build

If you receive the same error report back. The kernel module is not being built/started.
Is this the same script here: http://forum.porteus.org/viewtopic.php? ... 033#p21300? If yes, I have tried it but it did not work.

Re: VirtualBox problem with UEFI kernel

Posted: 28 Jan 2014, 17:21
by fanthom
since you are using custom kernel - did you make correct symlinks in /lib/modules/`uname -r`/build and /lib/modules/`uname -r`/source pointing to your custom kernel headers?
please upload your Vbox module somewhere.

Re: VirtualBox problem with UEFI kernel

Posted: 28 Jan 2014, 19:11
by uyduruq
fanthom wrote:since you are using custom kernel - did you make correct symlinks in /lib/modules/`uname -r`/build and /lib/modules/`uname -r`/source pointing to your custom kernel headers?
please upload your Vbox module somewhere.
Hi fanthom, No I did not change anyting in the uefi-kernel module.
You can download the virtualbox module from http://rapidshare.com/share/9921B9C8FF9 ... 3F59210A94

Re: VirtualBox problem with UEFI kernel

Posted: 28 Jan 2014, 19:32
by fanthom
this VirtualBox is compiled against '3.11.4-porteus' kernel and we never shipped such version so you must be using a custom kernel.
anyway - this module looks ok to me but you must be booting with 3.11.4-porteus kernel and not any other. please put it into /porteus/modules and after reboot run 'lsmod' command to check if vboxdrv kernel module is loaded. if not then run following commands manually:

Code: Select all

/sbin/modprobe vboxdrv
/sbin/modprobe vboxnetadp
/sbin/modprobe vboxnetflt
and look for error messages.

if you wont be able to solve this issue yourself then please link raport generated by 'xpsinfo' utility.

Re: VirtualBox problem with UEFI kernel

Posted: 29 Jan 2014, 19:35
by uyduruq
I have built this kernel according to this post from brokenman:
http://forum.porteus.org/viewtopic.php? ... 212#p17496
I cannot use default porteus kernel because I am using UEFI (Also I have tried default kernel but when I boot keyboard and mouse did not work (I tried different keyboards and mice), so I could not check if everything is ok or not, so I decided to use this kernel.)

modprobe did not work and I get this error for both of the commands: (modprobe: ERROR: could not insert vboxdrv/vboxnetadp/vobxnetflt: Exec format error.)

You can check the report from here: http://rapidshare.com/share/14FB848C5A2 ... 0631437999
Thanks for your help.

Re: VirtualBox problem with UEFI kernel

Posted: 29 Jan 2014, 20:44
by fanthom
'exec format error' means kernel mismatch - running kernel is different than the modules you are trying to modprobe. please run 'dmesg' command for more info.
do you still have sources from the compilation of your 3.11.4 kernel somewhere? if yes then please correct following symlinks:
/

Code: Select all

lib/modules/3.11.4-porteus/build 
/lib/modules/3.11.4-porteus/source
/usr/src/linux
(point them to your custom kernel sources) and create new Vbox module.
if not then you'll have to compile the kernel once again to recreate sources. do not delete them as may be needed when compiling external kernel modules.

good luck!

btw: please remove 'nomodeset' cheatcode as Ivy Bridge GPU is fully supported in porteus-2.1 (VESA driver must be a pain to use).

Re: VirtualBox problem with UEFI kernel

Posted: 30 Jan 2014, 02:50
by brokenman
Are you using the vmlinuz file from the script that i supplied? The script will download vmlinuz, initrd.xz and a new 000-kernel.xzm. Make sure you are using only the files downloaded from the script and not mixing one file with other files from porteus. When i compiled this kernel (from memory) it was 3.11.4

I cannot use default porteus kernel because I am using UEFI
In fact fanthom has compiled in everything needed in the kernel in the v3.0rc1 release. I am using it now on UEFI. You will still need the refind bootloader. In short you can use the v3.0rc1 release that is on our server and replace what you have in your current install (vmlinuz, initrd.xz and 000-kernel). The vmlinuz and initrd.xz will reside at /mnt/sdXy/EFI/something. The 000-kernel must go in the porteus folder to replace the one you have. After rc2 is out i will write an installer for UEFI.

how to yodate kernel headers 3.12.4 ?

Posted: 03 Aug 2014, 13:23
by caron gangoo
Hi everybody ! :)

Since one week , i am fighting to install vboz add on my Porteus Vm 3.0 Rc and I always get "modprobe vbox guest failed " ! :evil:
I don't know how to upgrade my kernel headers for 3.12.4 ( uname -r command) !
:cry:

So HHHeeeeeeeeeeeeeeeellllllllllllpppppppppppppppppp !

But again thank you so much for this marvelous distribution so small but SO POWERFUL !

Caron

p.s : I am writing to you via my Porteus Vm running on a huawei internet dongle on my Mint 17 Quiana host !

Caron

Re: VirtualBox problem with UEFI kernel

Posted: 03 Aug 2014, 13:36
by brokenman
Upgrade to the latest Porteus v3.0 which has all the necessary kernel modules built in (make sure you choose 05-devel option when building your ISO. Boot up and make sure you have an internet connection. From the system menu choose the vbox builder and follow the instructions. Let us know how it goes.

I will make a video on making a vbox UEFI setup soon.