Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: leon on 20 December 2020, 00:37:24

Title: Virtualbox installation- Shared folder does not mount
Post by: leon on 20 December 2020, 00:37:24
Hi,

I installed all three versions that comes desktop environment. While many features from Virtualbox guest add-on works, such as sharing of clipboard, and changing of screen resolution, I can’t get Shared Folder to auto mount. Any advice?

I tried re-installed from Virtualbox iso. It does not work. I lack the skills to debug the issue.

Thanks in advance.
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: alium on 20 December 2020, 10:39:19
I almost didn't understand what it was about from your explanation ... so I'll just give a link to the wiki https://wiki.archlinux.org/index.php/VirtualBox and comment that the shared folder works (I use it).
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: leon on 20 December 2020, 14:05:56
I am sorry for not being clear. My VirtualBox host is Windows. I likerun  Artix in a vm, to access folders in Windows via Shared Folder.

I did look at the wiki.  https://wiki.archlinux.org/index.php/VirtualBox. There isn't any information that can help me on Shared Folder.



I search the Wiki for the work "Shared" and landed on 5 locations.  There is a SSH solution but that is not what I am looking for...

Addition info since the start of this thread:
I tried other Arch based Linus.  Installation of virtaulbox-guest-utils and/or virtualbox-guest-dkms does not work. However, direct  installation from the iso works. However, I can't get it to work on Artix with OpenRC.... I confirmed vboxadd and vboxadd-service is in /etc/init.d.
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: ####### on 20 December 2020, 15:36:25
Not sure about VM's, not using one, perhaps there is some VM easier method you are talking about, but if you are dual booting Windows & Linux you can set up something in /etc/fstab to automatically mount whatever Windows directories you would like to access from Linux. These can be set up rw or ro as you desire. There are some oddball Windows advanced filesystem layouts or something (can't remember what they are called, but anyway the directories don't really exist unless Windows is running so you can't mount them from Linux) that might cause problems though.
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: leon on 21 December 2020, 05:44:56
 I need to run this is Virtualbox as a vm. Shared folder is a very important feature. 

I have tried installing  virtaulbox-guest-utils and/or virtualbox-guest-dkms. Neither of these works.
If I install directly from Virtualbox iso, feactures such as sharing of clipboard, and changing of screen resolution works but not Shared Folder.

Any help is much appreciated.  Thanks!



Title: Re: Virtualbox installation- Shared folder does not mount
Post by: alium on 21 December 2020, 16:29:50
did you installed https://aur.archlinux.org/packages/virtualbox-ext-oracle/ ? if not, install it, it can help you. IN setting you must define which shared folders you want have in windows (like in my setting https://i.imgur.com/J2CoM2O.png)
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: nous on 21 December 2020, 21:47:57
To get full functionality, your user must be a member of the 'vboxusers' group.
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: leon on 22 December 2020, 13:49:17
I have made some progress, but not home yet....

I used the OpenRC version, install Virtualbox addon via the iso. This created two services, vboxadd and vboxadd-service. Both these files are in /etc/init.d/ and /etc/runlevel/default. However, when I reboot, vboxadd-service does not start.  If I start it manually "/etc/init.d/vboxadd-service start", Shared Folder will appear.  So my question is, how can I start this service? I already "rc-update add vboxadd-service"

Here are some information from others that may also have Shared Folder issue.
I looked at other Arch linux that uses systemd, installing "virtualbox-guest-utils" will install two services, vbocdrmclient.service and vboxservice.service.  This works for the standard kernel and harden kernel. However, ""virtualbox-guest-utils" on Artix does not install any services.

Arch linux has a virtualbox-guest-modules-artix. I suppose this is needed.  I did install but it did not install any services..
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: leon on 22 December 2020, 13:50:16
did you installed https://aur.archlinux.org/packages/virtualbox-ext-oracle/ ? if not, install it, it can help you. IN setting you must define which shared folders you want have in windows (like in my setting https://i.imgur.com/J2CoM2O.png)
Thanks. I tried. It did install a few staff including virtualbox host. However, it did not install any services and my problem remians...
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: leon on 22 December 2020, 13:50:47
To get full functionality, your user must be a member of the 'vboxusers' group.
Got it. I suppose you mean vboxsf group.
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: alium on 22 December 2020, 14:53:46
Got it. I suppose you mean vboxsf group.
vboxusers group is right (for usb access )
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: leon on 24 December 2020, 09:59:01
vboxusers group is right (for usb access )
noted. I didn'r even reach this point...
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: nous on 24 December 2020, 14:15:58
Shared folders work in my boxes, without having any services installed. I only have these modules loaded:
Code: [Select]
vboxnetflt
vboxnetadp
vboxdrv
vboxvideo
vboxsf
vboxguest
You can modprobe any missing on your side an see which one does the trick, but judging by the names I'd guess it's vboxsf.
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: leon on 25 December 2020, 08:48:26
 have installed virtualbox-guest-modules-artix and virtualbox-guest-utils.  With this, none of the modules you mentioned are installed.   I also connot find these modules in /lib/modules/5.9.14-artix1-1 folder.

May I know how do you get these modules installed in the first place?
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: nous on 25 December 2020, 18:27:59
vboxsf.ko.gz is in /usr/lib/modules/5.5.10-artix1-1/extramodules and belongs to virtualbox-guest-modules-artix-6.1.4-8-x86_64.pkg.tar.xz in my system.
Title: [SOLVED] Virtualbox installation- Shared folder does not mount
Post by: alium on 25 December 2020, 20:22:19
sudo pacman -Syu
sudo pacman -S virtualbox-guest-utils virtualboc-guest-modules-artix

i have installed
Code: [Select]
pacman -S virtualbox virtualbox-guest-iso virtualbox-host-dkms
and
from AUR
Code: [Select]
virtualbox-ext-oracle

member of groups:
Code: [Select]
http games dbus ntp network scanner power users cups nordvpn video storage lp disk optical audio wheel 

lsmod:
Code: [Select]
vboxnetflt             32768  0
vboxnetadp             28672  0
vboxdrv               552960  2 vboxnetadp,vboxnetflt

and virtualbox with Windows 7 works out of box absolutely perfect

if you install same packages as i have, it must works for you too!
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: leon on 27 December 2020, 04:11:13
Thanks for the guidance. What I got is vboxsf.ko.xz in /usr/lib/modules/5.5.10-artix1-1/extramodules.  Not sure what to do with it.

I do have virtualbox-guest-modules-artix 6.1.4-8 confirm via pacman -Qs.
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: alium on 27 December 2020, 06:33:43
Thanks for the guidance. What I got is vboxsf.ko.xz in /usr/lib/modules/5.5.10-artix1-1/extramodules.  Not sure what to do with it.

I do have virtualbox-guest-modules-artix 6.1.4-8 confirm via pacman -Qs.
Just install same packages as I you wrote above
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: leon on 28 December 2020, 10:29:00
Did that. Still no improvement...

Code: [Select]
lsmod  | grep vbox
vboxguest              49152  3


Code: [Select]
pacman -Qs virtualbox
local/linux 5.9.14.artix1-1
    The Linux kernel and modules
local/virtualbox 6.1.16-4
    Powerful x86 virtualization for enterprise as well as home use
local/virtualbox-ext-oracle 6.1.16-1
    Oracle VM VirtualBox Extension Pack
local/virtualbox-guest-iso 6.1.16-1
    The official VirtualBox Guest Additions ISO image
local/virtualbox-guest-modules-artix 6.1.4-8
    Virtualbox guest kernel modules for Artix Kernel
local/virtualbox-guest-utils 6.1.16-4
    VirtualBox Guest userspace utilities
local/virtualbox-host-dkms 6.1.16-4
    VirtualBox Host kernel modules sources

Code: [Select]
pacman -Qm 
virtualbox-ext-oracle 6.1.16-1

Code: [Select]
uname -r
5.9.14-artix1-1

Code: [Select]
pwd; ls *
/usr/lib/modules
5.5.10-artix1-1:
extramodules

5.9.14-artix1-1:
build              modules.builtin.alias.bin  modules.devname      pkgbase
kernel             modules.builtin.bin        modules.order        vmlinuz
modules.alias      modules.builtin.modinfo    modules.softdep
modules.alias.bin  modules.dep                modules.symbols
modules.builtin    modules.dep.bin            modules.symbols.bin


Code: [Select]
pwd; ls
/usr/lib/modules/5.5.10-artix1-1/extramodules
vboxsf.ko.xz
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: nous on 28 December 2020, 17:11:29
Well, the module is there. Why don't you modprobe it?
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: leon on 29 December 2020, 03:29:23
I manually started the services. I did a reboot and confirm these are running. Sill, Shared Folder is not working. Also, changing of screen rsoloution does not auto-adj. The good news is, shared clipboard is working.

Code: [Select]
leon-virtualbox:[leon]:~$ !lsm
lsmod | grep vbox
vboxnetflt             32768  0
vboxnetadp             28672  0
vboxdrv               528384  2 vboxnetadp,vboxnetflt
vboxguest              49152  3
leon-virtualbox:[leon]:~$

Title: Re: Virtualbox installation- Shared folder does not mount
Post by: alium on 29 December 2020, 06:58:09
What you mean whith "not working"??
Make screenshots from your settings and put it here, please!!!
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: nous on 29 December 2020, 09:44:12
I manually started the services. I did a reboot and confirm these are running. Sill, Shared Folder is not working. Also, changing of screen rsoloution does not auto-adj. The good news is, shared clipboard is working.
Code: [Select]
leon-virtualbox:[leon]:~$ lsmod | grep vbox
vboxnetflt             32768  0
vboxnetadp             28672  0
vboxdrv               528384  2 vboxnetadp,vboxnetflt
vboxguest              49152  3
leon-virtualbox:[leon]:~$
I still can't see vboxsf.
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: leon on 04 January 2021, 15:22:30
What you mean whith "not working"??
Make screenshots from your settings and put it here, please!!!

Happy New Year!

I am unable to see the Shared Folder in the file manager. If I change the size  of the vb windows,  Artix screen size does not change.  Shared clipboard is, however, working.

Is the attached you are looking for?


(https://i.postimg.cc/MT2x3krf/Artic-Shared-Folder.png) (https://postimages.org/)what fish can i put with my betta (https://bettafishcaretaker.com/)
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: leon on 04 January 2021, 15:23:44
...ok.. so how can I get it? My eariler post shows that packages that I have installed.
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: alium on 04 January 2021, 17:49:27
i no have vboxsf installed on my system, and still shared folders works. But i have in virtualbox my windows 7 on artix. Not artix on another system as you...

see https://wiki.archlinux.org/index.php/VirtualBox/Install_Arch_Linux_as_a_guest#Enable_shared_folders
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: lq on 05 January 2021, 12:52:25
I can’t get Shared Folder to auto mount. Any advice?
Code: [Select]
sudo -i
pacman -S virtualbox-guest-utils virtualbox-guest-modules-artix
curl --output /etc/init.d/vboxautofs https://git.alpinelinux.org/aports/plain/community/virtualbox-guest-additions/virtualbox-guest-additions.initd
chmod +x /etc/init.d/vboxautofs
rc-update add vboxautofs default
rc-service vboxautofs start
usermod -a -G vboxsf USER_NAME
exit

MfG
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: alium on 05 January 2021, 13:09:29
Nice guide for Leon, now must it works! If not, it's problem on your side, Leon  ;D
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: leon on 10 January 2021, 04:46:11
Code: [Select]
sudo -i
pacman -S virtualbox-guest-utils virtualbox-guest-modules-artix
curl --output /etc/init.d/vboxautofs https://git.alpinelinux.org/aports/plain/community/virtualbox-guest-additions/virtualbox-guest-additions.initd
chmod +x /etc/init.d/vboxautofs
rc-update add vboxautofs default
rc-service vboxautofs start
usermod -a -G vboxsf USER_NAME
exit

MfG

Thanks! the  vboxautofs script finally solve the problem.
Title: Re: Virtualbox installation- Shared folder does not mount
Post by: bigbigworld on 26 March 2021, 23:04:31
Code: [Select]
sudo -i
pacman -S virtualbox-guest-utils virtualbox-guest-modules-artix
curl --output /etc/init.d/vboxautofs https://git.alpinelinux.org/aports/plain/community/virtualbox-guest-additions/virtualbox-guest-additions.initd
chmod +x /etc/init.d/vboxautofs
rc-update add vboxautofs default
rc-service vboxautofs start
usermod -a -G vboxsf USER_NAME
exit

MfG

This is great! It completely works for me