Virtual Box

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
Post Reply
raja
Black ninja
Black ninja
Posts: 65
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32bit and v3.2.2-64 bit
Location: Chennai,India

Virtual Box

Post#1 by raja » 13 Jun 2017, 11:47

I tried to build VB in v 3.2.2 64 bit. The builder downloaded necessary sources,compiled, and left "VirtualBox-5.1.22-115126-Linux_amd64" executable for run command and and a "VirtualBox-5.1.22-porteus-v3.2.2-x86_64-1prt" .xzm module.

Terminal checks for archive integrity and vanishes. I don't get to see VB gui.

any help?

donald
Full of knowledge
Full of knowledge
Posts: 1247
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Virtual Box

Post#2 by donald » 13 Jun 2017, 12:52

rightclick and activate:
VirtualBox-5.1.22-porteus-v3.2.2-x86_64-1prt.xzm
and ignore the *.run file.
this file is/was used to build the module.

EDIT
VirtualBox-5.1.22-115126 made in XFCE x86_64

http://filehorst.de/d/bfBjmBDd

How to get it:
Wait 15 sec > click "Jetzt zur Download-Seite" (means go to download page) >
click "Klicke hier, um ihn zu starten" (means click to start the download)

fulalas
DEV Team
DEV Team
Posts: 836
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: Virtual Box

Post#3 by fulalas » 13 Jun 2017, 20:22

I'm facing the same problem: viewtopic.php?f=75&t=6568&start=105#p55932

@donald, could you help us explaining how exactly you're building with Vbox builder?

beny
Full of knowledge
Full of knowledge
Posts: 733
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Virtual Box

Post#4 by beny » 13 Jun 2017, 20:39

hi to build virtualbox we need the devel package,and the crippled-source of the kernel that is in use,virtualbox follow the kernel version so if you change kernel version you have to rebuild the kernel module of virtualbox..

fulalas
DEV Team
DEV Team
Posts: 836
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: Virtual Box

Post#5 by fulalas » 13 Jun 2017, 21:47

@beny, there's some missing piece. I did exactly this with Porteus 3.2.2 x64 untouched (i.e. kernel 4.9.0):

1- activate devel x64 module;
2- activate crippled_sources x64 module;
3- activate Python 2.7.11 x64 module;
4- build VirtuaBox 5.1.22 from inside Vbox builder;

It generates a VirtualBox module inside /tmp. After activating it, I try to open VirtuaBox, then getting this message:

Code: Select all

VirtualBox: Error -610 in supR3HardenedMainInitRuntime!
VirtualBox: dlopen("/opt/VirtualBox/VBoxRT.so",) failed: <NULL>

VirtualBox: Tip! It may help to reinstall VirtualBox.
Looking at /var/log/vbox-install.log I noticed a lot of warnings and errors:

Code: Select all

VirtualBox 5.1.22 r115126 installer, built 2017-04-28T15:37:00Z.

Testing system setup...
Installing VirtualBox to /opt/VirtualBox

vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
cp: preserving permissions for ‘/tmp/vbox.0/VBox’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/common/log’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/common/misc’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/common/err’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/common/alloc’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/common/table’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/common/time’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/common/checksum’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/common/string’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/common’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/generic’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/include/internal’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/include/iprt/nocrt’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/include/iprt’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/include/VBox/vmm’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/include/VBox’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/include’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/linux’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/math/gcc’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/math’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/r0drv/generic’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/r0drv/linux’: Invalid argument
cp: preserving permissions for ‘/tmp/vbox.0/r0drv’: Invalid argument
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/4.9.0-porteus/build -j4 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)

[cutting the middle of the log because it's too big for this post]

vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
Installation successful

beny
Full of knowledge
Full of knowledge
Posts: 733
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Virtual Box

Post#6 by beny » 13 Jun 2017, 22:48

we have had a tread with the virtualbox permission issue with guest account due seem with the build as root but guest do not have the same permission so virtualbox fail to start if this is the problem try this:

Re: Virtualbox and Windows 7
found the trick to run virtualbox on copy2ram guest account look if work for you:
chmod 4711 /opt/virtualbox/virtualbox
btw can be not this the problems,but you can try the change of...

fulalas
DEV Team
DEV Team
Posts: 836
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: Virtual Box

Post#7 by fulalas » 14 Jun 2017, 03:29

@beny, thanks! I fixed it by executing these 2 commands in sequence:

sudo chown root:root /opt/VirtualBox/VirtualBox
sudo chmod 4511 /opt/VirtualBox/VirtualBox

I think brokenman should do that in his Vbox builder script in order to fix the problem.

User avatar
Ed_P
Contributor
Contributor
Posts: 3423
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Virtual Box

Post#8 by Ed_P » 14 Jun 2017, 05:29

Is there a command or script that allows someone to know what kernel a particular VirtualBox module is designed to run with?
Ed

fulalas
DEV Team
DEV Team
Posts: 836
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: Virtual Box

Post#9 by fulalas » 14 Jun 2017, 07:02

If the module was created by Porteus Vbox builder, you can extract the module and check the name of the subfolder inside /lib/modules.

raja
Black ninja
Black ninja
Posts: 65
Joined: 02 May 2017, 09:51
Distribution: v3.2.2-32bit and v3.2.2-64 bit
Location: Chennai,India

Re: Virtual Box

Post#10 by raja » 14 Jun 2017, 11:10

Thanks,Shall try this week end.

User avatar
Ed_P
Contributor
Contributor
Posts: 3423
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Virtual Box

Post#11 by Ed_P » 14 Jun 2017, 13:57

fulalas wrote:check the name of the subfolder inside /lib/modules.
:good: Perfect. Thank you. :beer:
Ed

donald
Full of knowledge
Full of knowledge
Posts: 1247
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Re: Virtual Box

Post#12 by donald » 14 Jun 2017, 14:17

fulalas wrote: @donald, could you help us explaining how exactly you're building with Vbox builder?
To be honest,i haven't done anything uncommon.

Booted stock porteus (xfce x86_64 kernel 4.9) with the devel and crippled-sources
module already in the modules folder, nothing else, no python, into guest account.

Ran v-box builder > activated the v-box xzm and voila..v-box did start..

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

Re: Virtual Box

Post#13 by brokenman » 25 Jun 2017, 12:15

I think brokenman should do that in his Vbox builder script in order to fix the problem.
Done
How do i become super user?
Wear your underpants on the outside and put on a cape.

fulalas
DEV Team
DEV Team
Posts: 836
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: Virtual Box

Post#14 by fulalas » 25 Jun 2017, 15:14

brokenman wrote:
I think brokenman should do that in his Vbox builder script in order to fix the problem.
Done
Great! :good:

Post Reply