You are not logged in.
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
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
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
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
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
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.
Señor Chang, why do you teach Spanish?
Offline
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.
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
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
@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
@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
@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
@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
@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
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
@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
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
Host is Windows 10; VirtualBox is 6.1.0.
Offline
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:
Señor Chang, why do you teach Spanish?
Offline
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
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