VirtualBox Problems [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :)

Moderator: Moderators

VolvoBirkenstock
Advanced Hen
Posts: 249
Joined: Sun Mar 31, 2013 5:34

VirtualBox Problems [Solved]

Post by VolvoBirkenstock » Sun Jul 19, 2020 23:15

Hello, Sabayon Gurus.

I have not been using my VirtualBox virtual machines frequently, and as such I do not know the time frame associated with the following error. I started up a virtual machine that has worked before in VirtualBox today. There was a complaint about USB2.0 which I addressed by installing VirtualBox ExtPack Oracle. Subsequent to that, I am now seeing a complaint regarding VirtualBox Guest Additions. The specific complaint is presented in a "VirtualBox - Warning" popup which states "The image file '/opt/VirtualBox/additions/VBoxGuestAdditions.iso' is inaccessible and is being ignored. Please select a different image file for the virtual DVD drive.." I can still run the virtual machine but cannot update the guest additions.

The problem I have is that I cannot find the VBoxGuestAdditions.iso image anywhere on my system, even after reinstalling VirtualBox, VirtualBox Modules and VirtualBox ExtPack Oracle. I executed a "find" command looking for VBoxGuestAdditions.iso and could not find it anywhere on my system.

How do I fix this?

Thank you very much in advance.
Last edited by VolvoBirkenstock on Mon Jul 27, 2020 2:30, edited 1 time in total.

User avatar
sabayonino
Sagely Hen
Posts: 3558
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: VirtualBox Problems

Post by sabayonino » Mon Jul 20, 2020 10:50

Which kernel is running in your system ?

Maybe "guest-additions" iso is missing for the kernel version you're running

Sabayon weekly repo :

Code: Select all

equo s app-emulation/virtualbox-guest-additions -qv
app-emulation/virtualbox-guest-additions-6.1.4-r1#4.19.0-sabayon
app-emulation/virtualbox-guest-additions-6.1.4-r1#5.4.0-sabayon
app-emulation/virtualbox-guest-additions-6.1.6#4.14.0-sabayon
app-emulation/virtualbox-guest-additions-6.1.6#4.19.0-sabayon
app-emulation/virtualbox-guest-additions-6.1.6#4.9.0-sabayon
app-emulation/virtualbox-guest-additions-6.1.6#5.4.0-sabayon

# uname -r
5.6.0-sabayon

VolvoBirkenstock
Advanced Hen
Posts: 249
Joined: Sun Mar 31, 2013 5:34

Re: VirtualBox Problems

Post by VolvoBirkenstock » Sun Jul 26, 2020 0:22

Thank you for answering, sabayonino, and I am sorry it took so long for this reply.
I do not believe that version is the root cause.

Code: Select all

# equo s app-emulation/virtualbox-guest-additions -qv
app-emulation/virtualbox-guest-additions-6.1.4-r1#4.19.0-sabayon
app-emulation/virtualbox-guest-additions-6.1.4-r1#5.4.0-sabayon
app-emulation/virtualbox-guest-additions-6.1.6#4.14.0-sabayon
app-emulation/virtualbox-guest-additions-6.1.6#4.19.0-sabayon
app-emulation/virtualbox-guest-additions-6.1.6#4.9.0-sabayon
app-emulation/virtualbox-guest-additions-6.1.6#5.4.0-sabayon

# uname -r
5.4.0-sabayon
It appears that I have kernel version 5.4.0 and the appropriate guest-additions.

VolvoBirkenstock
Advanced Hen
Posts: 249
Joined: Sun Mar 31, 2013 5:34

Re: VirtualBox Problems

Post by VolvoBirkenstock » Sun Jul 26, 2020 2:37

I just examined the contents of
/var/lib/entropy/client/packages/packages/amd64/5/app-emulation/app-emulation:virtualbox-guest-additions-6.1.6#5.4.0-sabayon.0aae49a97609eb9af0b28ddc2f27d9d5bf74a9ee~3.tbz2
Here is what I found after executing tar jtvf <above tarfile name>:

Code: Select all

drwxr-xr-x root/root         0 2020-07-12 18:26 ./
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/debug/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/debug/.build-id/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/debug/.build-id/8e/
lrwxrwxrwx root/root         0 2020-07-12 18:26 ./usr/lib/debug/.build-id/8e/430bda239fc9559a2a46bc688337c0ba595834 -> /lib/modules/5.4.0-sabayon/misc/vboxguest.ko
lrwxrwxrwx root/root         0 2020-07-12 18:26 ./usr/lib/debug/.build-id/8e/430bda239fc9559a2a46bc688337c0ba595834.debug -> ../../lib/modules/5.4.0-sabayon/misc/vboxguest.ko.debug
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/debug/.build-id/ea/
lrwxrwxrwx root/root         0 2020-07-12 18:26 ./usr/lib/debug/.build-id/ea/279123938f69aef6c3e2b8f11221d81cbc9497 -> /lib/modules/5.4.0-sabayon/misc/vboxsf.ko
lrwxrwxrwx root/root         0 2020-07-12 18:26 ./usr/lib/debug/.build-id/ea/279123938f69aef6c3e2b8f11221d81cbc9497.debug -> ../../lib/modules/5.4.0-sabayon/misc/vboxsf.ko.debug
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/debug/.build-id/3f/
lrwxrwxrwx root/root         0 2020-07-12 18:26 ./usr/lib/debug/.build-id/3f/48dfea4fb22e10b344a659ea9ca581cef31382 -> /lib/modules/5.4.0-sabayon/misc/vboxvideo.ko
lrwxrwxrwx root/root         0 2020-07-12 18:26 ./usr/lib/debug/.build-id/3f/48dfea4fb22e10b344a659ea9ca581cef31382.debug -> ../../lib/modules/5.4.0-sabayon/misc/vboxvideo.ko.debug
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/debug/sbin/
-rw------- root/root     17680 2020-07-12 18:26 ./usr/lib/debug/sbin/mount.vboxsf.debug
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/debug/usr/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/debug/usr/sbin/
-rw-r--r-- root/root   2539624 2020-07-12 18:26 ./usr/lib/debug/usr/sbin/vboxguest-service.debug
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/debug/usr/bin/
-rw-r--r-- root/root   2655872 2020-07-12 18:26 ./usr/lib/debug/usr/bin/VBoxClient.debug
-rw-r--r-- root/root   2483240 2020-07-12 18:26 ./usr/lib/debug/usr/bin/VBoxControl.debug
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/debug/lib/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/debug/lib/modules/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/debug/lib/modules/5.4.0-sabayon/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/lib/debug/lib/modules/5.4.0-sabayon/misc/
-rw-r--r-- root/root    330888 2020-07-12 18:26 ./usr/lib/debug/lib/modules/5.4.0-sabayon/misc/vboxguest.ko.debug
-rw-r--r-- root/root     51608 2020-07-12 18:26 ./usr/lib/debug/lib/modules/5.4.0-sabayon/misc/vboxvideo.ko.debug
-rw-r--r-- root/root     73624 2020-07-12 18:26 ./usr/lib/debug/lib/modules/5.4.0-sabayon/misc/vboxsf.ko.debug
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/share/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/share/doc/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/share/doc/virtualbox-guest-additions-6.1.6/
-rw-r--r-- root/root       151 2020-07-12 18:26 ./usr/share/doc/virtualbox-guest-additions-6.1.6/xorg.conf.vbox.bz2
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/bin/
-rwxr-xr-x root/root   1887712 2020-07-12 18:26 ./usr/bin/VBoxClient
-rwxr-xr-x root/root   1875880 2020-07-12 18:26 ./usr/bin/VBoxControl
-rwxr-xr-x root/root      1626 2020-07-12 18:26 ./usr/bin/VBoxClient-all
drwxr-xr-x root/root         0 2020-07-12 18:26 ./usr/sbin/
-rwxr-xr-x root/root   1926960 2020-07-12 18:26 ./usr/sbin/vboxguest-service
drwxr-xr-x root/root         0 2020-07-12 18:26 ./etc/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./etc/xdg/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./etc/xdg/autostart/
-rw-r--r-- root/root       145 2020-07-12 18:26 ./etc/xdg/autostart/vboxclient.desktop
drwxr-xr-x root/root         0 2020-07-12 18:26 ./etc/init.d/
-rwxr-xr-x root/root       538 2020-07-12 18:26 ./etc/init.d/virtualbox-guest-additions
drwxr-xr-x root/root         0 2020-07-12 18:26 ./sbin/
-rwsr-xr-x root/root     27192 2020-07-12 18:26 ./sbin/mount.vboxsf
drwxr-xr-x root/root         0 2020-07-12 18:26 ./lib/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./lib/systemd/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./lib/systemd/system/
-rw-r--r-- root/root       411 2020-07-12 18:26 ./lib/systemd/system/virtualbox-guest-additions.service
drwxr-xr-x root/root         0 2020-07-12 18:26 ./lib/udev/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./lib/udev/rules.d/
-rw-r--r-- root/root       141 2020-07-12 18:26 ./lib/udev/rules.d/60-virtualbox-guest-additions.rules
drwxr-xr-x root/root         0 2020-07-12 18:26 ./lib/modules/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./lib/modules/5.4.0-sabayon/
drwxr-xr-x root/root         0 2020-07-12 18:26 ./lib/modules/5.4.0-sabayon/misc/
-rw-r--r-- root/root    531112 2020-07-12 18:26 ./lib/modules/5.4.0-sabayon/misc/vboxguest.ko
-rw-r--r-- root/root     87824 2020-07-12 18:26 ./lib/modules/5.4.0-sabayon/misc/vboxvideo.ko
-rw-r--r-- root/root    145016 2020-07-12 18:26 ./lib/modules/5.4.0-sabayon/misc/vboxsf.ko

bzip2: (stdin): trailing garbage after EOF ignored
It does not appear to contain an ISO image unless it is buried inside xorg.conf.vbox.bz2.

User avatar
sabayonino
Sagely Hen
Posts: 3558
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: VirtualBox Problems

Post by sabayonino » Sun Jul 26, 2020 13:30

To examine the contents of installed package(s) , run

Code: Select all

equo q files <package-name> -qv

Code: Select all

 equo q files app-emulation/virtualbox-guest-additions-6.1.6#5.4.0-sabayon -qv
/etc
/etc/init.d
/etc/init.d/virtualbox-guest-additions
/etc/xdg
/etc/xdg/autostart
/etc/xdg/autostart/vboxclient.desktop
/lib
/lib/modules
/lib/modules/5.4.0-sabayon
/lib/modules/5.4.0-sabayon/misc
/lib/modules/5.4.0-sabayon/misc/vboxguest.ko
/lib/modules/5.4.0-sabayon/misc/vboxsf.ko
/lib/modules/5.4.0-sabayon/misc/vboxvideo.ko
/lib/systemd
/lib/systemd/system
/lib/systemd/system/virtualbox-guest-additions.service
/lib/udev
/lib/udev/rules.d
/lib/udev/rules.d/60-virtualbox-guest-additions.rules
/sbin
/sbin/mount.vboxsf
/usr
/usr/bin
/usr/bin/VBoxClient
/usr/bin/VBoxClient-all
/usr/bin/VBoxControl
/usr/lib
/usr/sbin
/usr/sbin/vboxguest-service
/usr/share
/usr/share/doc
/usr/share/doc/virtualbox-guest-additions-6.1.6
/usr/share/doc/virtualbox-guest-additions-6.1.6/xorg.conf.vbox.bz2
Guest Additions package contains all files (and functions) that guest-additions ISO has
They consist of device drivers and system applications that optimize the guest
just like

Mouse pointer integration
Shared folders
Better video support
Shared clipboard
etc...

No need to looking for a "iso" image

VolvoBirkenstock
Advanced Hen
Posts: 249
Joined: Sun Mar 31, 2013 5:34

Re: VirtualBox Problems

Post by VolvoBirkenstock » Mon Jul 27, 2020 1:23

Hi again, sabayonino.

I have reinstalled virtualbox, including modules and guest additions. In my original post on the subject, I reported the following that virtualbox placed in a popup:
"The specific complaint is presented in a "VirtualBox - Warning" popup which states "The image file '/opt/VirtualBox/additions/VBoxGuestAdditions.iso' is inaccessible and is being ignored. Please select a different image file for the virtual DVD drive.."
Please understand that my system has an /opt directory. For reasons I do not understand, my system does NOT have an /opt/VirtualBox directory. This is true even after I reinstall virtualbox, modules, extpack and guest additions. As such there is no ISO image. There _apparently_ used to be an ISO image there. Either that, or the comment in the popup mentioned above is inaccurate. Now, if there never was an ISO image, and what pretended to be an ISO image existed and was shown under "Settings" -> "Storage" as attached to "Controller: IDE", then how do I fix this? Understand that this used to work. Do I just remove "VBoxGuestAdditions.iso" from the "Controller: IDE" and pray that it shows up and can be mounted somehow?

Thanks in advance...

VolvoBirkenstock
Advanced Hen
Posts: 249
Joined: Sun Mar 31, 2013 5:34

Re: VirtualBox Problems

Post by VolvoBirkenstock » Mon Jul 27, 2020 2:30

I believe I figured out the problem.
The first thing I did was download the ISO image to my Sabayon space.
I obtained the ISO image from https://download.virtualbox.org/virtual ... _6.1.6.iso.
I then executed mkdir -p /opt/VirtualBox/additions.
I then copied the VBoxGuestAdditions_6.1.6.iso file to /opt/VirtualBox/additions/VBoxGuestAdditions.iso.
I had to reboot my VirtualBox, but it works now. ;-)
Marking this issue as Solved.

User avatar
sabayonino
Sagely Hen
Posts: 3558
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: VirtualBox Problems [Solved]

Post by sabayonino » Mon Jul 27, 2020 11:10

Pay attention !
Virtualbox 6.1.6 files were moved from /opt to /usr/bin

/usr/bin is now the default installation directory

see

Code: Select all

equo q files app-emulation/virtualbox

VolvoBirkenstock
Advanced Hen
Posts: 249
Joined: Sun Mar 31, 2013 5:34

Re: VirtualBox Problems [Solved]

Post by VolvoBirkenstock » Wed Jul 29, 2020 4:07

Pay attention indeed.

1. From the error messages it appears that VIrtualBox seeks an ISO image located at /opt/VirtualBox/additions/VBoxGuestAdditions.iso.
2. Observing the output of "equo q files app-emulation/virtualbox | grep /usr/bin | awk '{print $3}'" provides the following output:

Code: Select all

/usr/bin
/usr/bin/VBoxAutostart
/usr/bin/VBoxBalloonCtrl
/usr/bin/VBoxBugReport
/usr/bin/VBoxHeadless
/usr/bin/VBoxManage
/usr/bin/VBoxSDL
/usr/bin/VBoxTunctl
/usr/bin/VBoxVRDP
/usr/bin/VirtualBox
/usr/bin/VirtualBoxVM
/usr/bin/vboxautostart
/usr/bin/vboxballoonctrl
/usr/bin/vboxbugreport
/usr/bin/vboxheadless
/usr/bin/vboximg-mount
/usr/bin/vboxmanage
/usr/bin/vboxsdl
/usr/bin/virtualbox
/usr/bin/virtualboxvm

Running the command "file `equo q files app-emulation/virtualbox | grep /usr/bin | awk '{print $3}'`" results in:

Code: Select all

/usr/bin:                 directory
/usr/bin/VBoxAutostart:   symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/VBoxBalloonCtrl: symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/VBoxBugReport:   symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/VBoxHeadless:    symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/VBoxManage:      symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/VBoxSDL:         symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/VBoxTunctl:      symbolic link to /usr/lib64/virtualbox/VBoxTunctl
/usr/bin/VBoxVRDP:        symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/VirtualBox:      symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/VirtualBoxVM:    symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/vboxautostart:   symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/vboxballoonctrl: symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/vboxbugreport:   symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/vboxheadless:    symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/vboximg-mount:   symbolic link to /usr/lib64/virtualbox/vboximg-mount
/usr/bin/vboxmanage:      symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/vboxsdl:         symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/virtualbox:      symbolic link to /usr/lib64/virtualbox/VBox
/usr/bin/virtualboxvm:    symbolic link to /usr/lib64/virtualbox/VBox
Note that "file /usr/lib64/virtualbox/VBox" returns

Code: Select all

/usr/lib64/virtualbox/VBox: POSIX shell script, ASCII text executable
and that "file /usr/lib64/virtualbox/VBoxTunctl" returns

Code: Select all

/usr/lib64/virtualbox/VBoxTunctl: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, stripped
and that "file /usr/lib64/virtualbox/vboximg-mount" returns

Code: Select all

usr/lib64/virtualbox/vboximg-mount: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, stripped
Now, how *exactly* am I to expect this to provide either a needed ISO image to VIrtualBox or the functionality of a needed ISO image for guest additions, especially when VirtualBox warnings/errors state the inability to find an ISO image at /opt/VirtualBox/additions/VBoxGuestAdditions.iso? And if the new default location of /usr/bin does not provide the needed functionality, then *exactly* how do you expect me to provide that functionality? Please provide very explicit instructions.

I have provided the ISO image and placed it at /opt/VirtualBox/additions/VBoxGuestAdditions.iso, exactly where the errors/warnings stated that it needed to be.
What I have done works.
If you have a better solution, then please provide it with *explicit* instructions.

Thank you.

VolvoBirkenstock
Advanced Hen
Posts: 249
Joined: Sun Mar 31, 2013 5:34

Re: VirtualBox Problems [Solved]

Post by VolvoBirkenstock » Sat Aug 01, 2020 1:56

sabayonino, let me ask this question another way.

Are you implying that there is no need for installing guest additions from an ISO image, which is what was always required before?

If that is true, then why does VirtualBox prompt me to update the guest additions even after I have updated all Sabayon packages (including all VIrtualBox packages) and rebooted my Linux OS? Is VirtualBox providing misinformation?

Thank you.

Post Reply