Porteus on VirtualBox: cannot activate shared folders

Post here if you are a new Porteus member and you're looking for some help.
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: 8342
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 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: 3869
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 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » 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