Porteus on VirtualBox: cannot activate shared folders

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
aparv
Ronin
Ronin
Posts: 3
Joined: 08 Jul 2020, 20:15
Distribution: Porteus 4.16.3 Xfce

Porteus on VirtualBox: cannot activate shared folders

Post#1 by aparv » 08 Jul 2020, 22:21

Hello everyone.
I just happily installed Porteus 4.16.3 on a virtual HD on VirtualBox 6.1 and I'm currently trying to figure out how to activate shared folders between host and guest machines. I browsed the forum and elsewhere, but unfortunately none of the ways I found seem to work, including banging my head on the wall. I don't understand if I'm doing something wrong or what else. May someone help me please? Keep in mind I'm not a Linux expert.
Thank you very much!!


The most prominent steps I tried (summary):

1) VBoxGuestAdditions.iso --> virtual optical drive

2) run autorun.sh as root from Terminal (*); it says that kernel headers are not found; this is no surprise to me, since I know on other distros I'm expected to run something like
apt install build-essential
apt install linux-headers-$(uname -r)
but Porteus has usm insted of apt, therefore...

3) ...I try (and succeeded!) into getting usm updated, and updated its databases too

4) in usm, searching for "kernel headers" gives a couple of hits that don't seem related to Porteus and aren't in .xzm format (e.g. kernel-headers-4.4.227-x86-l.txz); besides, every time I run usm from command line, it gives this error:
find: `/tmp/xdg-runtime-guest/gvfs': Permission denied
so this seems like a dead end

5) in the forum someone said the kernel headers are to be found into 05-devel.xzm (?); I downloaded, copied into /mnt/sda1/porteus/modules/ and activated it but to no avail; another dead end

6) in the same folder where I downloaded 05-devel.xzm there is a promising VirtualBox-5.2.10-porteus-v4.0-x86_64-1prt.xzm; I downloaded, copied into /mnt/sda1/porteus/modules/, activated it and rebooted Porteus but to no avail: the module name appears in the xzm list at boot, but VirtualBox keeps on saying that Guest Additions aren't available... :(




(*)
here's a detailed account of autorun.sh output; the first time I runned it there was only the "kernel headers not found" error, but now there are other errors and warnings:

Warning: Tried to connect to session manager, Authentication Rejected, reason :
None of the authentication protocols specified are supported and host-based authentication failed

and then a text window opens:

Code: Select all

	Verifying archive integrity... All good.
	Uncompressing VirtualBox 6.1.10 Guest Additions for Linux........
	VirtualBox Guest Additions installer
	Removing installed version 6.1.10 of VirtualBox Guest Additions...
	You may need to restart your guest system to finish removing guest drivers.
	Copying additional installer modules ...

	bzip2: I/O or other error, bailing out.  Possible reason follows.
	bzip2: Broken pipe
		Input file = VBoxGuestAdditions-amd64.tar.bz2, output file = (stdout)

	bzip2: I/O or other error, bailing out.  Possible reason follows.
	bzip2: Broken pipe
		Input file = VBoxGuestAdditions-amd64.tar.bz2, output file = (stdout)
	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.16.3-porteus. Please install them and execute
	  /sbin/rcvboxadd setup
	modprobe vboxguest failed
	The log file /var/log/vboxadd-setup.log may contain further information.
	Building the VirtualBox Guest Additions kernel modules.  This may take a while.
	To build modules for other installed kernels, run
	  /sbin/rcvboxadd quicksetup <version>
	or
	  /sbin/rcvboxadd quicksetup all
	Kernel headers not found for target kernel 4.16.3-porteus. Please install them 
	and execute
	  /sbin/rcvboxadd setup
	vboxadd-service.sh: Starting VirtualBox Guest Addition service.
	VirtualBox Additions module not loaded!
	Press Return to close this window...
Last edited by Ed_P on 09 Jul 2020, 03:47, edited 1 time in total.
Reason: Added code tags.

User avatar
Ed_P
Contributor
Contributor
Posts: 5539
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 Cinnamon 64-bit ISO
Location: Western NY, USA

Porteus on VirtualBox: cannot activate shared folders

Post#2 by Ed_P » 09 Jul 2020, 05:56

Hello aparv, welcome to the forum.
aparv wrote:
08 Jul 2020, 22:21
Hello everyone.
I just happily installed Porteus 4.16.3
Which ISO did you use? http://dl.porteus.org/x86_64/Porteus-v4.0/
4) in usm, searching for "kernel headers" gives a couple of hits that don't seem related to Porteus and aren't in .xzm format (e.g. kernel-headers-4.4.227-x86-l.txz); besides, every time I run usm from command line, it gives this error:
find: `/tmp/xdg-runtime-guest/gvfs': Permission denied
so this seems like a dead end
USM provides the option to convert downloaded files to .xzm modules so no worry and the gvfs file error is misleading, disregard it.
Ed

User avatar
Blaze
DEV Team
DEV Team
Posts: 2946
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

Porteus on VirtualBox: cannot activate shared folders

Post#3 by Blaze » 09 Jul 2020, 06:07

Hi aparv,
you can read my howto Re: Вопросы про porteus (Пост Blaze #55110) (Russian topic)
about kernel-headers - you can find it in crippled_sources.xzm
Linux 5.4.57-porteus #1 SMP Sun Aug 9 09:03:28 UTC 2020 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

aparv
Ronin
Ronin
Posts: 3
Joined: 08 Jul 2020, 20:15
Distribution: Porteus 4.16.3 Xfce

Porteus on VirtualBox: cannot activate shared folders

Post#4 by aparv » 09 Jul 2020, 19:20

Hello Ed,
Ed_P wrote:
09 Jul 2020, 05:56
Which ISO did you use? http://dl.porteus.org/x86_64/Porteus-v4.0/
I use Porteus-XFCE-v4.0-x86_64.iso
Ed_P wrote:
09 Jul 2020, 05:56
USM provides the option to convert downloaded files to .xzm modules so no worry and the gvfs file error is misleading, disregard it.
Ah! Very good.

Thank you very much!

aparv
Ronin
Ronin
Posts: 3
Joined: 08 Jul 2020, 20:15
Distribution: Porteus 4.16.3 Xfce

Porteus on VirtualBox: cannot activate shared folders

Post#5 by aparv » 09 Jul 2020, 19:33

Blaze wrote:
09 Jul 2020, 06:07
Hi aparv,
you can read my howto Re: Вопросы про porteus (Пост Blaze #55110) (Russian topic)
about kernel-headers - you can find it in crippled_sources.xzm
Yes! The key was the addition of crippled_sources.xzm.
Also, as per your howto, I run VBoxLinuxAdditions.run instead of autorun.sh.

Problem solved! :Yahoo!: Thank you very much!

Post Reply