You are not logged in.

#26 2019-12-30 13:42:52

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 687

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@pstrg:
Inside GUEST, open terminal and execute:

$ sudo adduser $USER vboxsf

Log-out and log-in. Shared folder should now be accessible.


Postpone all your duties; if you die, you won't have to do them ..

Offline

#27 2019-12-30 14:10:46

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

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@iMBeCil

Had already done that... (learned it was required while experimenting with PeppermintOS, which I completed OK).

Offline

#28 2019-12-30 14:14:38

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

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@rbh

paulo@helium:~$ rcvboxadd setup
rm: cannot remove '/lib/modules/4.9.0-11-amd64/misc/vboxguest.ko': Permission denied
rm: cannot remove '/lib/modules/4.9.0-11-amd64/misc/vboxsf.ko': Permission denied
rm: cannot remove '/lib/modules/4.9.0-11-amd64/misc/vboxvideo.ko': Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.dep.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.dep.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.alias.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.alias.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.softdep.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.symbols.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.symbols.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.builtin.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.devname.tmp, 1101, 644): Permission denied
ln: failed to create hard link '/boot/initrd.img-4.9.0-11-amd64.dpkg-bak' => '/boot/initrd.img-4.9.0-11-amd64': Operation not permitted
cp: cannot create regular file '/boot/initrd.img-4.9.0-11-amd64.dpkg-bak': Permission denied
update-initramfs failed with error code 1.
rm: cannot remove '/etc/depmod.d/vboxvideo-upstream.conf': Permission denied
rm: cannot remove '/var/lib/VBoxGuestAdditions/skip-4.9.0-11-amd64': Permission denied
rm: cannot remove '/var/lib/VBoxGuestAdditions/skip-4.9.0-9-amd64': Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.dep.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.dep.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.alias.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.alias.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.softdep.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.symbols.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.symbols.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.builtin.bin.tmp, 1101, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.9.0-11-amd64, modules.devname.tmp, 1101, 644): Permission denied

^C
paulo@helium:~$

Offline

#29 2019-12-30 14:22:29

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 687

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@pstrg Well ... so far it always worked for me. Could you please post output of this command ()from GUEST):

$ grep vbox /etc/group

# output in my working BL guest:
vboxsf:x:998:myusername

where 'myusername' is my real username on th install. And please doulecheck it is 'vboxsf' and not 'vboxfs'.

And generally, double check everything ...

Note: my host is Debian, and my guest is BusenLabs. Perhaps there is some 'secret ingredient' required for Win10 HOST? I can test it later, perhaps ...

@anyone: I have put a small how-to for installing and configuring VBox here in BL forum. I'm sure there are tons of these on the internet, then why not having one here as well?

In particular, pay attention on the reference [1] in the how-to, as this should solve quite a few questions here in this topic.

Last edited by iMBeCil (2019-12-30 14:28:30)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#30 2019-12-30 15:46:54

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

Re: [SOLVED] Failing to install VirtualBox Guest Additions

pstrg wrote:

paulo@helium:~$ rcvboxadd setup
rm: cannot remove '/lib/modules/4.9.0-11-amd64/misc/vboxguest.ko': Permission denied

Yes, if you run it as regular user you will get permission denied. I wrote:

rbh wrote:

root command "rcvboxadd setup", on the guest.

Before that, I wrote;

# rcvboxadd setup

The command has to be run with rootrights

The crunch (#) indicates that the following command is issued by root.
Commands by regular user is preeceded by dollar sign ($).


// Regards rbh

Offline

#31 2019-12-30 17:31:12

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

Re: [SOLVED] Failing to install VirtualBox Guest Additions

=============
FRESH INSTALL
=============

On VB side, did not forget to select auto-mount shared folder.

After installing the new Helium, as directed:

apt-get install build-essential

Then:

sudo ap-get install 4.9.0-11-amd64

but it wasn't needed (was already in the last version).
Next:

sudo bash /media/cdrom/VBoxLinuxAdditions.run

This time I was prepared to take a photo of the screen:
IMG-20191230-133148865.jpg

That's all for now.

Must say that this community provides superb (and amazingly prompt) support - the problem will be sorted out.

Offline

#32 2019-12-30 17:47:28

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

Re: [SOLVED] Failing to install VirtualBox Guest Additions

pstrg wrote:

After installing the new Helium, as directed:

apt-get install build-essential

Then:

sudo ap-get install 4.9.0-11-amd64

You shall install kernel headers, not kernel:

apt install linux-headers-`uname -r`  build-essential

// Regards rbh

Offline

#33 2019-12-30 17:58:18

damo
....moderator....
Registered: 2015-08-20
Posts: 5,403

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@rbh You are doing some amazing and patient help. Kudos! :clap clap clap:


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#34 2019-12-30 18:57:05

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

Re: [SOLVED] Failing to install VirtualBox Guest Additions

@rbh

paulo@helium:~$ sudo apt install linux-headers-`uname -r`  build-essential
[sudo] password for paulo: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.3).
The following additional packages will be installed:
  linux-compiler-gcc-6-x86 linux-headers-4.9.0-11-common linux-kbuild-4.9
The following NEW packages will be installed:
  linux-compiler-gcc-6-x86 linux-headers-4.9.0-11-amd64
  linux-headers-4.9.0-11-common linux-kbuild-4.9
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 9,673 kB of archives.
After this operation, 52.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://deb.debian.org/debian-security stretch/updates/main amd64 linux-compiler-gcc-6-x86 amd64 4.9.189-3+deb9u2 [656 kB]
Get:2 https://deb.debian.org/debian-security stretch/updates/main amd64 linux-headers-4.9.0-11-common all 4.9.189-3+deb9u2 [7,705 kB]
Get:3 https://deb.debian.org/debian-security stretch/updates/main amd64 linux-kbuild-4.9 amd64 4.9.189-3+deb9u2 [862 kB]
Get:4 https://deb.debian.org/debian-security stretch/updates/main amd64 linux-headers-4.9.0-11-amd64 amd64 4.9.189-3+deb9u2 [450 kB]
Fetched 9,673 kB in 3s (3,212 kB/s)               
Selecting previously unselected package linux-compiler-gcc-6-x86.
(Reading database ... 106668 files and directories currently installed.)
Preparing to unpack .../linux-compiler-gcc-6-x86_4.9.189-3+deb9u2_amd64.deb ...
Unpacking linux-compiler-gcc-6-x86 (4.9.189-3+deb9u2) ...
Selecting previously unselected package linux-headers-4.9.0-11-common.
Preparing to unpack .../linux-headers-4.9.0-11-common_4.9.189-3+deb9u2_all.deb ...
Unpacking linux-headers-4.9.0-11-common (4.9.189-3+deb9u2) ...
Selecting previously unselected package linux-kbuild-4.9.
Preparing to unpack .../linux-kbuild-4.9_4.9.189-3+deb9u2_amd64.deb ...
Unpacking linux-kbuild-4.9 (4.9.189-3+deb9u2) ...
Selecting previously unselected package linux-headers-4.9.0-11-amd64.
Preparing to unpack .../linux-headers-4.9.0-11-amd64_4.9.189-3+deb9u2_amd64.deb ...
Unpacking linux-headers-4.9.0-11-amd64 (4.9.189-3+deb9u2) ...
Setting up linux-headers-4.9.0-11-common (4.9.189-3+deb9u2) ...
Setting up linux-compiler-gcc-6-x86 (4.9.189-3+deb9u2) ...
Setting up linux-kbuild-4.9 (4.9.189-3+deb9u2) ...
Setting up linux-headers-4.9.0-11-amd64 (4.9.189-3+deb9u2) ...
paulo@helium:~$ 

then

paulo@helium:~$ sudo bash /media/cdrom1/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.
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.
paulo@helium:~$ 

Finally I can see sf_lin-win!
Now, I have to add myself

paulo@helium:~$ sudo adduser paulo vboxsf
[sudo] password for paulo: 
Adding user `paulo' to group `vboxsf' ...
Adding user paulo to group vboxsf
Done.
paulo@helium:~$

Rebooted and...

SO VERY HAPPY - it finally worked!

Thank you
damo;
Sun for Miles;
DeepDayze;
iMBeCil;
and last, but not least,
rbh.

Offline

#35 2019-12-30 19:19:06

DeepDayze
Member
From: In Linux Land
Registered: 2017-05-28
Posts: 778

Re: [SOLVED] Failing to install VirtualBox Guest Additions

Ahh there you go. You can edit title of the first post to mark Solved.


Real Men Use Linux

Offline

#36 2019-12-30 20:34:30

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

Re: [SOLVED] Failing to install VirtualBox Guest Additions

pstrg wrote:

Rebooted and...
SO VERY HAPPY - it finally worked!
Thank you

You are welcome!

I've posted som thoughts in thread Forum rules


// Regards rbh

Offline

Board footer

Powered by FluxBB