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,047

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,047

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: 188

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
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 449

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

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
Member
From: In Linux Land
Registered: 2017-05-28
Posts: 909

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
Member
From: In Linux Land
Registered: 2017-05-28
Posts: 909

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,047

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
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 449

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

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
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 449

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

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: 188

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: 188

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

#21 2019-12-30 02:41:18

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

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Here's what I have on VirtualBox side:

00:00:19.016484 VMMDev: Guest Additions capability report: (0x0 -> 0x4) seamless: no, hostWindowMapping: no, graphics: yes
00:00:19.016691 GUI: UISession::sltAdditionsChange: GA state really changed, notifying listeners
00:00:19.016728 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:19.016756 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:00:19.016763 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:19.061181 VMMDev: Guest Log: 23:35:55.097064 main     VBoxService 6.1.0 r135406 (verbosity: 0) linux.amd64 (Dec 10 2019 16:03:14) release log
00:00:19.061203 VMMDev: Guest Log: 23:35:55.097067 main     Log opened 2019-12-29T23:35:55.097024000Z
00:00:19.061245 VMMDev: Guest Log: 23:35:55.097151 main     OS Product: Linux
00:00:19.061271 VMMDev: Guest Log: 23:35:55.097178 main     OS Release: 4.9.0-11-amd64
00:00:19.061292 VMMDev: Guest Log: 23:35:55.097199 main     OS Version: #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11)
00:00:19.061326 VMMDev: Guest Log: 23:35:55.097232 main     Executable: /opt/VBoxGuestAdditions-6.1.0/sbin/VBoxService
00:00:19.061334 VMMDev: Guest Log: 23:35:55.097233 main     Process ID: 762
00:00:19.061338 VMMDev: Guest Log: 23:35:55.097233 main     Package type: LINUX_64BITS_GENERIC
00:00:19.061909 VMMDev: Guest Log: 23:35:55.097813 main     6.1.0 r135406 started. Verbose level = 0
00:00:19.070277 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:00:19.070324 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:19.070745 VMMDev: Guest Log: 23:35:55.106634 main     vbglR3GuestCtrlDetectPeekGetCancelSupport: Supported (#1)
00:00:19.070823 Guest Control: GUEST_MSG_REPORT_FEATURES: 0x1, 0x8000000000000000
00:00:19.101364 GUI: UISession::sltAdditionsChange: GA state really changed, notifying listeners
00:00:19.101392 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:19.101418 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:00:19.101425 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:19.373335 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=1024 h=768 bpp=0 cbLine=0x0 flags=0x2 origin=0,0
00:00:19.391105 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000ad10000 w=800 h=600 bpp=32 cbLine=0xC80 flags=0x1 origin=0,0
00:00:19.403257 GUI: UIMachineLogic: Guest-screen count changed
00:00:19.697633 GUI: UIMachineView::sltPerformGuestResize: Sending guest size-hint to screen 0 as 800x600 if necessary
00:00:29.083365 VMMDev: Guest Log: 02:36:06.346852 timesync vgsvcTimeSyncWorker: Radical guest time change: 10 811 234 849 000ns (GuestNow=1 577 673 366 346 813 000 ns GuestLast=1 577 662 555 111 964 000 ns fSetTimeLastLoop=true )
00:00:35.081863 Shared Clipboard: New Clipboard API enabled
00:00:35.089988 VMMDev: Guest Additions capability report: (0x4 -> 0x5) seamless: yes, hostWindowMapping: no, graphics: yes
00:00:35.090183 GUI: UISession::sltAdditionsChange: GA state really changed, notifying listeners
00:00:35.090212 GUI: UIMachineViewNormal::adjustGuestScreenSize: Adjust guest-screen size if necessary
00:00:35.090236 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:00:35.090242 GUI: UIMachineLogicNormal::sltCheckForRequestedVisualStateType: Requested-state=0, Machine-state=5
00:00:37.690153 DSound: Error enumeration capture device 'Primary Sound Capture Driver', rc=VERR_GENERAL_FAILURE
00:01:58.577726 Changing the VM state from 'RUNNING' to 'SUSPENDING'
00:01:58.591866 AIOMgr: Endpoint for file 'C:\Users\Paulo\VirtualBox VMs\Helium\Helium.vdi' (flags 000c0781) created successfully
00:01:58.645512 PDMR3Suspend: 67 743 487 ns run time
00:01:58.645543 Changing the VM state from 'SUSPENDING' to 'SUSPENDED'
00:01:58.645559 Console: Machine state changed to 'Paused'
00:02:00.799506 Changing the VM state from 'SUSPENDED' to 'RESUMING'
00:02:00.806326 AIOMgr: Endpoint for file 'C:\Users\Paulo\VirtualBox VMs\Helium\Helium.vdi' (flags 000c0723) created successfully
00:02:00.807302 Changing the VM state from 'RESUMING' to 'RUNNING'
00:02:00.807318 Console: Machine state changed to 'Running'
00:02:10.044571 AIOMgr: Async flushes not supported

Offline

#22 2019-12-30 11:14:21

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

Re: [SOLVED] Failing to install VirtualBox Guest Additions

There is nothing regarding "SharedFolder" in the pasted log, can you confirm that there is no entries in the entire log containing that keyword?

In any case, can you hit this command in Bunsen Labs and report the result:

sudo modprobe vboxsf

If this fixed your problem we need to make that module load automatically every time after (re)boot:

echo 'vboxsf' | sudo tee -a /etc/modules-load.d/modules.conf

This would indicate that Guest additions install is somehow broken. The steps I follow to minimize problems when installing VBox GA on Debian guest are these:

1.

sudo apt update

BunsenLabs welcome script offers this option right at the start.

2. Reboot (because of kernel update)

3.

sudo apt install build-essential linux-headers-$(uname -r)

4. Run VirtualBox guest additions install script


Señor Chang, why do you teach Spanish?

Offline

#23 2019-12-30 11:41:07

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 449

Re: [SOLVED] Failing to install VirtualBox Guest Additions

pstrg wrote:

Here's what I have on VirtualBox side:

If I interpret it rigt, it is the guest machine log shown from host Virtualbox GUI menu => Machine => Show log => VBox.log
But, it can not be the whole log.

I have now reinstalled linux headers on my faulty WM:

# apt install linux-headers-`uname -r` 

And rerun VBoxLinuxAdditions.run. Now automount of shared directory works. But, I was reminded of why I do not use it: Its only accessible for root. Maybe, I have done something wrong. I have not investigate it, as I use NFS instead.

My  VBox.log says:

VirtualBox VM 5.2.24_Debian r128122 linux.amd64 (Jan 17 2019 12:17:18) release log
00:00:01.591417 Log opened 2019-12-30T09:28:38.383800000Z
[...]
00:00:01.824394 Shared clipboard service loaded
00:00:01.824421 Shared clipboard mode: Bidirectional
00:00:01.834060 Drag and drop service loaded
00:00:01.834097 Drag and drop mode: Bidirectional
00:00:01.846026 Guest Control service loaded
[ comment: those worked before]
[...]
00:00:02.014222 Shared Folders service loaded

I asked you if your subject liner realy was true or if it only was shared directory that did not work. You have not answered...

Have you installed Linuxheaders:

# apt install linux-headers-`uname -r` 

(that command should also install gcc.
and after that installed Linux guest additions?

What does the guests /var/log/vboxadd-setup.log say?

If you search for

error "modprobe vboxsf failed"

you will se that most often it will get fixed wit installing linux headers.

Btw, I maybe shall explain why you can not run /media/cdrom/VBoxLinuxAdditions.run directly?

You have an entry for DVD/Cd in your guests /etc/fstab, probaly something like:

/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0

"user" also means "noexec". That means you can not execute any program from that filesystem. You can edit fstab and ad "exec" after user, but that can be an security risk.
That, is why you have to execute the shell (bash or sh) and read in the skript. You can test with the copy of VBoxLinuxAdditions.run in your home. Remove the executable bit and you can still execute it with "bash VBoxLinuxAdditions.run".


// Regards rbh

Offline

#24 2019-12-30 13:23:11

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

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Hi!

sudo modprobe vboxsf

The above command yielded no response; rebooted, still no shared folder.

I will create another Helium VM from scratch, this time following the recommendations contained on prior replies - perhaps this may iron out some weird behavior.

Offline

#25 2019-12-30 13:42:06

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 449

Re: [SOLVED] Failing to install VirtualBox Guest Additions

pstrg wrote:
sudo modprobe vboxsf

The above command yielded no response;

That is actualy good... I neihter get any respons on working guest.
If you run it on the host, you will get an error.

Still curious. If it still ther, whats the answer for root command "rcvboxadd setup", on the guest.


// Regards rbh

Offline

Board footer

Powered by FluxBB