A
A
Andrej Kopp2020-10-18 15:56:04
virtual box
Andrej Kopp, 2020-10-18 15:56:04

How to set up a shared folder in VirtualBox between Windows 10 and Ubuntu 18.04?

Faced a problem. I can't set up a shared folder with reverse sync. Windows 10 host, Ubuntu 18.04 guest OS

I set up LAMP with Apache2, set up the config:

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/bionic64"
  config.vm.network "forwarded_port", guest: 80, host: 8080
  config.vm.network "private_network", ip: "192.168.33.10"
end


In the hosts file in Windows 10, I registered IP 192.168.33.10 and made an alias to the local domain doc.local

Now I want to set up a shared folder, which in Ubuntu 18.04 is located at /var/www/html/ (folders with sites are located here) and I wanted to I would like the contents of this directory to be synchronized in two directions in the folder C:\VirtualOS\Linux\Ubuntu18_LAMP\Websites

Here I try to configure, but nothing comes out:

5f8c39a0b688b771258010.png

5f8c410244a0e946454949.png

5f8c41349076c162737583.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
pfg21, 2020-10-18
@pfg21

nafeh samba and nfs :) extra network wrappers.
install the virtualbox-guest-dkms package in the guest ubunt, it will pull everything up and compile all the drivers for the guest system, including the vboxsf shared folder driver.

S
Sergey, 2020-10-18
@KingstonKMS

It is better to lift samba or nfs on ubunt and connect it with a network drive.

D
Drno, 2020-10-18
@Drno

You don't have guest additions installed. Install and run

D
dima333750, 2021-10-17
@dima333750

You need to turn off the virtual machine and connect an empty disk, then repeat everything you did.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question