

and run the vm as administrator.Īnother flaw is that npm/yarn create millions of files, something I have no control over because it is not my source code and I cannot decide what to install or not. or force symlinks in vbox with VBoxManage setextradata. To fix this I have to either run them with -no-bin-links, which is not an option because I am not the only one working on the code. One of the problems with VM shared folders is that by default creating symlinks is disabled, so every time I run npm install or yarn, I get E_PROTO errors. There you click on the add folder icon located on the right side of the window and input the Folder Path, Folder Name, and Mount Point, then click OK. I am aware of the "shared folders" feature from Virtual Box, however it does have a few flaws, this is why I am looking for alternatives. After installing the software, go to VirtualBox and configure the guest machine by going to Settings > Shared Folders. Does anyone has any idea of what's going on here?Īlso must mention that on the same VirtualBox I have another VM installed (Ubuntu 18.04) on which the auto-mounting is working as a charm.Guest is Ubuntu server, running under Virtual Box.ĭesired feature is to be able to share a folder containing source code between these too.īasically I want to be able to edit the source code in Windows (vscode), but run the code within Linux. However I couldn't find any relevant information of how to solve it. Next, open VirtualBox from the host machine and select the guest OS you wish to edit, then select Settings > Shared Folders.

Maybe the last error that I got in terminal is a hint for the root of the problem. sbin/mount.vboxsf: mounting failed with the error: Invalid argument Sudo mount -t vboxsf -o uid=$USER,gid=vboxsf shared /home/myuser/shared The share does not work, cannot see the files under the shared folder from the host machine. However the same behavior as for Auto-mounting happens. In Settings -> Shared Folders dialog I unchecked Auto-mount checkbox and added a valid value in Mount point (eg. I left Mount point empty.Īfter the above setup I boot the Ubuntu 20 VM and I was expecting to see the mount under /media/sf_shared and I did see it however it was empty even though on the host machine there are several files. I created an entry under VirtualBox Ubuntu 20.04 VM Settings -> Shared Folders and completed the Folder Path to a valid Windows(host) location, the Folder Name (called shared) and checked Auto-mount and Make Permanent. I followed (among other related threads) in order to mount a shared folder in my Ubuntu 20.04 VM.
