Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: VirtualBox-6.0.6 fails build under 8.99.39



Just 'kmk' would have been enough. I enter ' kmk KBUILD_VERBOSE=2
BUILD_TYPE=release'. All this was advised earlier by uwe@, I am sure
you can find the threads in the archives.

The result is:
% ls out/netbsd.amd64/release/bin/additions
VBoxClient            vboxvideo_drv_110.so  vboxvideo_drv_114.so
vboxvideo_drv_118.so  vboxvideo_drv_16.so   vboxvideo_drv_70.so
VBoxControl           vboxvideo_drv_111.so  vboxvideo_drv_115.so
vboxvideo_drv_13.so   vboxvideo_drv_17.so   vboxvideo_drv_71.so
VBoxService           vboxvideo_drv_112.so  vboxvideo_drv_116.so
vboxvideo_drv_14.so   vboxvideo_drv_18.so
vboxguest.kmod        vboxvideo_drv_113.so  vboxvideo_drv_117.so
vboxvideo_drv_15.so   vboxvideo_drv_19.so

I copy these to /usr/local/bin/additions, then copy the module to the
corresponding place, as below, and modify /etc/rc.local:

....
% ls -l /usr/X11R7/lib/modules/drivers/vbox*
lrwxr-xr-x  1 root  wheel  20 Jan 10 00:33
/usr/X11R7/lib/modules/drivers/vboxvideo_drv.so ->
vboxvideo_drv_118.so
...
lrwxr-xr-x  1 root  wheel  45 Jan 10 00:19
/usr/X11R7/lib/modules/drivers/vboxvideo_drv_118.so ->
/usr/local/bin/additions/vboxvideo_drv_118.so
lrwxr-xr-x  1 root  wheel  44 Jan 10 00:19
/usr/X11R7/lib/modules/drivers/vboxvideo_drv_13.so ->
/usr/local/bin/additions/vboxvideo_drv_13.so
...
lrwxr-xr-x  1 root  wheel  44 Jan 10 00:19
/usr/X11R7/lib/modules/drivers/vboxvideo_drv_71.so ->
/usr/local/bin/additions/vboxvideo_drv_71.so

xci@n8:~/p/VirtualBox-6.0.6
% ls -l /stand/amd64/8.0/modules/vboxguest
total 1408
-rwxr-xr-x  1 root  wheel  333728 May 10 20:23 vboxguest.kmod


My/etc/rc.local contains:
....
if [ -x /stand/amd64/`uname -r`/modules/vboxguest/vboxguest.kmod ]; then
        /sbin/modload vboxguest
fi

if [ -x /usr/local/bin/additions/VBoxService ]; then
        /usr/local/bin/additions/VBoxService --pidfile /var/run/VBoxService.pid
fi
...

The video driver in /etc/X11/xorg.conf is vboxvideo. -current now has
a version of this builtin and working OK, so it is not quite clear how
useful the rest of the bits will be. For NetBSD 8, I think the above
configuration is fine.

On Fri, 10 May 2019 at 20:47, Mayuresh <mayuresh%acm.org@localhost> wrote:
>
> On Fri, May 10, 2019 at 08:25:45PM +0100, Chavdar Ivanov wrote:
> > You are using very old VirtualBox version from pkgsrc/wip. This is
> > something I haven't bothered ever to try. I download the source from
> > VirtualBox and build it myself. All you need is kbuild and yasm and
> > LocalConfig.kmk with the following contents:
>
> Sorry to trouble with more basic questions. I am not familiar with kmk or
> yasm. Can you please share some sample commands after creating
> LocalConfig.kmk?
>
> > We are talking about the guest additions drivers at the moment, not
> > the virtualisation product itself.
>
> Sorry, I missed the point here. You mean the core virtualization product
> builds and is usable or not.
>
> Mayuresh



-- 
----


Home | Main Index | Thread Index | Old Index