How to set up a shared folder using OpenSuse in VirtualBox
I would like to use OpenSuse as a virtual machine running on Windows using VirtualBox. Next, I would like to use a "shared folder" between the two machines to easily share data. Although I already found the "Shared Folder" option inside VirtualBox, I don't know where this folder should appear? Or is there something else to enable the "shared folder"?
source to share
Since I didn’t find information on "How to set up a shared folder using OpenSuse in VirtualBox" after a long search , I decided to summarize the process here - hopefully this helps some others.
General information:
- VirtualBox 4.3.26 Chip Download
- OpenSuse already installed for vmware is directly available for download here (1.3 GB)
How to use the downloaded opensuse.vdi file with VirtualBox is described here: Importing VDI into VirtualBox
OpenSuse should not run inside a virtualBox.
Then the system preparation and Linux guest additions for VirtualBox should be installed in opensuse. So install kernel-source and kernel-syms relative to this link using zypper: Install Linux Guest Additions
sudo zypper install kernel-source
sudo zypper install kernel-syms
Mount Guest Additions like here
and open a console / terminal in the installed folder and install the add-ons:
./VBoxLinuxAdditions.run
See also Installing Linux Guest Additions for a more detailed explanation.
After that, you can install the actual shared folder.
-
Tell VirtualBox to use a shared folder
-
create a directory where the shared folder data should be, for example: home / user / host
-
install shared folder:
sudo mount -t vboxsf wd ~ / host
Correct naming of folder names is important
Since the installation of the shared folder must be done every time the system is restarted, you can do it automatically after the boot process.
In OpenSuse add the following line to "/etc/rc.d/boot.local".
mount -t vboxsf wd /home/<user>/host
Since this requires root privileges, I would recommend adding a line to the file and saving the file later in a different location (eg / home / user /) where no root proxies are required. Then move the file with
sudo mv /home/<user>/boot.local /etc/rc.d/boot.local -f
to the correct location and overwrite the old file. (-f forces you to overwrite another file). Adapt the command for your folders.
More information can be found here: HOWTO: Using Shared Folders
We hope this summary is useful and saves time searching for information.
Best wishes Christoph
source to share
In my experience, this tutorial was not complete for open use jumping. Browse to the root.
CD.
Then go to
cd run / media // VBox_GAs_6.0.6 /
And run the executable as root user.
sudo./VBoxLinuxAdditions.run
After that, I was able to run my Guest Additions not only partially but completely without any hassle. It is advisable to run all installations related to changes to root as the sudo user.
source to share