Virtualbox and Windows 7

Technical issues/questions of an intermediate or advanced nature.
beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

Re: Virtualbox and Windows 7

Post#76 by beny » 15 Jan 2017, 18:20

ok i try in the same way and report i don't know if i can load all the modules in ram i have also the multilib 500 modules+-

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

Re: Virtualbox and Windows 7

Post#77 by beny » 15 Jan 2017, 19:25

i have build virtualbox in my guest account with changes and it work with guest account, in copy2ram i have this:
guest@porteus:~$ virtualbox
VirtualBox: Error -10 in SUPR3HardenedMain!
VirtualBox: Effective UID is not root (euid=1000 egid=100 uid=1000 gid=100)
do not work but if i do this:
guest@porteus:~$ su
Password:
root@porteus:/home/guest# virtualbox
Qt WARNING: Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
but virtualbox start without problems

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

Re: Virtualbox and Windows 7

Post#78 by beny » 15 Jan 2017, 19:55

found the trick to run virtualbox on copy2ram guest account look if work for you:
chmod 4711 /opt/virtualbox/virtualbox
bogomips there is another user that have this issue can try the same?
Last edited by beny on 15 Jan 2017, 19:59, edited 1 time in total.

fred08155
Black ninja
Black ninja
Posts: 56
Joined: 22 Apr 2016, 07:11
Distribution: Porteus 3.2.2 xfce
Location: Germany

Re: Virtualbox and Windows 7

Post#79 by fred08155 » 15 Jan 2017, 19:57

So something seems to miss in the module made by vbox builder?
Aaaah, wrong rights assigned? Or what does the chmod do?

If you like you can test extension pack config.
There are two versions. One version with extension pack installed as guest and root, other version only installed as root.

I uploaded relevant modules here
http://filehorst.de/folder.php?key=b3pZvdP0
I guess virtualbox also needs python 2.7 since i had it installed before using vbox builder. You can download python 2.7 through USM.

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

Re: Virtualbox and Windows 7

Post#80 by beny » 15 Jan 2017, 20:07

hi you have all the hardware connected to the system i have printer, usb sat decoder, sd reader, dvd reader, mouse usb internet shared folder...

fred08155
Black ninja
Black ninja
Posts: 56
Joined: 22 Apr 2016, 07:11
Distribution: Porteus 3.2.2 xfce
Location: Germany

Re: Virtualbox and Windows 7

Post#81 by fred08155 » 15 Jan 2017, 22:47

beny wrote:found the trick to run virtualbox on copy2ram guest account look if work for you:
chmod 4711 /opt/virtualbox/virtualbox
Sorry, didn´t work. Now i cannot start virtualbox as guest AND as root. Same error message as before.
VirtualBox: Error -10 in SUPR3HardenedMain!
VirtualBox: Effective UID is not root (euid=1000 egid=100 uid=1000 gid=100)

VirtualBox: Tip! It may help to reinstall VirtualBox.
Can you please upload your module somewhere? Maybe yours is working.

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

Re: Virtualbox and Windows 7

Post#82 by beny » 15 Jan 2017, 23:16

hi with copy2ram every change you do at reboot is lost so you have to redo this:
guest@porteus:~$ su
Password:
root@porteus:/home/guest# chmod 4711 /opt/VirtualBox/VirtualBox
guest@porteus:~$ virtualbox
and work,you have to try to fix the permission in hardcoded way, isn't my module good or bad, or brokenman have to tweak the vbox builder for the user right permission

fred08155
Black ninja
Black ninja
Posts: 56
Joined: 22 Apr 2016, 07:11
Distribution: Porteus 3.2.2 xfce
Location: Germany

Re: Virtualbox and Windows 7

Post#83 by fred08155 » 16 Jan 2017, 12:44

I know that changes are lost after reboot. This is why i included your modification into my virtualbox xzm module (extract module, chmod 4711 on sub directory path, dir2xzm and reboot with new module).
Still no success. I even had the mod redone after booting the new module. Same error message again.

Found something googling about the issue. But this needs to be done during compiling virtualbox...
I needed to configure with the switch --disable-hardening

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

Re: Virtualbox and Windows 7

Post#84 by beny » 16 Jan 2017, 13:33

hi i have found this line in slackbuild of virtualbox:

# Enable Hardening - Defaulting to yes as requested by upstream
if [ "${HARDENING:-yes}" = "yes" ]; then
harden="--enable-hardening"
else
harden="--disable-hardening"
fi
but we have a brokenman's script for the build,and i think he can answer for the permission issue.

fred08155
Black ninja
Black ninja
Posts: 56
Joined: 22 Apr 2016, 07:11
Distribution: Porteus 3.2.2 xfce
Location: Germany

Re: Virtualbox and Windows 7

Post#85 by fred08155 » 16 Jan 2017, 14:09

After further googling i found the solution. :D
I rebuild virtualbox with vbox builder. Didn´t change anything on the situation... :(

After some research i tried this with success.

First

Code: Select all

sudo usermod -a -G vboxusers guest
Then

Code: Select all

chmod 4711 /opt/VirtualBox/VirtualBox
Now i just need to pack the addition of guest to the vboxusers group into a xzm module. :)

I hope that´s all.

fred08155
Black ninja
Black ninja
Posts: 56
Joined: 22 Apr 2016, 07:11
Distribution: Porteus 3.2.2 xfce
Location: Germany

Re: Virtualbox and Windows 7

Post#86 by fred08155 » 16 Jan 2017, 15:40

Hmmm... seems to be more complicated than i thought.
I saved usermod changes successfully to a xzm module. But i cannot save chmod 4711 changes. changes-time script does not detect this change. Manually created module seems to get ignored somehow.
Is there a way to edit this into the virtualbox module? Or merge it in from my selfmade module?

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Virtualbox and Windows 7

Post#87 by francois » 20 Jan 2017, 19:33

Try to put a z in front of the name of your manually changed module so that it gets loaded last. Virtualbox has a v and might erase the effect of your module.
Prendre son temps, profiter de celui qui passe.

Post Reply