VirtualBox

Opened 4 years ago

Closed 3 years ago

#20320 closed defect (fixed)

Cannot run executable in shared folder in Linux/Kali -> Fixed in SVN

Reported by: VimExtreme Owned by:
Component: shared folders Version: VirtualBox 6.1.20
Keywords: kali, linux, executable Cc:
Guest type: Linux Host type: Linux

Description

I am running two virtual machines in my Debian host: 1 Kali, 1 Windows 10. Both have a shared folder mounted into the guest machines, called "austausch" (= "shared" in English).

In Kali, I start a terminal/bash and try to run an executable bash script like this:

$ cd ~/austausch

$ cat test.sh
#!/bin/bash
echo "Hello world!"

$ ./test.sh
bash: ./test.sh: /bin/bash: Defekter Interpreter: Das Argument ist ungültig (= "broken interpreter: The argument is invalid")

$ bash test.sh
Hello world!

$ cp test.sh ~/
$ cd ~/

$ ./test.sh
Hello world!

$ mount | grep Austausch
Austausch on /media/sf_Austausch type vboxsf (rw,nodev,relatime,iocharset=utf8,uid=0,gid=0)

In Windows 10, there is no such issue and I can run arbitrary exe files from the shared folder.

I am running VirtualBox 6.1.20 on Debian/Host, and it appears to be 6.1.18 in Kali for some reason although I tried to update *now*:

$ apt update
[...]

$ apt install virtualbox-guest-utils virtualbox-guest-x11
[...]
virtualbox-guest-utils ist schon die neueste Version (6.1.18-dfsg-2). (= "is already the newest version")
virtualbox-guest-x11 ist schon die neueste Version (6.1.18-dfsg-2). (= "is already the newest version")

I am not sure when this problem came up initially, but I think it was in VB 6.1.18. I seem to not be the only one with this problem, as a few colleagues of mine have run into this issue, too.

Any ideas what might have gone wrong here?

Attachments (1)

vb-log.log (89.2 KB ) - added by VimExtreme 4 years ago.
virtualbox log file for respective kali linux machine

Download all attachments as: .zip

Change History (5)

by VimExtreme, 4 years ago

Attachment: vb-log.log added

virtualbox log file for respective kali linux machine

comment:1 by Klaus Espenlaub, 4 years ago

This is a known issue with the released shared folder code... running things off a shared folder is failing since Linux kernel 5.10. Is it possible that you use an older kernel in your VM for the time until a fix is available?

in reply to:  1 ; comment:2 by VimExtreme, 4 years ago

Replying to klaus:

This is a known issue with the released shared folder code... running things off a shared folder is failing since Linux kernel 5.10. Is it possible that you use an older kernel in your VM for the time until a fix is available?

Oh, that is interesting to hear! I already removed all old kernels from the VM, but will look into this if I can somehow revert to previous versions.

Do you have a clue how long it might take to release an update to Virtualbox, or when this might be fixed in a kernel update?

Version 0, edited 4 years ago by VimExtreme (next)

in reply to:  2 comment:3 by galitsyn, 4 years ago

The issue should be fixed in 6.1.22. Could you please give it a try?

comment:4 by galitsyn, 3 years ago

Resolution: fixed
Status: newclosed
Summary: Cannot run executable in shared folder in Linux/KaliCannot run executable in shared folder in Linux/Kali -> Fixed in SVN

Fix available since VirtualBox 6.1.24.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette