LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-11-2024, 05:11 AM   #1
lghizoni
Member
 
Registered: Dec 2011
Location: Denmark
Distribution: Slackware, Debian
Posts: 102

Rep: Reputation: Disabled
Cannot install Virtualbox on Slackware 15


Dear all,

I am trying to install virtualbox on my Slackware 15, but so far no success. I've tried with Sbopkg, Sbotools (sboinstall), and directly downloading the files from Slackbuilds. In the Slackbuilds site, there is a README.SLACKWARE informing that I need to add some lines in /etc/rc.d/rc.local and /etc/rc.d/rc.local_shutdown, which I've done.
With the three options of installing virtualbox, the build starts returning warnings such as:

Code:
/tmp/SBo/VirtualBox-6.1.44/doc/manual/en_US/UserManual.xml:6: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
And finally I get:
Code:
kmk: *** [/tmp/SBo/VirtualBox-6.1.44/out/linux.amd64/release/obj/manual/xref-to-text.xsl] Deleting file '/tmp/SBo/VirtualBox-6.1.44/out/linux.amd64/release/obj/manual/xref-to-text.xsl.cat'
kmk: *** [/tmp/SBo/VirtualBox-6.1.44/doc/manual/Config.kmk:327: /tmp/SBo/VirtualBox-6.1.44/out/linux.amd64/release/obj/manual/xref-to-text.xsl] Error 6
  Creating stylesheet {T}/manual/xref-to-text.xsl 
kmk: *** Waiting for unfinished jobs....
  CXX     VBoxSDLHardened - {C}/src/VBox/Frontends/VBoxSDL/VBoxSDLHardened.cpp
  CXX     VBoxNetAdpCtl - {C}/src/VBox/HostDrivers/adpctl/VBoxNetAdpCtl.cpp
kmk: *** Exiting with status 2
Failures:
  virtualbox: virtualbox.SlackBuild return non-zero
Anyone having similar issues? Any help would be more than appreciated.

Thanks in advance.
 
Old 02-11-2024, 07:31 AM   #2
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 959

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I haven't tried virtualbox, but in my experience qemu works fine. Qemu might be less userfriendly as it is more command line orientated than point and click to configure your virtual machine, but I prefer qemu for the follwing reasons:
  1. qemu uses the kvm kernel module included in the Linux sources. If you upgrade your kernel you do not need to worry about yet another third party kernel module.
  2. Qemu is able to emulate more than just x86 guest machines. It can also emulate things like ARM, PowerPC and Sparc machines.

regards Henrik
 
2 members found this post helpful.
Old 02-11-2024, 07:32 AM   #3
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
you said install not compile so why not use oracle download and extension pack?

that's all I do
 
5 members found this post helpful.
Old 02-11-2024, 12:15 PM   #4
Andersen
Member
 
Registered: Dec 2008
Distribution: Slackware
Posts: 177

Rep: Reputation: 72
Maybe you could try some of the official binaries, here's the latest one: https://download.virtualbox.org/virt...inux_amd64.run

edit:

6.1 build is outdated anyway

VirtualBox 7.0 (active maintenance)
VirtualBox 6.1 (no longer supported, support ended 2024/01)
VirtualBox 6.0 (no longer supported, support ended 2020/07)
VirtualBox 5.2 (no longer supported, support ended 2020/07)
VirtualBox 5.1 (no longer supported, support ended 2018/04)
VirtualBox 5.0 (no longer supported, support ended 2017/05)
VirtualBox 4.3 (no longer supported, support ended 2015/12)
VirtualBox 4.2 (no longer supported, support ended 2015/12)
VirtualBox 4.1 (no longer supported, support ended 2015/12)
VirtualBox 4.0 (no longer supported, support ended 2015/12)
https://www.virtualbox.org/wiki/Download_Old_Builds

Last edited by Andersen; 02-11-2024 at 12:19 PM. Reason: adding new info
 
1 members found this post helpful.
Old 02-11-2024, 12:24 PM   #5
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Some of us have got a working Virtualbox 7.0 SlackBuild while we wait for ppr:kut to update his. But the easiest solution, as mentioned above, is to just download the installer oracle provides located here

https://download.virtualbox.org/virt...inux_amd64.run

once downloaded run it as root like this to install...
Code:
./VirtualBox-7.0.14-161095-Linux_amd64.run
 
2 members found this post helpful.
Old 02-11-2024, 12:58 PM   #6
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by henca View Post
I haven't tried virtualbox, but in my experience qemu works fine. Qemu might be less userfriendly as it is more command line orientated than point and click to configure your virtual machine, but I prefer qemu for the follwing reasons:
  1. qemu uses the kvm kernel module included in the Linux sources. If you upgrade your kernel you do not need to worry about yet another third party kernel module.
  2. Qemu is able to emulate more than just x86 guest machines. It can also emulate things like ARM, PowerPC and Sparc machines.

regards Henrik
Use virt-manager and it becomes basically as easy to use as Virtualbox.
 
3 members found this post helpful.
Old 02-11-2024, 01:50 PM   #7
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
I've never had any issues installing Virtualbox using their "run" installer

https://download.virtualbox.org/virtualbox/7.0.14/
https://download.virtualbox.org/virt...inux_amd64.run
 
2 members found this post helpful.
Old 02-11-2024, 02:29 PM   #8
lostintime
Member
 
Registered: Dec 2021
Posts: 192

Rep: Reputation: Disabled
Hi lghizoni,

I am using VirtualBox 6.1.44 from SBo on Slackware 15.0.

Some thoughts:

Install the acpica package from SBo.

Next install the virtualbox package from SBo.

Then install the virtualbox-kernel package from SBo.

Other thoughts: ensure the build output environment, usually /tmp, is large enough to build packages. Many people use tmpfs for /tmp but on older systems with less RAM this might limit the storage space for compiling.

I found a bug report that might be related to libxml2-2.11.x and virtualbox 6.1.44. I can't confirm the report because I compiled 6.1.44 when libxml2-2.9.x was installed on my 15.0. The libxml2 packages has been patched several times on 15.0 since the original release. If actually related, then a quick test would be to install libxml2-2.9.x from the original 15.0 release and see if 6.1.44 compiles.
 
Old 02-11-2024, 02:32 PM   #9
saleo
LQ Newbie
 
Registered: Jan 2012
Location: Serbia
Distribution: Slackware
Posts: 13

Rep: Reputation: Disabled
As henca and Daedra wrote, maybe you could try qemu + virt-manager.
I did it a couple of weeks ago and I'm very satisfied.

qemu

virt-manager
 
1 members found this post helpful.
Old 02-11-2024, 03:16 PM   #10
lostintime
Member
 
Registered: Dec 2021
Posts: 192

Rep: Reputation: Disabled
lghizoni,

I tried compiling 6.1.44 on a fully patched 15.0. I received the same build failure.

I restored the libxml2-2.9.12-x86_64-5.txz package from the original 15.0 release. Then 6.1.44 compiled without error.

I then restored libxml2 to the latest patched package.

I have not tried to compile 6.1.46, 6.1.48, 6.1.50, or 7.0.x.

Options to compile 6.1.44 on 15.0:

* Temporarily revert the libxml2 package.
* Find a patch for libxml2-2.11.x.

Perhaps consider reporting the issue to the SBo virtualbox maintainer.

I hope this helps.
 
Old 02-11-2024, 03:25 PM   #11
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by saleo View Post
As henca and Daedra wrote, maybe you could try qemu + virt-manager.
I did it a couple of weeks ago and I'm very satisfied.

qemu

virt-manager
To get the full experience I recommend installing these packages in this order

Code:
osinfo-db-tools
osinfo-db
libosinfo
yajl
numactl
libvirt
libvirt-glib
libvirt-python
gtk-vnc
spice-protocol
spice
usbredir
spice-gtk
device-tree-compiler
libnfs
snappy
vde2
virglrenderer
libslirp
qemu
virt-manager
 
1 members found this post helpful.
Old 02-11-2024, 04:44 PM   #12
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,451
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by glorsplitz View Post
you said install not compile so why not use oracle download and extension pack?

that's all I do
Quote:
Originally Posted by bitfuzzy View Post
I've never had any issues installing Virtualbox using their "run" installer

https://download.virtualbox.org/virtualbox/7.0.14/
https://download.virtualbox.org/virt...inux_amd64.run
There is nothing wrong with this approach.

I don't understand why people waste time messing around with other methods. This one is quick, clean, and easy.
 
3 members found this post helpful.
Old 02-11-2024, 06:05 PM   #13
lostintime
Member
 
Registered: Dec 2021
Posts: 192

Rep: Reputation: Disabled
lghizoni,

Following the links in the previously mentioned gentoo bug report, this patch allowed me to compile 6.1.44 on 15.0 with the latest patched libxml2-2.11.x.

Code:
diff -urN VirtualBox-6.1.44/doc/manual/en_US/user_Frontends.xml VirtualBox-6.1.44.new/doc/manual/en_US/user_Frontends.xml
--- VirtualBox-6.1.44/doc/manual/en_US/user_Frontends.xml	2023-04-13 04:15:15.000000000 -0500
+++ VirtualBox-6.1.44.new/doc/manual/en_US/user_Frontends.xml	2024-02-11 17:35:12.806444672 -0600
@@ -1205,6 +1205,6 @@

   </sect1>

-  <xi:include href="user_man_VBoxHeadless.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
+  <xi:include href="user_man_VBoxHeadless.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" ><xi:fallback/></xi:include>

 </chapter>
diff -urN VirtualBox-6.1.44/doc/manual/en_US/user_VBoxManage.xml VirtualBox-6.1.44.new/doc/manual/en_US/user_VBoxManage.xml
--- VirtualBox-6.1.44/doc/manual/en_US/user_VBoxManage.xml	2023-04-13 04:15:15.000000000 -0500
+++ VirtualBox-6.1.44.new/doc/manual/en_US/user_VBoxManage.xml	2024-02-11 17:42:46.135268138 -0600
@@ -8975,6 +8975,6 @@
 <!-- TODO: Figure out how we can handle other manpages. The xml is bolted to
              sect1, so it's not possible to have them "in place" -->

-  <xi:include href="user_man_vboximg-mount.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" />
+  <xi:include href="user_man_vboximg-mount.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" ><xi:fallback/></xi:include>

 </chapter>
I hope this helps.
 
Old 02-12-2024, 09:20 AM   #14
lghizoni
Member
 
Registered: Dec 2011
Location: Denmark
Distribution: Slackware, Debian
Posts: 102

Original Poster
Rep: Reputation: Disabled
Thank you all for the inputs.

My automatic approach was to always look for the slackpg repo, and then in the slackbuilds.

After going for the .run file in the Virtualbox website, as suggested by some, it installed smoothly

Super thanks!
 
Old 02-12-2024, 10:57 AM   #15
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Just for reference,

When you want to update, just run the "new" run file, it will automatically remove the old installation

You'll need to update your extensions as well
 
3 members found this post helpful.
  


Reply

Tags
slackware, virtualbox



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CAnnot install "python" on Sid, so cannot install Virtualbox 6.1 273 Debian 16 10-02-2020 06:18 PM
[SOLVED] virtualbox is installed along with virtualbox-dkms and virtualbox-ext-pack and linux-headers-generic, but error for no /dev/vboxdrv Astral Axiom Linux - Software 2 03-04-2019 08:09 PM
4MLinux as VirtualBox guest - how can I install VirtualBox Guest Additions? wghay 4MLinux 11 09-30-2018 12:17 PM
Move Slackware guest from a Slackware hosted Virtualbox to Windows hosted Virtualbox? damgar Slackware 1 08-07-2012 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration