You are not logged in.

#1 2019-12-28 01:47:25

pstrg
Member
Registered: 2019-12-25
Posts: 24

[SOLVED] Failing to install VirtualBox Guest Additions

Mounted VBoxGuestAdditions.iso as required.
Checked that /media/cdrom/VBoxLinuxAdditions.run is present after starting Helium.

However, getting the following results in terminal:

paulo@helium:~$ /media/cdrom/VBoxLinuxAdditions.run
paulo@helium:~$ /media/cdrom/VBoxLinuxAdditions.run: Permission denied

Tried also:

paulo@helium:~$ sudo /media/cdrom/VBoxLinuxAdditions.run
[sudo]: password for paulo:
sudo: unable to execute /media/cdrom/VBoxLinuxAdditions.run: Permission denied

How to obtain the permission to run the script?

Last edited by pstrg (2020-01-01 19:41:21)

Offline

#2 2019-12-28 02:49:30

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Have you made sure that the script is executable?


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2019-12-28 11:46:40

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Thank you.

I believe that, being the file within VBoxGuestAdditions.iso that's intended to install the Guest additions, it should already be executable.

Following your suggestion, did the following:


paulo@helium:~$ sudo chmod +x /media/cdrom/VBoxLinuxAdditions.run
[sudo]: password for paulo:
chmod: changing permissions of '/media/cdrom/VBoxLinuxAdditions.run': Read-only file paulo@helium:~$ /media/cdrom/VBoxLinuxAdditions.run
bash: /media/cdrom/VBoxLinuxAdditions.run: Permission denied
/media/cdrom/VBoxLinuxAdditions.run

Last edited by pstrg (2019-12-29 17:52:08)

Offline

#4 2019-12-28 13:47:53

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED] Failing to install VirtualBox Guest Additions

It isn't in your executables $PATH, so you need to use

./media/cdrom/VBoxLinuxAdditions.run

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#5 2019-12-28 15:25:39

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Well, well... it seems that I'm still missing something:


paulo@helium:~$ ./media/cdrom/VBoxLinuxAdditions.run
bash: ./media/cdrom/VBoxLinuxAdditions.run: No such file or directory

Last edited by pstrg (2019-12-29 17:52:44)

Offline

#6 2019-12-28 15:56:55

Sun For Miles
Member
Registered: 2017-04-12
Posts: 263

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Copy /media/cdrom to /tmp/ga for example and try to run VBoxLinuxAdditions.run from tmp directory. At least until somebody figures out why the script can't be run from original mounted location. smile


Señor Chang, why do you teach Spanish?

Offline

#7 2019-12-28 23:19:14

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Sun For Miles wrote:

Copy /media/cdrom to /tmp/ga for example and try to run VBoxLinuxAdditions.run from tmp directory. At least until somebody figures out why the script can't be run from original mounted location. smile

Instead of move it, run:

$ sudo bash /media/cdrom/VBoxLinuxAdditions.run

You can not change permission on the cd...


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#8 2019-12-28 23:36:55

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Thanks @rbh but seems it still didn't work:

paulo@helium:~$ sudo bash /media/cdrom/VBoxLinuxAdditions.run
[sudo] password for paulo: 
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.0 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.0 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Kernel headers not found for target kernel 
4.9.0-11-amd64. Please install them and execute
  /sbin/rcvboxadd setup
modprobe vboxguest failed
The log file /var/log/vboxadd-setup.log may contain further information.

vboxadd-setup.log contents are the same as those of my prior post.

Last edited by pstrg (2019-12-29 17:53:59)

Offline

#9 2019-12-29 00:25:48

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,901

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@pstrg, you need to install the matching version of headers for the kernel. You need to install the headers for the 4.9.0-11-amd64 kernel in the guest.

Last edited by DeepDayze (2019-12-29 00:34:31)


Real Men Use Linux

Offline

#10 2019-12-29 00:55:24

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@DeepDayze, it's really tricky...
After installing kernel headers, I've been asked to install gcc make perl packages, but still no success:

---Mod edit--- Please use [ code ] tags for terminal output!

paulo@helium:~$ sudo bash /media/cdrom/VBoxLinuxAdditions.run
[sudo] password for paulo: 
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.0 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.0 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 4.9.0-11-amd64.

This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
modprobe vboxguest failed
The log file /var/log/vboxadd-setup.log may contain further information.
paulo@helium:~$ apt-get install gcc
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
paulo@helium:~$ sudo apt-get install gcc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  gcc-multilib make autoconf automake libtool flex bison gdb gcc-doc
The following NEW packages will be installed:
  gcc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 5196 B of archives.
After this operation, 44.0 kB of additional disk space will be used.
Get:1 [url]https://deb.debian.org/debian[/url] stretch/main amd64 gcc amd64 4:6.3.0-4 [5196 B]
Fetched 5196 B in 0s (12.9 kB/s)
Selecting previously unselected package gcc.
(Reading database ... 122210 files and directories currently installed.)
Preparing to unpack .../gcc_4%3a6.3.0-4_amd64.deb ...
Unpacking gcc (4:6.3.0-4) ...
Setting up gcc (4:6.3.0-4) ...
Processing triggers for man-db (2.7.6.1-2) ...
paulo@helium:~$ sudo bash /media/cdrom/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.0 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.0 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 4.9.0-11-amd64.

This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
modprobe vboxguest failed
The log file /var/log/vboxadd-setup.log may contain further information.
paulo@helium:~$

Last edited by damo (2019-12-29 01:27:49)

Offline

#11 2019-12-29 01:42:01

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,901

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@pstrg

As root:

apt-get install build-essential

This will install all the packages necessary to compile the modules. This is not installed  by default.


Real Men Use Linux

Offline

#12 2019-12-29 15:12:47

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@DeepDayze:

Still not there...
Followed your advice but:

paulo@helium:~$ sudo /media/cdrom/VBoxLinuxAdditions.run
sudo: unable to execute /media/cdrom/VBoxLinuxAdditions.run: Permission denied

Next I tried a copy of the script (and everything else on the cdrom):

paulo@helium:~$ sudo /home/paulo/tmp/VBoxLinuxAdditions.run
[sudo] password for paulo: 
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.0 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.0 of VirtualBox Guest Additions...
update-initramfs: Generating /boot/initrd.img-4.9.0-11-amd64
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 4.9.0-11-amd64.
update-initramfs: Generating /boot/initrd.img-4.9.0-11-amd64
WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead.
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted
paulo@helium:~$

Last edited by pstrg (2019-12-29 17:31:30)

Offline

#13 2019-12-29 16:06:42

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@pstrg  PLEASE use [ code ] tags for terminal output. It makes it much easier to read and scroll through


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#14 2019-12-29 20:55:27

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [SOLVED] Failing to install VirtualBox Guest Additions

pstrg wrote:

sudo: unable to execute /media/cdrom/VBoxLinuxAdditions.run: Permission denied

As I wrote before, when installing guest additions from the iso, run the installer through the shell:

$ sudo bash /media/cdrom/VBoxLinuxAdditions.run

[...]
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
paulo@helium:~$

You have now installed needed packages before you installed Guest additions, as descibed in section 4.2.2.1, on page https://www.virtualbox.org/manual/ch04.html#additions-linux. The installer informed you that:
"Running kernel modules will not be replaced until the system is restarted".
So, Guet additions should bre ok after restart.


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#15 2019-12-29 23:14:40

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@rbh

Just done it again (please see below) but still can't see the shared folder after rebooting...

paulo@helium:~$ sudo bash /media/cdrom/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.0 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.0 of VirtualBox Guest Additions...
update-initramfs: Generating /boot/initrd.img-4.9.0-11-amd64
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel 
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 4.9.0-11-amd64.
update-initramfs: Generating /boot/initrd.img-4.9.0-11-amd64
WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead.
VirtualBox Guest Additions: Running kernel modules will not be replaced until 
the system is restarted
paulo@helium:~$ 

Offline

#16 2019-12-29 23:58:49

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

Re: [SOLVED] Failing to install VirtualBox Guest Additions

pstrg wrote:

Just done it again (please see below) but still can't see the shared folder after rebooting...

Done what? reinstalled Guest additions?

You did not try the recommende command, "If you suspect that something has gone wrong,":

# rcvboxadd setup

My latest WM, an BL Lithium responds on that command with: "modprobe vboxsf failed".

So, shared folders is not working on that machine. But all other things work, like usb3 support and shared clipboard and so on.
I have not had time to to investigate and it's not an hurry to do it, as I've set up NFS instead.

You could check, if it's only vboxfs that don work.

Also, whats OS on host? Which virtualbox version on host, also 6.1?


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#17 2019-12-30 00:44:12

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Host is Windows 10; VirtualBox is 6.1.0.

Offline

#18 2019-12-30 01:50:11

Sun For Miles
Member
Registered: 2017-04-12
Posts: 263

Re: [SOLVED] Failing to install VirtualBox Guest Additions

I've just conducted quick test, everything seems to be in order: Windows 10 machine, VBox v6.0, BL He vitual machine.

Have you set auto-mount and proper paths in Vbox VM machine settings? This works for me:

EN1HSakt.png


Señor Chang, why do you teach Spanish?

Offline

#19 2019-12-30 01:54:57

pstrg
Member
Registered: 2019-12-25
Posts: 24

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Yes, auto-mount, proper path, Windows 10, VirtualBox 6.1.0.
In fact, have been able to do it with PeppermintOS; used the very same settings on VirtualBox side.

Offline

#20 2019-12-30 02:28:23

Sun For Miles
Member
Registered: 2017-04-12
Posts: 263

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Check the log files, maybe we could see something useful there. Here's how those look in my case.

VBox.log.1 (log file in VM "Logs" directory) shows these lines:

...
00:00:02.431108 SharedFolders host service: Adding host mapping
00:00:02.431122     Host path 'J:\_tmp\_virtual_sharepoint', map name '_virtual_sharepoint', writable, automount=true, automntpnt=/, create_symlinks=false, missing=false
...
00:00:24.557450 VMMDev: Guest Log: 01:38:36.310195 automount vbsvcAutomounterMountIt: Successfully mounted '_virtual_sharepoint' on '/mnt/share'
...

This is the output from the Bunsen Labs:

che@bl-he:~$ df -h
Filesystem                   Size  Used Avail Use% Mounted on
udev                         986M     0  986M   0% /dev
tmpfs                        201M  3.4M  198M   2% /run
/dev/mapper/bl--he--vg-root  5.7G  3.7G  1.7G  70% /
tmpfs                       1003M     0 1003M   0% /dev/shm
tmpfs                        5.0M  4.0K  5.0M   1% /run/lock
tmpfs                       1003M     0 1003M   0% /sys/fs/cgroup
/dev/sda1                    236M   83M  141M  37% /boot
_virtual_sharepoint          1.3T  738G  592G  56% /mnt/share
tmpfs                        201M  4.0K  201M   1% /run/user/109
tmpfs                        201M   12K  201M   1% /run/user/1000
che@bl-he:~$ mount | grep share
_virtual_sharepoint on /mnt/share type vboxsf (rw,nodev,relatime,iocharset=utf8,uid=0,gid=999,dmode=0770,fmode=0770,tag=VBoxAutomounter)
che@bl-he:~$ 
che@bl-he:~$ sudo journalctl | grep automount
Dec 30 03:00:33 bl-he systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
Dec 30 03:00:38 bl-he kernel: 02:00:38.488386 automount vbsvcAutomounterMountIt: Successfully mounted '_virtual_sharepoint' on '/mnt/share'
che@bl-he:~$  

Señor Chang, why do you teach Spanish?

Offline

Board footer

Powered by FluxBB