SliTaz SliTaz Forum

You are not logged in.

#1 2025-11-09 10:29:40

HDS
Member
Registered: 2025-09-22
Posts: 22

virtualbox

Some (negative) Information:

I have installed Virtualbox on my PC (Fedora) and managed to build a slitaz64-current-VM.But the installation of guest additions failed.

Presumable the directory/file ./scripts/Makefile.build is not built in the installation process (/var/log/vboxadd-setup.log). Internet-search (https://itsfoss.community/t/virtualbox-7-fails-on-installation-process-at-ubuntu-desktop-22-04/11854/16) shows a dependency of the installation process at least from gcc-version. The link says Upgrade gcc-11 to gcc-12 solved the problem (for ubuntu).

The gcc-Version for slitaz64-current is 10.2.0. Of course it is not sure wether an (heavy) upgrade of gcc would solve my installation problem.

Offline

#2 2025-11-10 10:43:23

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: virtualbox

Hi HDS,

Sad, in other topics report virtuabox-ose on rolling is broken hmm.

I need to check how to fix it, and same time check how to build virtualbox-ose for 'current'.

On my side try to build virtualbox-ose 7.0.26, build failed complain about "xml2" not found, but libxml2-dev, libxml2-tools installed on cook chroot

Extracting source archive "VirtualBox-7.0.26.tar.bz2"

Executing: compile_rules

CFLAGS   : -march=nocona -Os -pipe -fomit-frame-pointer -fPIC

Checking for environment: Determined build machine: linux.x86, target machine: linux.x86, OK.

Checking for kBuild: found, OK.

Checking for gcc: found version 10.2.0, OK.

Checking for Open Watcom:

  ** Open Watcom was not found, using alternative BIOS sources!

Checking for iasl: found version 20211217, OK.

Checking for yasm: found version 1.3.0, OK.

Checking for xslt: found, OK.

Checking for pthread: found, OK.

./configure: line 254: /home/slitaz/wok/virtualbox-ose/source/virtualbox-ose-7.0.26/kBuild/bin/linux.x86/kmk_sed: not found

Checking for libxml2: ./configure: line 278: /home/slitaz/wok/virtualbox-ose/source/virtualbox-ose-7.0.26/kBuild/bin/linux.x86/kmk_sed: not found

  xml2 not found at -lxml2 -lpthread  or xml2 headers not found

  Check the file /home/slitaz/wok/virtualbox-ose/source/virtualbox-ose-7.0.26/configure.log for detailed error information.

Check /home/slitaz/wok/virtualbox-ose/source/virtualbox-ose-7.0.26/configure.log for details

Offline

#3 2025-11-10 11:34:51

HDS
Member
Registered: 2025-09-22
Posts: 22

Re: virtualbox

Thanks Shann for the quick response.

I think building virtualbox-ose for Slitaz (for getting a Slitaz virtualbox host) is much more complicated than installation of the guest additions in a Slitaz-guest.

But its interesting to see that you get

   Checking for gcc: found version 10.2.0, OK.

for VBox Version 7.0.26 while the link I mentioned has had the installation problem for VBox Version 7.0_7.0.14 which was solved bei change from gcc-11 to gcc-12. Perhaps Ubuntus-specific.

By the way: I have tried to find the file makefile.build in the sources of vbox additions. But this is hopeless since the code is unintelligable for me especially due to the plenty of makefile.kmk.

Good luck for Your tries.

Offline

#4 2025-11-10 16:13:24

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: virtualbox

Thanks,

Build in progress, but i fight with gsoap issue about undefined reference hmm

kBuild: Installing VBoxNetDHCP => /home/slitaz/wok/virtualbox-ose/source/virtualbox-ose-7.0.26/out/linux.amd64/release/bin/VBoxNetDHCP.so

The failing command:

        @g++                       '-Wl,-rpath,/usr/lib/virtualbox'  -Wl,-z,noexecstack,-z,relro -Wl,--as-needed -m64   -o /home/slitaz/wok/virtualbox-ose/source/virtualbox-ose-7.0.26/out/linux.amd64/release/obj/webtest/webtest /home/slitaz/wok/virtualbox-ose/source/virtualbox-ose-7.0.26/out/linux.amd64/release/obj/webtest/webtest.o /home/slitaz/wok/virtualbox-ose/source/virtualbox-ose-7.0.26/out/linux.amd64/release/obj/webtest/gen/webservice/soapClient.o     /home/slitaz/wok/virtualbox-ose/source/virtualbox-ose-7.0.26/out/linux.amd64/release/lib/vboxsoap.a   -lgsoapssl++ /home/slitaz/wok/virtualbox-ose/source/virtualbox-ose-7.0.26/out/linux.amd64/release/bin/VBoxRT.so   -lpthread   -lm   -lrt   -ldl   -lssl   -lcrypto

kBuild: Linking webtest

/usr/bin/ld: /usr/lib/gcc/x86_64-slitaz-linux/10.2.0/../../../../lib64/libgsoapssl++.a(libgsoapssl___a-stdsoap2_ssl_cpp.o): undefined reference to symbol 'inflateEnd'

/usr/bin/ld: /usr/lib/libz.so.1: error adding symbols: DSO missing from command line

collect2: error: ld returned 1 exit status

kmk: *** [/home/slitaz/wok/virtualbox-ose/source/virtualbox-ose-7.0.26/kBuild/footer-pass2-compiling-targets.kmk:776: /home/slitaz/wok/virtualbox-ose/source/virtualbox-ose-7.0.26/out/linux.amd64/release/obj/webtest/webtest] Error 1

kmk: *** Waiting for unfinished jobs....

Offline

#5 2025-11-11 07:38:37

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: virtualbox

/usr/bin/ld: /usr/lib/libz.so.1: error adding symbols: DSO missing from command line

make sure you are linking against zlib (pass -lz during compilation) and make sure you have zlib in LD_LIBRARY_PATH?

Offline

#6 2025-11-11 12:54:53

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: virtualbox

Hi alanyih, HDS

Thanks, after debug found that gsoap not build as shared, only static, with gentoo patch to build it as shared, build webservice successfully smile

Below VirtualBox running on SliTaz current64, but issue, need to start vm without display, need to understand why i have this bug sad

I build virtualbox-ose and virtualbox-ose-modules64 (need tweak receipt to build it), need do same for guestutils (aka additions).

[attachment=53449,3750]

Offline

#7 2025-11-11 20:33:54

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: virtualbox

Not sure if related, if i run VBoxTestOGL :

tux@slitaz:~$ /usr/lib/virtualbox/VBoxTestOGL --test 2D --log-to-stdout

00:00:00.000061 VBoxTestGL 7.0.26_SliTaz r168464 linux.amd64 (Nov 11 2025 19:42:39) release log

00:00:00.000064 Log opened 2025-11-11T20:31:28.202751000Z

00:00:00.000087 OS Product: Linux

00:00:00.000093 OS Release: 5.10.238-slitaz64

00:00:00.000100 OS Version: #2 SMP Thu Jul 31 08:52:32 Europe 2025

00:00:00.000106 Executable: /usr/lib/virtualbox/VBoxTestOGL

00:00:00.000108 Process ID: 4308

00:00:00.000111 Package type: LINUX_64BITS_GENERIC (OSE)

00:00:00.000118 Testing 2D Support:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-tux'

00:00:00.008908 Failed to create gl context

00:00:00.008918 Testing 2D Failed

tux@slitaz:~$ /usr/lib/virtualbox/VBoxTestOGL --test 3D --log-to-stdout

00:00:00.000061 VBoxTestGL 7.0.26_SliTaz r168464 linux.amd64 (Nov 11 2025 19:42:39) release log

00:00:00.000064 Log opened 2025-11-11T20:31:32.033931000Z

00:00:00.000086 OS Product: Linux

00:00:00.000092 OS Release: 5.10.238-slitaz64

00:00:00.000098 OS Version: #2 SMP Thu Jul 31 08:52:32 Europe 2025

00:00:00.000105 Executable: /usr/lib/virtualbox/VBoxTestOGL

00:00:00.000107 Process ID: 4312

00:00:00.000110 Package type: LINUX_64BITS_GENERIC (OSE)

00:00:00.000117 Testing 3D Support:

00:00:00.000226 Testing 3D Succeeded!

I also fix miss build of VBoxSDL, if i try to run VBoxSDL, sometime issue "SegFault", or if try debug with gdb

tux@slitaz:~$ VBoxSDL --startvm SliTaz_current

VBoxSDL: Error -10 in SUPR3HardenedMain!

VBoxSDL: Effective UID is not root (euid=1000 egid=100 uid=1000 gid=100)

Need to check if build with [c]--disable-hardening[/c] to debug it's better or not

Offline

#8 2025-11-11 22:34:09

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: virtualbox

After few tests and debug, seem fix issue with VBoxSDL, think clash with libsdl12-compat / libsdl2, need libsdl12-compat-dev and libsdl2-dev to build but only libsdl2 for runtime.

VirtualBox continue to failed for run VM with GUI but with VBoxSDL it's work now.

[attachment=53452,3751] [attachment=53452,3752]

Offline

#9 2025-11-12 01:57:48

alanyih
Administrator
Registered: 2011-04-02
Posts: 532

Re: virtualbox

Hi,

Ref:

PKGBUILD - Arch Linux 7.0.20-1

https://gitlab.archlinux.org/archlinux/packaging/packages/virtualbox/-/blob/90ad0cf873e88874265533b5ca586087b0378ea2/PKGBUILD

Mxlinux - 7.0.10

https://mxrepo.com/mx/repo/pool/main/v/virtualbox/virtualbox_7.0.10-dfsg-2~mx23+1.debian.tar.xz

[attachment=53454,3755] [attachment=53454,3756]

Offline

#10 2025-11-12 07:41:32

HDS
Member
Registered: 2025-09-22
Posts: 22

Re: virtualbox

Hi,

the details of Your activities are beyond my comprehension. But I feel very happy about your progress.

I keep my fingers crossed for you.

Offline

#11 2025-11-12 13:05:59

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: virtualbox

Hi,

Found why vm not running with Virtualbox GUI but ok with VBoxSDL, seem miss VirtualBoxVM binary

Thanks search and found gentoo topic https://bugs.gentoo.org/671354

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be4b63a80148cc9f6c1d4f305ef3a1a28f52d676

I copy VirtualBoxVM inside /usr/lib/virtualbox, and work \o/

[attachment=53458,3757]

Offline

#12 2025-11-12 13:14:47

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: virtualbox

Below SliTaz current64 with guest addition wink

[attachment=53459,3758]

Offline

#13 2025-11-12 17:33:13

HDS
Member
Registered: 2025-09-22
Posts: 22

Re: virtualbox

Thats marvellous!!! ???? ???? ????

Congratulations!!! ???? ???? ????

Offline

#14 2025-11-13 19:39:47

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: virtualbox

Hi HDS,

Thanks smile

If you would have virtualbox-ose, you need to change mirror to [c]https://people.slitaz.org/~shann/slitaz-current64-stuff/packages-ng/[/c] (i don't move to /packages for moment, maybe time to do it ?)

Infact i rework tazpkg to use compress tarball (tar.xz) instead cpio.lzma.

Now package not copy twice (/var/cache and /tmp), directly extract to rootfs, implied config_files should be managed, use same process that slackware with dotnew file.

From the tests I've done, I haven't seen any regression.

Only requirement it's to ugrade tazpkg first, but when you do [c]tazpkg up -r[/c], it's purpoese automatically (you can't upgrade packages if tazpkg not upgrade himself if required)

Offline

#15 2025-11-14 16:43:47

HDS
Member
Registered: 2025-09-22
Posts: 22

Re: virtualbox

Hi Shann,

thanks a lot and apologize for using emojis unknown to the forum SW.

Your instructions for installing guest-utils worked like a charm!

I now have (2) Slitaz-VMs with working guest-additions. Realy a great help for developing and testing of additional modules and configuartions for the Slitaz-office-PC.

Thanks again for you efforts.

Offline

#16 2025-11-14 19:27:50

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: virtualbox

Hi Shann,

Congratulations on your work, when class is not water!

Offline

#17 2025-11-16 08:12:06

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: virtualbox

Hi HDS, gibor,

Thanks for compliment, you're welcome smile

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 8 queries executed - Memory usage: 1.58 MiB (Peak: 1.77 MiB) ]