Gamer125 / android-virtualbox

Automatically exported from code.google.com/p/android-virtualbox
0 stars 0 forks source link

VirtualBox Guest Drivers #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
VirtualBox Guest Drivers are mandatory to :
- Implement shared directory with host
- Have Hardware OpenGL

Working on my local tree.

Procedure :
- Download vbox guest additions
- Go to VBoxGuestAdditions-x.y.z/src/vboxguest-x.y.z
- Issue "make BUILD_TARGET_ARCH=x86 KERN_DIR=/path/to/android/kernel"
- If compilation OK, you'll have kernel modules vboxguest.ko vboxsf.ko 
vboxvideo.ko which will have to be loaded at android startup

Original issue reported on code.google.com by dfa...@gmail.com on 23 Jan 2012 at 10:09

GoogleCodeExporter commented 9 years ago

Original comment by dfa...@gmail.com on 23 Jan 2012 at 10:29

GoogleCodeExporter commented 9 years ago
What license are the Guest Additions under? If GPL, I wonder if AOSP would be 
willing to consider them for inclusion in external.

Original comment by e...@boraas.ca on 26 Jan 2012 at 4:02

GoogleCodeExporter commented 9 years ago
Huh, you're right - it's GPL...
https://forums.virtualbox.org/viewtopic.php?f=5&t=11951
That means there's little chance AOSP accepts inclusion...
And that also would mean OpenGL Hardware acceleration (which needs Guest 
Additions) can't be included.
I'll post a question on that on Android forums.

Original comment by dfa...@gmail.com on 26 Jan 2012 at 6:04

GoogleCodeExporter commented 9 years ago
If it's all kernelspace (e.g. kernel modules) it should be fine though... 
almost everything else on the kernel side is GPL after all. 

Original comment by e...@boraas.ca on 26 Jan 2012 at 6:13

GoogleCodeExporter commented 9 years ago
For the basic "Guest additions" part there's only kernel modules.
But when it will come to Hardware OpenGL there's user-space libs...

Original comment by dfa...@gmail.com on 26 Jan 2012 at 6:32

GoogleCodeExporter commented 9 years ago
Could you share the source for openGL of android-x86 VMWare(or VirtualBox)?
I'm trying, but I don't know how to work...

Original comment by njje...@gmail.com on 1 Nov 2012 at 5:02

GoogleCodeExporter commented 9 years ago
I am trying to compile guest additions for VirtualBox on Lollipop branch. But I 
get invalid module format when I try to load the module using modprobe., 

Here are the steps I used to compile the guest additions: 

1. VirtualBox 4.3.20
2. Generated kernel headers for androidx86 kernel
3. Configured Androidx86 build using " ./configure 
--with-linux=androidx86/kernel --disable-libvpx --disable-xpcom 
--disable-python --disable-java --disable-sdl-ttf --disable-alsa 
--disable-pulse --disable-opengl --disable-docs --disable-devmapper 
--disable-udptunnel --disable-hardening --build-headless"
4. Compiled x86 linux image: kmk additions-build-linux.x86
5. compile kernel modules from the generated VBoxGuestAdditions-x86.tar
6. I tried loading the modules using the modprobe but I get invalid module 
format. 

Can you please help me on how to generate the loadable modules correctly? 

Original comment by rishi.rr...@gmail.com on 25 Nov 2014 at 9:26