VirtualBox problem with UEFI kernel

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
uyduruq
Black ninja
Black ninja
Posts: 32
Joined: 30 Sep 2012, 19:57
Distribution: 1.2

VirtualBox problem with UEFI kernel

Post#1 by uyduruq » 27 Jan 2014, 18:13

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.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5506
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: VirtualBox problem with UEFI kernel

Post#2 by brokenman » 27 Jan 2014, 21:25

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

uyduruq
Black ninja
Black ninja
Posts: 32
Joined: 30 Sep 2012, 19:57
Distribution: 1.2

Re: VirtualBox problem with UEFI kernel

Post#3 by uyduruq » 28 Jan 2014, 17:02

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: viewtopic.php?f=117&t=3033#p21300? If yes, I have tried it but it did not work.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4592
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: VirtualBox problem with UEFI kernel

Post#4 by fanthom » 28 Jan 2014, 17:21

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.
Please add [Solved] to your thread title if the solution was found.

uyduruq
Black ninja
Black ninja
Posts: 32
Joined: 30 Sep 2012, 19:57
Distribution: 1.2

Re: VirtualBox problem with UEFI kernel

Post#5 by uyduruq » 28 Jan 2014, 19:11

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

User avatar
fanthom
Site Admin
Site Admin
Posts: 4592
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: VirtualBox problem with UEFI kernel

Post#6 by fanthom » 28 Jan 2014, 19:32

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.
Please add [Solved] to your thread title if the solution was found.

uyduruq
Black ninja
Black ninja
Posts: 32
Joined: 30 Sep 2012, 19:57
Distribution: 1.2

Re: VirtualBox problem with UEFI kernel

Post#7 by uyduruq » 29 Jan 2014, 19:35

I have built this kernel according to this post from brokenman:
viewtopic.php?f=81&t=2212#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.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4592
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: VirtualBox problem with UEFI kernel

Post#8 by fanthom » 29 Jan 2014, 20:44

'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).
Please add [Solved] to your thread title if the solution was found.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5506
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: VirtualBox problem with UEFI kernel

Post#9 by brokenman » 30 Jan 2014, 02:50

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 do i become super user?
Wear your underpants on the outside and put on a cape.

caron gangoo
White ninja
White ninja
Posts: 7
Joined: 14 Jul 2014, 15:00
Distribution: porteus x86-amd64
Location: mauritius

how to yodate kernel headers 3.12.4 ?

Post#10 by caron gangoo » 03 Aug 2014, 13:23

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

User avatar
brokenman
Site Admin
Site Admin
Posts: 5506
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: VirtualBox problem with UEFI kernel

Post#11 by brokenman » 03 Aug 2014, 13:36

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply